¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.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; |
| | | |
| | | /** |
| | | * é£éå·¥åæ åéæ±Controller |
| | | * |
| | | * @author zhl |
| | | * @date 2025-05-06 |
| | | */ |
| | | |
| | | |
| | | @RestController |
| | | @RequestMapping("/ApsPlateStandardRequire") |
| | | public class ApsPlateStandardRequireController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IApsPlateStandardRequireService apsPlateStandardRequireService; |
| | | |
| | | /** |
| | | * æ¥è¯¢é£éå·¥åæ åéæ±å表 |
| | | */ |
| | | |
| | | @RequiresPermissions("ApsPlateStandardRequire:ApsPlateStandardRequire:list") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ApsPlateStandardRequire apsPlateStandardRequire) |
| | | { |
| | | startPage(); |
| | | List<ApsPlateStandardRequire> list = apsPlateStandardRequireService.selectApsPlateStandardRequireList(apsPlateStandardRequire); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºé£éå·¥åæ åéæ±å表 |
| | | */ |
| | | |
| | | @RequiresPermissions("ApsPlateStandardRequire:ApsPlateStandardRequire:export") |
| | | @Log(title = "é£éå·¥åæ åéæ±", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ApsPlateStandardRequire apsPlateStandardRequire) |
| | | { |
| | | List<ApsPlateStandardRequire> list = apsPlateStandardRequireService.selectApsPlateStandardRequireList(apsPlateStandardRequire); |
| | | ExcelUtil<ApsPlateStandardRequire> util = new ExcelUtil<ApsPlateStandardRequire>(ApsPlateStandardRequire.class); |
| | | util.exportExcel(response, list, "é£éå·¥åæ åéæ±æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åé£éå·¥åæ åéæ±è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | |
| | | @RequiresPermissions("ApsPlateStandardRequire:ApsPlateStandardRequire:query") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(apsPlateStandardRequireService.selectApsPlateStandardRequireById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é£éå·¥åæ åéæ± |
| | | */ |
| | | |
| | | @RequiresPermissions("ApsPlateStandardRequire:ApsPlateStandardRequire:add") |
| | | @Log(title = "é£éå·¥åæ åéæ±", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody ApsPlateStandardRequire apsPlateStandardRequire) |
| | | { |
| | | return toAjax(apsPlateStandardRequireService.insertApsPlateStandardRequire(apsPlateStandardRequire)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é£éå·¥åæ åéæ± |
| | | */ |
| | | |
| | | @RequiresPermissions("ApsPlateStandardRequire:ApsPlateStandardRequire:edit") |
| | | @Log(title = "é£éå·¥åæ åéæ±", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody ApsPlateStandardRequire apsPlateStandardRequire) |
| | | { |
| | | return toAjax(apsPlateStandardRequireService.updateApsPlateStandardRequire(apsPlateStandardRequire)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é£éå·¥åæ åéæ± |
| | | */ |
| | | |
| | | @RequiresPermissions("ApsPlateStandardRequire:ApsPlateStandardRequire:remove") |
| | | @Log(title = "é£éå·¥åæ åéæ±", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(apsPlateStandardRequireService.deleteApsPlateStandardRequireByIds(ids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.aps.core.domain; |
| | | |
| | | import com.aps.common.core.annotation.Excel; |
| | | import com.aps.common.core.web.domain.BaseEntity; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.io.Serial; |
| | | |
| | | /** |
| | | * é£éå·¥åæ åéæ±å¯¹è±¡ aps_plate_standard_require |
| | | * |
| | | * @author zhl |
| | | * @date 2025-05-06 |
| | | */ |
| | | @EqualsAndHashCode(callSuper = true) |
| | | @Data |
| | | public class ApsPlateStandardRequire extends BaseEntity |
| | | { |
| | | @Serial |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** éæ±ID */ |
| | | private Long id; |
| | | |
| | | /** éæ±è¿½æº¯ID */ |
| | | @Excel(name = "éæ±è¿½æº¯ID") |
| | | private String requireId; |
| | | |
| | | /** bom_line_id */ |
| | | @Excel(name = "bom_line_id") |
| | | private String bomLineId; |
| | | |
| | | /** æå· */ |
| | | @Excel(name = "æå·") |
| | | private String bomLineCode; |
| | | |
| | | /** BOMä½é¶ç */ |
| | | @Excel(name = "BOMä½é¶ç ") |
| | | private Long bomLineLevel; |
| | | |
| | | /** BOMç¨é */ |
| | | @Excel(name = "BOMç¨é") |
| | | private String bomUseAmount; |
| | | |
| | | /** å·¥èºè·¯çº¿ID */ |
| | | @Excel(name = "å·¥èºè·¯çº¿ID") |
| | | private String processRouteId; |
| | | |
| | | /** å·¥èºè·¯çº¿å·¥æ¶ */ |
| | | @Excel(name = "å·¥èºè·¯çº¿å·¥æ¶") |
| | | private String processRouteHours; |
| | | |
| | | /** éæ±æ°é */ |
| | | @Excel(name = "éæ±æ°é") |
| | | private String requireAmount; |
| | | |
| | | /** åéæ±é */ |
| | | @Excel(name = "åéæ±é") |
| | | private String netRequirement; |
| | | |
| | | /** 计åå¼å·¥æ¥ */ |
| | | @Excel(name = "计åå¼å·¥æ¥") |
| | | private String startDate; |
| | | |
| | | /** 计åå®å·¥æ¥ */ |
| | | @Excel(name = "计åå®å·¥æ¥") |
| | | private String completeDate; |
| | | |
| | | /** éæ±æ¥æ */ |
| | | @Excel(name = "éæ±æ¥æ") |
| | | private String demandDate; |
| | | |
| | | /** éç¨å·¥å */ |
| | | @Excel(name = "éç¨å·¥å") |
| | | private String orgCode; |
| | | |
| | | /** ç产åºå° */ |
| | | @Excel(name = "ç产åºå°") |
| | | |
| | | private String productionBase; |
| | | |
| | | /** å¹é
ç¶æ */ |
| | | @Excel(name = "å¹é
ç¶æ") |
| | | |
| | | private String matchState; |
| | | |
| | | /** å¹é
æ¨¡å¼ */ |
| | | @Excel(name = "å¹é
模å¼") |
| | | |
| | | private String matchMode; |
| | | |
| | | /** æªå¹é
éæ±æ°é */ |
| | | @Excel(name = "æªå¹é
éæ±æ°é") |
| | | private String unmatchedDemandAmount; |
| | | |
| | | /** å»ºè®®å®ææ¥æ */ |
| | | @Excel(name = "å»ºè®®å®ææ¥æ") |
| | | private String suggestedCompletionDate; |
| | | |
| | | /** å»¶è¿é£é©æ è¯ */ |
| | | @Excel(name = "å»¶è¿é£é©æ è¯") |
| | | private String hasDelayRisk; |
| | | |
| | | /** $column.columnComment */ |
| | | |
| | | private String batchNumber; |
| | | |
| | | /** $column.columnComment */ |
| | | private String delFlag; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.aps.core.domain; |
| | | |
| | | import com.aps.common.core.web.domain.BaseEntity; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.io.Serial; |
| | | |
| | | /** |
| | | * é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨å¯¹è±¡ aps_plate_standard_require_batch |
| | | * |
| | | * @author zhl |
| | | * @date 2025-05-06 |
| | | */ |
| | | @EqualsAndHashCode(callSuper = true) |
| | | @Data |
| | | public class ApsPlateStandardRequireBatch extends BaseEntity |
| | | { |
| | | @Serial |
| | | private static final long serialVersionUID = 1L; |
| | | private Long id; |
| | | private String batchNumber; |
| | | private String delFlag; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.aps.core.domain; |
| | | |
| | | import com.aps.common.core.annotation.Excel; |
| | | import com.aps.common.core.web.domain.BaseEntity; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.io.Serial; |
| | | |
| | | /** |
| | | * ApsPlateStandardRequireBomOrderDetail对象 aps_plate_standard_require_bom_order_detail |
| | | * |
| | | * @author zhl |
| | | * @date 2025-05-06 |
| | | */ |
| | | @EqualsAndHashCode(callSuper = true) |
| | | @Data |
| | | public class ApsPlateStandardRequireBomOrderDetail extends BaseEntity |
| | | { |
| | | @Serial |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | |
| | | private Long id; |
| | | |
| | | /** éæ±è¿½æº¯ID */ |
| | | @Excel(name = "éæ±è¿½æº¯ID") |
| | | |
| | | private String requireId; |
| | | |
| | | /** bom_line_id */ |
| | | @Excel(name = "bom_line_id") |
| | | |
| | | private String bomLineId; |
| | | |
| | | /** æå· */ |
| | | @Excel(name = "æå·") |
| | | |
| | | private String bomLineCode; |
| | | |
| | | /** 订åå· */ |
| | | @Excel(name = "订åå·") |
| | | |
| | | private String docNo; |
| | | |
| | | /** æ£ååæ°é */ |
| | | @Excel(name = "æ£ååæ°é") |
| | | |
| | | private String beforeProdAmount; |
| | | |
| | | /** å¹é
æ°é */ |
| | | @Excel(name = "å¹é
æ°é") |
| | | |
| | | private String deductionAmount; |
| | | |
| | | /** æ£ååæ°é */ |
| | | @Excel(name = "æ£ååæ°é") |
| | | |
| | | private String afterProdAmount; |
| | | |
| | | |
| | | private String orgCode; |
| | | |
| | | |
| | | private String batchNumber; |
| | | |
| | | |
| | | private String delFlag; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.aps.core.domain; |
| | | |
| | | import com.aps.common.core.annotation.Excel; |
| | | import com.aps.common.core.web.domain.BaseEntity; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.io.Serial; |
| | | |
| | | /** |
| | | * ApsPlateStandardRequireBomStockDetail对象 aps_plate_standard_require_bom_stock_detail |
| | | * |
| | | * @author zhl |
| | | * @date 2025-05-06 |
| | | */ |
| | | @EqualsAndHashCode(callSuper = true) |
| | | @Data |
| | | public class ApsPlateStandardRequireBomStockDetail extends BaseEntity |
| | | { |
| | | @Serial |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** $column.columnComment */ |
| | | |
| | | private Long id; |
| | | |
| | | /** éæ±è¿½æº¯ID */ |
| | | @Excel(name = "éæ±è¿½æº¯ID") |
| | | private String requireId; |
| | | |
| | | /** bom_line_id */ |
| | | @Excel(name = "bom_line_id") |
| | | private String bomLineId; |
| | | |
| | | /** æå· */ |
| | | @Excel(name = "æå·") |
| | | private String bomLineCode; |
| | | |
| | | /** æ£åååºåé */ |
| | | @Excel(name = "æ£åååºåé") |
| | | private String beforeStockAmount; |
| | | |
| | | /** æ£ååºåé */ |
| | | @Excel(name = "æ£ååºåé") |
| | | private String deductionAmount; |
| | | |
| | | /** æ£åååºåé */ |
| | | @Excel(name = "æ£åååºåé") |
| | | private String afterStockAmount; |
| | | |
| | | private String orgCode; |
| | | private String batchNumber; |
| | | private String delFlag; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.aps.core.mapper; |
| | | |
| | | import java.util.List; |
| | | import com.aps.core.domain.ApsPlateStandardRequireBatch; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨Mapperæ¥å£ |
| | | * |
| | | * @author zhl |
| | | * @date 2025-05-06 |
| | | */ |
| | | @Mapper |
| | | public interface ApsPlateStandardRequireBatchMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ |
| | | * |
| | | * @param id é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ä¸»é® |
| | | * @return é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ |
| | | */ |
| | | public ApsPlateStandardRequireBatch selectApsPlateStandardRequireBatchById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨å表 |
| | | * |
| | | * @param apsPlateStandardRequireBatch é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ |
| | | * @return é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨éå |
| | | */ |
| | | public List<ApsPlateStandardRequireBatch> selectApsPlateStandardRequireBatchList(ApsPlateStandardRequireBatch apsPlateStandardRequireBatch); |
| | | |
| | | /** |
| | | * æ°å¢é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ |
| | | * |
| | | * @param apsPlateStandardRequireBatch é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertApsPlateStandardRequireBatch(ApsPlateStandardRequireBatch apsPlateStandardRequireBatch); |
| | | |
| | | /** |
| | | * ä¿®æ¹é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ |
| | | * |
| | | * @param apsPlateStandardRequireBatch é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateApsPlateStandardRequireBatch(ApsPlateStandardRequireBatch apsPlateStandardRequireBatch); |
| | | |
| | | /** |
| | | * å é¤é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ |
| | | * |
| | | * @param id é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteApsPlateStandardRequireBatchById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteApsPlateStandardRequireBatchByIds(Long[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.aps.core.mapper; |
| | | |
| | | import com.aps.core.domain.ApsPlateStandardRequireBomOrderDetail; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ApsPlateStandardRequireBomOrderDetailMapperæ¥å£ |
| | | * |
| | | * @author zhl |
| | | * @date 2025-05-06 |
| | | */ |
| | | @Mapper |
| | | public interface ApsPlateStandardRequireBomOrderDetailMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢ApsPlateStandardRequireBomOrderDetail |
| | | * |
| | | * @param id ApsPlateStandardRequireBomOrderDetailä¸»é® |
| | | * @return ApsPlateStandardRequireBomOrderDetail |
| | | */ |
| | | public ApsPlateStandardRequireBomOrderDetail selectApsPlateStandardRequireBomOrderDetailById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ApsPlateStandardRequireBomOrderDetailå表 |
| | | * |
| | | * @param apsPlateStandardRequireBomOrderDetail ApsPlateStandardRequireBomOrderDetail |
| | | * @return ApsPlateStandardRequireBomOrderDetailéå |
| | | */ |
| | | public List<ApsPlateStandardRequireBomOrderDetail> selectApsPlateStandardRequireBomOrderDetailList(ApsPlateStandardRequireBomOrderDetail apsPlateStandardRequireBomOrderDetail); |
| | | |
| | | /** |
| | | * æ°å¢ApsPlateStandardRequireBomOrderDetail |
| | | * |
| | | * @param apsPlateStandardRequireBomOrderDetail ApsPlateStandardRequireBomOrderDetail |
| | | * @return ç»æ |
| | | */ |
| | | public int insertApsPlateStandardRequireBomOrderDetail(ApsPlateStandardRequireBomOrderDetail apsPlateStandardRequireBomOrderDetail); |
| | | |
| | | /** |
| | | * ä¿®æ¹ApsPlateStandardRequireBomOrderDetail |
| | | * |
| | | * @param apsPlateStandardRequireBomOrderDetail ApsPlateStandardRequireBomOrderDetail |
| | | * @return ç»æ |
| | | */ |
| | | public int updateApsPlateStandardRequireBomOrderDetail(ApsPlateStandardRequireBomOrderDetail apsPlateStandardRequireBomOrderDetail); |
| | | |
| | | /** |
| | | * å é¤ApsPlateStandardRequireBomOrderDetail |
| | | * |
| | | * @param id ApsPlateStandardRequireBomOrderDetailä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteApsPlateStandardRequireBomOrderDetailById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤ApsPlateStandardRequireBomOrderDetail |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteApsPlateStandardRequireBomOrderDetailByIds(Long[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.aps.core.mapper; |
| | | |
| | | import java.util.List; |
| | | import com.aps.core.domain.ApsPlateStandardRequireBomStockDetail; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * ApsPlateStandardRequireBomStockDetailMapperæ¥å£ |
| | | * |
| | | * @author zhl |
| | | * @date 2025-05-06 |
| | | */ |
| | | @Mapper |
| | | public interface ApsPlateStandardRequireBomStockDetailMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢ApsPlateStandardRequireBomStockDetail |
| | | * |
| | | * @param id ApsPlateStandardRequireBomStockDetailä¸»é® |
| | | * @return ApsPlateStandardRequireBomStockDetail |
| | | */ |
| | | public ApsPlateStandardRequireBomStockDetail selectApsPlateStandardRequireBomStockDetailById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ApsPlateStandardRequireBomStockDetailå表 |
| | | * |
| | | * @param apsPlateStandardRequireBomStockDetail ApsPlateStandardRequireBomStockDetail |
| | | * @return ApsPlateStandardRequireBomStockDetailéå |
| | | */ |
| | | public List<ApsPlateStandardRequireBomStockDetail> selectApsPlateStandardRequireBomStockDetailList(ApsPlateStandardRequireBomStockDetail apsPlateStandardRequireBomStockDetail); |
| | | |
| | | /** |
| | | * æ°å¢ApsPlateStandardRequireBomStockDetail |
| | | * |
| | | * @param apsPlateStandardRequireBomStockDetail ApsPlateStandardRequireBomStockDetail |
| | | * @return ç»æ |
| | | */ |
| | | public int insertApsPlateStandardRequireBomStockDetail(ApsPlateStandardRequireBomStockDetail apsPlateStandardRequireBomStockDetail); |
| | | |
| | | /** |
| | | * ä¿®æ¹ApsPlateStandardRequireBomStockDetail |
| | | * |
| | | * @param apsPlateStandardRequireBomStockDetail ApsPlateStandardRequireBomStockDetail |
| | | * @return ç»æ |
| | | */ |
| | | public int updateApsPlateStandardRequireBomStockDetail(ApsPlateStandardRequireBomStockDetail apsPlateStandardRequireBomStockDetail); |
| | | |
| | | /** |
| | | * å é¤ApsPlateStandardRequireBomStockDetail |
| | | * |
| | | * @param id ApsPlateStandardRequireBomStockDetailä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteApsPlateStandardRequireBomStockDetailById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤ApsPlateStandardRequireBomStockDetail |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteApsPlateStandardRequireBomStockDetailByIds(Long[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.aps.core.mapper; |
| | | |
| | | import java.util.List; |
| | | import com.aps.core.domain.ApsPlateStandardRequire; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * é£éå·¥åæ åéæ±Mapperæ¥å£ |
| | | * |
| | | * @author zhl |
| | | * @date 2025-05-06 |
| | | */ |
| | | @Mapper |
| | | public interface ApsPlateStandardRequireMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢é£éå·¥åæ åéæ± |
| | | * |
| | | * @param id é£éå·¥åæ åéæ±ä¸»é® |
| | | * @return é£éå·¥åæ åéæ± |
| | | */ |
| | | public ApsPlateStandardRequire selectApsPlateStandardRequireById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢é£éå·¥åæ åéæ±å表 |
| | | * |
| | | * @param apsPlateStandardRequire é£éå·¥åæ åéæ± |
| | | * @return é£éå·¥åæ åéæ±éå |
| | | */ |
| | | public List<ApsPlateStandardRequire> selectApsPlateStandardRequireList(ApsPlateStandardRequire apsPlateStandardRequire); |
| | | |
| | | /** |
| | | * æ°å¢é£éå·¥åæ åéæ± |
| | | * |
| | | * @param apsPlateStandardRequire é£éå·¥åæ åéæ± |
| | | * @return ç»æ |
| | | */ |
| | | public int insertApsPlateStandardRequire(ApsPlateStandardRequire apsPlateStandardRequire); |
| | | |
| | | /** |
| | | * ä¿®æ¹é£éå·¥åæ åéæ± |
| | | * |
| | | * @param apsPlateStandardRequire é£éå·¥åæ åéæ± |
| | | * @return ç»æ |
| | | */ |
| | | public int updateApsPlateStandardRequire(ApsPlateStandardRequire apsPlateStandardRequire); |
| | | |
| | | /** |
| | | * å é¤é£éå·¥åæ åéæ± |
| | | * |
| | | * @param id é£éå·¥åæ åéæ±ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteApsPlateStandardRequireById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤é£éå·¥åæ åéæ± |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteApsPlateStandardRequireByIds(Long[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.aps.core.service; |
| | | |
| | | import java.util.List; |
| | | import com.aps.core.domain.ApsPlateStandardRequireBatch; |
| | | |
| | | /** |
| | | * é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨Serviceæ¥å£ |
| | | * |
| | | * @author zhl |
| | | * @date 2025-05-06 |
| | | */ |
| | | public interface IApsPlateStandardRequireBatchService |
| | | { |
| | | /** |
| | | * æ¥è¯¢é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ |
| | | * |
| | | * @param id é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ä¸»é® |
| | | * @return é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ |
| | | */ |
| | | public ApsPlateStandardRequireBatch selectApsPlateStandardRequireBatchById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨å表 |
| | | * |
| | | * @param apsPlateStandardRequireBatch é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ |
| | | * @return é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨éå |
| | | */ |
| | | public List<ApsPlateStandardRequireBatch> selectApsPlateStandardRequireBatchList(ApsPlateStandardRequireBatch apsPlateStandardRequireBatch); |
| | | |
| | | /** |
| | | * æ°å¢é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ |
| | | * |
| | | * @param apsPlateStandardRequireBatch é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertApsPlateStandardRequireBatch(ApsPlateStandardRequireBatch apsPlateStandardRequireBatch); |
| | | |
| | | /** |
| | | * ä¿®æ¹é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ |
| | | * |
| | | * @param apsPlateStandardRequireBatch é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateApsPlateStandardRequireBatch(ApsPlateStandardRequireBatch apsPlateStandardRequireBatch); |
| | | |
| | | /** |
| | | * æ¹éå é¤é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ |
| | | * |
| | | * @param ids éè¦å é¤çé£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteApsPlateStandardRequireBatchByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å é¤é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ä¿¡æ¯ |
| | | * |
| | | * @param id é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteApsPlateStandardRequireBatchById(Long id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.aps.core.service; |
| | | |
| | | import java.util.List; |
| | | import com.aps.core.domain.ApsPlateStandardRequireBomOrderDetail; |
| | | |
| | | /** |
| | | * ApsPlateStandardRequireBomOrderDetailServiceæ¥å£ |
| | | * |
| | | * @author zhl |
| | | * @date 2025-05-06 |
| | | */ |
| | | public interface IApsPlateStandardRequireBomOrderDetailService |
| | | { |
| | | /** |
| | | * æ¥è¯¢ApsPlateStandardRequireBomOrderDetail |
| | | * |
| | | * @param id ApsPlateStandardRequireBomOrderDetailä¸»é® |
| | | * @return ApsPlateStandardRequireBomOrderDetail |
| | | */ |
| | | public ApsPlateStandardRequireBomOrderDetail selectApsPlateStandardRequireBomOrderDetailById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ApsPlateStandardRequireBomOrderDetailå表 |
| | | * |
| | | * @param apsPlateStandardRequireBomOrderDetail ApsPlateStandardRequireBomOrderDetail |
| | | * @return ApsPlateStandardRequireBomOrderDetailéå |
| | | */ |
| | | public List<ApsPlateStandardRequireBomOrderDetail> selectApsPlateStandardRequireBomOrderDetailList(ApsPlateStandardRequireBomOrderDetail apsPlateStandardRequireBomOrderDetail); |
| | | |
| | | /** |
| | | * æ°å¢ApsPlateStandardRequireBomOrderDetail |
| | | * |
| | | * @param apsPlateStandardRequireBomOrderDetail ApsPlateStandardRequireBomOrderDetail |
| | | * @return ç»æ |
| | | */ |
| | | public int insertApsPlateStandardRequireBomOrderDetail(ApsPlateStandardRequireBomOrderDetail apsPlateStandardRequireBomOrderDetail); |
| | | |
| | | /** |
| | | * ä¿®æ¹ApsPlateStandardRequireBomOrderDetail |
| | | * |
| | | * @param apsPlateStandardRequireBomOrderDetail ApsPlateStandardRequireBomOrderDetail |
| | | * @return ç»æ |
| | | */ |
| | | public int updateApsPlateStandardRequireBomOrderDetail(ApsPlateStandardRequireBomOrderDetail apsPlateStandardRequireBomOrderDetail); |
| | | |
| | | /** |
| | | * æ¹éå é¤ApsPlateStandardRequireBomOrderDetail |
| | | * |
| | | * @param ids éè¦å é¤çApsPlateStandardRequireBomOrderDetail主é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteApsPlateStandardRequireBomOrderDetailByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å é¤ApsPlateStandardRequireBomOrderDetailä¿¡æ¯ |
| | | * |
| | | * @param id ApsPlateStandardRequireBomOrderDetailä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteApsPlateStandardRequireBomOrderDetailById(Long id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.aps.core.service; |
| | | |
| | | import java.util.List; |
| | | import com.aps.core.domain.ApsPlateStandardRequireBomStockDetail; |
| | | |
| | | /** |
| | | * ApsPlateStandardRequireBomStockDetailServiceæ¥å£ |
| | | * |
| | | * @author zhl |
| | | * @date 2025-05-06 |
| | | */ |
| | | public interface IApsPlateStandardRequireBomStockDetailService |
| | | { |
| | | /** |
| | | * æ¥è¯¢ApsPlateStandardRequireBomStockDetail |
| | | * |
| | | * @param id ApsPlateStandardRequireBomStockDetailä¸»é® |
| | | * @return ApsPlateStandardRequireBomStockDetail |
| | | */ |
| | | public ApsPlateStandardRequireBomStockDetail selectApsPlateStandardRequireBomStockDetailById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ApsPlateStandardRequireBomStockDetailå表 |
| | | * |
| | | * @param apsPlateStandardRequireBomStockDetail ApsPlateStandardRequireBomStockDetail |
| | | * @return ApsPlateStandardRequireBomStockDetailéå |
| | | */ |
| | | public List<ApsPlateStandardRequireBomStockDetail> selectApsPlateStandardRequireBomStockDetailList(ApsPlateStandardRequireBomStockDetail apsPlateStandardRequireBomStockDetail); |
| | | |
| | | /** |
| | | * æ°å¢ApsPlateStandardRequireBomStockDetail |
| | | * |
| | | * @param apsPlateStandardRequireBomStockDetail ApsPlateStandardRequireBomStockDetail |
| | | * @return ç»æ |
| | | */ |
| | | public int insertApsPlateStandardRequireBomStockDetail(ApsPlateStandardRequireBomStockDetail apsPlateStandardRequireBomStockDetail); |
| | | |
| | | /** |
| | | * ä¿®æ¹ApsPlateStandardRequireBomStockDetail |
| | | * |
| | | * @param apsPlateStandardRequireBomStockDetail ApsPlateStandardRequireBomStockDetail |
| | | * @return ç»æ |
| | | */ |
| | | public int updateApsPlateStandardRequireBomStockDetail(ApsPlateStandardRequireBomStockDetail apsPlateStandardRequireBomStockDetail); |
| | | |
| | | /** |
| | | * æ¹éå é¤ApsPlateStandardRequireBomStockDetail |
| | | * |
| | | * @param ids éè¦å é¤çApsPlateStandardRequireBomStockDetail主é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteApsPlateStandardRequireBomStockDetailByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å é¤ApsPlateStandardRequireBomStockDetailä¿¡æ¯ |
| | | * |
| | | * @param id ApsPlateStandardRequireBomStockDetailä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteApsPlateStandardRequireBomStockDetailById(Long id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.aps.core.service; |
| | | |
| | | import java.util.List; |
| | | import com.aps.core.domain.ApsPlateStandardRequire; |
| | | |
| | | /** |
| | | * é£éå·¥åæ åéæ±Serviceæ¥å£ |
| | | * |
| | | * @author zhl |
| | | * @date 2025-05-06 |
| | | */ |
| | | public interface IApsPlateStandardRequireService |
| | | { |
| | | /** |
| | | * æ¥è¯¢é£éå·¥åæ åéæ± |
| | | * |
| | | * @param id é£éå·¥åæ åéæ±ä¸»é® |
| | | * @return é£éå·¥åæ åéæ± |
| | | */ |
| | | public ApsPlateStandardRequire selectApsPlateStandardRequireById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢é£éå·¥åæ åéæ±å表 |
| | | * |
| | | * @param apsPlateStandardRequire é£éå·¥åæ åéæ± |
| | | * @return é£éå·¥åæ åéæ±éå |
| | | */ |
| | | public List<ApsPlateStandardRequire> selectApsPlateStandardRequireList(ApsPlateStandardRequire apsPlateStandardRequire); |
| | | |
| | | /** |
| | | * æ°å¢é£éå·¥åæ åéæ± |
| | | * |
| | | * @param apsPlateStandardRequire é£éå·¥åæ åéæ± |
| | | * @return ç»æ |
| | | */ |
| | | public int insertApsPlateStandardRequire(ApsPlateStandardRequire apsPlateStandardRequire); |
| | | |
| | | /** |
| | | * ä¿®æ¹é£éå·¥åæ åéæ± |
| | | * |
| | | * @param apsPlateStandardRequire é£éå·¥åæ åéæ± |
| | | * @return ç»æ |
| | | */ |
| | | public int updateApsPlateStandardRequire(ApsPlateStandardRequire apsPlateStandardRequire); |
| | | |
| | | /** |
| | | * æ¹éå é¤é£éå·¥åæ åéæ± |
| | | * |
| | | * @param ids éè¦å é¤çé£éå·¥åæ å鿱䏻é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteApsPlateStandardRequireByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å é¤é£éå·¥åæ åéæ±ä¿¡æ¯ |
| | | * |
| | | * @param id é£éå·¥åæ åéæ±ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteApsPlateStandardRequireById(Long id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.aps.core.service.impl; |
| | | |
| | | import java.util.List; |
| | | import com.aps.common.core.utils.DateUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.aps.core.mapper.ApsPlateStandardRequireBatchMapper; |
| | | import com.aps.core.domain.ApsPlateStandardRequireBatch; |
| | | import com.aps.core.service.IApsPlateStandardRequireBatchService; |
| | | |
| | | /** |
| | | * é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author zhl |
| | | * @date 2025-05-06 |
| | | */ |
| | | @Service |
| | | public class ApsPlateStandardRequireBatchServiceImpl implements IApsPlateStandardRequireBatchService |
| | | { |
| | | @Autowired |
| | | private ApsPlateStandardRequireBatchMapper apsPlateStandardRequireBatchMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ |
| | | * |
| | | * @param id é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ä¸»é® |
| | | * @return é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ |
| | | */ |
| | | @Override |
| | | public ApsPlateStandardRequireBatch selectApsPlateStandardRequireBatchById(Long id) |
| | | { |
| | | return apsPlateStandardRequireBatchMapper.selectApsPlateStandardRequireBatchById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨å表 |
| | | * |
| | | * @param apsPlateStandardRequireBatch é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ |
| | | * @return é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ |
| | | */ |
| | | @Override |
| | | public List<ApsPlateStandardRequireBatch> selectApsPlateStandardRequireBatchList(ApsPlateStandardRequireBatch apsPlateStandardRequireBatch) |
| | | { |
| | | return apsPlateStandardRequireBatchMapper.selectApsPlateStandardRequireBatchList(apsPlateStandardRequireBatch); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ |
| | | * |
| | | * @param apsPlateStandardRequireBatch é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertApsPlateStandardRequireBatch(ApsPlateStandardRequireBatch apsPlateStandardRequireBatch) |
| | | { |
| | | apsPlateStandardRequireBatch.setCreateTime(DateUtils.getNowDate()); |
| | | return apsPlateStandardRequireBatchMapper.insertApsPlateStandardRequireBatch(apsPlateStandardRequireBatch); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ |
| | | * |
| | | * @param apsPlateStandardRequireBatch é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateApsPlateStandardRequireBatch(ApsPlateStandardRequireBatch apsPlateStandardRequireBatch) |
| | | { |
| | | apsPlateStandardRequireBatch.setUpdateTime(DateUtils.getNowDate()); |
| | | return apsPlateStandardRequireBatchMapper.updateApsPlateStandardRequireBatch(apsPlateStandardRequireBatch); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ |
| | | * |
| | | * @param ids éè¦å é¤çé£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteApsPlateStandardRequireBatchByIds(Long[] ids) |
| | | { |
| | | return apsPlateStandardRequireBatchMapper.deleteApsPlateStandardRequireBatchByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ä¿¡æ¯ |
| | | * |
| | | * @param id é£éè®¡åæ åéæ±è®¡åæ¹æ¬¡è¡¨ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteApsPlateStandardRequireBatchById(Long id) |
| | | { |
| | | return apsPlateStandardRequireBatchMapper.deleteApsPlateStandardRequireBatchById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.aps.core.service.impl; |
| | | |
| | | import java.util.List; |
| | | import com.aps.common.core.utils.DateUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.aps.core.mapper.ApsPlateStandardRequireBomOrderDetailMapper; |
| | | import com.aps.core.domain.ApsPlateStandardRequireBomOrderDetail; |
| | | import com.aps.core.service.IApsPlateStandardRequireBomOrderDetailService; |
| | | |
| | | /** |
| | | * ApsPlateStandardRequireBomOrderDetailServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author zhl |
| | | * @date 2025-05-06 |
| | | */ |
| | | @Service |
| | | public class ApsPlateStandardRequireBomOrderDetailServiceImpl implements IApsPlateStandardRequireBomOrderDetailService |
| | | { |
| | | @Autowired |
| | | private ApsPlateStandardRequireBomOrderDetailMapper apsPlateStandardRequireBomOrderDetailMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢ApsPlateStandardRequireBomOrderDetail |
| | | * |
| | | * @param id ApsPlateStandardRequireBomOrderDetailä¸»é® |
| | | * @return ApsPlateStandardRequireBomOrderDetail |
| | | */ |
| | | @Override |
| | | public ApsPlateStandardRequireBomOrderDetail selectApsPlateStandardRequireBomOrderDetailById(Long id) |
| | | { |
| | | return apsPlateStandardRequireBomOrderDetailMapper.selectApsPlateStandardRequireBomOrderDetailById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢ApsPlateStandardRequireBomOrderDetailå表 |
| | | * |
| | | * @param apsPlateStandardRequireBomOrderDetail ApsPlateStandardRequireBomOrderDetail |
| | | * @return ApsPlateStandardRequireBomOrderDetail |
| | | */ |
| | | @Override |
| | | public List<ApsPlateStandardRequireBomOrderDetail> selectApsPlateStandardRequireBomOrderDetailList(ApsPlateStandardRequireBomOrderDetail apsPlateStandardRequireBomOrderDetail) |
| | | { |
| | | return apsPlateStandardRequireBomOrderDetailMapper.selectApsPlateStandardRequireBomOrderDetailList(apsPlateStandardRequireBomOrderDetail); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ApsPlateStandardRequireBomOrderDetail |
| | | * |
| | | * @param apsPlateStandardRequireBomOrderDetail ApsPlateStandardRequireBomOrderDetail |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertApsPlateStandardRequireBomOrderDetail(ApsPlateStandardRequireBomOrderDetail apsPlateStandardRequireBomOrderDetail) |
| | | { |
| | | apsPlateStandardRequireBomOrderDetail.setCreateTime(DateUtils.getNowDate()); |
| | | return apsPlateStandardRequireBomOrderDetailMapper.insertApsPlateStandardRequireBomOrderDetail(apsPlateStandardRequireBomOrderDetail); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ApsPlateStandardRequireBomOrderDetail |
| | | * |
| | | * @param apsPlateStandardRequireBomOrderDetail ApsPlateStandardRequireBomOrderDetail |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateApsPlateStandardRequireBomOrderDetail(ApsPlateStandardRequireBomOrderDetail apsPlateStandardRequireBomOrderDetail) |
| | | { |
| | | apsPlateStandardRequireBomOrderDetail.setUpdateTime(DateUtils.getNowDate()); |
| | | return apsPlateStandardRequireBomOrderDetailMapper.updateApsPlateStandardRequireBomOrderDetail(apsPlateStandardRequireBomOrderDetail); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ApsPlateStandardRequireBomOrderDetail |
| | | * |
| | | * @param ids éè¦å é¤çApsPlateStandardRequireBomOrderDetailä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteApsPlateStandardRequireBomOrderDetailByIds(Long[] ids) |
| | | { |
| | | return apsPlateStandardRequireBomOrderDetailMapper.deleteApsPlateStandardRequireBomOrderDetailByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ApsPlateStandardRequireBomOrderDetailä¿¡æ¯ |
| | | * |
| | | * @param id ApsPlateStandardRequireBomOrderDetailä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteApsPlateStandardRequireBomOrderDetailById(Long id) |
| | | { |
| | | return apsPlateStandardRequireBomOrderDetailMapper.deleteApsPlateStandardRequireBomOrderDetailById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.aps.core.service.impl; |
| | | |
| | | import java.util.List; |
| | | import com.aps.common.core.utils.DateUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.aps.core.mapper.ApsPlateStandardRequireBomStockDetailMapper; |
| | | import com.aps.core.domain.ApsPlateStandardRequireBomStockDetail; |
| | | import com.aps.core.service.IApsPlateStandardRequireBomStockDetailService; |
| | | |
| | | /** |
| | | * ApsPlateStandardRequireBomStockDetailServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author zhl |
| | | * @date 2025-05-06 |
| | | */ |
| | | @Service |
| | | public class ApsPlateStandardRequireBomStockDetailServiceImpl implements IApsPlateStandardRequireBomStockDetailService |
| | | { |
| | | @Autowired |
| | | private ApsPlateStandardRequireBomStockDetailMapper apsPlateStandardRequireBomStockDetailMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢ApsPlateStandardRequireBomStockDetail |
| | | * |
| | | * @param id ApsPlateStandardRequireBomStockDetailä¸»é® |
| | | * @return ApsPlateStandardRequireBomStockDetail |
| | | */ |
| | | @Override |
| | | public ApsPlateStandardRequireBomStockDetail selectApsPlateStandardRequireBomStockDetailById(Long id) |
| | | { |
| | | return apsPlateStandardRequireBomStockDetailMapper.selectApsPlateStandardRequireBomStockDetailById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢ApsPlateStandardRequireBomStockDetailå表 |
| | | * |
| | | * @param apsPlateStandardRequireBomStockDetail ApsPlateStandardRequireBomStockDetail |
| | | * @return ApsPlateStandardRequireBomStockDetail |
| | | */ |
| | | @Override |
| | | public List<ApsPlateStandardRequireBomStockDetail> selectApsPlateStandardRequireBomStockDetailList(ApsPlateStandardRequireBomStockDetail apsPlateStandardRequireBomStockDetail) |
| | | { |
| | | return apsPlateStandardRequireBomStockDetailMapper.selectApsPlateStandardRequireBomStockDetailList(apsPlateStandardRequireBomStockDetail); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ApsPlateStandardRequireBomStockDetail |
| | | * |
| | | * @param apsPlateStandardRequireBomStockDetail ApsPlateStandardRequireBomStockDetail |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertApsPlateStandardRequireBomStockDetail(ApsPlateStandardRequireBomStockDetail apsPlateStandardRequireBomStockDetail) |
| | | { |
| | | apsPlateStandardRequireBomStockDetail.setCreateTime(DateUtils.getNowDate()); |
| | | return apsPlateStandardRequireBomStockDetailMapper.insertApsPlateStandardRequireBomStockDetail(apsPlateStandardRequireBomStockDetail); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ApsPlateStandardRequireBomStockDetail |
| | | * |
| | | * @param apsPlateStandardRequireBomStockDetail ApsPlateStandardRequireBomStockDetail |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateApsPlateStandardRequireBomStockDetail(ApsPlateStandardRequireBomStockDetail apsPlateStandardRequireBomStockDetail) |
| | | { |
| | | apsPlateStandardRequireBomStockDetail.setUpdateTime(DateUtils.getNowDate()); |
| | | return apsPlateStandardRequireBomStockDetailMapper.updateApsPlateStandardRequireBomStockDetail(apsPlateStandardRequireBomStockDetail); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ApsPlateStandardRequireBomStockDetail |
| | | * |
| | | * @param ids éè¦å é¤çApsPlateStandardRequireBomStockDetailä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteApsPlateStandardRequireBomStockDetailByIds(Long[] ids) |
| | | { |
| | | return apsPlateStandardRequireBomStockDetailMapper.deleteApsPlateStandardRequireBomStockDetailByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ApsPlateStandardRequireBomStockDetailä¿¡æ¯ |
| | | * |
| | | * @param id ApsPlateStandardRequireBomStockDetailä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteApsPlateStandardRequireBomStockDetailById(Long id) |
| | | { |
| | | return apsPlateStandardRequireBomStockDetailMapper.deleteApsPlateStandardRequireBomStockDetailById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.aps.core.service.impl; |
| | | |
| | | import java.util.List; |
| | | import com.aps.common.core.utils.DateUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.aps.core.mapper.ApsPlateStandardRequireMapper; |
| | | import com.aps.core.domain.ApsPlateStandardRequire; |
| | | import com.aps.core.service.IApsPlateStandardRequireService; |
| | | |
| | | /** |
| | | * é£éå·¥åæ åéæ±Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author zhl |
| | | * @date 2025-05-06 |
| | | */ |
| | | @Service |
| | | public class ApsPlateStandardRequireServiceImpl implements IApsPlateStandardRequireService |
| | | { |
| | | @Autowired |
| | | private ApsPlateStandardRequireMapper apsPlateStandardRequireMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢é£éå·¥åæ åéæ± |
| | | * |
| | | * @param id é£éå·¥åæ åéæ±ä¸»é® |
| | | * @return é£éå·¥åæ åéæ± |
| | | */ |
| | | @Override |
| | | public ApsPlateStandardRequire selectApsPlateStandardRequireById(Long id) |
| | | { |
| | | return apsPlateStandardRequireMapper.selectApsPlateStandardRequireById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢é£éå·¥åæ åéæ±å表 |
| | | * |
| | | * @param apsPlateStandardRequire é£éå·¥åæ åéæ± |
| | | * @return é£éå·¥åæ åéæ± |
| | | */ |
| | | @Override |
| | | public List<ApsPlateStandardRequire> selectApsPlateStandardRequireList(ApsPlateStandardRequire apsPlateStandardRequire) |
| | | { |
| | | return apsPlateStandardRequireMapper.selectApsPlateStandardRequireList(apsPlateStandardRequire); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é£éå·¥åæ åéæ± |
| | | * |
| | | * @param apsPlateStandardRequire é£éå·¥åæ åéæ± |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertApsPlateStandardRequire(ApsPlateStandardRequire apsPlateStandardRequire) |
| | | { |
| | | apsPlateStandardRequire.setCreateTime(DateUtils.getNowDate()); |
| | | return apsPlateStandardRequireMapper.insertApsPlateStandardRequire(apsPlateStandardRequire); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é£éå·¥åæ åéæ± |
| | | * |
| | | * @param apsPlateStandardRequire é£éå·¥åæ åéæ± |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateApsPlateStandardRequire(ApsPlateStandardRequire apsPlateStandardRequire) |
| | | { |
| | | apsPlateStandardRequire.setUpdateTime(DateUtils.getNowDate()); |
| | | return apsPlateStandardRequireMapper.updateApsPlateStandardRequire(apsPlateStandardRequire); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤é£éå·¥åæ åéæ± |
| | | * |
| | | * @param ids éè¦å é¤çé£éå·¥åæ åéæ±ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteApsPlateStandardRequireByIds(Long[] ids) |
| | | { |
| | | return apsPlateStandardRequireMapper.deleteApsPlateStandardRequireByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é£éå·¥åæ åéæ±ä¿¡æ¯ |
| | | * |
| | | * @param id é£éå·¥åæ åéæ±ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteApsPlateStandardRequireById(Long id) |
| | | { |
| | | return apsPlateStandardRequireMapper.deleteApsPlateStandardRequireById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.aps.core.mapper.ApsPlateStandardRequireBatchMapper"> |
| | | |
| | | <resultMap type="ApsPlateStandardRequireBatch" id="ApsPlateStandardRequireBatchResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="batchNumber" column="batch_number" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectApsPlateStandardRequireBatchVo"> |
| | | select id, batch_number, del_flag, create_time, create_by, update_by, update_time from aps_plate_standard_require_batch |
| | | </sql> |
| | | |
| | | <select id="selectApsPlateStandardRequireBatchList" parameterType="ApsPlateStandardRequireBatch" resultMap="ApsPlateStandardRequireBatchResult"> |
| | | <include refid="selectApsPlateStandardRequireBatchVo"/> |
| | | <where> |
| | | <if test="batchNumber != null and batchNumber != ''"> and batch_number = #{batchNumber}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectApsPlateStandardRequireBatchById" parameterType="Long" resultMap="ApsPlateStandardRequireBatchResult"> |
| | | <include refid="selectApsPlateStandardRequireBatchVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertApsPlateStandardRequireBatch" parameterType="ApsPlateStandardRequireBatch"> |
| | | insert into aps_plate_standard_require_batch |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="batchNumber != null">batch_number,</if> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="createBy != null">create_by,</if> |
| | | <if test="updateBy != null">update_by,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | | <if test="batchNumber != null">#{batchNumber},</if> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="createBy != null">#{createBy},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateApsPlateStandardRequireBatch" parameterType="ApsPlateStandardRequireBatch"> |
| | | update aps_plate_standard_require_batch |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="batchNumber != null">batch_number = #{batchNumber},</if> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="createBy != null">create_by = #{createBy},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteApsPlateStandardRequireBatchById" parameterType="Long"> |
| | | delete from aps_plate_standard_require_batch where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteApsPlateStandardRequireBatchByIds" parameterType="String"> |
| | | delete from aps_plate_standard_require_batch where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.aps.core.mapper.ApsPlateStandardRequireBomOrderDetailMapper"> |
| | | |
| | | <resultMap type="ApsPlateStandardRequireBomOrderDetail" id="ApsPlateStandardRequireBomOrderDetailResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="requireId" column="require_id" /> |
| | | <result property="bomLineId" column="bom_line_id" /> |
| | | <result property="bomLineCode" column="bom_line_code" /> |
| | | <result property="docNo" column="doc_no" /> |
| | | <result property="beforeProdAmount" column="before_prod_amount" /> |
| | | <result property="deductionAmount" column="deduction_amount" /> |
| | | <result property="afterProdAmount" column="after_prod_amount" /> |
| | | <result property="orgCode" column="org_code" /> |
| | | <result property="batchNumber" column="batch_number" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectApsPlateStandardRequireBomOrderDetailVo"> |
| | | select id, require_id, bom_line_id, bom_line_code, doc_no, before_prod_amount, deduction_amount, after_prod_amount, org_code, batch_number, del_flag, create_time, create_by, update_by, update_time from aps_plate_standard_require_bom_order_detail |
| | | </sql> |
| | | |
| | | <select id="selectApsPlateStandardRequireBomOrderDetailList" parameterType="ApsPlateStandardRequireBomOrderDetail" resultMap="ApsPlateStandardRequireBomOrderDetailResult"> |
| | | <include refid="selectApsPlateStandardRequireBomOrderDetailVo"/> |
| | | <where> |
| | | <if test="requireId != null and requireId != ''"> and require_id = #{requireId}</if> |
| | | <if test="bomLineId != null and bomLineId != ''"> and bom_line_id = #{bomLineId}</if> |
| | | <if test="bomLineCode != null and bomLineCode != ''"> and bom_line_code = #{bomLineCode}</if> |
| | | <if test="docNo != null and docNo != ''"> and doc_no = #{docNo}</if> |
| | | <if test="beforeProdAmount != null and beforeProdAmount != ''"> and before_prod_amount = #{beforeProdAmount}</if> |
| | | <if test="deductionAmount != null and deductionAmount != ''"> and deduction_amount = #{deductionAmount}</if> |
| | | <if test="afterProdAmount != null and afterProdAmount != ''"> and after_prod_amount = #{afterProdAmount}</if> |
| | | <if test="orgCode != null and orgCode != ''"> and org_code = #{orgCode}</if> |
| | | <if test="batchNumber != null and batchNumber != ''"> and batch_number = #{batchNumber}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectApsPlateStandardRequireBomOrderDetailById" parameterType="Long" resultMap="ApsPlateStandardRequireBomOrderDetailResult"> |
| | | <include refid="selectApsPlateStandardRequireBomOrderDetailVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertApsPlateStandardRequireBomOrderDetail" parameterType="ApsPlateStandardRequireBomOrderDetail"> |
| | | insert into aps_plate_standard_require_bom_order_detail |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="requireId != null">require_id,</if> |
| | | <if test="bomLineId != null">bom_line_id,</if> |
| | | <if test="bomLineCode != null">bom_line_code,</if> |
| | | <if test="docNo != null">doc_no,</if> |
| | | <if test="beforeProdAmount != null">before_prod_amount,</if> |
| | | <if test="deductionAmount != null">deduction_amount,</if> |
| | | <if test="afterProdAmount != null">after_prod_amount,</if> |
| | | <if test="orgCode != null">org_code,</if> |
| | | <if test="batchNumber != null">batch_number,</if> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="createBy != null">create_by,</if> |
| | | <if test="updateBy != null">update_by,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | | <if test="requireId != null">#{requireId},</if> |
| | | <if test="bomLineId != null">#{bomLineId},</if> |
| | | <if test="bomLineCode != null">#{bomLineCode},</if> |
| | | <if test="docNo != null">#{docNo},</if> |
| | | <if test="beforeProdAmount != null">#{beforeProdAmount},</if> |
| | | <if test="deductionAmount != null">#{deductionAmount},</if> |
| | | <if test="afterProdAmount != null">#{afterProdAmount},</if> |
| | | <if test="orgCode != null">#{orgCode},</if> |
| | | <if test="batchNumber != null">#{batchNumber},</if> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="createBy != null">#{createBy},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateApsPlateStandardRequireBomOrderDetail" parameterType="ApsPlateStandardRequireBomOrderDetail"> |
| | | update aps_plate_standard_require_bom_order_detail |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="requireId != null">require_id = #{requireId},</if> |
| | | <if test="bomLineId != null">bom_line_id = #{bomLineId},</if> |
| | | <if test="bomLineCode != null">bom_line_code = #{bomLineCode},</if> |
| | | <if test="docNo != null">doc_no = #{docNo},</if> |
| | | <if test="beforeProdAmount != null">before_prod_amount = #{beforeProdAmount},</if> |
| | | <if test="deductionAmount != null">deduction_amount = #{deductionAmount},</if> |
| | | <if test="afterProdAmount != null">after_prod_amount = #{afterProdAmount},</if> |
| | | <if test="orgCode != null">org_code = #{orgCode},</if> |
| | | <if test="batchNumber != null">batch_number = #{batchNumber},</if> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="createBy != null">create_by = #{createBy},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteApsPlateStandardRequireBomOrderDetailById" parameterType="Long"> |
| | | delete from aps_plate_standard_require_bom_order_detail where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteApsPlateStandardRequireBomOrderDetailByIds" parameterType="String"> |
| | | delete from aps_plate_standard_require_bom_order_detail where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.aps.core.mapper.ApsPlateStandardRequireBomStockDetailMapper"> |
| | | |
| | | <resultMap type="ApsPlateStandardRequireBomStockDetail" id="ApsPlateStandardRequireBomStockDetailResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="requireId" column="require_id" /> |
| | | <result property="bomLineId" column="bom_line_id" /> |
| | | <result property="bomLineCode" column="bom_line_code" /> |
| | | <result property="beforeStockAmount" column="before_stock_amount" /> |
| | | <result property="deductionAmount" column="deduction_amount" /> |
| | | <result property="afterStockAmount" column="after_stock_amount" /> |
| | | <result property="orgCode" column="org_code" /> |
| | | <result property="batchNumber" column="batch_number" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectApsPlateStandardRequireBomStockDetailVo"> |
| | | select id, require_id, bom_line_id, bom_line_code, before_stock_amount, deduction_amount, after_stock_amount, org_code, batch_number, del_flag, create_time, create_by, update_by, update_time from aps_plate_standard_require_bom_stock_detail |
| | | </sql> |
| | | |
| | | <select id="selectApsPlateStandardRequireBomStockDetailList" parameterType="ApsPlateStandardRequireBomStockDetail" resultMap="ApsPlateStandardRequireBomStockDetailResult"> |
| | | <include refid="selectApsPlateStandardRequireBomStockDetailVo"/> |
| | | <where> |
| | | <if test="requireId != null and requireId != ''"> and require_id = #{requireId}</if> |
| | | <if test="bomLineId != null and bomLineId != ''"> and bom_line_id = #{bomLineId}</if> |
| | | <if test="bomLineCode != null and bomLineCode != ''"> and bom_line_code = #{bomLineCode}</if> |
| | | <if test="beforeStockAmount != null and beforeStockAmount != ''"> and before_stock_amount = #{beforeStockAmount}</if> |
| | | <if test="deductionAmount != null and deductionAmount != ''"> and deduction_amount = #{deductionAmount}</if> |
| | | <if test="afterStockAmount != null and afterStockAmount != ''"> and after_stock_amount = #{afterStockAmount}</if> |
| | | <if test="orgCode != null and orgCode != ''"> and org_code = #{orgCode}</if> |
| | | <if test="batchNumber != null and batchNumber != ''"> and batch_number = #{batchNumber}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectApsPlateStandardRequireBomStockDetailById" parameterType="Long" resultMap="ApsPlateStandardRequireBomStockDetailResult"> |
| | | <include refid="selectApsPlateStandardRequireBomStockDetailVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertApsPlateStandardRequireBomStockDetail" parameterType="ApsPlateStandardRequireBomStockDetail"> |
| | | insert into aps_plate_standard_require_bom_stock_detail |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="requireId != null">require_id,</if> |
| | | <if test="bomLineId != null">bom_line_id,</if> |
| | | <if test="bomLineCode != null">bom_line_code,</if> |
| | | <if test="beforeStockAmount != null">before_stock_amount,</if> |
| | | <if test="deductionAmount != null">deduction_amount,</if> |
| | | <if test="afterStockAmount != null">after_stock_amount,</if> |
| | | <if test="orgCode != null">org_code,</if> |
| | | <if test="batchNumber != null">batch_number,</if> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="createBy != null">create_by,</if> |
| | | <if test="updateBy != null">update_by,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | | <if test="requireId != null">#{requireId},</if> |
| | | <if test="bomLineId != null">#{bomLineId},</if> |
| | | <if test="bomLineCode != null">#{bomLineCode},</if> |
| | | <if test="beforeStockAmount != null">#{beforeStockAmount},</if> |
| | | <if test="deductionAmount != null">#{deductionAmount},</if> |
| | | <if test="afterStockAmount != null">#{afterStockAmount},</if> |
| | | <if test="orgCode != null">#{orgCode},</if> |
| | | <if test="batchNumber != null">#{batchNumber},</if> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="createBy != null">#{createBy},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateApsPlateStandardRequireBomStockDetail" parameterType="ApsPlateStandardRequireBomStockDetail"> |
| | | update aps_plate_standard_require_bom_stock_detail |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="requireId != null">require_id = #{requireId},</if> |
| | | <if test="bomLineId != null">bom_line_id = #{bomLineId},</if> |
| | | <if test="bomLineCode != null">bom_line_code = #{bomLineCode},</if> |
| | | <if test="beforeStockAmount != null">before_stock_amount = #{beforeStockAmount},</if> |
| | | <if test="deductionAmount != null">deduction_amount = #{deductionAmount},</if> |
| | | <if test="afterStockAmount != null">after_stock_amount = #{afterStockAmount},</if> |
| | | <if test="orgCode != null">org_code = #{orgCode},</if> |
| | | <if test="batchNumber != null">batch_number = #{batchNumber},</if> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="createBy != null">create_by = #{createBy},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteApsPlateStandardRequireBomStockDetailById" parameterType="Long"> |
| | | delete from aps_plate_standard_require_bom_stock_detail where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteApsPlateStandardRequireBomStockDetailByIds" parameterType="String"> |
| | | delete from aps_plate_standard_require_bom_stock_detail where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.aps.core.mapper.ApsPlateStandardRequireMapper"> |
| | | |
| | | <resultMap type="ApsPlateStandardRequire" id="ApsPlateStandardRequireResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="requireId" column="require_id" /> |
| | | <result property="bomLineId" column="bom_line_id" /> |
| | | <result property="bomLineCode" column="bom_line_code" /> |
| | | <result property="bomLineLevel" column="bom_line_level" /> |
| | | <result property="bomUseAmount" column="bom_use_amount" /> |
| | | <result property="processRouteId" column="process_route_id" /> |
| | | <result property="processRouteHours" column="process_route_hours" /> |
| | | <result property="requireAmount" column="require_amount" /> |
| | | <result property="netRequirement" column="net_requirement" /> |
| | | <result property="startDate" column="start_date" /> |
| | | <result property="completeDate" column="complete_date" /> |
| | | <result property="demandDate" column="demand_date" /> |
| | | <result property="orgCode" column="org_code" /> |
| | | <result property="productionBase" column="production_base" /> |
| | | <result property="matchState" column="match_state" /> |
| | | <result property="matchMode" column="match_mode" /> |
| | | <result property="unmatchedDemandAmount" column="unmatched_demand_amount" /> |
| | | <result property="suggestedCompletionDate" column="suggested_completion_date" /> |
| | | <result property="hasDelayRisk" column="has_delay_risk" /> |
| | | <result property="batchNumber" column="batch_number" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectApsPlateStandardRequireVo"> |
| | | select id, require_id, bom_line_id, bom_line_code, bom_line_level, bom_use_amount, process_route_id, process_route_hours, require_amount, net_requirement, start_date, complete_date, demand_date, org_code, production_base, match_state, match_mode, unmatched_demand_amount, suggested_completion_date, has_delay_risk, batch_number, del_flag, create_time, create_by, update_by, update_time from aps_plate_standard_require |
| | | </sql> |
| | | |
| | | <select id="selectApsPlateStandardRequireList" parameterType="ApsPlateStandardRequire" resultMap="ApsPlateStandardRequireResult"> |
| | | <include refid="selectApsPlateStandardRequireVo"/> |
| | | <where> |
| | | <if test="requireId != null and requireId != ''"> and require_id = #{requireId}</if> |
| | | <if test="bomLineId != null and bomLineId != ''"> and bom_line_id = #{bomLineId}</if> |
| | | <if test="bomLineCode != null and bomLineCode != ''"> and bom_line_code = #{bomLineCode}</if> |
| | | <if test="bomLineLevel != null "> and bom_line_level = #{bomLineLevel}</if> |
| | | <if test="bomUseAmount != null and bomUseAmount != ''"> and bom_use_amount = #{bomUseAmount}</if> |
| | | <if test="processRouteId != null and processRouteId != ''"> and process_route_id = #{processRouteId}</if> |
| | | <if test="processRouteHours != null and processRouteHours != ''"> and process_route_hours = #{processRouteHours}</if> |
| | | <if test="requireAmount != null and requireAmount != ''"> and require_amount = #{requireAmount}</if> |
| | | <if test="netRequirement != null and netRequirement != ''"> and net_requirement = #{netRequirement}</if> |
| | | <if test="startDate != null and startDate != ''"> and start_date = #{startDate}</if> |
| | | <if test="completeDate != null and completeDate != ''"> and complete_date = #{completeDate}</if> |
| | | <if test="demandDate != null and demandDate != ''"> and demand_date = #{demandDate}</if> |
| | | <if test="orgCode != null and orgCode != ''"> and org_code = #{orgCode}</if> |
| | | <if test="productionBase != null and productionBase != ''"> and production_base = #{productionBase}</if> |
| | | <if test="matchState != null and matchState != ''"> and match_state = #{matchState}</if> |
| | | <if test="matchMode != null and matchMode != ''"> and match_mode = #{matchMode}</if> |
| | | <if test="unmatchedDemandAmount != null and unmatchedDemandAmount != ''"> and unmatched_demand_amount = #{unmatchedDemandAmount}</if> |
| | | <if test="suggestedCompletionDate != null and suggestedCompletionDate != ''"> and suggested_completion_date = #{suggestedCompletionDate}</if> |
| | | <if test="hasDelayRisk != null and hasDelayRisk != ''"> and has_delay_risk = #{hasDelayRisk}</if> |
| | | <if test="batchNumber != null and batchNumber != ''"> and batch_number = #{batchNumber}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectApsPlateStandardRequireById" parameterType="Long" resultMap="ApsPlateStandardRequireResult"> |
| | | <include refid="selectApsPlateStandardRequireVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertApsPlateStandardRequire" parameterType="ApsPlateStandardRequire"> |
| | | insert into aps_plate_standard_require |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="requireId != null">require_id,</if> |
| | | <if test="bomLineId != null">bom_line_id,</if> |
| | | <if test="bomLineCode != null">bom_line_code,</if> |
| | | <if test="bomLineLevel != null">bom_line_level,</if> |
| | | <if test="bomUseAmount != null">bom_use_amount,</if> |
| | | <if test="processRouteId != null">process_route_id,</if> |
| | | <if test="processRouteHours != null">process_route_hours,</if> |
| | | <if test="requireAmount != null">require_amount,</if> |
| | | <if test="netRequirement != null">net_requirement,</if> |
| | | <if test="startDate != null">start_date,</if> |
| | | <if test="completeDate != null">complete_date,</if> |
| | | <if test="demandDate != null">demand_date,</if> |
| | | <if test="orgCode != null">org_code,</if> |
| | | <if test="productionBase != null">production_base,</if> |
| | | <if test="matchState != null">match_state,</if> |
| | | <if test="matchMode != null">match_mode,</if> |
| | | <if test="unmatchedDemandAmount != null">unmatched_demand_amount,</if> |
| | | <if test="suggestedCompletionDate != null">suggested_completion_date,</if> |
| | | <if test="hasDelayRisk != null">has_delay_risk,</if> |
| | | <if test="batchNumber != null">batch_number,</if> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="createBy != null">create_by,</if> |
| | | <if test="updateBy != null">update_by,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | | <if test="requireId != null">#{requireId},</if> |
| | | <if test="bomLineId != null">#{bomLineId},</if> |
| | | <if test="bomLineCode != null">#{bomLineCode},</if> |
| | | <if test="bomLineLevel != null">#{bomLineLevel},</if> |
| | | <if test="bomUseAmount != null">#{bomUseAmount},</if> |
| | | <if test="processRouteId != null">#{processRouteId},</if> |
| | | <if test="processRouteHours != null">#{processRouteHours},</if> |
| | | <if test="requireAmount != null">#{requireAmount},</if> |
| | | <if test="netRequirement != null">#{netRequirement},</if> |
| | | <if test="startDate != null">#{startDate},</if> |
| | | <if test="completeDate != null">#{completeDate},</if> |
| | | <if test="demandDate != null">#{demandDate},</if> |
| | | <if test="orgCode != null">#{orgCode},</if> |
| | | <if test="productionBase != null">#{productionBase},</if> |
| | | <if test="matchState != null">#{matchState},</if> |
| | | <if test="matchMode != null">#{matchMode},</if> |
| | | <if test="unmatchedDemandAmount != null">#{unmatchedDemandAmount},</if> |
| | | <if test="suggestedCompletionDate != null">#{suggestedCompletionDate},</if> |
| | | <if test="hasDelayRisk != null">#{hasDelayRisk},</if> |
| | | <if test="batchNumber != null">#{batchNumber},</if> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="createBy != null">#{createBy},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateApsPlateStandardRequire" parameterType="ApsPlateStandardRequire"> |
| | | update aps_plate_standard_require |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="requireId != null">require_id = #{requireId},</if> |
| | | <if test="bomLineId != null">bom_line_id = #{bomLineId},</if> |
| | | <if test="bomLineCode != null">bom_line_code = #{bomLineCode},</if> |
| | | <if test="bomLineLevel != null">bom_line_level = #{bomLineLevel},</if> |
| | | <if test="bomUseAmount != null">bom_use_amount = #{bomUseAmount},</if> |
| | | <if test="processRouteId != null">process_route_id = #{processRouteId},</if> |
| | | <if test="processRouteHours != null">process_route_hours = #{processRouteHours},</if> |
| | | <if test="requireAmount != null">require_amount = #{requireAmount},</if> |
| | | <if test="netRequirement != null">net_requirement = #{netRequirement},</if> |
| | | <if test="startDate != null">start_date = #{startDate},</if> |
| | | <if test="completeDate != null">complete_date = #{completeDate},</if> |
| | | <if test="demandDate != null">demand_date = #{demandDate},</if> |
| | | <if test="orgCode != null">org_code = #{orgCode},</if> |
| | | <if test="productionBase != null">production_base = #{productionBase},</if> |
| | | <if test="matchState != null">match_state = #{matchState},</if> |
| | | <if test="matchMode != null">match_mode = #{matchMode},</if> |
| | | <if test="unmatchedDemandAmount != null">unmatched_demand_amount = #{unmatchedDemandAmount},</if> |
| | | <if test="suggestedCompletionDate != null">suggested_completion_date = #{suggestedCompletionDate},</if> |
| | | <if test="hasDelayRisk != null">has_delay_risk = #{hasDelayRisk},</if> |
| | | <if test="batchNumber != null">batch_number = #{batchNumber},</if> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="createBy != null">create_by = #{createBy},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteApsPlateStandardRequireById" parameterType="Long"> |
| | | delete from aps_plate_standard_require where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteApsPlateStandardRequireByIds" parameterType="String"> |
| | | delete from aps_plate_standard_require where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |