From 4243d2e464255dea5c2562c3ed07247a655df05e Mon Sep 17 00:00:00 2001 From: Ledo Date: Mon, 10 Feb 2025 14:06:42 +0800 Subject: [PATCH 01/22] =?UTF-8?q?=E6=8F=90=E9=86=92=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bdgzsomthing/bdgzsomthingMapper.java | 104 +++++++++++++----- .../bdgzsomthing/bdgzsomthingServiceImpl.java | 17 ++- .../bdgzsomthing/bdgzsomthingMapper.xml | 2 + 3 files changed, 88 insertions(+), 35 deletions(-) diff --git a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/dal/mysql/bdgzsomthing/bdgzsomthingMapper.java b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/dal/mysql/bdgzsomthing/bdgzsomthingMapper.java index ad918f1..bf97b73 100644 --- a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/dal/mysql/bdgzsomthing/bdgzsomthingMapper.java +++ b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/dal/mysql/bdgzsomthing/bdgzsomthingMapper.java @@ -6,6 +6,7 @@ import com.chanko.yunxi.mes.framework.mybatis.core.query.LambdaQueryWrapperX; import com.chanko.yunxi.mes.module.heli.controller.admin.bdgzsomthing.vo.bdgzsomthingPageReqVO; import com.chanko.yunxi.mes.module.heli.dal.dataobject.bdgzsomthing.bdgzsomthingDO; import com.chanko.yunxi.mes.module.heli.dal.dataobject.storagelogNow.StorageLogNowDO; +import com.github.yulichang.query.MPJLambdaQueryWrapper; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; @@ -21,35 +22,80 @@ public interface bdgzsomthingMapper extends BaseMapperX { List selectPagelist(bdgzsomthingDO BdgzsomthingDO); default PageResult selectPage(bdgzsomthingPageReqVO reqVO) { - return selectPage(reqVO, new LambdaQueryWrapperX() - .betweenIfPresent(bdgzsomthingDO::getCreateTime, reqVO.getCreateTime()) - .eqIfPresent(bdgzsomthingDO::getClick, reqVO.getClick()) - .eqIfPresent(bdgzsomthingDO::getClickid, reqVO.getClickid()) - .likeIfPresent(bdgzsomthingDO::getThingname, reqVO.getThingname()) - .eqIfPresent(bdgzsomthingDO::getThings, reqVO.getThings()) - .eqIfPresent(bdgzsomthingDO::getLevel, reqVO.getLevel()) -// .likeIfPresent(bdgzsomthingDO::getShowname, reqVO.getShowname()) - .eqIfPresent(bdgzsomthingDO::getDborgz, reqVO.getDborgz()) - .eqIfPresent(bdgzsomthingDO::getYesorno, reqVO.getYesorno()) - .eqIfPresent(bdgzsomthingDO::getAttr1, reqVO.getAttr1()) - .eqIfPresent(bdgzsomthingDO::getAttr2, reqVO.getAttr2()) - .eqIfPresent(bdgzsomthingDO::getAttr3, reqVO.getAttr3()) - .eqIfPresent(bdgzsomthingDO::getAttr4, "0") - .eqIfPresent(bdgzsomthingDO::getAttr5, reqVO.getAttr5()) - .betweenIfPresent(bdgzsomthingDO::getClicktime, reqVO.getClicktime()) - .betweenIfPresent(bdgzsomthingDO::getNowtime, reqVO.getNowtime()) - .eqIfPresent(bdgzsomthingDO::getAttr6, reqVO.getAttr6()) - .eqIfPresent(bdgzsomthingDO::getAttr7, reqVO.getAttr7()) - .eqIfPresent(bdgzsomthingDO::getAttr8, reqVO.getAttr8()) - .eqIfPresent(bdgzsomthingDO::getAttr9, reqVO.getAttr9()) - .eqIfPresent(bdgzsomthingDO::getAttr10, reqVO.getAttr10()) - .eqIfPresent(bdgzsomthingDO::getAttr11, reqVO.getAttr11()) - .eqIfPresent(bdgzsomthingDO::getAttr12, reqVO.getAttr12()) - .eqIfPresent(bdgzsomthingDO::getAttr13, reqVO.getAttr13()) - .eqIfPresent(bdgzsomthingDO::getAttr14, reqVO.getAttr14()) - .eqIfPresent(bdgzsomthingDO::getAttr15, reqVO.getAttr15()) - .ne(bdgzsomthingDO::getAttr12,1) - .orderByDesc(bdgzsomthingDO::getId)); + MPJLambdaQueryWrapper query = new MPJLambdaQueryWrapper<>(); + if (reqVO.getCreateTime() != null) { + query.apply("create_time BETWEEN {0} AND {1}", reqVO.getCreateTime()[0], reqVO.getCreateTime()[1]); + } + + if (reqVO.getClick() != null) { + query.eq(bdgzsomthingDO::getClick, reqVO.getClick()); + } + + if (reqVO.getClickid() != null) { + query.eq(bdgzsomthingDO::getClickid, reqVO.getClickid()); + } + + if (reqVO.getThingname() != null) { + query.like(bdgzsomthingDO::getThingname, reqVO.getThingname()); + } + + if (reqVO.getThings() != null) { + query.eq(bdgzsomthingDO::getThings, reqVO.getThings()); + } + + if (reqVO.getLevel() != null) { + query.eq(bdgzsomthingDO::getLevel, reqVO.getLevel()); + } + + if (reqVO.getDborgz() != null) { + query.eq(bdgzsomthingDO::getDborgz, reqVO.getDborgz()); + } + + if (reqVO.getYesorno() != null) { + query.eq(bdgzsomthingDO::getYesorno, reqVO.getYesorno()); + } + + if (reqVO.getAttr1() != null) { + query.eq(bdgzsomthingDO::getAttr1, reqVO.getAttr1()); + } + +// ... 同样的逻辑应用于其他属性 ... + + if (reqVO.getAttr15() != null) { + query.eq(bdgzsomthingDO::getAttr15, reqVO.getAttr15()); + } + + query.ne(bdgzsomthingDO::getAttr12, "1"); + query.orderByDesc(bdgzsomthingDO::getId); +// return selectPage(reqVO, new LambdaQueryWrapperX() +// .betweenIfPresent(bdgzsomthingDO::getCreateTime, reqVO.getCreateTime()) +// .eqIfPresent(bdgzsomthingDO::getClick, reqVO.getClick()) +// .eqIfPresent(bdgzsomthingDO::getClickid, reqVO.getClickid()) +// .likeIfPresent(bdgzsomthingDO::getThingname, reqVO.getThingname()) +// .eqIfPresent(bdgzsomthingDO::getThings, reqVO.getThings()) +// .eqIfPresent(bdgzsomthingDO::getLevel, reqVO.getLevel()) +//// .likeIfPresent(bdgzsomthingDO::getShowname, reqVO.getShowname()) +// .eqIfPresent(bdgzsomthingDO::getDborgz, reqVO.getDborgz()) +// .eqIfPresent(bdgzsomthingDO::getYesorno, reqVO.getYesorno()) +// .eqIfPresent(bdgzsomthingDO::getAttr1, reqVO.getAttr1()) +// .eqIfPresent(bdgzsomthingDO::getAttr2, reqVO.getAttr2()) +// .eqIfPresent(bdgzsomthingDO::getAttr3, reqVO.getAttr3()) +// .eqIfPresent(bdgzsomthingDO::getAttr4, "0") +// .eqIfPresent(bdgzsomthingDO::getAttr5, reqVO.getAttr5()) +// .betweenIfPresent(bdgzsomthingDO::getClicktime, reqVO.getClicktime()) +// .betweenIfPresent(bdgzsomthingDO::getNowtime, reqVO.getNowtime()) +// .eqIfPresent(bdgzsomthingDO::getAttr6, reqVO.getAttr6()) +// .eqIfPresent(bdgzsomthingDO::getAttr7, reqVO.getAttr7()) +// .eqIfPresent(bdgzsomthingDO::getAttr8, reqVO.getAttr8()) +// .eqIfPresent(bdgzsomthingDO::getAttr9, reqVO.getAttr9()) +// .eqIfPresent(bdgzsomthingDO::getAttr10, reqVO.getAttr10()) +// .eqIfPresent(bdgzsomthingDO::getAttr11, reqVO.getAttr11()) +// .eqIfPresent(bdgzsomthingDO::getAttr12, reqVO.getAttr12()) +// .eqIfPresent(bdgzsomthingDO::getAttr13, reqVO.getAttr13()) +// .eqIfPresent(bdgzsomthingDO::getAttr14, reqVO.getAttr14()) +// .eqIfPresent(bdgzsomthingDO::getAttr15, reqVO.getAttr15()) +// .orderByDesc(bdgzsomthingDO::getId)); + return selectPage(reqVO,query); } void updatebdgzsomthingbyid(bdgzsomthingDO BdgzsomthingDO); diff --git a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/service/bdgzsomthing/bdgzsomthingServiceImpl.java b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/service/bdgzsomthing/bdgzsomthingServiceImpl.java index 1761ef5..5aea9ef 100644 --- a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/service/bdgzsomthing/bdgzsomthingServiceImpl.java +++ b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/service/bdgzsomthing/bdgzsomthingServiceImpl.java @@ -216,6 +216,7 @@ public class bdgzsomthingServiceImpl implements bdgzsomthingService { public List getbdgzsomthingPagelist(bdgzsomthingPageReqVO pageReqVO) { bdgzsomthingDO BdgzsomthingDO = new bdgzsomthingDO(); BdgzsomthingDO.setClick(pageReqVO.getClick()); + return bdgzsomthingMapper.selectPagelist(BdgzsomthingDO); } @Override @@ -897,17 +898,19 @@ public class bdgzsomthingServiceImpl implements bdgzsomthingService { }else{ if (hasRemindTimeSafeStorage){ LocalDate today = LocalDate.now(); - List updateBatch = new ArrayList<>(); +// List updateBatch = new ArrayList<>(); for (bdgzsomthingDO bdgzsomthingDO : selecteqint) { LocalDate updatetime = bdgzsomthingDO.getUpdateTime().toLocalDate(); // 计算两个日期之间的天数差 long daysBetween = ChronoUnit.DAYS.between(updatetime, today); if (daysBetween == Long.valueOf(remindTimeSafe)){ bdgzsomthingDO.setAttr12("0"); - updateBatch.add(bdgzsomthingDO); + bdgzsomthingDO.setYesorno("0"); + bdgzsomthingMapper.updateById(bdgzsomthingDO); +// updateBatch.add(bdgzsomthingDO); } } - bdgzsomthingMapper.updateBatch(updateBatch); +// bdgzsomthingMapper.updateBatch(updateBatch); } } @@ -973,17 +976,19 @@ public class bdgzsomthingServiceImpl implements bdgzsomthingService { if(CollUtil.isNotEmpty(selecteqint)){ if (hasRemindTimeSafeStorage){ LocalDate today = LocalDate.now(); - List updateBatch = new ArrayList<>(); +// List updateBatch = new ArrayList<>(); for (bdgzsomthingDO bdgzsomthingDO : selecteqint) { LocalDate updatetime = bdgzsomthingDO.getUpdateTime().toLocalDate(); // 计算两个日期之间的天数差 long daysBetween = ChronoUnit.DAYS.between(updatetime, today); if (daysBetween == Long.valueOf(remindTimeSafe)){ bdgzsomthingDO.setAttr12("0"); - updateBatch.add(bdgzsomthingDO); + bdgzsomthingDO.setYesorno("0"); + bdgzsomthingMapper.updateById(bdgzsomthingDO); +// updateBatch.add(bdgzsomthingDO); } } - bdgzsomthingMapper.updateBatch(updateBatch); +// bdgzsomthingMapper.updateBatch(updateBatch); } }else{ //插入方法 diff --git a/mes-module-heli/mes-module-heli-biz/src/main/resources/mapper/bdgzsomthing/bdgzsomthingMapper.xml b/mes-module-heli/mes-module-heli-biz/src/main/resources/mapper/bdgzsomthing/bdgzsomthingMapper.xml index ccb8ef9..4632458 100644 --- a/mes-module-heli/mes-module-heli-biz/src/main/resources/mapper/bdgzsomthing/bdgzsomthingMapper.xml +++ b/mes-module-heli/mes-module-heli-biz/src/main/resources/mapper/bdgzsomthing/bdgzsomthingMapper.xml @@ -101,6 +101,8 @@ and click =#{click} + and + (attr12 = 0 or attr12 is null) ORDER BY CASE level From d92f3feff59cd1a2cc4ab8244c8a17197c895601 Mon Sep 17 00:00:00 2001 From: Ledo Date: Mon, 10 Feb 2025 17:08:40 +0800 Subject: [PATCH 02/22] =?UTF-8?q?=E6=8F=90=E9=86=92=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E9=80=BB=E8=BE=91=E5=8F=8A=E5=85=A5=E5=BA=93?= =?UTF-8?q?=E6=97=B6=E6=A3=80=E6=9F=A5=E5=AE=89=E5=85=A8=E5=BA=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../storagemat/StorageMatController.java | 56 +++++++++++++++++-- .../storagemat/vo/StorageMatSaveReqVO.java | 1 + .../bdgzsomthing/bdgzsomthingMapper.java | 11 ++++ .../mysql/storagelog/StorageLogNowMapper.java | 1 + .../bdgzsomthing/bdgzsomthingService.java | 2 + .../bdgzsomthing/bdgzsomthingServiceImpl.java | 7 +++ .../bdgzsomthing/bdgzsomthingMapper.xml | 1 + .../deliverorder/DeliverOrderMapper.xml | 4 +- .../mapper/storagelog/StorageLogNowMapper.xml | 36 ++++++++++++ 9 files changed, 113 insertions(+), 6 deletions(-) diff --git a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/controller/admin/storagemat/StorageMatController.java b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/controller/admin/storagemat/StorageMatController.java index a9fdef0..00377fc 100644 --- a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/controller/admin/storagemat/StorageMatController.java +++ b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/controller/admin/storagemat/StorageMatController.java @@ -2,12 +2,18 @@ package com.chanko.yunxi.mes.module.heli.controller.admin.storagemat; import cn.hutool.core.collection.CollUtil; import com.chanko.yunxi.mes.module.heli.controller.admin.storage.vo.StorageSaveReqVO; +import com.chanko.yunxi.mes.module.heli.dal.dataobject.bdgzsomthing.bdgzsomthingDO; import com.chanko.yunxi.mes.module.heli.dal.dataobject.deliverorder.DeliverOrderDO; import com.chanko.yunxi.mes.module.heli.dal.dataobject.serialnumber.SerialNumberDO; import com.chanko.yunxi.mes.module.heli.dal.dataobject.storage.StorageDO; import com.chanko.yunxi.mes.module.heli.dal.dataobject.storagelog.StorageLogDO; +import com.chanko.yunxi.mes.module.heli.dal.dataobject.storagelogNow.StorageLogNowDO; +import com.chanko.yunxi.mes.module.heli.dal.mysql.bdgzsomthing.bdgzsomthingMapper; import com.chanko.yunxi.mes.module.heli.dal.mysql.deliverorder.DeliverOrderMapper; +import com.chanko.yunxi.mes.module.heli.dal.mysql.storage.StorageMapper; +import com.chanko.yunxi.mes.module.heli.dal.mysql.storagelog.StorageLogNowMapper; import com.chanko.yunxi.mes.module.heli.enums.CodeEnum; +import com.chanko.yunxi.mes.module.heli.service.bdgzsomthing.bdgzsomthingService; import com.chanko.yunxi.mes.module.heli.service.serialnumber.SerialNumberService; import com.chanko.yunxi.mes.module.heli.service.storage.StorageService; import com.chanko.yunxi.mes.module.heli.service.storagelog.StorageLogService; @@ -55,7 +61,12 @@ public class StorageMatController { @Resource private StorageMatService storageMatService; - + @Resource + private StorageMapper storageMapper; + @Resource + private bdgzsomthingService bdgzsomthingService; + @Resource + private StorageLogNowMapper storageLogNowMapper; @Resource private SerialNumberService serialNumberService; @@ -86,12 +97,50 @@ public class StorageMatController { @Operation(summary = "批量创建入/出库物料") @PreAuthorize("@ss.hasPermission('heli:storage-mat:create')") public CommonResult createStorageMat(@Valid @RequestBody List createReqVO,@RequestParam("stockid") Long stockid) { - storageMatService.deleteStorageMatList(stockid); + List attr3List = new ArrayList<>(); for (StorageMatSaveReqVO item : createReqVO) { item.setId(null); + if (item.getMatCode()!=null){ + attr3List.add(item.getMatCode()); + } storageMatService.createStorageMat(item); } + //如果上面插入数据没报错 + StorageDO storageDO = storageMapper.selectById(stockid); + //查询入库单,因为要删待办 + if (storageDO.getStockType()==1){ + //如果是要入库,就要删除待办了 + //查有没有这个物料 + if (CollUtil.isNotEmpty(attr3List)){ + //查找待办中有提醒的 + List bdgzsomthingDOList = bdgzsomthingService.selectSafeStorage(attr3List); + if (CollUtil.isNotEmpty(bdgzsomthingDOList)){ + //如果有这个物料在提醒,就要看这次入库有没有满足需求,如果满足了,就删除提醒 + List matCodeInDb = bdgzsomthingDOList.stream() + .map(bdgzsomthingDO::getAttr3) + .collect(Collectors.toList()); + //查出来仍然满足条件的 这部分是不需要更新的 + List storageLogNowDOS = storageLogNowMapper.selectPagesmall2(matCodeInDb); + //更新不满足安全库存小于实时库存的,即不在storageLogNowDOS里面的 + Set matCodesInStorageLog = storageLogNowDOS.stream() + .map(StorageLogNowDO::getMatCode) + .collect(Collectors.toSet()); + // 过滤bdgzsomthingDOList,只保留attr3不在matCodesInStorageLog中的元素 + List filteredList = bdgzsomthingDOList.stream() + .filter(bdgzsomthingDO -> !matCodesInStorageLog.contains(bdgzsomthingDO.getAttr3())) + .collect(Collectors.toList()); + for (bdgzsomthingDO bdgzsomthingDO : filteredList) { + bdgzsomthingDO.setAttr4("1"); + bdgzsomthingDO.setAttr12("1"); + bdgzsomthingService.updateById(bdgzsomthingDO); + } + } + + + } + + } return success(1L); } @@ -143,8 +192,7 @@ public class StorageMatController { @Operation(summary = "导出入/出库物料 Excel") @PreAuthorize("@ss.hasPermission('heli:storage-mat:export')") @OperateLog(type = EXPORT) - public void exportStorageMatExcel(@Valid StorageMatPageReqVO pageReqVO, - HttpServletResponse response) throws IOException { + public void exportStorageMatExcel(@Valid StorageMatPageReqVO pageReqVO, HttpServletResponse response) throws IOException { pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE); List list = storageMatService.getStorageMatPage(pageReqVO); // 导出 Excel diff --git a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/controller/admin/storagemat/vo/StorageMatSaveReqVO.java b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/controller/admin/storagemat/vo/StorageMatSaveReqVO.java index ae3ae4a..6794e2a 100644 --- a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/controller/admin/storagemat/vo/StorageMatSaveReqVO.java +++ b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/controller/admin/storagemat/vo/StorageMatSaveReqVO.java @@ -22,6 +22,7 @@ public class StorageMatSaveReqVO { @NotNull(message = "物料 Id,对应 base_material表中的 Id 列不能为空") private Long matId; + private String matCode; @Schema(description = "仓库 Id,对应 wms_wh 表中的Id", requiredMode = Schema.RequiredMode.REQUIRED, example = "31860") @NotNull(message = "仓库 Id,对应 wms_wh 表中的Id不能为空") private Long whId; diff --git a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/dal/mysql/bdgzsomthing/bdgzsomthingMapper.java b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/dal/mysql/bdgzsomthing/bdgzsomthingMapper.java index bf97b73..6996437 100644 --- a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/dal/mysql/bdgzsomthing/bdgzsomthingMapper.java +++ b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/dal/mysql/bdgzsomthing/bdgzsomthingMapper.java @@ -114,4 +114,15 @@ public interface bdgzsomthingMapper extends BaseMapperX { int deleteByIdNew(@Param("id") Long id); int deleteByIdNew1(@Param("id") Long id); void deleteOrder(bdgzsomthingDO BdgzsomthingDO); + + default List selectSafeStorage(List attr3List){ + MPJLambdaQueryWrapper query = new MPJLambdaQueryWrapper<>(); + query.eq(bdgzsomthingDO::getAttr4,0) + .eq(bdgzsomthingDO::getThingname,"库存低于安全库存") + .in(bdgzsomthingDO::getAttr3,attr3List) + .eq(bdgzsomthingDO::getAttr12,"0").or( + e->e.isNull(bdgzsomthingDO::getAttr12) + ); + return selectList(query); + } } diff --git a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/dal/mysql/storagelog/StorageLogNowMapper.java b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/dal/mysql/storagelog/StorageLogNowMapper.java index 49129fc..e9a6567 100644 --- a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/dal/mysql/storagelog/StorageLogNowMapper.java +++ b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/dal/mysql/storagelog/StorageLogNowMapper.java @@ -28,6 +28,7 @@ public interface StorageLogNowMapper extends BaseMapperX { List selectPagesmall(Long id); List selectPagesmall1(); + List selectPagesmall2(List matCode); List selectPagesmallbyid(String id); default PageResult selectPage(StorageLogPageReqVO reqVO) { MPJLambdaWrapper query = new MPJLambdaWrapper<>(); diff --git a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/service/bdgzsomthing/bdgzsomthingService.java b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/service/bdgzsomthing/bdgzsomthingService.java index 11fe1fe..2e483a9 100644 --- a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/service/bdgzsomthing/bdgzsomthingService.java +++ b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/service/bdgzsomthing/bdgzsomthingService.java @@ -63,4 +63,6 @@ public interface bdgzsomthingService { void selectds(); public void selectSafeStorageAndDeliverOneYear(); + public List selectSafeStorage(List attr3List); + public int updateById(bdgzsomthingDO entity); } diff --git a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/service/bdgzsomthing/bdgzsomthingServiceImpl.java b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/service/bdgzsomthing/bdgzsomthingServiceImpl.java index 5aea9ef..b7b66b4 100644 --- a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/service/bdgzsomthing/bdgzsomthingServiceImpl.java +++ b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/service/bdgzsomthing/bdgzsomthingServiceImpl.java @@ -814,6 +814,13 @@ public class bdgzsomthingServiceImpl implements bdgzsomthingService { } + public int updateById(bdgzsomthingDO entity){ + return bdgzsomthingMapper.updateById(entity); + } + + public List selectSafeStorage(List attr3List){ + return bdgzsomthingMapper.selectSafeStorage(attr3List); + } /** *功能描述 安全库存和发货超一年 * @param diff --git a/mes-module-heli/mes-module-heli-biz/src/main/resources/mapper/bdgzsomthing/bdgzsomthingMapper.xml b/mes-module-heli/mes-module-heli-biz/src/main/resources/mapper/bdgzsomthing/bdgzsomthingMapper.xml index 4632458..1400e67 100644 --- a/mes-module-heli/mes-module-heli-biz/src/main/resources/mapper/bdgzsomthing/bdgzsomthingMapper.xml +++ b/mes-module-heli/mes-module-heli-biz/src/main/resources/mapper/bdgzsomthing/bdgzsomthingMapper.xml @@ -70,6 +70,7 @@ select * from dbzz_table where showname=#{showname} and attr3=#{attr3} and attr4='0' and click=#{click} and dborgz=#{dborgz} + + + + + +