Your Name 2 lat temu
rodzic
commit
015d4fdd54

+ 10 - 0
java110-bean/src/main/java/com/java110/dto/purchase/PurchaseApplyDetailDto.java

@@ -34,6 +34,8 @@ public class PurchaseApplyDetailDto extends PageDto implements Serializable {
     private String userId;
     private String createUserId;
 
+    private String resOrderType;
+
     private String rsId;
 
     public String getApplyOrderId() {
@@ -243,6 +245,14 @@ public class PurchaseApplyDetailDto extends PageDto implements Serializable {
     public void setRsId(String rsId) {
         this.rsId = rsId;
     }
+
+    public String getResOrderType() {
+        return resOrderType;
+    }
+
+    public void setResOrderType(String resOrderType) {
+        this.resOrderType = resOrderType;
+    }
 }
 
 

+ 4 - 1
service-store/src/main/java/com/java110/store/cmd/resourceStore/ListAllocationStorehousesCmd.java

@@ -2,6 +2,7 @@ package com.java110.store.cmd.resourceStore;
 
 import com.alibaba.fastjson.JSONObject;
 import com.java110.core.annotation.Java110Cmd;
+import com.java110.core.context.CmdContextUtils;
 import com.java110.core.context.ICmdDataFlowContext;
 import com.java110.core.event.cmd.Cmd;
 import com.java110.core.event.cmd.CmdEvent;
@@ -38,7 +39,9 @@ public class ListAllocationStorehousesCmd extends Cmd {
 
     @Override
     public void doCmd(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException {
+        String storeId = CmdContextUtils.getStoreId(context);
         AllocationStorehouseDto allocationStorehouseDto = BeanConvertUtil.covertBean(reqJson, AllocationStorehouseDto.class);
+        allocationStorehouseDto.setStoreId(storeId);
         //获取用户id
         String userId = reqJson.getString("userId");
         //调拨记录(调拨记录所有权限查看所有数据)
@@ -46,7 +49,7 @@ public class ListAllocationStorehousesCmd extends Cmd {
         basePrivilegeDto.setResource("/viewlistAllocationStorehouses");
         basePrivilegeDto.setUserId(userId);
         List<Map> privileges = menuInnerServiceSMOImpl.checkUserHasResource(basePrivilegeDto);
-        if (privileges.size()==0) {
+        if (privileges.size() == 0) {
             allocationStorehouseDto.setStartUserId(userId);
         }
         //调拨记录详情、调拨待办查看、调拨已办查看