|
|
@ -48,88 +48,86 @@ import java.util.List; |
|
|
|
@RequestMapping("v1/asbwinvoiceapply") |
|
|
|
public class AsBwinvoiceapplyRest { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private AsBwinvoiceapplyService asBwinvoiceapplyService; |
|
|
|
|
|
|
|
@ApiOperation("根据条件分页查询数据的列表") |
|
|
|
@PostMapping("/listPage") |
|
|
|
public ResultBean<PagerVo<AsBwinvoiceapplyVo>> listPage(@RequestBody PagerQuery<AsBwinvoiceapplyQuery> pq){ |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
PagerVo<AsBwinvoiceapplyVo> pv = asBwinvoiceapplyService.listPageVo(pq); |
|
|
|
return rb.success().setData(pv); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("新增或修改") |
|
|
|
@PostMapping("/save") |
|
|
|
public ResultBean save(@RequestBody AsBwinvoiceapplyDto dto){ |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
asBwinvoiceapplyService.saveOrUpdateDto(dto); |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("根据sid批量删除") |
|
|
|
@Autowired |
|
|
|
private AsBwinvoiceapplyService asBwinvoiceapplyService; |
|
|
|
|
|
|
|
@ApiOperation("根据条件分页查询数据的列表") |
|
|
|
@PostMapping("/listPage") |
|
|
|
public ResultBean<PagerVo<AsBwinvoiceapplyVo>> listPage(@RequestBody PagerQuery<AsBwinvoiceapplyQuery> pq) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
PagerVo<AsBwinvoiceapplyVo> pv = asBwinvoiceapplyService.listPageVo(pq); |
|
|
|
return rb.success().setData(pv); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("新增或修改") |
|
|
|
@PostMapping("/save") |
|
|
|
public ResultBean save(@RequestBody AsBwinvoiceapplyDto dto) { |
|
|
|
return asBwinvoiceapplyService.saveOrUpdateDto(dto); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("根据sid批量删除") |
|
|
|
@DeleteMapping("/delBySids") |
|
|
|
public ResultBean delBySids(@RequestBody String[] sids){ |
|
|
|
return asBwinvoiceapplyService.delAll(sids); |
|
|
|
} |
|
|
|
public ResultBean delBySids(@RequestBody String[] sids) { |
|
|
|
return asBwinvoiceapplyService.delAll(sids); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("根据SID获取一条记录") |
|
|
|
@ApiOperation("根据SID获取一条记录") |
|
|
|
@GetMapping("/fetchDetailsBySid/{sid}") |
|
|
|
public ResultBean<AsBwinvoiceapplyDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
AsBwinvoiceapplyDetailsVo vo = asBwinvoiceapplyService.fetchDetailsVoBySid(sid); |
|
|
|
return rb.success().setData(vo); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("提交") |
|
|
|
@PostMapping("/submitApply") |
|
|
|
public ResultBean submitApply(@Valid @RequestBody SubmitBwinvoiceApplyDto dto) { |
|
|
|
return asBwinvoiceapplyService.submitApply(dto); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "办理(同意)") |
|
|
|
@PostMapping("/complete") |
|
|
|
public ResultBean complete(@Valid @RequestBody CompleteBwinvoiceApplyDto query) { |
|
|
|
BusinessVariables bv = new BusinessVariables(); |
|
|
|
BeanUtil.copyProperties(query, bv); |
|
|
|
bv.setModelId(""); |
|
|
|
return asBwinvoiceapplyService.complete(bv); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "获取上一个环节") |
|
|
|
@GetMapping(value = "/getPreviousNodesForReject") |
|
|
|
ResultBean<List<BwinvoiceApplyNodeVo>> getPreviousNodesForReject(@Valid @SpringQueryMap BwinvoiceApplyNodeQuery query) { |
|
|
|
return asBwinvoiceapplyService.getPreviousNodesForReject(query); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "获取下一个环节") |
|
|
|
@GetMapping(value = "/getNextNodesForSubmit") |
|
|
|
ResultBean<List<BwinvoiceApplyNodeVo>> getNextNodesForSubmit(@Valid @SpringQueryMap BwinvoiceApplyNodeQuery query) { |
|
|
|
return asBwinvoiceapplyService.getNextNodesForSubmit(query); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "驳回任务") |
|
|
|
@PostMapping(value = "/reject") |
|
|
|
public ResultBean taskReject(@Valid @RequestBody BwinvoiceApplyTaskQuery query) { |
|
|
|
return asBwinvoiceapplyService.taskReject(query); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "撤回流程") |
|
|
|
@PostMapping(value = "/revokeProcess") |
|
|
|
public ResultBean revokeProcess(@Valid @RequestBody BwinvoiceApplyTaskQuery query) { |
|
|
|
return asBwinvoiceapplyService.revokeProcess(query); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "终止任务") |
|
|
|
@PostMapping(value = "/breakProcess") |
|
|
|
public ResultBean breakProcess(@Valid @RequestBody BwinvoiceApplyTaskQuery query) { |
|
|
|
return asBwinvoiceapplyService.breakProcess(query); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "加签") |
|
|
|
@PostMapping(value = "/delegate") |
|
|
|
@ResponseBody |
|
|
|
public ResultBean delegate(@RequestBody BwinvoiceApplyDelegateQuery query) { |
|
|
|
return asBwinvoiceapplyService.delegate(query); |
|
|
|
} |
|
|
|
public ResultBean<AsBwinvoiceapplyDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
AsBwinvoiceapplyDetailsVo vo = asBwinvoiceapplyService.fetchDetailsVoBySid(sid); |
|
|
|
return rb.success().setData(vo); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("提交") |
|
|
|
@PostMapping("/submitApply") |
|
|
|
public ResultBean submitApply(@Valid @RequestBody SubmitBwinvoiceApplyDto dto) { |
|
|
|
return asBwinvoiceapplyService.submitApply(dto); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "办理(同意)") |
|
|
|
@PostMapping("/complete") |
|
|
|
public ResultBean complete(@Valid @RequestBody CompleteBwinvoiceApplyDto query) { |
|
|
|
BusinessVariables bv = new BusinessVariables(); |
|
|
|
BeanUtil.copyProperties(query, bv); |
|
|
|
bv.setModelId(""); |
|
|
|
return asBwinvoiceapplyService.complete(bv); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "获取上一个环节") |
|
|
|
@GetMapping(value = "/getPreviousNodesForReject") |
|
|
|
ResultBean<List<BwinvoiceApplyNodeVo>> getPreviousNodesForReject(@Valid @SpringQueryMap BwinvoiceApplyNodeQuery query) { |
|
|
|
return asBwinvoiceapplyService.getPreviousNodesForReject(query); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "获取下一个环节") |
|
|
|
@GetMapping(value = "/getNextNodesForSubmit") |
|
|
|
ResultBean<List<BwinvoiceApplyNodeVo>> getNextNodesForSubmit(@Valid @SpringQueryMap BwinvoiceApplyNodeQuery query) { |
|
|
|
return asBwinvoiceapplyService.getNextNodesForSubmit(query); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "驳回任务") |
|
|
|
@PostMapping(value = "/reject") |
|
|
|
public ResultBean taskReject(@Valid @RequestBody BwinvoiceApplyTaskQuery query) { |
|
|
|
return asBwinvoiceapplyService.taskReject(query); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "撤回流程") |
|
|
|
@PostMapping(value = "/revokeProcess") |
|
|
|
public ResultBean revokeProcess(@Valid @RequestBody BwinvoiceApplyTaskQuery query) { |
|
|
|
return asBwinvoiceapplyService.revokeProcess(query); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "终止任务") |
|
|
|
@PostMapping(value = "/breakProcess") |
|
|
|
public ResultBean breakProcess(@Valid @RequestBody BwinvoiceApplyTaskQuery query) { |
|
|
|
return asBwinvoiceapplyService.breakProcess(query); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "加签") |
|
|
|
@PostMapping(value = "/delegate") |
|
|
|
@ResponseBody |
|
|
|
public ResultBean delegate(@RequestBody BwinvoiceApplyDelegateQuery query) { |
|
|
|
return asBwinvoiceapplyService.delegate(query); |
|
|
|
} |
|
|
|
} |
|
|
|