| | |
| | | import com.whyc.service.WorkflowMainService; |
| | | import com.whyc.util.ActionUtil; |
| | | import com.whyc.util.CommonUtil; |
| | | import com.whyc.util.JsonUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @RestController |
| | |
| | | @Autowired |
| | | private WorkflowMainService service; |
| | | |
| | | @PostMapping("submit") |
| | | /*@PostMapping("submit") |
| | | @ApiOperation(value = "提交单据", notes = "传参:taskDesc,mainType,mainTypeCN,mainTypeEn,dealRoleId,processLevel") |
| | | public Response<Integer> submit(@RequestBody WorkflowMain main){ |
| | | return service.submit(main); |
| | | }*/ |
| | | @PostMapping("submit") |
| | | @ApiOperation(value = "提交单据", notes = "传参:taskDesc,mainType,mainTypeCN,mainTypeEn,dealRoleId,processLevel") |
| | | public Response<Integer> submit(@RequestParam String mainJsonStr, @RequestPart List<MultipartFile> fileList, @RequestPart List<MultipartFile> picList){ |
| | | WorkflowMain main = JsonUtil.getGson().fromJson(mainJsonStr, WorkflowMain.class); |
| | | return service.submit(main); |
| | | } |
| | | |
| | | |