diff --git a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpAllocationMapper.java b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpAllocationMapper.java index 4f16dc5..778e0a6 100644 --- a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpAllocationMapper.java +++ b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpAllocationMapper.java @@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.hnac.hzims.spare.entity.SpAllocationEntity; import com.hnac.hzims.spare.vo.SpAllocationVO; +import org.apache.ibatis.annotations.Param; import org.springblade.core.datascope.annotation.UserDataAuth; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; @@ -18,7 +19,7 @@ import java.util.Map; public interface SpAllocationMapper extends UserDataScopeBaseMapper { - String selectMaxCode(Map params); + String selectMaxCode(@Param(value = "params") Map params); /** * 分页列表 @@ -27,5 +28,5 @@ public interface SpAllocationMapper extends UserDataScopeBaseMapper selectPageList(IPage page, Map params); + List selectPageList(IPage page,@Param(value = "params") Map params); } diff --git a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpAllocationMapper.xml b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpAllocationMapper.xml index af3d899..efd0d92 100644 --- a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpAllocationMapper.xml +++ b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpAllocationMapper.xml @@ -23,8 +23,8 @@ select max(code) from wt_sp_allocation where DATE_FORMAT(CREATE_TIME, '%Y-%m-%d') = DATE_FORMAT(NOW(), '%Y-%m-%d') - - and OUT_WAREHOUSE_ID = #{warehouseId} + + and OUT_WAREHOUSE_ID = #{params.warehouseId} diff --git a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpReceiveMapper.java b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpReceiveMapper.java index a9fd803..8913eaa 100644 --- a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpReceiveMapper.java +++ b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpReceiveMapper.java @@ -1,9 +1,9 @@ package com.hnac.hzims.spare.mapper; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.hnac.hzims.spare.entity.SpReceiveEntity; import com.hnac.hzims.spare.vo.SpReceiveVO; +import org.apache.ibatis.annotations.Param; import org.springblade.core.datascope.annotation.UserDataAuth; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; @@ -17,7 +17,7 @@ import java.util.Map; */ public interface SpReceiveMapper extends UserDataScopeBaseMapper { - String selectMaxCode(Map params); + String selectMaxCode(@Param(value = "params") Map params); /** * 分页列表 * @param page @@ -25,5 +25,5 @@ public interface SpReceiveMapper extends UserDataScopeBaseMapper selectPageList(IPage page, Map params); + List selectPageList(IPage page,@Param(value = "params") Map params); } diff --git a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpReceiveMapper.xml b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpReceiveMapper.xml index b9f54bb..33fad88 100644 --- a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpReceiveMapper.xml +++ b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpReceiveMapper.xml @@ -24,8 +24,8 @@ select max(code) from wt_sp_receive where DATE_FORMAT(CREATE_TIME, '%Y-%m-%d') = DATE_FORMAT(NOW(), '%Y-%m-%d') - - and STORAGE_ROOM = #{warehouseId} + + and STORAGE_ROOM = #{params.warehouseId} diff --git a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpReceivesMapper.java b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpReceivesMapper.java index 3eca052..8af9ca0 100644 --- a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpReceivesMapper.java +++ b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpReceivesMapper.java @@ -1,9 +1,9 @@ package com.hnac.hzims.spare.mapper; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.hnac.hzims.spare.entity.SpReceivesEntity; import com.hnac.hzims.spare.vo.SpReceivesVO; +import org.apache.ibatis.annotations.Param; import org.springblade.core.datascope.annotation.UserDataAuth; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; @@ -17,8 +17,8 @@ import java.util.Map; */ public interface SpReceivesMapper extends UserDataScopeBaseMapper { - String selectMaxCode(Map params); + String selectMaxCode(@Param(value = "params") Map params); @UserDataAuth - List selectPageList(IPage page, Map params); + List selectPageList(IPage page,@Param(value = "params") Map params); } diff --git a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpReceivesMapper.xml b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpReceivesMapper.xml index 5cfb451..8b5f640 100644 --- a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpReceivesMapper.xml +++ b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpReceivesMapper.xml @@ -24,8 +24,8 @@ select max(code) from wt_sp_receives where DATE_FORMAT(CREATE_TIME, '%Y-%m-%d') = DATE_FORMAT(NOW(), '%Y-%m-%d') - - and STORAGE_ROOM = #{warehouseId} + + and STORAGE_ROOM = #{params.warehouseId} select * from wt_sp_record where is_deleted = 0 - - and BUSINESS_ID = #{businessId} + + and BUSINESS_ID = #{params.businessId} - - and SP_BASIC_ID = #{spBasicId} + + and SP_BASIC_ID = #{params.spBasicId} - - and WAREHOUSE_ID = #{warehouseId} + + and WAREHOUSE_ID = #{params.warehouseId} - - and TYPE = #{type} + + and TYPE = #{params.type} @@ -47,31 +47,31 @@ select * from wt_sp_record where is_deleted = 0 and (type = 1 or type = 5) - - and BUSINESS_ID = #{businessId} + + and BUSINESS_ID = #{params.businessId} - - and SP_BASIC_ID = #{spBasicId} + + and SP_BASIC_ID = #{params.spBasicId} - - and WAREHOUSE_ID = #{warehouseId} + + and WAREHOUSE_ID = #{params.warehouseId} diff --git a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpTicketRelationMapper.java b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpTicketRelationMapper.java index 22fa0c7..35474ba 100644 --- a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpTicketRelationMapper.java +++ b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpTicketRelationMapper.java @@ -2,6 +2,7 @@ package com.hnac.hzims.spare.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.hnac.hzims.spare.entity.SpTicketRelationEntity; +import org.apache.ibatis.annotations.Param; import org.springblade.core.datascope.annotation.UserDataAuth; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; @@ -15,12 +16,12 @@ public interface SpTicketRelationMapper extends UserDataScopeBaseMapper params); + Integer selectTotal(@Param(value = "params") Map params); /** * 删除工单与备件关系 * @param list * @return */ - void deleteSpTicketRelation(List list); + void deleteSpTicketRelation(@Param(value = "list") List list); } diff --git a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpTicketRelationMapper.xml b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpTicketRelationMapper.xml index 55192fb..b58c0d0 100644 --- a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpTicketRelationMapper.xml +++ b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpTicketRelationMapper.xml @@ -14,8 +14,8 @@ diff --git a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpWarehouseInMapper.java b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpWarehouseInMapper.java index 1b17999..9c4a5f3 100644 --- a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpWarehouseInMapper.java +++ b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpWarehouseInMapper.java @@ -1,9 +1,9 @@ package com.hnac.hzims.spare.mapper; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.hnac.hzims.spare.entity.SpWarehouseInEntity; import com.hnac.hzims.spare.vo.SpWarehouseInVO; +import org.apache.ibatis.annotations.Param; import org.springblade.core.datascope.annotation.UserDataAuth; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; @@ -17,7 +17,7 @@ import java.util.Map; */ public interface SpWarehouseInMapper extends UserDataScopeBaseMapper { - String selectMaxCode(Map params); + String selectMaxCode(@Param(value = "params") Map params); /** * 分页列表 * @param page @@ -25,8 +25,8 @@ public interface SpWarehouseInMapper extends UserDataScopeBaseMapper selectPageList(IPage page, Map params); + List selectPageList(IPage page,@Param(value = "params") Map params); - Integer selectByType(Long spBasicId,Integer type); + Integer selectByType(@Param(value = "spBasicId") Long spBasicId,@Param(value = "type") Integer type); } diff --git a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpWarehouseInMapper.xml b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpWarehouseInMapper.xml index 80ee565..e51a659 100644 --- a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpWarehouseInMapper.xml +++ b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpWarehouseInMapper.xml @@ -25,8 +25,8 @@ select max(code) from wt_sp_warehouse_in where DATE_FORMAT(CREATE_TIME, '%Y-%m-%d') = DATE_FORMAT(NOW(), '%Y-%m-%d') - - and STORAGE_ROOM = #{warehouseId} + + and STORAGE_ROOM = #{params.warehouseId} diff --git a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpWarehouseOutMapper.java b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpWarehouseOutMapper.java index 5927778..5b00250 100644 --- a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpWarehouseOutMapper.java +++ b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpWarehouseOutMapper.java @@ -3,6 +3,7 @@ package com.hnac.hzims.spare.mapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.hnac.hzims.spare.entity.SpWarehouseOutEntity; import com.hnac.hzims.spare.vo.SpWarehouseOutVO; +import org.apache.ibatis.annotations.Param; import org.springblade.core.datascope.annotation.UserDataAuth; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; @@ -16,7 +17,7 @@ import java.util.Map; */ public interface SpWarehouseOutMapper extends UserDataScopeBaseMapper { - String selectMaxCode(Map params); + String selectMaxCode(@Param(value = "params") Map params); /** * 分页列表 @@ -25,15 +26,15 @@ public interface SpWarehouseOutMapper extends UserDataScopeBaseMapper selectPageList(IPage page, Map params); + List selectPageList(IPage page,@Param(value = "params") Map params); @UserDataAuth - List selectListByCondition( Map params); + List selectListByCondition(@Param(value = "params") Map params); /** * 根据工单ID查询出库单编码 * @param ticketId * @return */ - String getReceiveCode(Long ticketId); + String getReceiveCode(@Param(value = "ticketId") Long ticketId); } diff --git a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpWarehouseOutMapper.xml b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpWarehouseOutMapper.xml index cbb373b..44142e3 100644 --- a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpWarehouseOutMapper.xml +++ b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpWarehouseOutMapper.xml @@ -25,8 +25,8 @@ select max(code) from wt_sp_warehouse_out where DATE_FORMAT(CREATE_TIME, '%Y-%m-%d') = DATE_FORMAT(NOW(), '%Y-%m-%d') - - and STORAGE_ROOM = #{warehouseId} + + and STORAGE_ROOM = #{params.warehouseId} @@ -93,32 +93,32 @@ wt_sp_warehouse_out wo JOIN wt_sp_warehouse sw ON wo.STORAGE_ROOM = sw.id WHERE wo.IS_DELETED = 0 - - and wo.code like concat('%',#{code},'%') + + and wo.code like concat('%',#{params.code},'%') - - and wo.type = #{type} + + and wo.type = #{params.type} - - and wo.status = #{status} + + and wo.status = #{params.status} - - and wo.CREATE_TIME #{createTime} + + and wo.CREATE_TIME #{params.createTime} - - and wo.CREATE_TIME = ]]> #{startDate} + + and wo.CREATE_TIME = ]]> #{params.startDate} - - and wo.CREATE_TIME #{endDate} + + and wo.CREATE_TIME #{params.endDate} - + and sw.AFFILIATED_UNIT in #{item} - - and wo.STORAGE_ROOM = #{warehouseId} + + and wo.STORAGE_ROOM = #{params.warehouseId} order by wo.CREATE_TIME desc diff --git a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/WtSpBasicMapper.java b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/WtSpBasicMapper.java index 2d619bf..58f27b4 100644 --- a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/WtSpBasicMapper.java +++ b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/WtSpBasicMapper.java @@ -7,7 +7,6 @@ import com.hnac.hzims.spare.vo.WtSpBasicVO; import org.apache.ibatis.annotations.Param; import org.springblade.core.datascope.annotation.UserDataAuth; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; -import org.springframework.web.bind.annotation.RequestParam; import java.util.List; import java.util.Map; @@ -24,14 +23,14 @@ public interface WtSpBasicMapper extends UserDataScopeBaseMapper selectBasicList(Map params); + List selectBasicList(@Param(value = "params") Map params); /** * 根据备件id查询备件已使用总数量 * @param params * @return */ - Integer selectTotal(Map params); + Integer selectTotal(@Param(value = "params") Map params); /** * 查询出库单数据 @@ -39,7 +38,7 @@ public interface WtSpBasicMapper extends UserDataScopeBaseMapper getOutList(Long spBasicId); + List getOutList(@Param(value = "spBasicId") Long spBasicId); /** * 查询归还单数据 @@ -47,7 +46,7 @@ public interface WtSpBasicMapper extends UserDataScopeBaseMapper getInList(Long spBasicId); + List getInList(@Param(value = "spBasicId") Long spBasicId); List sparePart(@Param("basicIds") List basics); } diff --git a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/WtSpBasicMapper.xml b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/WtSpBasicMapper.xml index 3e12697..bc6ed2f 100644 --- a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/WtSpBasicMapper.xml +++ b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/WtSpBasicMapper.xml @@ -64,8 +64,8 @@ diff --git a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/WtSpProviderMapper.java b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/WtSpProviderMapper.java index ab1a828..138b481 100644 --- a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/WtSpProviderMapper.java +++ b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/WtSpProviderMapper.java @@ -1,6 +1,5 @@ package com.hnac.hzims.spare.mapper; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.hnac.hzims.spare.entity.WtSpProviderEntity; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; diff --git a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/WtSpToolBasicMapper.java b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/WtSpToolBasicMapper.java index 07d8f15..716d4a5 100644 --- a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/WtSpToolBasicMapper.java +++ b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/WtSpToolBasicMapper.java @@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.hnac.hzims.spare.entity.WtSpToolBasicEntity; import com.hnac.hzims.spare.vo.WtSpToolBasicVO; +import org.apache.ibatis.annotations.Param; import org.springblade.core.datascope.annotation.UserDataAuth; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; @@ -24,5 +25,5 @@ public interface WtSpToolBasicMapper extends UserDataScopeBaseMapper selectPageList(IPage page, Map params); + List selectPageList(IPage page,@Param(value = "params") Map params); } diff --git a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/WtSpTotalMapper.java b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/WtSpTotalMapper.java index 216b36a..6d2fe09 100644 --- a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/WtSpTotalMapper.java +++ b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/WtSpTotalMapper.java @@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage; import com.hnac.hzims.spare.entity.WtSpTotalEntity; import com.hnac.hzims.spare.vo.StockVo; import com.hnac.hzims.spare.vo.WtSpToolVO; +import org.apache.ibatis.annotations.Param; import org.springblade.core.datascope.annotation.UserDataAuth; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; @@ -22,7 +23,7 @@ public interface WtSpTotalMapper extends UserDataScopeBaseMapper params); + WtSpTotalEntity selectByBasicId(@Param(value = "params") Map params); /** * 库存列表 * @param page @@ -30,21 +31,21 @@ public interface WtSpTotalMapper extends UserDataScopeBaseMapper selectSpToolList(IPage page, Map params); + List selectSpToolList(IPage page,@Param(value = "params") Map params); /** * 根据备件ID查询库存数量 * @param spBasicId * @return */ - Integer getListByBasicId(Long spBasicId); + Integer getListByBasicId(@Param(value = "spBasicId") Long spBasicId); /** * 根据仓库id查询库存信息 * @return */ @UserDataAuth - List selectByWarehouseId(Long warehouseId); + List selectByWarehouseId(@Param(value = "warehouseId") Long warehouseId); /** * 获取所有库存记录 diff --git a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/WtSpTotalMapper.xml b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/WtSpTotalMapper.xml index ae05c22..4eea7e5 100644 --- a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/WtSpTotalMapper.xml +++ b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/WtSpTotalMapper.xml @@ -29,10 +29,10 @@ FROM WT_SP_TOTAL WHERE - SP_BASIC_ID = #{spBasicId} + SP_BASIC_ID = #{params.spBasicId} and is_deleted = 0 - - and WAREHOUSE_ID = #{warehouseId} + + and WAREHOUSE_ID = #{params.warehouseId} diff --git a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/WtSpWarehouseMapper.java b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/WtSpWarehouseMapper.java index edc6245..af4b66f 100644 --- a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/WtSpWarehouseMapper.java +++ b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/WtSpWarehouseMapper.java @@ -1,7 +1,7 @@ package com.hnac.hzims.spare.mapper; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.hnac.hzims.spare.entity.WtSpWarehouseEntity; +import org.apache.ibatis.annotations.Param; import org.springblade.core.datascope.annotation.UserDataAuth; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; @@ -13,5 +13,6 @@ import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; public interface WtSpWarehouseMapper extends UserDataScopeBaseMapper { @UserDataAuth - WtSpWarehouseEntity sgetById(Long deptId); + WtSpWarehouseEntity sgetById(@Param(value = "deptId") Long deptId); } + diff --git a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/service/impl/WtSpToolBasicServiceImpl.java b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/service/impl/WtSpToolBasicServiceImpl.java index 6c91a9c..099a784 100644 --- a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/service/impl/WtSpToolBasicServiceImpl.java +++ b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/service/impl/WtSpToolBasicServiceImpl.java @@ -72,25 +72,6 @@ public class WtSpToolBasicServiceImpl extends ServiceImpl params = new HashMap<>(); -// params.put("spBasicId",toolBasicEntity.getSpBasicId()); -// params.put("warehouseId",toolBasicEntity.getWarehouseId()); -// Integer result = spBasicService.selectTotal(params); -// if(null!=result){ -// toolBasicVO.setUseAmount(result); -// }else{ -// toolBasicVO.setUseAmount(0); -// } -// WtSpTotalEntity spTotalEntity = spTotalMapper.selectByBasicId(params); -// toolBasicVO.setTotalAmount(spTotalEntity.getStock()+toolBasicVO.getUseAmount()); -// toolBasicVO.setNotUseAmount(spTotalEntity.getStock().intValue()); -// toolBasicVO.setWarehouseId(spTotalEntity.getWarehouseId()); -// WtSpWarehouseEntity warehouseEntity = warehouseMapper.selectById(spTotalEntity.getWarehouseId()); -// if (null != warehouseEntity) { -// toolBasicVO.setWarehouseName(warehouseEntity.getName()); -// R dept = sysClient.getDeptName(warehouseEntity.getAffiliatedUnit()); -// //toolBasicVO.setDeptName(dept.getData()); -// } voList.add(toolBasicVO); } voPages.setRecords(voList); @@ -149,10 +130,8 @@ public class WtSpToolBasicServiceImpl extends ServiceImpl0){ + if(!longList.isEmpty()){ params.put("deptList",longList); } if(null!=toolBasicVO.getWarehouseId()){ @@ -173,11 +152,7 @@ public class WtSpToolBasicServiceImpl extends ServiceImpl> recall(String emCode, String stationCode) { + public R> recall(@RequestParam("emCode") String emCode,@RequestParam("stationCode") String stationCode) { return R.data(paramService.recall(emCode,stationCode)); } diff --git a/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/AlarmApplication.java b/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/AlarmApplication.java index dbf6b3b..255f10b 100644 --- a/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/AlarmApplication.java +++ b/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/AlarmApplication.java @@ -24,10 +24,4 @@ public class AlarmApplication { public static void main(String[] args) { BladeApplication.run(AlarmConstants.APP_NAME, AlarmApplication.class, args); } - -// @Override -// protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) { -// return BladeApplication.createSpringApplicationBuilder(builder, AlarmConstants.APP_NAME, AlarmApplication.class); -// } - -} +} \ No newline at end of file diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/mapper/ImsDutyRecQRRecordMapper.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/mapper/ImsDutyRecQRRecordMapper.java index 5875609..d07d731 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/mapper/ImsDutyRecQRRecordMapper.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/mapper/ImsDutyRecQRRecordMapper.java @@ -4,7 +4,9 @@ package com.hnac.hzims.operational.duty.mapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.hnac.hzims.operational.duty.entity.ImsDutyRecQRRecordEntity; import com.hnac.hzims.operational.main.vo.ImsDutyRecQRRecordVo; +import org.apache.ibatis.annotations.Param; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; +import org.springframework.web.bind.annotation.RequestParam; import java.util.List; @@ -22,6 +24,6 @@ public interface ImsDutyRecQRRecordMapper extends UserDataScopeBaseMapper selectPageList(IPage page,ImsDutyRecQRRecordVo vo); + List selectPageList(IPage page,@Param(value = "vo") ImsDutyRecQRRecordVo vo); }