|
@@ -63,8 +63,10 @@ public class AccountRequestFundsFlow extends FlowDelegate {
|
|
|
*/
|
|
|
@Override
|
|
|
public Long start(Long flowId, JSONObject submitData) {
|
|
|
+ // 获取提交数据
|
|
|
+ AccountRequestFundsDto accountRequestFundsDto = submitData.toJavaObject(AccountRequestFundsDto.class);
|
|
|
|
|
|
- AccountRequestFundsDto accountRequestFundsDto = commStart(submitData, 0);
|
|
|
+ accountRequestFundsDto = commStart(accountRequestFundsDto, 0);
|
|
|
|
|
|
return accountRequestFundsDto.getId();
|
|
|
}
|
|
@@ -108,7 +110,9 @@ public class AccountRequestFundsFlow extends FlowDelegate {
|
|
|
public void defaultMethod(Long flowId, Long businessId, FlowStatusEnum flowStatusEnum, JSONObject submitData) {
|
|
|
//重新发起
|
|
|
if (FlowStatusEnum.READY_START.equals(flowStatusEnum)) {
|
|
|
- commStart(submitData, 1);
|
|
|
+ // 获取提交数据
|
|
|
+ AccountRequestFundsDto accountRequestFundsDto = submitData.toJavaObject(AccountRequestFundsDto.class);
|
|
|
+ commStart(accountRequestFundsDto, 1);
|
|
|
}
|
|
|
//驳回
|
|
|
if (FlowStatusEnum.REJECT.equals(flowStatusEnum)) {
|
|
@@ -127,10 +131,7 @@ public class AccountRequestFundsFlow extends FlowDelegate {
|
|
|
*
|
|
|
* @param opType 操作类型 0直接发起 1重新发起
|
|
|
*/
|
|
|
- private AccountRequestFundsDto commStart(JSONObject submitData, Integer opType) {
|
|
|
- // 获取提交数据
|
|
|
- AccountRequestFundsDto accountRequestFundsDto = submitData.toJavaObject(AccountRequestFundsDto.class);
|
|
|
-
|
|
|
+ private AccountRequestFundsDto commStart(AccountRequestFundsDto accountRequestFundsDto, Integer opType) {
|
|
|
if (opType == 1) {
|
|
|
Assert.notEmpty(accountRequestFundsDto.getId(), "请款id不能为空");
|
|
|
}
|