|
@@ -140,16 +140,35 @@ public class ContractControllers extends BaseController {
|
|
|
|
|
|
return AjaxResult.error("请选择资金方");
|
|
|
}
|
|
|
- //签署主体
|
|
|
- String zfcSubject = CommonUtil.objToString(map.get("zfcSubject"));
|
|
|
- if(CommonUtil.isEmpty(zfcSubject)){
|
|
|
- return AjaxResult.error("请选择签署主体");
|
|
|
- }
|
|
|
+// //签署主体
|
|
|
+// String zfcSubject = CommonUtil.objToString(map.get("zfcSubject"));
|
|
|
+// if(CommonUtil.isEmpty(zfcSubject)){
|
|
|
+// return AjaxResult.error("请选择签署主体");
|
|
|
+// }
|
|
|
//签署节点
|
|
|
- String zfcNode = CommonUtil.objToString(map.get("zfcNode"));
|
|
|
- if(CommonUtil.isEmpty(zfcNode)){
|
|
|
+ String zfcNode = "";
|
|
|
+ List <Map<String, String>> nodeList = (List<Map<String, String>>) map.get("nodeList");
|
|
|
+ if(nodeList.size() == 0){
|
|
|
return AjaxResult.error("请选择签署节点");
|
|
|
}
|
|
|
+ //盖章关键字
|
|
|
+ String zfcSignKeyword = "";
|
|
|
+ for(int i = 0 ; i < nodeList.size();i++){
|
|
|
+ Map<String,String> node = nodeList.get(i);
|
|
|
+ String getNode = node.get("zfcCode");
|
|
|
+ String getSignKeyword = node.get("zfcSignKeyword");
|
|
|
+ if(CommonUtil.isEmpty(getSignKeyword)){
|
|
|
+ return AjaxResult.error("请输入盖章关键字");
|
|
|
+ }
|
|
|
+ //判断是否为最后一个
|
|
|
+ if(i == nodeList.size() - 1){
|
|
|
+ zfcNode += getNode;
|
|
|
+ zfcSignKeyword += getSignKeyword;
|
|
|
+ }else{
|
|
|
+ zfcNode += getNode +",";
|
|
|
+ zfcSignKeyword += getSignKeyword + ",";
|
|
|
+ }
|
|
|
+ }
|
|
|
//合同描述
|
|
|
String zfcDesc = CommonUtil.objToString(map.get("zfcDesc"));
|
|
|
//合同状态
|
|
@@ -173,10 +192,10 @@ public class ContractControllers extends BaseController {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- //截取符合要求的附件url
|
|
|
- if (CommonUtil.isNotEmpty(zfcFile)) {
|
|
|
- zfcFile = zfcFile.substring(0,zfcFile.indexOf("getBytes/")+41);
|
|
|
- }
|
|
|
+// //截取符合要求的附件url
|
|
|
+// if (CommonUtil.isNotEmpty(zfcFile)) {
|
|
|
+// zfcFile = zfcFile.substring(0,zfcFile.indexOf("getBytes/")+41);
|
|
|
+// }
|
|
|
//主键
|
|
|
String zfcId = IdUtils.fastUUID();
|
|
|
//新增合同信息
|
|
@@ -184,9 +203,10 @@ public class ContractControllers extends BaseController {
|
|
|
zcFinanceContract.setZfcId(zfcId);
|
|
|
zcFinanceContract.setZfcName(zfcName);
|
|
|
zcFinanceContract.setZfcType(zfcType);
|
|
|
- zcFinanceContract.setZfcSubject(zfcSubject);
|
|
|
+// zcFinanceContract.setZfcSubject(zfcSubject);
|
|
|
zcFinanceContract.setZfcManagementId(zfcManagementId);
|
|
|
zcFinanceContract.setZfcNode(zfcNode);
|
|
|
+ zcFinanceContract.setZfcSignKeyword(zfcSignKeyword);
|
|
|
zcFinanceContract.setZfcDesc(zfcDesc);
|
|
|
zcFinanceContract.setZfcStatus(zfcStatus);
|
|
|
zcFinanceContract.setZfcFile(zfcFileId);
|
|
@@ -220,16 +240,35 @@ public class ContractControllers extends BaseController {
|
|
|
if(CommonUtil.isEmpty(zfcManagementId)){
|
|
|
return AjaxResult.error("请选择资金方");
|
|
|
}
|
|
|
- //签署主体
|
|
|
- String zfcSubject = CommonUtil.objToString(map.get("zfcSubject"));
|
|
|
- if(CommonUtil.isEmpty(zfcSubject)){
|
|
|
- return AjaxResult.error("请选择签署主体");
|
|
|
- }
|
|
|
+// //签署主体
|
|
|
+// String zfcSubject = CommonUtil.objToString(map.get("zfcSubject"));
|
|
|
+// if(CommonUtil.isEmpty(zfcSubject)){
|
|
|
+// return AjaxResult.error("请选择签署主体");
|
|
|
+// }
|
|
|
//签署节点
|
|
|
- String zfcNode = CommonUtil.objToString(map.get("zfcNode"));
|
|
|
- if(CommonUtil.isEmpty(zfcNode)){
|
|
|
+ String zfcNode = "";
|
|
|
+ List <Map<String, String>> nodeList = (List<Map<String, String>>) map.get("nodeList");
|
|
|
+ if(nodeList.size() == 0){
|
|
|
return AjaxResult.error("请选择签署节点");
|
|
|
}
|
|
|
+ //盖章关键字
|
|
|
+ String zfcSignKeyword = "";
|
|
|
+ for(int i = 0 ; i < nodeList.size();i++){
|
|
|
+ Map<String,String> node = nodeList.get(i);
|
|
|
+ String getNode = node.get("zfcCode");
|
|
|
+ String getSignKeyword = node.get("zfcSignKeyword");
|
|
|
+ if(CommonUtil.isEmpty(getSignKeyword)){
|
|
|
+ return AjaxResult.error("请输入盖章关键字");
|
|
|
+ }
|
|
|
+ //判断是否为最后一个
|
|
|
+ if(i == nodeList.size() - 1){
|
|
|
+ zfcNode += getNode;
|
|
|
+ zfcSignKeyword += getSignKeyword;
|
|
|
+ }else{
|
|
|
+ zfcNode += getNode +",";
|
|
|
+ zfcSignKeyword += getSignKeyword + ",";
|
|
|
+ }
|
|
|
+ }
|
|
|
//合同描述
|
|
|
String zfcDesc = CommonUtil.objToString(map.get("zfcDesc"));
|
|
|
//合同状态
|
|
@@ -264,9 +303,9 @@ public class ContractControllers extends BaseController {
|
|
|
zcFinanceContract.setZfcId(zfcId);
|
|
|
zcFinanceContract.setZfcName(zfcName);
|
|
|
zcFinanceContract.setZfcType(zfcType);
|
|
|
- zcFinanceContract.setZfcSubject(zfcSubject);
|
|
|
zcFinanceContract.setZfcManagementId(zfcManagementId);
|
|
|
zcFinanceContract.setZfcNode(zfcNode);
|
|
|
+ zcFinanceContract.setZfcSignKeyword(zfcSignKeyword);
|
|
|
zcFinanceContract.setZfcDesc(zfcDesc);
|
|
|
zcFinanceContract.setZfcStatus(zfcStatus);
|
|
|
zcFinanceContract.setZfcFile(zfcFileId);
|