¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.aps.core.controller.basicData; |
| | | |
| | | 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.ApsMaterialManagement; |
| | | import com.aps.core.service.IApsMaterialManagementService; |
| | | 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 dingYang |
| | | * @date 2025-04-17 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/materialManagement") |
| | | public class ApsMaterialManagementController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IApsMaterialManagementService apsMaterialManagementService; |
| | | |
| | | /** |
| | | * æ¥è¯¢ç©æç®¡çå表 |
| | | */ |
| | | @RequiresPermissions("materialManagement:materialManagement:list") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ApsMaterialManagement apsMaterialManagement) |
| | | { |
| | | // startPage(); |
| | | List<ApsMaterialManagement> list = apsMaterialManagementService.selectApsMaterialManagementList(apsMaterialManagement); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºç©æç®¡çå表 |
| | | */ |
| | | @RequiresPermissions("materialManagement:materialManagement:export") |
| | | @Log(title = "ç©æç®¡ç", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ApsMaterialManagement apsMaterialManagement) |
| | | { |
| | | List<ApsMaterialManagement> list = apsMaterialManagementService.selectApsMaterialManagementList(apsMaterialManagement); |
| | | ExcelUtil<ApsMaterialManagement> util = new ExcelUtil<ApsMaterialManagement>(ApsMaterialManagement.class); |
| | | util.exportExcel(response, list, "ç©æç®¡çæ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åç©æç®¡ç详ç»ä¿¡æ¯ |
| | | */ |
| | | @RequiresPermissions("materialManagement:materialManagement:query") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) |
| | | { |
| | | return success(apsMaterialManagementService.selectApsMaterialManagementById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ç©æç®¡ç |
| | | */ |
| | | @RequiresPermissions("materialManagement:materialManagement:add") |
| | | @Log(title = "ç©æç®¡ç", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody ApsMaterialManagement apsMaterialManagement) |
| | | { |
| | | return toAjax(apsMaterialManagementService.insertApsMaterialManagement(apsMaterialManagement)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ç©æç®¡ç |
| | | */ |
| | | @RequiresPermissions("materialManagement:materialManagement:edit") |
| | | @Log(title = "ç©æç®¡ç", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody ApsMaterialManagement apsMaterialManagement) |
| | | { |
| | | return toAjax(apsMaterialManagementService.updateApsMaterialManagement(apsMaterialManagement)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ç©æç®¡ç |
| | | */ |
| | | @RequiresPermissions("materialManagement:materialManagement:remove") |
| | | @Log(title = "ç©æç®¡ç", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable String[] ids) |
| | | { |
| | | return toAjax(apsMaterialManagementService.deleteApsMaterialManagementByIds(ids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.aps.core.controller.basicData; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.aps.core.service.IApsMaterialStorageManagementService; |
| | | 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.ApsMaterialStorageManagement; |
| | | 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 dingYang |
| | | * @date 2025-04-17 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/materialStorageManagement") |
| | | public class ApsMaterialStorageManagementController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IApsMaterialStorageManagementService apsMaterialStorageManagementService; |
| | | |
| | | /** |
| | | * æ¥è¯¢ç©æåºå管çå表 |
| | | */ |
| | | @RequiresPermissions("materialStorageManagement:materialStorageManagement:list") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ApsMaterialStorageManagement apsMaterialStorageManagement) |
| | | { |
| | | startPage(); |
| | | List<ApsMaterialStorageManagement> list = apsMaterialStorageManagementService.selectApsMaterialStorageManagementList(apsMaterialStorageManagement); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºç©æåºå管çå表 |
| | | */ |
| | | @RequiresPermissions("materialStorageManagement:materialStorageManagement:export") |
| | | @Log(title = "ç©æåºå管ç", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ApsMaterialStorageManagement apsMaterialStorageManagement) |
| | | { |
| | | List<ApsMaterialStorageManagement> list = apsMaterialStorageManagementService.selectApsMaterialStorageManagementList(apsMaterialStorageManagement); |
| | | ExcelUtil<ApsMaterialStorageManagement> util = new ExcelUtil<ApsMaterialStorageManagement>(ApsMaterialStorageManagement.class); |
| | | util.exportExcel(response, list, "ç©æåºåç®¡çæ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åç©æåºå管ç详ç»ä¿¡æ¯ |
| | | */ |
| | | @RequiresPermissions("materialStorageManagement:materialStorageManagement:query") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) |
| | | { |
| | | return success(apsMaterialStorageManagementService.selectApsMaterialStorageManagementById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ç©æåºå管ç |
| | | */ |
| | | @RequiresPermissions("materialStorageManagement:materialStorageManagement:add") |
| | | @Log(title = "ç©æåºå管ç", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody ApsMaterialStorageManagement apsMaterialStorageManagement) |
| | | { |
| | | return toAjax(apsMaterialStorageManagementService.insertApsMaterialStorageManagement(apsMaterialStorageManagement)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ç©æåºå管ç |
| | | */ |
| | | @RequiresPermissions("materialStorageManagement:materialStorageManagement:edit") |
| | | @Log(title = "ç©æåºå管ç", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody ApsMaterialStorageManagement apsMaterialStorageManagement) |
| | | { |
| | | return toAjax(apsMaterialStorageManagementService.updateApsMaterialStorageManagement(apsMaterialStorageManagement)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ç©æåºå管ç |
| | | */ |
| | | @RequiresPermissions("materialStorageManagement:materialStorageManagement:remove") |
| | | @Log(title = "ç©æåºå管ç", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable String[] ids) |
| | | { |
| | | return toAjax(apsMaterialStorageManagementService.deleteApsMaterialStorageManagementByIds(ids)); |
| | | } |
| | | } |
| | |
| | | { |
| | | return toAjax(apsPlantService.deleteApsPlantByIds(ids)); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢å·¥å管çå表 |
| | | */ |
| | | // @RequiresPermissions("plant:list") |
| | | @GetMapping("/listAll") |
| | | public AjaxResult listAll(ApsPlant apsPlant) |
| | | { |
| | | List<ApsPlant> list = apsPlantService.selectApsPlantList(apsPlant); |
| | | return AjaxResult.success(list); |
| | | } |
| | | } |
| | |
| | | { |
| | | return toAjax(apsShopService.deleteApsShopByIds(ids)); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢è½¦é´å表 |
| | | */ |
| | | // @RequiresPermissions("shop:list") |
| | | @GetMapping("/listAll") |
| | | public AjaxResult listAll(ApsShop apsShop) |
| | | { |
| | | List<ApsShop> list = apsShopService.selectApsShopList(apsShop); |
| | | return AjaxResult.success(list); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.aps.core.domain; |
| | | |
| | | import java.util.Date; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.aps.common.core.annotation.Excel; |
| | | import com.aps.common.core.web.domain.BaseEntity; |
| | | |
| | | /** |
| | | * ç©æç®¡ç对象 aps_material_management |
| | | * |
| | | * @author dingYang |
| | | * @date 2025-04-17 |
| | | */ |
| | | public class ApsMaterialManagement extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** id */ |
| | | private String id; |
| | | |
| | | /** æå· */ |
| | | @Excel(name = "æå·") |
| | | private String itemNumber; |
| | | |
| | | /** ç©ææè¿° */ |
| | | @Excel(name = "ç©ææè¿°") |
| | | private String materialDescription; |
| | | |
| | | /** ç©æç¶æ */ |
| | | @Excel(name = "ç©æç¶æ") |
| | | private String materialStatus; |
| | | |
| | | /** ç©æç±»å */ |
| | | @Excel(name = "ç©æç±»å") |
| | | private String materialType; |
| | | |
| | | /** ä¸ä¸å½å± */ |
| | | @Excel(name = "ä¸ä¸å½å±") |
| | | private String professionalAffiliation; |
| | | |
| | | /** å¾å· */ |
| | | @Excel(name = "å¾å·") |
| | | private String drawingNo; |
| | | |
| | | /** çæ¬ */ |
| | | @Excel(name = "çæ¬") |
| | | private String versionNumber; |
| | | |
| | | /** ææ©å¯æåçäº§å¤©æ° */ |
| | | @Excel(name = "ææ©å¯æåç产天æ°") |
| | | private String advanceProductionDays; |
| | | |
| | | /** æåæ¹é */ |
| | | @Excel(name = "æåæ¹é") |
| | | private Long splitBatch; |
| | | |
| | | /** æ¯å¦èªå¶ */ |
| | | @Excel(name = "æ¯å¦èªå¶") |
| | | private String selfMade; |
| | | |
| | | /** éç¨å·¥å */ |
| | | @Excel(name = "éç¨å·¥å") |
| | | private String applicableFactories; |
| | | |
| | | /** éç¨è½¦é´ */ |
| | | @Excel(name = "éç¨è½¦é´") |
| | | private String applicableWorkshop; |
| | | |
| | | /** çææ¥æ */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = "çææ¥æ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date effectiveDate; |
| | | |
| | | /** å¤±ææ¥æ */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = "å¤±ææ¥æ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date expiringDate; |
| | | |
| | | /** éææ¥æ */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = "éææ¥æ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date integrationDate; |
| | | |
| | | public void setId(String id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getId() |
| | | { |
| | | return id; |
| | | } |
| | | |
| | | public void setItemNumber(String itemNumber) |
| | | { |
| | | this.itemNumber = itemNumber; |
| | | } |
| | | |
| | | public String getItemNumber() |
| | | { |
| | | return itemNumber; |
| | | } |
| | | |
| | | public void setMaterialDescription(String materialDescription) |
| | | { |
| | | this.materialDescription = materialDescription; |
| | | } |
| | | |
| | | public String getMaterialDescription() |
| | | { |
| | | return materialDescription; |
| | | } |
| | | |
| | | public void setMaterialStatus(String materialStatus) |
| | | { |
| | | this.materialStatus = materialStatus; |
| | | } |
| | | |
| | | public String getMaterialStatus() |
| | | { |
| | | return materialStatus; |
| | | } |
| | | |
| | | public void setMaterialType(String materialType) |
| | | { |
| | | this.materialType = materialType; |
| | | } |
| | | |
| | | public String getMaterialType() |
| | | { |
| | | return materialType; |
| | | } |
| | | |
| | | public void setProfessionalAffiliation(String professionalAffiliation) |
| | | { |
| | | this.professionalAffiliation = professionalAffiliation; |
| | | } |
| | | |
| | | public String getProfessionalAffiliation() |
| | | { |
| | | return professionalAffiliation; |
| | | } |
| | | |
| | | public void setDrawingNo(String drawingNo) |
| | | { |
| | | this.drawingNo = drawingNo; |
| | | } |
| | | |
| | | public String getDrawingNo() |
| | | { |
| | | return drawingNo; |
| | | } |
| | | |
| | | public void setVersionNumber(String versionNumber) |
| | | { |
| | | this.versionNumber = versionNumber; |
| | | } |
| | | |
| | | public String getVersionNumber() |
| | | { |
| | | return versionNumber; |
| | | } |
| | | |
| | | public void setAdvanceProductionDays(String advanceProductionDays) |
| | | { |
| | | this.advanceProductionDays = advanceProductionDays; |
| | | } |
| | | |
| | | public String getAdvanceProductionDays() |
| | | { |
| | | return advanceProductionDays; |
| | | } |
| | | |
| | | public void setSplitBatch(Long splitBatch) |
| | | { |
| | | this.splitBatch = splitBatch; |
| | | } |
| | | |
| | | public Long getSplitBatch() |
| | | { |
| | | return splitBatch; |
| | | } |
| | | |
| | | public void setSelfMade(String selfMade) |
| | | { |
| | | this.selfMade = selfMade; |
| | | } |
| | | |
| | | public String getSelfMade() |
| | | { |
| | | return selfMade; |
| | | } |
| | | |
| | | public void setApplicableFactories(String applicableFactories) |
| | | { |
| | | this.applicableFactories = applicableFactories; |
| | | } |
| | | |
| | | public String getApplicableFactories() |
| | | { |
| | | return applicableFactories; |
| | | } |
| | | |
| | | public void setApplicableWorkshop(String applicableWorkshop) |
| | | { |
| | | this.applicableWorkshop = applicableWorkshop; |
| | | } |
| | | |
| | | public String getApplicableWorkshop() |
| | | { |
| | | return applicableWorkshop; |
| | | } |
| | | |
| | | public void setEffectiveDate(Date effectiveDate) |
| | | { |
| | | this.effectiveDate = effectiveDate; |
| | | } |
| | | |
| | | public Date getEffectiveDate() |
| | | { |
| | | return effectiveDate; |
| | | } |
| | | |
| | | public void setExpiringDate(Date expiringDate) |
| | | { |
| | | this.expiringDate = expiringDate; |
| | | } |
| | | |
| | | public Date getExpiringDate() |
| | | { |
| | | return expiringDate; |
| | | } |
| | | |
| | | public void setIntegrationDate(Date integrationDate) |
| | | { |
| | | this.integrationDate = integrationDate; |
| | | } |
| | | |
| | | public Date getIntegrationDate() |
| | | { |
| | | return integrationDate; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("itemNumber", getItemNumber()) |
| | | .append("materialDescription", getMaterialDescription()) |
| | | .append("materialStatus", getMaterialStatus()) |
| | | .append("materialType", getMaterialType()) |
| | | .append("professionalAffiliation", getProfessionalAffiliation()) |
| | | .append("drawingNo", getDrawingNo()) |
| | | .append("versionNumber", getVersionNumber()) |
| | | .append("advanceProductionDays", getAdvanceProductionDays()) |
| | | .append("splitBatch", getSplitBatch()) |
| | | .append("selfMade", getSelfMade()) |
| | | .append("applicableFactories", getApplicableFactories()) |
| | | .append("applicableWorkshop", getApplicableWorkshop()) |
| | | .append("effectiveDate", getEffectiveDate()) |
| | | .append("expiringDate", getExpiringDate()) |
| | | .append("integrationDate", getIntegrationDate()) |
| | | .append("createBy", getCreateBy()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("updateBy", getUpdateBy()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.aps.core.domain; |
| | | |
| | | import java.util.Date; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.aps.common.core.annotation.Excel; |
| | | import com.aps.common.core.web.domain.BaseEntity; |
| | | |
| | | /** |
| | | * ç©æåºå管ç对象 aps_material_storage_management |
| | | * |
| | | * @author dingYang |
| | | * @date 2025-04-17 |
| | | */ |
| | | public class ApsMaterialStorageManagement extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** id */ |
| | | private String id; |
| | | |
| | | /** æå· */ |
| | | @Excel(name = "æå·") |
| | | private String itemNumber; |
| | | |
| | | /** æ°é */ |
| | | @Excel(name = "æ°é") |
| | | private Long num; |
| | | |
| | | /** éç¨å·¥å */ |
| | | @Excel(name = "éç¨å·¥å") |
| | | private String applicableFactories; |
| | | |
| | | /** éææ¥æ */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = "éææ¥æ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date integrationDate; |
| | | |
| | | /** å·æ°æ¥æ */ |
| | | @Excel(name = "å·æ°æ¥æ") |
| | | private String refreshDate; |
| | | |
| | | public void setId(String id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getId() |
| | | { |
| | | return id; |
| | | } |
| | | |
| | | public void setItemNumber(String itemNumber) |
| | | { |
| | | this.itemNumber = itemNumber; |
| | | } |
| | | |
| | | public String getItemNumber() |
| | | { |
| | | return itemNumber; |
| | | } |
| | | |
| | | public void setNum(Long num) |
| | | { |
| | | this.num = num; |
| | | } |
| | | |
| | | public Long getNum() |
| | | { |
| | | return num; |
| | | } |
| | | |
| | | public void setApplicableFactories(String applicableFactories) |
| | | { |
| | | this.applicableFactories = applicableFactories; |
| | | } |
| | | |
| | | public String getApplicableFactories() |
| | | { |
| | | return applicableFactories; |
| | | } |
| | | |
| | | public void setIntegrationDate(Date integrationDate) |
| | | { |
| | | this.integrationDate = integrationDate; |
| | | } |
| | | |
| | | public Date getIntegrationDate() |
| | | { |
| | | return integrationDate; |
| | | } |
| | | |
| | | public void setRefreshDate(String refreshDate) |
| | | { |
| | | this.refreshDate = refreshDate; |
| | | } |
| | | |
| | | public String getRefreshDate() |
| | | { |
| | | return refreshDate; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("itemNumber", getItemNumber()) |
| | | .append("num", getNum()) |
| | | .append("applicableFactories", getApplicableFactories()) |
| | | .append("integrationDate", getIntegrationDate()) |
| | | .append("refreshDate", getRefreshDate()) |
| | | .append("createBy", getCreateBy()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("updateBy", getUpdateBy()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.aps.core.mapper; |
| | | |
| | | import java.util.List; |
| | | import com.aps.core.domain.ApsMaterialManagement; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * ç©æç®¡çMapperæ¥å£ |
| | | * |
| | | * @author dingYang |
| | | * @date 2025-04-17 |
| | | */ |
| | | @Mapper |
| | | public interface ApsMaterialManagementMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢ç©æç®¡ç |
| | | * |
| | | * @param id ç©æç®¡çä¸»é® |
| | | * @return ç©æç®¡ç |
| | | */ |
| | | public ApsMaterialManagement selectApsMaterialManagementById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ç©æç®¡çå表 |
| | | * |
| | | * @param apsMaterialManagement ç©æç®¡ç |
| | | * @return ç©æç®¡çéå |
| | | */ |
| | | public List<ApsMaterialManagement> selectApsMaterialManagementList(ApsMaterialManagement apsMaterialManagement); |
| | | |
| | | /** |
| | | * æ°å¢ç©æç®¡ç |
| | | * |
| | | * @param apsMaterialManagement ç©æç®¡ç |
| | | * @return ç»æ |
| | | */ |
| | | public int insertApsMaterialManagement(ApsMaterialManagement apsMaterialManagement); |
| | | |
| | | /** |
| | | * ä¿®æ¹ç©æç®¡ç |
| | | * |
| | | * @param apsMaterialManagement ç©æç®¡ç |
| | | * @return ç»æ |
| | | */ |
| | | public int updateApsMaterialManagement(ApsMaterialManagement apsMaterialManagement); |
| | | |
| | | /** |
| | | * å é¤ç©æç®¡ç |
| | | * |
| | | * @param id ç©æç®¡çä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteApsMaterialManagementById(String id); |
| | | |
| | | /** |
| | | * æ¹éå é¤ç©æç®¡ç |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteApsMaterialManagementByIds(String[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.aps.core.mapper; |
| | | |
| | | import java.util.List; |
| | | import com.aps.core.domain.ApsMaterialStorageManagement; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * ç©æåºå管çMapperæ¥å£ |
| | | * |
| | | * @author dingYang |
| | | * @date 2025-04-17 |
| | | */ |
| | | @Mapper |
| | | public interface ApsMaterialStorageManagementMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢ç©æåºå管ç |
| | | * |
| | | * @param id ç©æåºå管çä¸»é® |
| | | * @return ç©æåºå管ç |
| | | */ |
| | | public ApsMaterialStorageManagement selectApsMaterialStorageManagementById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ç©æåºå管çå表 |
| | | * |
| | | * @param apsMaterialStorageManagement ç©æåºå管ç |
| | | * @return ç©æåºå管çéå |
| | | */ |
| | | public List<ApsMaterialStorageManagement> selectApsMaterialStorageManagementList(ApsMaterialStorageManagement apsMaterialStorageManagement); |
| | | |
| | | /** |
| | | * æ°å¢ç©æåºå管ç |
| | | * |
| | | * @param apsMaterialStorageManagement ç©æåºå管ç |
| | | * @return ç»æ |
| | | */ |
| | | public int insertApsMaterialStorageManagement(ApsMaterialStorageManagement apsMaterialStorageManagement); |
| | | |
| | | /** |
| | | * ä¿®æ¹ç©æåºå管ç |
| | | * |
| | | * @param apsMaterialStorageManagement ç©æåºå管ç |
| | | * @return ç»æ |
| | | */ |
| | | public int updateApsMaterialStorageManagement(ApsMaterialStorageManagement apsMaterialStorageManagement); |
| | | |
| | | /** |
| | | * å é¤ç©æåºå管ç |
| | | * |
| | | * @param id ç©æåºå管çä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteApsMaterialStorageManagementById(String id); |
| | | |
| | | /** |
| | | * æ¹éå é¤ç©æåºå管ç |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteApsMaterialStorageManagementByIds(String[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.aps.core.service; |
| | | |
| | | import java.util.List; |
| | | import com.aps.core.domain.ApsMaterialManagement; |
| | | |
| | | /** |
| | | * ç©æç®¡çServiceæ¥å£ |
| | | * |
| | | * @author dingYang |
| | | * @date 2025-04-17 |
| | | */ |
| | | public interface IApsMaterialManagementService |
| | | { |
| | | /** |
| | | * æ¥è¯¢ç©æç®¡ç |
| | | * |
| | | * @param id ç©æç®¡çä¸»é® |
| | | * @return ç©æç®¡ç |
| | | */ |
| | | public ApsMaterialManagement selectApsMaterialManagementById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ç©æç®¡çå表 |
| | | * |
| | | * @param apsMaterialManagement ç©æç®¡ç |
| | | * @return ç©æç®¡çéå |
| | | */ |
| | | public List<ApsMaterialManagement> selectApsMaterialManagementList(ApsMaterialManagement apsMaterialManagement); |
| | | |
| | | /** |
| | | * æ°å¢ç©æç®¡ç |
| | | * |
| | | * @param apsMaterialManagement ç©æç®¡ç |
| | | * @return ç»æ |
| | | */ |
| | | public int insertApsMaterialManagement(ApsMaterialManagement apsMaterialManagement); |
| | | |
| | | /** |
| | | * ä¿®æ¹ç©æç®¡ç |
| | | * |
| | | * @param apsMaterialManagement ç©æç®¡ç |
| | | * @return ç»æ |
| | | */ |
| | | public int updateApsMaterialManagement(ApsMaterialManagement apsMaterialManagement); |
| | | |
| | | /** |
| | | * æ¹éå é¤ç©æç®¡ç |
| | | * |
| | | * @param ids éè¦å é¤çç©æç®¡ç主é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteApsMaterialManagementByIds(String[] ids); |
| | | |
| | | /** |
| | | * å é¤ç©æç®¡çä¿¡æ¯ |
| | | * |
| | | * @param id ç©æç®¡çä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteApsMaterialManagementById(String id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.aps.core.service; |
| | | |
| | | import java.util.List; |
| | | import com.aps.core.domain.ApsMaterialStorageManagement; |
| | | |
| | | /** |
| | | * ç©æåºå管çServiceæ¥å£ |
| | | * |
| | | * @author dingYang |
| | | * @date 2025-04-17 |
| | | */ |
| | | public interface IApsMaterialStorageManagementService |
| | | { |
| | | /** |
| | | * æ¥è¯¢ç©æåºå管ç |
| | | * |
| | | * @param id ç©æåºå管çä¸»é® |
| | | * @return ç©æåºå管ç |
| | | */ |
| | | public ApsMaterialStorageManagement selectApsMaterialStorageManagementById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ç©æåºå管çå表 |
| | | * |
| | | * @param apsMaterialStorageManagement ç©æåºå管ç |
| | | * @return ç©æåºå管çéå |
| | | */ |
| | | public List<ApsMaterialStorageManagement> selectApsMaterialStorageManagementList(ApsMaterialStorageManagement apsMaterialStorageManagement); |
| | | |
| | | /** |
| | | * æ°å¢ç©æåºå管ç |
| | | * |
| | | * @param apsMaterialStorageManagement ç©æåºå管ç |
| | | * @return ç»æ |
| | | */ |
| | | public int insertApsMaterialStorageManagement(ApsMaterialStorageManagement apsMaterialStorageManagement); |
| | | |
| | | /** |
| | | * ä¿®æ¹ç©æåºå管ç |
| | | * |
| | | * @param apsMaterialStorageManagement ç©æåºå管ç |
| | | * @return ç»æ |
| | | */ |
| | | public int updateApsMaterialStorageManagement(ApsMaterialStorageManagement apsMaterialStorageManagement); |
| | | |
| | | /** |
| | | * æ¹éå é¤ç©æåºå管ç |
| | | * |
| | | * @param ids éè¦å é¤çç©æåºå管ç主é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteApsMaterialStorageManagementByIds(String[] ids); |
| | | |
| | | /** |
| | | * å é¤ç©æåºå管çä¿¡æ¯ |
| | | * |
| | | * @param id ç©æåºå管çä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteApsMaterialStorageManagementById(String id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.aps.core.service.impl; |
| | | |
| | | import java.util.List; |
| | | import com.aps.common.core.utils.DateUtils; |
| | | import com.aps.core.mapper.ApsMaterialManagementMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.aps.core.domain.ApsMaterialManagement; |
| | | import com.aps.core.service.IApsMaterialManagementService; |
| | | |
| | | /** |
| | | * ç©æç®¡çServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author dingYang |
| | | * @date 2025-04-17 |
| | | */ |
| | | @Service |
| | | public class ApsMaterialManagementServiceImpl implements IApsMaterialManagementService |
| | | { |
| | | @Autowired |
| | | private ApsMaterialManagementMapper apsMaterialManagementMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢ç©æç®¡ç |
| | | * |
| | | * @param id ç©æç®¡çä¸»é® |
| | | * @return ç©æç®¡ç |
| | | */ |
| | | @Override |
| | | public ApsMaterialManagement selectApsMaterialManagementById(String id) |
| | | { |
| | | return apsMaterialManagementMapper.selectApsMaterialManagementById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢ç©æç®¡çå表 |
| | | * |
| | | * @param apsMaterialManagement ç©æç®¡ç |
| | | * @return ç©æç®¡ç |
| | | */ |
| | | @Override |
| | | public List<ApsMaterialManagement> selectApsMaterialManagementList(ApsMaterialManagement apsMaterialManagement) |
| | | { |
| | | return apsMaterialManagementMapper.selectApsMaterialManagementList(apsMaterialManagement); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ç©æç®¡ç |
| | | * |
| | | * @param apsMaterialManagement ç©æç®¡ç |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertApsMaterialManagement(ApsMaterialManagement apsMaterialManagement) |
| | | { |
| | | apsMaterialManagement.setCreateTime(DateUtils.getNowDate()); |
| | | return apsMaterialManagementMapper.insertApsMaterialManagement(apsMaterialManagement); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ç©æç®¡ç |
| | | * |
| | | * @param apsMaterialManagement ç©æç®¡ç |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateApsMaterialManagement(ApsMaterialManagement apsMaterialManagement) |
| | | { |
| | | apsMaterialManagement.setUpdateTime(DateUtils.getNowDate()); |
| | | return apsMaterialManagementMapper.updateApsMaterialManagement(apsMaterialManagement); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ç©æç®¡ç |
| | | * |
| | | * @param ids éè¦å é¤çç©æç®¡çä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteApsMaterialManagementByIds(String[] ids) |
| | | { |
| | | return apsMaterialManagementMapper.deleteApsMaterialManagementByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ç©æç®¡çä¿¡æ¯ |
| | | * |
| | | * @param id ç©æç®¡çä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteApsMaterialManagementById(String id) |
| | | { |
| | | return apsMaterialManagementMapper.deleteApsMaterialManagementById(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.ApsMaterialStorageManagementMapper; |
| | | import com.aps.core.domain.ApsMaterialStorageManagement; |
| | | import com.aps.core.service.IApsMaterialStorageManagementService; |
| | | |
| | | /** |
| | | * ç©æåºå管çServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author dingYang |
| | | * @date 2025-04-17 |
| | | */ |
| | | @Service |
| | | public class ApsMaterialStorageManagementServiceImpl implements IApsMaterialStorageManagementService |
| | | { |
| | | @Autowired |
| | | private ApsMaterialStorageManagementMapper apsMaterialStorageManagementMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢ç©æåºå管ç |
| | | * |
| | | * @param id ç©æåºå管çä¸»é® |
| | | * @return ç©æåºå管ç |
| | | */ |
| | | @Override |
| | | public ApsMaterialStorageManagement selectApsMaterialStorageManagementById(String id) |
| | | { |
| | | return apsMaterialStorageManagementMapper.selectApsMaterialStorageManagementById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢ç©æåºå管çå表 |
| | | * |
| | | * @param apsMaterialStorageManagement ç©æåºå管ç |
| | | * @return ç©æåºå管ç |
| | | */ |
| | | @Override |
| | | public List<ApsMaterialStorageManagement> selectApsMaterialStorageManagementList(ApsMaterialStorageManagement apsMaterialStorageManagement) |
| | | { |
| | | return apsMaterialStorageManagementMapper.selectApsMaterialStorageManagementList(apsMaterialStorageManagement); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ç©æåºå管ç |
| | | * |
| | | * @param apsMaterialStorageManagement ç©æåºå管ç |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertApsMaterialStorageManagement(ApsMaterialStorageManagement apsMaterialStorageManagement) |
| | | { |
| | | apsMaterialStorageManagement.setCreateTime(DateUtils.getNowDate()); |
| | | return apsMaterialStorageManagementMapper.insertApsMaterialStorageManagement(apsMaterialStorageManagement); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ç©æåºå管ç |
| | | * |
| | | * @param apsMaterialStorageManagement ç©æåºå管ç |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateApsMaterialStorageManagement(ApsMaterialStorageManagement apsMaterialStorageManagement) |
| | | { |
| | | apsMaterialStorageManagement.setUpdateTime(DateUtils.getNowDate()); |
| | | return apsMaterialStorageManagementMapper.updateApsMaterialStorageManagement(apsMaterialStorageManagement); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ç©æåºå管ç |
| | | * |
| | | * @param ids éè¦å é¤çç©æåºå管çä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteApsMaterialStorageManagementByIds(String[] ids) |
| | | { |
| | | return apsMaterialStorageManagementMapper.deleteApsMaterialStorageManagementByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ç©æåºå管çä¿¡æ¯ |
| | | * |
| | | * @param id ç©æåºå管çä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteApsMaterialStorageManagementById(String id) |
| | | { |
| | | return apsMaterialStorageManagementMapper.deleteApsMaterialStorageManagementById(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.ApsMaterialManagementMapper"> |
| | | |
| | | <resultMap type="ApsMaterialManagement" id="ApsMaterialManagementResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="itemNumber" column="item_number" /> |
| | | <result property="materialDescription" column="material_description" /> |
| | | <result property="materialStatus" column="material_status" /> |
| | | <result property="materialType" column="material_type" /> |
| | | <result property="professionalAffiliation" column="professional_affiliation" /> |
| | | <result property="drawingNo" column="drawing_no" /> |
| | | <result property="versionNumber" column="version_number" /> |
| | | <result property="advanceProductionDays" column="advance_production_days" /> |
| | | <result property="splitBatch" column="split_batch" /> |
| | | <result property="selfMade" column="self_made" /> |
| | | <result property="applicableFactories" column="applicable_factories" /> |
| | | <result property="applicableWorkshop" column="applicable_workshop" /> |
| | | <result property="effectiveDate" column="effective_date" /> |
| | | <result property="expiringDate" column="expiring_date" /> |
| | | <result property="integrationDate" column="integration_date" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectApsMaterialManagementVo"> |
| | | select id, item_number, material_description, material_status, material_type, professional_affiliation, drawing_no, version_number, advance_production_days, split_batch, self_made, applicable_factories, applicable_workshop, effective_date, expiring_date, integration_date, create_by, create_time, update_by, update_time from aps_material_management |
| | | </sql> |
| | | |
| | | <select id="selectApsMaterialManagementList" parameterType="ApsMaterialManagement" resultMap="ApsMaterialManagementResult"> |
| | | <include refid="selectApsMaterialManagementVo"/> |
| | | <where> |
| | | <if test="itemNumber != null "> and item_number = #{itemNumber}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectApsMaterialManagementById" parameterType="String" resultMap="ApsMaterialManagementResult"> |
| | | <include refid="selectApsMaterialManagementVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertApsMaterialManagement" parameterType="ApsMaterialManagement"> |
| | | insert into aps_material_management |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="itemNumber != null">item_number,</if> |
| | | <if test="materialDescription != null">material_description,</if> |
| | | <if test="materialStatus != null">material_status,</if> |
| | | <if test="materialType != null">material_type,</if> |
| | | <if test="professionalAffiliation != null">professional_affiliation,</if> |
| | | <if test="drawingNo != null">drawing_no,</if> |
| | | <if test="versionNumber != null">version_number,</if> |
| | | <if test="advanceProductionDays != null">advance_production_days,</if> |
| | | <if test="splitBatch != null">split_batch,</if> |
| | | <if test="selfMade != null">self_made,</if> |
| | | <if test="applicableFactories != null">applicable_factories,</if> |
| | | <if test="applicableWorkshop != null">applicable_workshop,</if> |
| | | <if test="effectiveDate != null">effective_date,</if> |
| | | <if test="expiringDate != null">expiring_date,</if> |
| | | <if test="integrationDate != null">integration_date,</if> |
| | | <if test="createBy != null">create_by,</if> |
| | | <if test="createTime != null">create_time,</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="itemNumber != null">#{itemNumber},</if> |
| | | <if test="materialDescription != null">#{materialDescription},</if> |
| | | <if test="materialStatus != null">#{materialStatus},</if> |
| | | <if test="materialType != null">#{materialType},</if> |
| | | <if test="professionalAffiliation != null">#{professionalAffiliation},</if> |
| | | <if test="drawingNo != null">#{drawingNo},</if> |
| | | <if test="versionNumber != null">#{versionNumber},</if> |
| | | <if test="advanceProductionDays != null">#{advanceProductionDays},</if> |
| | | <if test="splitBatch != null">#{splitBatch},</if> |
| | | <if test="selfMade != null">#{selfMade},</if> |
| | | <if test="applicableFactories != null">#{applicableFactories},</if> |
| | | <if test="applicableWorkshop != null">#{applicableWorkshop},</if> |
| | | <if test="effectiveDate != null">#{effectiveDate},</if> |
| | | <if test="expiringDate != null">#{expiringDate},</if> |
| | | <if test="integrationDate != null">#{integrationDate},</if> |
| | | <if test="createBy != null">#{createBy},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateApsMaterialManagement" parameterType="ApsMaterialManagement"> |
| | | update aps_material_management |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="itemNumber != null">item_number = #{itemNumber},</if> |
| | | <if test="materialDescription != null">material_description = #{materialDescription},</if> |
| | | <if test="materialStatus != null">material_status = #{materialStatus},</if> |
| | | <if test="materialType != null">material_type = #{materialType},</if> |
| | | <if test="professionalAffiliation != null">professional_affiliation = #{professionalAffiliation},</if> |
| | | <if test="drawingNo != null">drawing_no = #{drawingNo},</if> |
| | | <if test="versionNumber != null">version_number = #{versionNumber},</if> |
| | | <if test="advanceProductionDays != null">advance_production_days = #{advanceProductionDays},</if> |
| | | <if test="splitBatch != null">split_batch = #{splitBatch},</if> |
| | | <if test="selfMade != null">self_made = #{selfMade},</if> |
| | | <if test="applicableFactories != null">applicable_factories = #{applicableFactories},</if> |
| | | <if test="applicableWorkshop != null">applicable_workshop = #{applicableWorkshop},</if> |
| | | <if test="effectiveDate != null">effective_date = #{effectiveDate},</if> |
| | | <if test="expiringDate != null">expiring_date = #{expiringDate},</if> |
| | | <if test="integrationDate != null">integration_date = #{integrationDate},</if> |
| | | <if test="createBy != null">create_by = #{createBy},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteApsMaterialManagementById" parameterType="String"> |
| | | delete from aps_material_management where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteApsMaterialManagementByIds" parameterType="String"> |
| | | delete from aps_material_management 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.ApsMaterialStorageManagementMapper"> |
| | | |
| | | <resultMap type="ApsMaterialStorageManagement" id="ApsMaterialStorageManagementResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="itemNumber" column="item_number" /> |
| | | <result property="num" column="num" /> |
| | | <result property="applicableFactories" column="applicable_factories" /> |
| | | <result property="integrationDate" column="integration_date" /> |
| | | <result property="refreshDate" column="refresh_date" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectApsMaterialStorageManagementVo"> |
| | | select id, item_number, num, applicable_factories, integration_date, refresh_date, create_by, create_time, update_by, update_time from aps_material_storage_management |
| | | </sql> |
| | | |
| | | <select id="selectApsMaterialStorageManagementList" parameterType="ApsMaterialStorageManagement" resultMap="ApsMaterialStorageManagementResult"> |
| | | <include refid="selectApsMaterialStorageManagementVo"/> |
| | | <where> |
| | | <if test="itemNumber != null and itemNumber != ''"> and item_number = #{itemNumber}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectApsMaterialStorageManagementById" parameterType="String" resultMap="ApsMaterialStorageManagementResult"> |
| | | <include refid="selectApsMaterialStorageManagementVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertApsMaterialStorageManagement" parameterType="ApsMaterialStorageManagement"> |
| | | insert into aps_material_storage_management |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="itemNumber != null">item_number,</if> |
| | | <if test="num != null">num,</if> |
| | | <if test="applicableFactories != null">applicable_factories,</if> |
| | | <if test="integrationDate != null">integration_date,</if> |
| | | <if test="refreshDate != null">refresh_date,</if> |
| | | <if test="createBy != null">create_by,</if> |
| | | <if test="createTime != null">create_time,</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="itemNumber != null">#{itemNumber},</if> |
| | | <if test="num != null">#{num},</if> |
| | | <if test="applicableFactories != null">#{applicableFactories},</if> |
| | | <if test="integrationDate != null">#{integrationDate},</if> |
| | | <if test="refreshDate != null">#{refreshDate},</if> |
| | | <if test="createBy != null">#{createBy},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateApsMaterialStorageManagement" parameterType="ApsMaterialStorageManagement"> |
| | | update aps_material_storage_management |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="itemNumber != null">item_number = #{itemNumber},</if> |
| | | <if test="num != null">num = #{num},</if> |
| | | <if test="applicableFactories != null">applicable_factories = #{applicableFactories},</if> |
| | | <if test="integrationDate != null">integration_date = #{integrationDate},</if> |
| | | <if test="refreshDate != null">refresh_date = #{refreshDate},</if> |
| | | <if test="createBy != null">create_by = #{createBy},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteApsMaterialStorageManagementById" parameterType="String"> |
| | | delete from aps_material_storage_management where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteApsMaterialStorageManagementByIds" parameterType="String"> |
| | | delete from aps_material_storage_management where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | |
| | | <select id="selectApsPlantList" parameterType="ApsPlant" resultMap="ApsPlantResult"> |
| | | <include refid="selectApsPlantVo"/> |
| | | <where> |
| | | <if test="plantName != null and plantName != ''"> and plant_name like '%' || #{plantName} || '%'</if> |
| | | <if test="plantCode != null and plantCode != ''"> and plant_code like '%' || #{plantCode} || '%'</if> |
| | | <if test="plantName != null and plantName != ''"> and plant_name = #{plantName}</if> |
| | | <if test="plantCode != null and plantCode != ''"> and plant_code = #{plantCode}</if> |
| | | <if test="status != null and status != ''"> and status = #{status}</if> |
| | | </where> |
| | | </select> |
| | |
| | | <select id="selectApsShopList" parameterType="ApsShop" resultMap="ApsShopResult"> |
| | | <include refid="selectApsShopVo"/> |
| | | <where> |
| | | <if test="shopName != null and shopName != ''"> and shop_name like concat('%', #{shopName}, '%')</if> |
| | | <if test="shopCode != null and shopCode != ''"> and shop_code like concat('%', #{shopCode}, '%')</if> |
| | | <if test="shopName != null and shopName != ''"> and shop_name = #{shopName}</if> |
| | | <if test="shopCode != null and shopCode != ''"> and shop_code = #{shopCode}</if> |
| | | <if test="plantCode != null and plantCode != ''"> and plant_code = #{plantCode}</if> |
| | | <if test="status != null and status != ''"> and status = #{status}</if> |
| | | </where> |