|
|
@@ -105,6 +105,11 @@ public class RefundServiceImpl implements IRefundService {
|
|
|
@Transactional
|
|
|
public ResultState edit(Refund inputModel) {
|
|
|
ResultState<Long> resultState = new ResultState<Long>();
|
|
|
+ if (inputModel.getRefundAmount() == null){
|
|
|
+ resultState.setStateCode(ResultStateCode.INVALID_DATA);
|
|
|
+ resultState.setMsg("输入金额不合法或者为空");
|
|
|
+ return resultState;
|
|
|
+ }
|
|
|
DynamicDataContextHolder.setCustomerType(DynamicDataContextHolder.DEFAULT);
|
|
|
inputModel.setCreatedAt(new Date());
|
|
|
RefundExample example=new RefundExample();
|