|
|
@@ -125,12 +125,20 @@ public class FundManagerOrderApiController extends CertifyApiController {
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value="/addReceiptsFlow", method = RequestMethod.POST)
|
|
|
- public Result addReceiptsFlow(TOrderBillNew billNew){
|
|
|
+ public Result addReceiptsFlow(TOrderBillNew billNew,String contractNo){
|
|
|
Result res = new Result();
|
|
|
if(null != billNew.getRemarks() && billNew.getRemarks().length() > 255){
|
|
|
res.getError().add(buildError("", "备注长度不能大于255"));
|
|
|
return res;
|
|
|
}
|
|
|
+
|
|
|
+ if (StringUtils.isBlank(contractNo)) {
|
|
|
+ res.getError().add(buildError("", "合同编号不能为空!"));
|
|
|
+ return res;
|
|
|
+ } else if (contractNo.length() > 32) {
|
|
|
+ res.getError().add(buildError("", "合同编号长度不能大于32!"));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
//流水时间处理
|
|
|
//if(StringUtils.isNotEmpty(billNew.getFinancialPayTimes())){
|
|
|
try {
|
|
|
@@ -141,7 +149,7 @@ public class FundManagerOrderApiController extends CertifyApiController {
|
|
|
return res;
|
|
|
}
|
|
|
//}
|
|
|
- Integer i = fundManageOrderServiceImpl.addReceiptsFlow(billNew);
|
|
|
+ Integer i = fundManageOrderServiceImpl.addReceiptsFlow(billNew,contractNo);
|
|
|
if(i>0){
|
|
|
res.setData("新增收款记录成功!");
|
|
|
}else if(i == -3){
|