Parcourir la source

优化获取storeId

java110 il y a 5 ans
Parent
commit
9dccc0a735

+ 2 - 5
service-common/src/main/java/com/java110/common/api/WorkflowApi.java

@@ -4,10 +4,7 @@ import com.java110.common.bmo.workflow.IQueryWorkFlowFirstStaffBMO;
 import com.java110.dto.workflow.WorkflowDto;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.http.ResponseEntity;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-import org.springframework.web.bind.annotation.RequestParam;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 @RestController
 @RequestMapping("/workflow")
@@ -19,7 +16,7 @@ public class WorkflowApi {
     @RequestMapping(value = "/getFirstStaff", method = RequestMethod.GET)
     public ResponseEntity<String> getFirstStaff(@RequestParam(name = "flowType") String flowType,
                                                 @RequestParam(name = "communityId") String communityId,
-                                                @RequestParam(name = "storeId") String storeId) {
+                                                @RequestHeader(value = "store-id") String storeId) {
         WorkflowDto workflowDto = new WorkflowDto();
         workflowDto.setCommunityId(communityId);
         workflowDto.setFlowType(flowType);