|
|
|
@ -29,7 +29,7 @@ public class TestIfsController { |
|
|
|
@Autowired |
|
|
|
private MasterServiceBeanTest masterServiceBeanTest; |
|
|
|
@Autowired |
|
|
|
private InventoryServiceBeanTest inventoryServiceBeanTest; |
|
|
|
private InventoryServiceBeanTest inventoryServiceBean; |
|
|
|
@Autowired |
|
|
|
private BomServiceBeanTest bomServiceBean; |
|
|
|
@Autowired |
|
|
|
@ -312,7 +312,7 @@ public class TestIfsController { |
|
|
|
public Object getInventoryPart(@RequestBody InventoryPart inData) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
InventoryPart returnRow = inventoryServiceBeanTest.getInventoryPart(inData); |
|
|
|
InventoryPart returnRow = inventoryServiceBean.getInventoryPart(inData); |
|
|
|
resultMap.put("obj", returnRow); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
@ -333,7 +333,7 @@ public class TestIfsController { |
|
|
|
public Object syncInventoryPart(@RequestBody InventoryPart inData) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
InventoryPart resultRow = inventoryServiceBeanTest.syncInventoryPart(inData); |
|
|
|
InventoryPart resultRow = inventoryServiceBean.syncInventoryPart(inData); |
|
|
|
resultMap.put("obj", resultRow); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
@ -354,7 +354,7 @@ public class TestIfsController { |
|
|
|
public Object modifyInventoryPart(@RequestBody InventoryPart inData) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
InventoryPart resultRow = inventoryServiceBeanTest.modifyInventoryPart(inData); |
|
|
|
InventoryPart resultRow = inventoryServiceBean.modifyInventoryPart(inData); |
|
|
|
resultMap.put("obj", resultRow); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
@ -375,7 +375,7 @@ public class TestIfsController { |
|
|
|
public Object removeInventoryPart(@RequestBody InventoryPart inData) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
inventoryServiceBeanTest.removeInventoryPart(inData); |
|
|
|
inventoryServiceBean.removeInventoryPart(inData); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
} catch (Exception e) { |
|
|
|
@ -395,7 +395,7 @@ public class TestIfsController { |
|
|
|
public Object modifyInventoryPartCost(@RequestBody InventoryPartConfig inData) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
InventoryPartConfig resultRow = inventoryServiceBeanTest.modifyInventoryPartCost(inData); |
|
|
|
InventoryPartConfig resultRow = inventoryServiceBean.modifyInventoryPartCost(inData); |
|
|
|
resultMap.put("obj", resultRow); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
@ -416,7 +416,7 @@ public class TestIfsController { |
|
|
|
public Object modifyInventoryPartPlan(@RequestBody InventoryPartPlan inData) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
InventoryPartPlan resultRow = inventoryServiceBeanTest.modifyInventoryPartPlan(inData); |
|
|
|
InventoryPartPlan resultRow = inventoryServiceBean.modifyInventoryPartPlan(inData); |
|
|
|
resultMap.put("obj", resultRow); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
@ -437,7 +437,7 @@ public class TestIfsController { |
|
|
|
public Object syncInventoryPartLocations(@RequestBody List<InventoryPartLocation> inDatas) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
List<InventoryPartLocation> returnMap = inventoryServiceBeanTest.syncInventoryPartLocations(inDatas); |
|
|
|
List<InventoryPartLocation> returnMap = inventoryServiceBean.syncInventoryPartLocations(inDatas); |
|
|
|
resultMap.put("obj", returnMap); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
@ -458,7 +458,7 @@ public class TestIfsController { |
|
|
|
public Object removeInventoryPartLocation(@RequestBody InventoryPartLocation inData) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
inventoryServiceBeanTest.removeInventoryPartLocation(inData); |
|
|
|
inventoryServiceBean.removeInventoryPartLocation(inData); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
} catch (Exception e) { |
|
|
|
@ -478,7 +478,7 @@ public class TestIfsController { |
|
|
|
public Object modifyInventoryPartManufacture(@RequestBody InventoryPartManufacture inData) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
InventoryPartManufacture resultRow = inventoryServiceBeanTest.modifyInventoryPartManufacture(inData); |
|
|
|
InventoryPartManufacture resultRow = inventoryServiceBean.modifyInventoryPartManufacture(inData); |
|
|
|
resultMap.put("obj", resultRow); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
@ -499,7 +499,7 @@ public class TestIfsController { |
|
|
|
public Object getInventoryPartRevision(@RequestBody InventoryPartRevision inData) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
InventoryPartRevision resultRow = inventoryServiceBeanTest.getInventoryPartRevision(inData); |
|
|
|
InventoryPartRevision resultRow = inventoryServiceBean.getInventoryPartRevision(inData); |
|
|
|
resultMap.put("resultRow", resultRow); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
@ -520,7 +520,7 @@ public class TestIfsController { |
|
|
|
public Object syncInventoryPartRevision(@RequestBody InventoryPartRevision inData) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
InventoryPartRevision resultRow = inventoryServiceBeanTest.syncInventoryPartRevision(inData); |
|
|
|
InventoryPartRevision resultRow = inventoryServiceBean.syncInventoryPartRevision(inData); |
|
|
|
resultMap.put("resultRow", resultRow); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
@ -542,7 +542,7 @@ public class TestIfsController { |
|
|
|
public Object modifyInventoryPartRevision(@RequestBody InventoryPartRevision inData) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
InventoryPartRevision resultRow = inventoryServiceBeanTest.modifyInventoryPartRevision(inData); |
|
|
|
InventoryPartRevision resultRow = inventoryServiceBean.modifyInventoryPartRevision(inData); |
|
|
|
resultMap.put("resultRow", resultRow); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
@ -563,7 +563,7 @@ public class TestIfsController { |
|
|
|
public Object removeInventoryPartRevision(@RequestBody InventoryPartRevision inData) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
inventoryServiceBeanTest.removeInventoryPartRevision(inData); |
|
|
|
inventoryServiceBean.removeInventoryPartRevision(inData); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
} catch (Exception e) { |
|
|
|
@ -583,7 +583,7 @@ public class TestIfsController { |
|
|
|
public Object syncInventoryPartCharacteristics(@RequestBody List<CharacteristicCode> inDatas) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
List<CharacteristicCode> returnMap = inventoryServiceBeanTest.syncInventoryPartCharacteristics(inDatas); |
|
|
|
List<CharacteristicCode> returnMap = inventoryServiceBean.syncInventoryPartCharacteristics(inDatas); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("returnMap", returnMap); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
@ -604,7 +604,7 @@ public class TestIfsController { |
|
|
|
public Object removeInventoryPartCharacteristicsByPartNo(@RequestBody InventoryPart inData) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
inventoryServiceBeanTest.removeInventoryPartCharacteristicsByPartNo(inData); |
|
|
|
inventoryServiceBean.removeInventoryPartCharacteristicsByPartNo(inData); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
} catch (Exception e) { |
|
|
|
@ -624,7 +624,7 @@ public class TestIfsController { |
|
|
|
public Object removeInventoryPartRelationInfo(@RequestBody InventoryPart inData) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
inventoryServiceBeanTest.removeInventoryPartRelationInfo(inData); |
|
|
|
inventoryServiceBean.removeInventoryPartRelationInfo(inData); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
} catch (Exception e) { |
|
|
|
@ -644,7 +644,7 @@ public class TestIfsController { |
|
|
|
public Object removeInventoryPartLocations(@RequestBody List<InventoryPartLocation> inDatas) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
inventoryServiceBeanTest.removeInventoryPartLocations(inDatas); |
|
|
|
inventoryServiceBean.removeInventoryPartLocations(inDatas); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
} catch (Exception e) { |
|
|
|
@ -664,7 +664,7 @@ public class TestIfsController { |
|
|
|
public Object syncCopyPartForInventoryPart(@RequestBody CopyPart inData) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
inventoryServiceBeanTest.syncCopyPartForInventoryPart(inData); |
|
|
|
inventoryServiceBean.syncCopyPartForInventoryPart(inData); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
} catch (Exception e) { |
|
|
|
@ -2300,6 +2300,30 @@ public class TestIfsController { |
|
|
|
return resultMap; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @description: 修改库存件的CommGroup3信息 测试使用 |
|
|
|
* @author LR |
|
|
|
* @date 2025/5/22 13:19 |
|
|
|
* @version 1.0 |
|
|
|
*/ |
|
|
|
@PostMapping(value = "/modifyInventoryPartCommGroup3") |
|
|
|
public Object modifyInventoryPartCommGroup3(@RequestBody Map<String, String> inData) { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
Map<String, String> returnMap = inventoryServiceBean.modifyInventoryPartCommGroup3(inData); |
|
|
|
resultMap.put("returnMap", returnMap); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
} catch (APException e) { |
|
|
|
resultMap.put("code", 400); |
|
|
|
resultMap.put("msg", e.getMessage()); |
|
|
|
} |
|
|
|
return resultMap; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|