|
|
@@ -14,6 +14,7 @@ import com.actionsoft.bpms.util.DBSql;
|
|
|
import com.actionsoft.sdk.local.SDK;
|
|
|
import com.actionsoft.sdk.local.api.Logger;
|
|
|
import com.awspaas.user.apps.donenow_ctt.service.contractService;
|
|
|
+import com.awspaas.user.apps.donenow_ctt.service.contractServiceAdj;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
import java.sql.Connection;
|
|
|
@@ -448,11 +449,17 @@ public class contractCreateController {
|
|
|
} finally {
|
|
|
if (conn != null) DBSql.close(conn);
|
|
|
}
|
|
|
-
|
|
|
if (errMsg.length() > 0) {
|
|
|
- if (succMsg.length() > 0) return ResponseObject.newWarnResponse(succMsg.toString() + errMsg.toString());
|
|
|
+ if (succMsg.length() > 0)
|
|
|
+ return ResponseObject.newWarnResponse(succMsg.toString() + errMsg.toString());
|
|
|
return ResponseObject.newErrResponse(errMsg.toString());
|
|
|
}
|
|
|
+
|
|
|
+ //分摊成本
|
|
|
+ for (BO contraService : services) {
|
|
|
+ contractServiceAdj.getInstance().paySplitServiceMonth(uc, contraService.getString("ID"));
|
|
|
+ }
|
|
|
+
|
|
|
return ResponseObject.newOkResponse();
|
|
|
}
|
|
|
|