方法类型调整
This commit is contained in:
parent
bb5bd836a2
commit
fe6b5da279
|
|
@ -117,7 +117,7 @@ public class BpmPurchaseInfoController extends BaseController {
|
||||||
public ResultBean<Boolean> commit(@RequestBody @NotEmpty(message = "请求参数不能为空") Integer[] taskArray) {
|
public ResultBean<Boolean> commit(@RequestBody @NotEmpty(message = "请求参数不能为空") Integer[] taskArray) {
|
||||||
int result = 0;
|
int result = 0;
|
||||||
result += this.bpmTaskService.updateStatusById(PENDING_CONFIRMATION, Arrays.asList(taskArray));
|
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);
|
return ResultBean.toIsSuccess(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -130,7 +130,7 @@ public class BpmPurchaseInfoController extends BaseController {
|
||||||
public ResultBean<Boolean> confirm(@RequestBody @NotEmpty(message = "请求参数不能为空") Integer[] taskArray) {
|
public ResultBean<Boolean> confirm(@RequestBody @NotEmpty(message = "请求参数不能为空") Integer[] taskArray) {
|
||||||
int result = 0;
|
int result = 0;
|
||||||
result += this.bpmTaskService.updateStatusById(PENDING_NOTIFICATION, Arrays.asList(taskArray));
|
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);
|
return ResultBean.toIsSuccess(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -104,9 +104,9 @@ public interface BpmPurchaseInfoMapper {
|
||||||
int updateByPrimaryKeySelective(BpmPurchaseInfo record);
|
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);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -209,11 +209,11 @@ public class BpmPurchaseInfoService{
|
||||||
return itemNode;
|
return itemNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int updateStatusByTaskId(Byte updatedStatus,Integer taskId){
|
public int updateStatusByTaskId(Integer updatedStatus,Integer taskId){
|
||||||
return bpmPurchaseInfoMapper.updateStatusByTaskId(updatedStatus,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);
|
return bpmPurchaseInfoMapper.updateStatusByTaskIdIn(updatedStatus,taskIdCollection);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,10 +22,6 @@ public class Constants {
|
||||||
*/
|
*/
|
||||||
public static final Integer PENDING_CONFIRMATION = 48;
|
public static final Integer PENDING_CONFIRMATION = 48;
|
||||||
|
|
||||||
/**
|
|
||||||
* 待确认
|
|
||||||
*/
|
|
||||||
public static final Byte PENDING_CONFIRMATION_BYTE = 48;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 待通知
|
* 待通知
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue