5fe3bd99 by 李希虎

添加合同类型

1 parent 739c76ab
......@@ -49,8 +49,9 @@ public class CreateDzzz {
eli.setYwh(bdc.getYwh());
eli.setZsbs(bdc.getId());
//模板参数入库
Map<String, String> map = new HashMap<String, String>();
if(bdc.getBdcqzh().contains("证明")){
Map<String, Object> map = new HashMap<String, Object>();
map.put("ewm","imageBase64");
map.put("djsj",bdc.getDbsj());
map.put("bdczmh",bdc.getBdcqzh());
......@@ -63,8 +64,8 @@ public class CreateDzzz {
map.put("fj",bdc.getFj());
String param = JsonUtil.toJsonString(map);
eli.setDocumentParam(param);
eli.setHtlx("1");
}else{
Map<String, Object> map = new HashMap<String, Object>();
map.put("ewm","imageBase64");
map.put("djsj",bdc.getDbsj());
map.put("bdczmh",bdc.getBdcqzh());
......@@ -83,6 +84,7 @@ public class CreateDzzz {
map.put("syqx",bdc.getSyqx());
String param = JsonUtil.toJsonString(map);
eli.setDocumentParam(param);
eli.setHtlx("2");
}
if(licenseInfoDao.selectZsbs(bdc.getId()).size() == 0 ){
licenseInfoDao.insert(eli);
......