diff --git a/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/equipment/feign/IEmInfoClient.java b/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/equipment/feign/IEmInfoClient.java index 4d5d095..7c99354 100644 --- a/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/equipment/feign/IEmInfoClient.java +++ b/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/equipment/feign/IEmInfoClient.java @@ -76,7 +76,6 @@ public interface IEmInfoClient { String GET_EM_INFO_BY_DEPT = API_PREFIX + "/getEmInfoByDept"; String GET_EM_INFO_BY_NAME = API_PREFIX + "/getEmInfoByName"; String GET_EM_INFO_BY_EM_CODE = API_PREFIX + "/getEmInfoByEmCode"; - String GET_EM_INFO_TREE_BY_EM_CODE = API_PREFIX + "/getEmInfoTreeByEmCode"; String UPDATE_BY_EM_CODE = API_PREFIX + "/updateByEmCode"; String UPDATE_BATCH_EM_STATE = API_PREFIX + "/updateBachEmState"; String GET_CHILDREN_BY_EM_CODE = API_PREFIX + "/getChildrenByEmCode"; @@ -115,9 +114,6 @@ public interface IEmInfoClient { @GetMapping(GET_EM_INFO_BY_EM_CODES) R> getEmInfoByEmCodes(@RequestParam("emCodes") List emCodes); - @GetMapping(GET_EM_INFO_TREE_BY_EM_CODE) - R> getEmInfoTreeByEmCode(@RequestParam("emCode") String emCode); - @PostMapping(GET_EM_INFO_UNIT_COUNT_BY_DEPT) R getEmInfoUnitCountByDept(@RequestParam("list") List list); diff --git a/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/equipment/feign/IEmInfoClientBack.java b/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/equipment/feign/IEmInfoClientBack.java index e8b0b95..b9aa407 100644 --- a/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/equipment/feign/IEmInfoClientBack.java +++ b/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/equipment/feign/IEmInfoClientBack.java @@ -54,10 +54,6 @@ public class IEmInfoClientBack implements IEmInfoClient { return R.data(new ArrayList<>()); } - @Override - public R> getEmInfoTreeByEmCode(String emCode) { - return R.data(new ArrayList<>()); - } @Override public R getEmInfoUnitCountByDept(List depts) { 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 51f8465..af3d899 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 @@ -46,7 +46,7 @@ wt_sp_allocation wa JOIN wt_sp_warehouse sw ON wa.OUT_WAREHOUSE_ID = sw.id - and wa.code = #{params.code} + and wa.code like concat('%',#{params.code},'%') and wa.status = #{params.status} 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 7d7f1bc..80ee565 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 @@ -47,7 +47,7 @@ wt_sp_warehouse_in wi JOIN wt_sp_warehouse sw ON wi.STORAGE_ROOM = sw.id - and wi.code = #{params.code} + and wi.code like concat('%',#{params.code},'%') and wi.type = #{params.type} 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 54863cd..d3349a8 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 @@ -47,7 +47,7 @@ wt_sp_warehouse_out wo JOIN wt_sp_warehouse sw ON wo.STORAGE_ROOM = sw.id - and wo.code = #{params.code} + and wo.code like concat('%',#{params.code},'%') and wo.type = #{params.type} diff --git a/hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/feign/EmInfoClient.java b/hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/feign/EmInfoClient.java index dd24111..cb2ac6e 100644 --- a/hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/feign/EmInfoClient.java +++ b/hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/feign/EmInfoClient.java @@ -144,14 +144,4 @@ public class EmInfoClient implements IEmInfoClient { return R.data(service.list(wrapper).stream().map(EmInfoEntity::getNumber).distinct().collect(Collectors.toList())); } - /** - * - * @param emCode - * @return - */ - @GetMapping(value = GET_EM_INFO_TREE_BY_EM_CODE) - @Override - public R> getEmInfoTreeByEmCode(String emCode) { - return R.data(service.getEmInfoTreeByEmCode(emCode)); - } } diff --git a/hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/mapper/EmInfoMapper.xml b/hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/mapper/EmInfoMapper.xml index db7e24d..d7be978 100644 --- a/hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/mapper/EmInfoMapper.xml +++ b/hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/mapper/EmInfoMapper.xml @@ -117,7 +117,7 @@