方法类型调整

This commit is contained in:
syruan 2024-08-22 15:14:06 +08:00
parent bb5bd836a2
commit fe6b5da279
4 changed files with 6 additions and 10 deletions

View File

@ -117,7 +117,7 @@ public class BpmPurchaseInfoController extends BaseController {
public ResultBean<Boolean> commit(@RequestBody @NotEmpty(message = "请求参数不能为空") Integer[] taskArray) {
int result = 0;
result += this.bpmTaskService.updateStatusById(PENDING_CONFIRMATION, Arrays.asList(taskArray));
result += this.bpmPurchaseInfoService.updateStatusByTaskId(PENDING_CONFIRMATION_BYTE, Arrays.asList(taskArray));
result += this.bpmPurchaseInfoService.updateStatusByTaskId(PENDING_CONFIRMATION, Arrays.asList(taskArray));
return ResultBean.toIsSuccess(result);
}
@ -130,7 +130,7 @@ public class BpmPurchaseInfoController extends BaseController {
public ResultBean<Boolean> confirm(@RequestBody @NotEmpty(message = "请求参数不能为空") Integer[] taskArray) {
int result = 0;
result += this.bpmTaskService.updateStatusById(PENDING_NOTIFICATION, Arrays.asList(taskArray));
result += this.bpmPurchaseInfoService.updateStatusByTaskId(PENDING_NOTIFICATION_BYTE, Arrays.asList(taskArray));
result += this.bpmPurchaseInfoService.updateStatusByTaskId(PENDING_NOTIFICATION, Arrays.asList(taskArray));
return ResultBean.toIsSuccess(result);
}

View File

@ -104,9 +104,9 @@ public interface BpmPurchaseInfoMapper {
int updateByPrimaryKeySelective(BpmPurchaseInfo record);
int updateStatusByTaskId(@Param("updatedStatus")Byte updatedStatus,@Param("taskId")Integer taskId);
int updateStatusByTaskId(@Param("updatedStatus") Integer updatedStatus,@Param("taskId")Integer taskId);
int updateStatusByTaskIdIn(@Param("updatedStatus")Byte updatedStatus,@Param("taskIdCollection")Collection<Integer> taskIdCollection);
int updateStatusByTaskIdIn(@Param("updatedStatus") Integer updatedStatus,@Param("taskIdCollection")Collection<Integer> taskIdCollection);

View File

@ -209,11 +209,11 @@ public class BpmPurchaseInfoService{
return itemNode;
}
public int updateStatusByTaskId(Byte updatedStatus,Integer taskId){
public int updateStatusByTaskId(Integer updatedStatus,Integer taskId){
return bpmPurchaseInfoMapper.updateStatusByTaskId(updatedStatus,taskId);
}
public int updateStatusByTaskId(Byte updatedStatus, Collection<Integer> taskIdCollection){
public int updateStatusByTaskId(Integer updatedStatus, Collection<Integer> taskIdCollection){
return bpmPurchaseInfoMapper.updateStatusByTaskIdIn(updatedStatus,taskIdCollection);
}

View File

@ -22,10 +22,6 @@ public class Constants {
*/
public static final Integer PENDING_CONFIRMATION = 48;
/**
* 待确认
*/
public static final Byte PENDING_CONFIRMATION_BYTE = 48;
/**
* 待通知