Commit 9e815072 authored by huyuchen's avatar huyuchen

预派单 代码修改

parent 62040ee2
...@@ -146,12 +146,11 @@ public class TPreDispatchInfoController { ...@@ -146,12 +146,11 @@ public class TPreDispatchInfoController {
* @param status 0 是 1 否 * @param status 0 是 1 否
* @return R * @return R
*/ */
@Operation(summary = "修改资料是否提交", description = "修改资料是否提交:status 0 是 1 否(social_tpredispatchinfo_edit)") @Operation(summary = "修改资料是否提交", description = "修改资料是否提交:status 0 是 1 否")
@SysLog("修改资料是否提交") @SysLog("修改资料是否提交")
@PostMapping("/modifyDataSubmitStatus") @PostMapping("/modifyDataSubmitStatus")
@PreAuthorize("@pms.hasPermission('social_tpredispatchinfo_edit')") public R<Boolean> modifyDataSubmitStatus(@RequestParam(value = "ids")String ids,
public R<Boolean> modifyDataSubmitStatus(@RequestParam(value = "ids",required = true)String ids, @RequestParam(value = "status")String status) {
@RequestParam(value = "status",required = true)String status) {
return tPreDispatchInfoService.modifyDataSubmitStatus(ids,status); return tPreDispatchInfoService.modifyDataSubmitStatus(ids,status);
} }
/** /**
...@@ -165,7 +164,7 @@ public class TPreDispatchInfoController { ...@@ -165,7 +164,7 @@ public class TPreDispatchInfoController {
@SysLog("清空预派单默认的派单合同信息") @SysLog("清空预派单默认的派单合同信息")
@PostMapping("/clearContractInfo") @PostMapping("/clearContractInfo")
@PreAuthorize("@pms.hasPermission('social_tpredispatchinfo_edit')") @PreAuthorize("@pms.hasPermission('social_tpredispatchinfo_edit')")
public R<Boolean> clearContractInfo(@RequestParam(value = "ids",required = true)String ids) { public R<Boolean> clearContractInfo(@RequestParam(value = "ids")String ids) {
return tPreDispatchInfoService.clearContractInfo(ids); return tPreDispatchInfoService.clearContractInfo(ids);
} }
...@@ -178,12 +177,11 @@ public class TPreDispatchInfoController { ...@@ -178,12 +177,11 @@ public class TPreDispatchInfoController {
* @param cancelRemark 不派单 时填写 * @param cancelRemark 不派单 时填写
* @return R * @return R
**/ **/
@Operation(summary = "更新预派单是否派单状态", description = "更新预派单是否派单状态(social_tpredispatchinfo_edit)") @Operation(summary = "更新预派单是否派单状态", description = "更新预派单是否派单状态")
@SysLog("更新预派单是否派单状态") @SysLog("更新预派单是否派单状态")
@PostMapping("/updateDispatchFlag") @PostMapping("/updateDispatchFlag")
@PreAuthorize("@pms.hasPermission('social_tpredispatchinfo_edit')") public R<Boolean> updateDispatchFlag(@RequestParam(value = "id")String id,
public R<Boolean> updateDispatchFlag(@RequestParam(value = "id",required = true)String id, @RequestParam(value = "dispatchFlag")String dispatchFlag,
@RequestParam(value = "dispatchFlag",required = true)String dispatchFlag,
@RequestParam(value = "cancelRemark",required = false)String cancelRemark) { @RequestParam(value = "cancelRemark",required = false)String cancelRemark) {
return tPreDispatchInfoService.updateDispatchFlag(id,dispatchFlag,cancelRemark); return tPreDispatchInfoService.updateDispatchFlag(id,dispatchFlag,cancelRemark);
} }
...@@ -197,7 +195,8 @@ public class TPreDispatchInfoController { ...@@ -197,7 +195,8 @@ public class TPreDispatchInfoController {
*/ */
@Operation(summary = "单个派单:按创建人和ID", description = "单个派单:按创建人和ID") @Operation(summary = "单个派单:按创建人和ID", description = "单个派单:按创建人和ID")
@PostMapping("/dispatchById") @PostMapping("/dispatchById")
public R<Boolean> dispatchById(@RequestParam(value = "id",required = true)String id) { @PreAuthorize("@pms.hasPermission('social_tpredispatchinfo_dispatch')")
public R<Boolean> dispatchById(@RequestParam(value = "id")String id) {
return tPreDispatchInfoService.dispatchById(id); return tPreDispatchInfoService.dispatchById(id);
} }
...@@ -209,6 +208,7 @@ public class TPreDispatchInfoController { ...@@ -209,6 +208,7 @@ public class TPreDispatchInfoController {
*/ */
@Operation(summary = "一键派单:按创建人查找正常未派单的数据", description = "一键派单:按创建人查找正常未派单的数据") @Operation(summary = "一键派单:按创建人查找正常未派单的数据", description = "一键派单:按创建人查找正常未派单的数据")
@PostMapping("/oneKeyToDispatch") @PostMapping("/oneKeyToDispatch")
@PreAuthorize("@pms.hasPermission('social_tpredispatchinfo_dispatch')")
public R oneKeyToDispatch(@RequestParam String idStr) { public R oneKeyToDispatch(@RequestParam String idStr) {
return tPreDispatchInfoService.oneKeyToDispatch(idStr); return tPreDispatchInfoService.oneKeyToDispatch(idStr);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment