Merge remote-tracking branch 'origin/dev' into dev
# Conflicts:
# aps-modules/aps-core/src/main/java/com/aps/core/domain/ApsPlatePlan.java
# aps-modules/aps-core/src/main/java/com/aps/core/domain/ApsPlateStandardRequire.java
# aps-modules/aps-core/src/main/java/com/aps/core/mapper/ApsPlatePlanMapper.java
# aps-modules/aps-core/src/main/java/com/aps/core/service/impl/ApsPlateStandardRequireServiceImpl.java
# aps-modules/aps-core/src/main/resources/mapper/core/ApsPlatePlanMapper.xml
| | |
| | | Spring Boot Version: ${spring-boot.version} |
| | | Spring Application Name: ${spring.application.name} |
| | | _ _ _ |
| | | (_) | | | | |
| | | _ __ _ _ ___ _ _ _ ______ __ _ _ _ | |_ | |__ |
| | | | '__|| | | | / _ \ | | | || ||______| / _` || | | || __|| '_ \ |
| | | | | | |_| || (_) || |_| || | | (_| || |_| || |_ | | | | |
| | | |_| \__,_| \___/ \__, ||_| \__,_| \__,_| \__||_| |_| |
| | | __/ | |
| | | |___/ |
| | | |
| | | _____ _____ _ _ |
| | | /\ | __ \ / ____| /\ | | | | |
| | | / \ | |__) | (___ ______ / \ _ _| |_| |__ |
| | | / /\ \ | ___/ \___ \______/ /\ \| | | | __| '_ \ |
| | | / ____ \| | ____) | / ____ \ |_| | |_| | | | |
| | | /_/ \_\_| |_____/ /_/ \_\__,_|\__|_| |_| |
| | | |
| | |
| | | Spring Boot Version: ${spring-boot.version} |
| | | Spring Application Name: ${spring.application.name} |
| | | _ _ |
| | | (_) | | |
| | | _ __ _ _ ___ _ _ _ ______ __ _ __ _ | |_ ___ __ __ __ _ _ _ |
| | | | '__|| | | | / _ \ | | | || ||______| / _` | / _` || __| / _ \\ \ /\ / / / _` || | | | |
| | | | | | |_| || (_) || |_| || | | (_| || (_| || |_ | __/ \ V V / | (_| || |_| | |
| | | |_| \__,_| \___/ \__, ||_| \__, | \__,_| \__| \___| \_/\_/ \__,_| \__, | |
| | | __/ | __/ | __/ | |
| | | |___/ |___/ |___/ |
| | | _____ _____ _____ _ |
| | | /\ | __ \ / ____| / ____| | | |
| | | / \ | |__) | (___ ______| | __ __ _| |_ _____ ____ _ _ _ |
| | | / /\ \ | ___/ \___ \______| | |_ |/ _` | __/ _ \ \ /\ / / _` | | | | |
| | | / ____ \| | ____) | | |__| | (_| | || __/\ V V / (_| | |_| | |
| | | /_/ \_\_| |_____/ \_____|\__,_|\__\___| \_/\_/ \__,_|\__, | |
| | | __/ | |
| | | |___/ |
| | |
| | | import com.aps.common.log.enums.BusinessType; |
| | | import com.aps.common.security.annotation.RequiresPermissions; |
| | | import com.aps.common.security.utils.DictUtils; |
| | | import com.aps.core.domain.ApsGasPipingPlan; |
| | | import com.aps.core.domain.ApsPlatePlan; |
| | | import com.aps.core.domain.ApsPlatePlanTemp; |
| | | import com.aps.core.domain.export.ApsPlatePlanExport; |
| | | import com.aps.core.service.IApsPlatePlanService; |
| | | import com.aps.core.service.IApsPlatePlanTempService; |
| | | import com.aps.system.api.domain.SysDictData; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Optional; |
| | | |
| | |
| | | List<ApsPlatePlanTemp> list = apsPlatePlanTempService.selectApsPlatePlanTempList(apsPlatePlanTemp); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * é£éåä½å·¥åæ¥è¡¨ |
| | | * @param apsPlatePlan |
| | | * @return |
| | | */ |
| | | @RequiresPermissions("Aps:apsPlatePlan:redundantOrderList") |
| | | @GetMapping("/redundantOrderList") |
| | | public TableDataInfo redundantOrderList(ApsPlatePlan apsPlatePlan) { |
| | | startPage(); |
| | | List<ApsPlatePlan> list = apsPlatePlanService.selectPlateRedundantOrderList(apsPlatePlan); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * é£éåä½å·¥åæ¥è¡¨å¯¼åº |
| | | * @param apsPlatePlan |
| | | * @return |
| | | */ |
| | | @RequiresPermissions("Aps:apsPlatePlan:redundantOrderListExport") |
| | | @Log(title = "é£éåä½å·¥åæ¥è¡¨", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/redundantOrderListExport") |
| | | public void redundantOrderListExport(HttpServletResponse response, ApsPlatePlan apsPlatePlan) { |
| | | List<ApsPlatePlan> planList = apsPlatePlanService.selectPlateRedundantOrderList(apsPlatePlan); |
| | | List<ApsPlatePlanExport> planListExport = new ArrayList<>(); |
| | | for (ApsPlatePlan plan : planList) { |
| | | ApsPlatePlanExport planExport = new ApsPlatePlanExport(); |
| | | BeanUtils.copyProperties(plan, planExport); |
| | | planListExport.add(planExport); |
| | | } |
| | | ExcelUtil<ApsPlatePlanExport> util = new ExcelUtil<ApsPlatePlanExport>(ApsPlatePlanExport.class); |
| | | util.exportExcel(response, planListExport, "é£éåä½å·¥åæ¥è¡¨æ°æ®"); |
| | | } |
| | | |
| | | } |
| | |
| | | package com.aps.core.controller.mainPlan; |
| | | |
| | | import java.util.List; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.aps.common.core.utils.poi.ExcelUtil; |
| | | import com.aps.common.core.web.controller.BaseController; |
| | | import com.aps.common.core.web.domain.AjaxResult; |
| | | import com.aps.common.core.web.page.TableDataInfo; |
| | | import com.aps.common.log.annotation.Log; |
| | | import com.aps.common.log.enums.BusinessType; |
| | | import com.aps.common.security.annotation.RequiresPermissions; |
| | | import com.aps.core.domain.ApsPlateStandardRequire; |
| | | import com.aps.core.service.IApsPlateStandardRequireService; |
| | | import com.aps.common.core.web.controller.BaseController; |
| | | import com.aps.common.core.web.domain.AjaxResult; |
| | | import com.aps.common.core.utils.poi.ExcelUtil; |
| | | import com.aps.common.core.web.page.TableDataInfo; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é£éå·¥åæ åéæ±Controller |
| | |
| | | { |
| | | return toAjax(apsPlateStandardRequireService.deleteApsPlateStandardRequireByIds(ids)); |
| | | } |
| | | |
| | | /** |
| | | * é£éä¾åºç¼ºå£æ¥è¡¨ |
| | | */ |
| | | @RequiresPermissions("Aps:ApsPlateStandardRequire:supplyGapList") |
| | | @GetMapping("/supplyGapList") |
| | | public TableDataInfo selectPlateSupplyGapList(ApsPlateStandardRequire apsPlateStandardRequire) |
| | | { |
| | | startPage(); |
| | | List<ApsPlateStandardRequire> list = apsPlateStandardRequireService.selectPlateSupplyGapList(apsPlateStandardRequire); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | @RequiresPermissions("Aps:ApsPlateStandardRequire:supplyGapListExport") |
| | | @Log(title = "é£éä¾åºç¼ºå£æ¥è¡¨å¯¼åº", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/supplyGapListExport") |
| | | public void supplyGapListExport(HttpServletResponse response, ApsPlateStandardRequire apsPlateStandardRequire) |
| | | { |
| | | List<ApsPlateStandardRequire> list = apsPlateStandardRequireService.selectPlateSupplyGapList(apsPlateStandardRequire); |
| | | ExcelUtil<ApsPlateStandardRequire> util = new ExcelUtil<ApsPlateStandardRequire>(ApsPlateStandardRequire.class); |
| | | util.exportExcel(response, list, "é£éä¾åºç¼ºå£æ¥è¡¨æ°æ®"); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | @Excel(name = "ä¸ä¸å·¥åºåç§°") |
| | | private String nextOpName; |
| | | |
| | | /** å·¥åå建æ¶é´ */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "å·¥åå建æ¶é´", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | private Date orderCreateTime; |
| | | |
| | | /** ç产åºå° */ |
| | | @Excel(name = "ç产åºå°") |
| | | private String productionBase; |
| | | |
| | | /** æªå¹é
çç产æ°é*/ |
| | | private BigDecimal unmatchedQuantity; |
| | | /** ä¸ä¸å½å±*/ |
| | |
| | | private String requireId; |
| | | |
| | | /** bom_line_id */ |
| | | @Excel(name = "bom_line_id") |
| | | // @Excel(name = "bom_line_id") |
| | | private String bomLineId; |
| | | |
| | | /** æå· */ |
| | |
| | | private Long bomLineLevel; |
| | | |
| | | /** BOMç¨é */ |
| | | @Excel(name = "BOMç¨é") |
| | | private BigDecimal bomUseAmount; |
| | | // @Excel(name = "BOMç¨é") |
| | | private String bomUseAmount; |
| | | |
| | | /** å·¥èºè·¯çº¿ID */ |
| | | @Excel(name = "å·¥èºè·¯çº¿ID") |
| | | // @Excel(name = "å·¥èºè·¯çº¿ID") |
| | | private String processRouteId; |
| | | |
| | | /** å·¥èºè·¯çº¿å·¥æ¶ */ |
| | | @Excel(name = "å·¥èºè·¯çº¿å·¥æ¶") |
| | | // @Excel(name = "å·¥èºè·¯çº¿å·¥æ¶") |
| | | private String processRouteHours; |
| | | |
| | | /** éæ±æ°é */ |
| | | @Excel(name = "éæ±æ°é") |
| | | // @Excel(name = "éæ±æ°é") |
| | | private String requireAmount; |
| | | |
| | | /** åéæ±é */ |
| | | @Excel(name = "åéæ±é") |
| | | private BigDecimal netRequirement; |
| | | // @Excel(name = "åéæ±é") |
| | | private String netRequirement; |
| | | |
| | | /** 计åå¼å·¥æ¥ */ |
| | | @Excel(name = "计åå¼å·¥æ¥") |
| | |
| | | |
| | | /** ç产åºå° */ |
| | | @Excel(name = "ç产åºå°") |
| | | |
| | | private String productionBase; |
| | | |
| | | /** å¹é
ç¶æ */ |
| | | @Excel(name = "å¹é
ç¶æ") |
| | | |
| | | private String matchState; |
| | | |
| | | /** å¹é
æ¨¡å¼ */ |
| | | @Excel(name = "å¹é
模å¼") |
| | | |
| | | private String matchMode; |
| | | |
| | | /** æªå¹é
éæ±æ°é */ |
| | |
| | | private String unmatchedDemandAmount; |
| | | |
| | | /** å»ºè®®å®ææ¥æ */ |
| | | @Excel(name = "å»ºè®®å®ææ¥æ") |
| | | // @Excel(name = "å»ºè®®å®ææ¥æ") |
| | | private String suggestedCompletionDate; |
| | | |
| | | /** å»¶è¿é£é©æ è¯ */ |
| | | @Excel(name = "å»¶è¿é£é©æ è¯") |
| | | // @Excel(name = "å»¶è¿é£é©æ è¯") |
| | | private String hasDelayRisk; |
| | | |
| | | /** $column.columnComment */ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.aps.core.domain.export; |
| | | |
| | | import com.aps.common.core.annotation.Excel; |
| | | import com.aps.common.core.web.domain.BaseEntity; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * é£é计å管ç对象 aps_plate_plan |
| | | * |
| | | * @author ruoyi |
| | | * @date 2025-04-08 |
| | | */ |
| | | @Data |
| | | public class ApsPlatePlanExport extends BaseEntity |
| | | { |
| | | |
| | | /** åæ®å· */ |
| | | @Excel(name = "å·¥åå·", sort = 1) |
| | | private String documentNumber; |
| | | |
| | | /** åä»¶æå· */ |
| | | @Excel(name = "åä»¶æå·", sort = 2) |
| | | private String itemNumber; |
| | | |
| | | /** ç产æ°é */ |
| | | @Excel(name = "ç产æ°é", sort = 3) |
| | | private BigDecimal productionQuantity; |
| | | |
| | | /** æªå¹é
çç产æ°é*/ |
| | | @Excel(name = "æªå¹é
çç产æ°é", sort = 4) |
| | | private BigDecimal unmatchedQuantity; |
| | | |
| | | /** éç¨å·¥å */ |
| | | @Excel(name = "éç¨å·¥å", sort = 5) |
| | | private String plant; |
| | | |
| | | /** ç产åºå° */ |
| | | @Excel(name = "ç产åºå°", sort = 6) |
| | | private String productionBase; |
| | | |
| | | /** 计åå¼å·¥æ¥ */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = "计åå¼å·¥æ¥", width = 30, dateFormat = "yyyy-MM-dd", sort = 7) |
| | | private Date planStartDay; |
| | | |
| | | /** 计åå®å·¥æ¥ */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = "计åå®å·¥æ¥", width = 30, dateFormat = "yyyy-MM-dd", sort = 8) |
| | | private Date planEndDay; |
| | | |
| | | /** å·¥åå建æ¶é´ */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "å·¥åå建æ¶é´", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", sort = 9) |
| | | private Date orderCreateTime; |
| | | |
| | | } |
| | |
| | | package com.aps.core.mapper; |
| | | |
| | | import java.util.List; |
| | | import com.aps.core.domain.ApsPlatePlan; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é£é计å管çMapperæ¥å£ |
| | |
| | | |
| | | int removeAllPlatePlans(); |
| | | |
| | | /** |
| | | * é£éåä½å·¥åæ¥è¡¨ |
| | | * @param apsPlatePlan |
| | | * @return |
| | | */ |
| | | public List<ApsPlatePlan> selectPlateRedundantOrderList(ApsPlatePlan apsPlatePlan); |
| | | |
| | | List<ApsPlatePlan> selectPlatePlanByPlantMajor(String plant,String professionalAffiliation); |
| | | |
| | | /** |
| | |
| | | package com.aps.core.mapper; |
| | | |
| | | import java.util.List; |
| | | import com.aps.core.domain.ApsPlateStandardRequire; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é£éå·¥åæ åéæ±Mapperæ¥å£ |
| | |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteApsPlateStandardRequireByIds(Long[] ids); |
| | | |
| | | |
| | | /** |
| | | * é£éä¾åºç¼ºå£æ¥è¡¨ |
| | | * @param apsPlateStandardRequire |
| | | * @return |
| | | */ |
| | | public List<ApsPlateStandardRequire> selectPlateSupplyGapList(ApsPlateStandardRequire apsPlateStandardRequire); |
| | | } |
| | |
| | | package com.aps.core.service; |
| | | |
| | | import java.util.List; |
| | | import com.aps.core.domain.ApsPlatePlan; |
| | | import com.aps.core.domain.ApsPlatePlanTemp; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é£é计å管çServiceæ¥å£ |
| | |
| | | * @throws Exception |
| | | */ |
| | | String importData(List<ApsPlatePlanTemp> tempList) throws Exception; |
| | | |
| | | /** |
| | | * é£éåä½å·¥åæ¥è¡¨ |
| | | * @param apsPlatePlan |
| | | * @return |
| | | */ |
| | | public List<ApsPlatePlan> selectPlateRedundantOrderList(ApsPlatePlan apsPlatePlan); |
| | | } |
| | |
| | | package com.aps.core.service; |
| | | |
| | | import java.util.List; |
| | | import com.aps.core.domain.ApsPlateStandardRequire; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é£éå·¥åæ åéæ±Serviceæ¥å£ |
| | |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteApsPlateStandardRequireById(Long id); |
| | | |
| | | /** |
| | | * é£éä¾åºç¼ºå£æ¥è¡¨ |
| | | * @param apsPlateStandardRequire |
| | | * @return |
| | | */ |
| | | public List<ApsPlateStandardRequire> selectPlateSupplyGapList(ApsPlateStandardRequire apsPlateStandardRequire); |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * é£éåä½å·¥åæ¥è¡¨ |
| | | * @param apsPlatePlan |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<ApsPlatePlan> selectPlateRedundantOrderList(ApsPlatePlan apsPlatePlan) { |
| | | return apsPlatePlanMapper.selectPlateRedundantOrderList(apsPlatePlan); |
| | | } |
| | | } |
| | |
| | | import com.aps.core.service.IApsPlateStandardRequireBomStockDetailService; |
| | | import com.aps.system.api.domain.SysDictData; |
| | | import jakarta.annotation.Resource; |
| | | import com.aps.core.domain.ApsPlateStandardRequire; |
| | | import com.aps.core.mapper.ApsPlateStandardRequireMapper; |
| | | import com.aps.core.service.IApsPlateStandardRequireService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.aps.core.service.IApsPlateStandardRequireService; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é£éå·¥åæ åéæ±Serviceä¸å¡å±å¤ç |
| | |
| | | return apsPlateStandardRequireMapper.deleteApsPlateStandardRequireById(id); |
| | | } |
| | | |
| | | /** |
| | | * é£éä¾åºç¼ºå£æ¥è¡¨ |
| | | * @param apsPlateStandardRequire |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<ApsPlateStandardRequire> selectPlateSupplyGapList(ApsPlateStandardRequire apsPlateStandardRequire) { |
| | | return apsPlateStandardRequireMapper.selectPlateSupplyGapList(apsPlateStandardRequire); |
| | | } |
| | | |
| | | private void generatorPlan(){ |
| | | |
| | | /*å®ä¹å·¥å为åé */ |
| | |
| | | Spring Boot Version: ${spring-boot.version} |
| | | Spring Application Name: ${spring.application.name} |
| | | _ __ _ _ |
| | | (_) / _|(_)| | |
| | | _ __ _ _ ___ _ _ _ ______ | |_ _ | | ___ |
| | | | '__|| | | | / _ \ | | | || ||______|| _|| || | / _ \ |
| | | | | | |_| || (_) || |_| || | | | | || || __/ |
| | | |_| \__,_| \___/ \__, ||_| |_| |_||_| \___| |
| | | __/ | |
| | | |___/ |
| | | _____ _____ _____ |
| | | /\ | __ \ / ____| / ____| |
| | | / \ | |__) | (___ ______| | ___ _ __ ___ |
| | | / /\ \ | ___/ \___ \______| | / _ \| '__/ _ \ |
| | | / ____ \| | ____) | | |___| (_) | | | __/ |
| | | /_/ \_\_| |_____/ \_____\___/|_| \___| |
| | |
| | | <include refid="selectApsBomHeaderVo"/> |
| | | <where> |
| | | <if test="bomHeaderId != null and bomHeaderId != ''"> and bom_header_id = #{bomHeaderId}</if> |
| | | <if test="itemCode != null and itemCode != ''"> and item_code = #{itemCode}</if> |
| | | <if test="itemCode != null and itemCode != ''"> and item_code like '%' || #{itemCode} || '%'</if> |
| | | <if test="itemName != null and itemName != ''"> and item_name = #{itemName}</if> |
| | | <if test="startDate != null "> and start_date = #{startDate}</if> |
| | | <if test="endDate != null "> and end_date = #{endDate}</if> |
| | |
| | | <result property="opStatus" column="op_status" /> |
| | | <result property="nextOpName" column="next_op_name" /> |
| | | <result property="unmatchedQuantity" column="unmatched_quantity" /> |
| | | <result property="productionBase" column="production_base" /> |
| | | <result property="orderCreateTime" column="order_create_time" /> |
| | | <result property="professionalAffiliation" column="professional_affiliation" /> |
| | | <result property="requireId" column="require_id" /> |
| | | </resultMap> |
| | |
| | | standby_stock, next_process_deparment, is_suspended, is_outsourcing, account, advanced_materials, |
| | | advanced_document_number, advanced_requirement_day, is_plan_complete, is_stock_complete, |
| | | has_turnback, has_risk, std_op, op_status, next_op_name ,unmatched_quantity,professional_affiliation |
| | | , production_base, order_create_time |
| | | from aps_plate_plan |
| | | </sql> |
| | | |
| | |
| | | set unmatched_quantity=#{unmatched_quantity},version=version+1 |
| | | where id=#{id} and version=#{version} |
| | | </update> |
| | | <select id="selectPlateRedundantOrderList" parameterType="ApsPlatePlan" resultMap="ApsPlatePlanResult"> |
| | | select document_number, item_number, production_quantity, unmatched_quantity, plant, production_base, plan_start_day, plan_end_day, order_create_time |
| | | from aps_plate_plan where unmatched_quantity>0 and professional_affiliation!='0' |
| | | <if test="documentNumber != null and documentNumber != ''"> |
| | | and document_number like '%' || #{documentNumber} || '%' |
| | | </if> |
| | | <if test="itemNumber != null and itemNumber != ''"> |
| | | and item_number like '%' || #{itemNumber} || '%' |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <select id="selectPlateSupplyGapList" parameterType="ApsPlateStandardRequire" resultMap="ApsPlateStandardRequireResult"> |
| | | select id, require_id, bom_line_code, bom_line_level, match_state, match_mode, unmatched_demand_amount, start_date, complete_date, demand_date, org_code, production_base |
| | | from aps_plate_standard_require where unmatched_demand_amount>0 |
| | | <if test="requireId != null and requireId != ''"> and require_id like '%' || #{requireId} || '%'</if> |
| | | <if test="bomLineCode != null and bomLineCode != ''"> and bom_line_code like '%' || #{bomLineCode} || '%'</if> |
| | | </select> |
| | | </mapper> |
| | |
| | | Spring Boot Version: ${spring-boot.version} |
| | | Spring Application Name: ${spring.application.name} |
| | | _ __ _ _ |
| | | (_) / _|(_)| | |
| | | _ __ _ _ ___ _ _ _ ______ | |_ _ | | ___ |
| | | | '__|| | | | / _ \ | | | || ||______|| _|| || | / _ \ |
| | | | | | |_| || (_) || |_| || | | | | || || __/ |
| | | |_| \__,_| \___/ \__, ||_| |_| |_||_| \___| |
| | | __/ | |
| | | |___/ |
| | | _____ _____ ______ _ _ |
| | | /\ | __ \ / ____| | ____(_) | |
| | | / \ | |__) | (___ ______| |__ _| | ___ |
| | | / /\ \ | ___/ \___ \______| __| | | |/ _ \ |
| | | / ____ \| | ____) | | | | | | __/ |
| | | /_/ \_\_| |_____/ |_| |_|_|\___| |
| | |
| | | Spring Boot Version: ${spring-boot.version} |
| | | Spring Application Name: ${spring.application.name} |
| | | _ |
| | | (_) |
| | | _ __ _ _ ___ _ _ _ ______ __ _ ___ _ __ |
| | | | '__|| | | | / _ \ | | | || ||______| / _` | / _ \| '_ \ |
| | | | | | |_| || (_) || |_| || | | (_| || __/| | | | |
| | | |_| \__,_| \___/ \__, ||_| \__, | \___||_| |_| |
| | | __/ | __/ | |
| | | |___/ |___/ |
| | | _____ _____ _____ |
| | | /\ | __ \ / ____| / ____| |
| | | / \ | |__) | (___ ______| | __ ___ _ __ |
| | | / /\ \ | ___/ \___ \______| | |_ |/ _ \ '_ \ |
| | | / ____ \| | ____) | | |__| | __/ | | | |
| | | /_/ \_\_| |_____/ \_____|\___|_| |_| |
| | |
| | | |
| | | import com.aps.common.core.annotation.Excel; |
| | | import com.aps.common.core.web.domain.BaseEntity; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.fasterxml.jackson.annotation.JsonProperty; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * å·¥ååæ¥å¯¹è±¡ aps_work_order_job |
| | |
| | | @Excel(name = "ä¸ä¸å·¥åºåç§°") |
| | | private String nextOpName; |
| | | |
| | | /** |
| | | * ä½é¶ç |
| | | */ |
| | | private String lowOrderCode; |
| | | |
| | | /** å·¥åå建æ¶é´ */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "å·¥åå建æ¶é´", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | private Date orderCreateTime; |
| | | |
| | | public String getLowOrderCode() { |
| | | return lowOrderCode; |
| | | } |
| | | |
| | | public void setLowOrderCode(String lowOrderCode) { |
| | | this.lowOrderCode = lowOrderCode; |
| | | } |
| | | |
| | | public Date getOrderCreateTime() { |
| | | return orderCreateTime; |
| | | } |
| | | |
| | | public void setOrderCreateTime(Date orderCreateTime) { |
| | | this.orderCreateTime = orderCreateTime; |
| | | } |
| | | |
| | | public void setId(Long id) |
| | | { |
| | | this.id = id; |
| | |
| | | Spring Boot Version: ${spring-boot.version} |
| | | Spring Application Name: ${spring.application.name} |
| | | _ _ _ |
| | | (_) (_) | | |
| | | _ __ _ _ ___ _ _ _ ______ _ ___ | |__ |
| | | | '__|| | | | / _ \ | | | || ||______| | | / _ \ | '_ \ |
| | | | | | |_| || (_) || |_| || | | || (_) || |_) | |
| | | |_| \__,_| \___/ \__, ||_| | | \___/ |_.__/ |
| | | __/ | _/ | |
| | | |___/ |__/ |
| | | _____ _____ _ _ |
| | | /\ | __ \ / ____| | | | | |
| | | / \ | |__) | (___ ______ | | ___ | |__ |
| | | / /\ \ | ___/ \___ \______| | |/ _ \| '_ \ |
| | | / ____ \| | ____) | | |__| | (_) | |_) | |
| | | /_/ \_\_| |_____/ \____/ \___/|_.__/ |
| | |
| | | <result property="stdOp" column="std_op" /> |
| | | <result property="opStatus" column="op_status" /> |
| | | <result property="nextOpName" column="next_op_name" /> |
| | | <result property="lowOrderCode" column="low_order_code" /> |
| | | <result property="orderCreateTime" column="order_create_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectApsWorkOrderJobVo"> |
| | | select id, order_id, doc_no, mainitem_code, mainitem_figure, customer_name, business_type, demand_type, |
| | | doc_status, item_code, item_figure, item_figure_version, pruduct_qty, work_qty, op_num, work_center, |
| | | dept, start_date, complete_date, next_dept, is_hold_release, is_out_source, org, page_num, page_index, |
| | | del_flag, create_by, create_time, update_by, update_time , process_status,org_code, std_op, op_status, next_op_name |
| | | del_flag, create_by, create_time, update_by, update_time , process_status,org_code, std_op, op_status, next_op_name, |
| | | low_order_code, order_create_time |
| | | from aps_work_order_job |
| | | </sql> |
| | | |
| | |
| | | process_status, |
| | | std_op, |
| | | op_status, |
| | | next_op_name |
| | | next_op_name, |
| | | low_order_code, |
| | | order_create_time |
| | | </trim> |
| | | values |
| | | <foreach collection="list" item="job" separator=","> |
| | |
| | | #{job.processStatus}, |
| | | #{job.stdOp}, |
| | | #{job.opStatus}, |
| | | #{job.nextOpName} |
| | | #{job.nextOpName}, |
| | | #{job.lowOrderCode}, |
| | | #{job.orderCreateTime} |
| | | ) |
| | | </foreach> |
| | | </insert> |
| | |
| | | process_number,work_center,department, |
| | | plan_start_day,plan_end_day,next_process_deparment, |
| | | is_suspended,is_outsourcing,account, |
| | | id,create_time,del_flag,plant,order_status,std_op,op_status,next_op_name |
| | | id,create_time,del_flag,plant,order_status,std_op,op_status,next_op_name, |
| | | professional_affiliation,order_create_time |
| | | ) |
| | | select |
| | | doc_no,mainitem_code,mainitem_figure, |
| | |
| | | op_num,work_center,dept, |
| | | start_date,complete_date,next_dept, |
| | | is_hold_release,is_out_source,org_code, |
| | | order_id,now(),'0',org_code,doc_status,std_op,op_status,next_op_name |
| | | order_id,now(),'0',org_code,doc_status,std_op,op_status,next_op_name, |
| | | case when low_order_code='0' then 'main' else 'sub' end as professional_affiliation, |
| | | order_create_time |
| | | from aps_work_order_job |
| | | where ( doc_status in (0,1,2,4) and is_hold_release='0' |
| | | and (item_code like 'M03%' or item_code like 'M04%'or item_code like 'A75%') |
| | |
| | | Spring Boot Version: ${spring-boot.version} |
| | | Spring Application Name: ${spring.application.name} |
| | | _ _ |
| | | (_) | | |
| | | _ __ _ _ ___ _ _ _ ______ ___ _ _ ___ | |_ ___ _ __ ___ |
| | | | '__|| | | | / _ \ | | | || ||______|/ __|| | | |/ __|| __| / _ \| '_ ` _ \ |
| | | | | | |_| || (_) || |_| || | \__ \| |_| |\__ \| |_ | __/| | | | | | |
| | | |_| \__,_| \___/ \__, ||_| |___/ \__, ||___/ \__| \___||_| |_| |_| |
| | | __/ | __/ | |
| | | |___/ |___/ |
| | | _____ _____ _____ _ |
| | | /\ | __ \ / ____| / ____| | | |
| | | / \ | |__) | (___ _____| (___ _ _ ___| |_ ___ _ __ ___ |
| | | / /\ \ | ___/ \___ \______\___ \| | | / __| __/ _ \ '_ ` _ \ |
| | | / ____ \| | ____) | ____) | |_| \__ \ || __/ | | | | | |
| | | /_/ \_\_| |_____/ |_____/ \__, |___/\__\___|_| |_| |_| |
| | | __/ | |
| | | |___/ |
| | |
| | | Spring Boot Version: ${spring-boot.version} |
| | | Spring Application Name: ${spring.application.name} |
| | | _ __ _ _ |
| | | (_) / _|(_)| | |
| | | _ __ _ _ ___ _ _ _ ______ | |_ _ | | ___ |
| | | | '__|| | | | / _ \ | | | || ||______|| _|| || | / _ \ |
| | | | | | |_| || (_) || |_| || | | | | || || __/ |
| | | |_| \__,_| \___/ \__, ||_| |_| |_||_| \___| |
| | | __/ | |
| | | |___/ |
| | | _____ _____ _ _ _ _ |
| | | /\ | __ \ / ____| | | | | | | | | |
| | | / \ | |__) | (___ ______| | | |_ __ | | ___ __ _ __| | |
| | | / /\ \ | ___/ \___ \______| | | | '_ \| |/ _ \ / _` |/ _` | |
| | | / ____ \| | ____) | | |__| | |_) | | (_) | (_| | (_| | |
| | | /_/ \_\_| |_____/ \____/| .__/|_|\___/ \__,_|\__,_| |
| | | | | |
| | | |_| |
| | |
| | | Spring Boot Version: ${spring-boot.version} |
| | | Spring Application Name: ${spring.application.name} |
| | | _ _ _ |
| | | (_) (_)| | |
| | | _ __ _ _ ___ _ _ _ ______ _ __ ___ ___ _ __ _ | |_ ___ _ __ |
| | | | '__|| | | | / _ \ | | | || ||______|| '_ ` _ \ / _ \ | '_ \ | || __| / _ \ | '__| |
| | | | | | |_| || (_) || |_| || | | | | | | || (_) || | | || || |_ | (_) || | |
| | | |_| \__,_| \___/ \__, ||_| |_| |_| |_| \___/ |_| |_||_| \__| \___/ |_| |
| | | __/ | |
| | | |___/ |
| | | _____ _____ __ __ _ _ |
| | | /\ | __ \ / ____| | \/ | (_) | |
| | | / \ | |__) | (___ ______| \ / | ___ _ __ _| |_ ___ _ __ |
| | | / /\ \ | ___/ \___ \______| |\/| |/ _ \| '_ \| | __/ _ \| '__| |
| | | / ____ \| | ____) | | | | | (_) | | | | | || (_) | | |
| | | /_/ \_\_| |_____/ |_| |_|\___/|_| |_|_|\__\___/|_| |