Browse Source

优化代码

java110 3 years ago
parent
commit
4080332f21

+ 2 - 0
service-store/src/main/java/com/java110/store/cmd/resourceStore/ListAllocationUserStorehousesCmd.java

@@ -35,7 +35,9 @@ public class ListAllocationUserStorehousesCmd extends Cmd {
 
     @Override
     public void doCmd(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException {
+        String storeId = context.getReqHeaders().get("store-id");
         AllocationUserStorehouseDto allocationUserStorehouseDto = BeanConvertUtil.covertBean(reqJson, AllocationUserStorehouseDto.class);
+        allocationUserStorehouseDto.setStoreId(storeId);
 
         int count = allocationUserStorehouseInnerServiceSMOImpl.queryAllocationUserStorehousesCount(allocationUserStorehouseDto);