Commit 4606acc1 by dupengfei

插入方式bug修改

parent 6fffee05
...@@ -85,7 +85,7 @@ public class DictManageController extends BaseAction { ...@@ -85,7 +85,7 @@ public class DictManageController extends BaseAction {
JSONObject jsonObject = JSONObject.fromObject(JdictItem); JSONObject jsonObject = JSONObject.fromObject(JdictItem);
dictItem = (DictItem) JSONObject.toBean(jsonObject, DictItem.class); dictItem = (DictItem) JSONObject.toBean(jsonObject, DictItem.class);
//如果是更新操作 设置改写人信息 //如果是更新操作 设置改写人信息
if (operateType.equals("update")) { /*if (operateType.equals("update")) {
dictItem.setGxdwdm(user.getUnitcode()); dictItem.setGxdwdm(user.getUnitcode());
dictItem.setGxrLxdh(user.getTelephone()); dictItem.setGxrLxdh(user.getTelephone());
dictItem.setGxr(user.getUsername()); dictItem.setGxr(user.getUsername());
...@@ -95,7 +95,7 @@ public class DictManageController extends BaseAction { ...@@ -95,7 +95,7 @@ public class DictManageController extends BaseAction {
dictItem.setLrrLxdh(user.getTelephone()); dictItem.setLrrLxdh(user.getTelephone());
dictItem.setLrdwdm(user.getUnitcode()); dictItem.setLrdwdm(user.getUnitcode());
dictItem.setLrdwmc(user.getUnitname()); dictItem.setLrdwmc(user.getUnitname());
} }*/
//logger.warn("=======================operateType==================="+operateType); //logger.warn("=======================operateType==================="+operateType);
String code = ""; String code = "";
...@@ -139,7 +139,7 @@ public class DictManageController extends BaseAction { ...@@ -139,7 +139,7 @@ public class DictManageController extends BaseAction {
} }
dictItem.setIsParent("false"); dictItem.setIsParent("false");
//线下测试,采用UUID作为主键添加 //线下测试,采用UUID作为主键添加
//dictItem.setId(String.valueOf(UUID.randomUUID()).replace("-","")); dictItem.setId(String.valueOf(UUID.randomUUID()).replace("-",""));
dictManageService.insertDict(dictItem); dictManageService.insertDict(dictItem);
//dictItem.setPId6(dictItem.getPid()); //dictItem.setPId6(dictItem.getPid());
//if (dictItem.getGroupid().equals("CODE_GABAJZLB") || dictItem.getGroupid().equals("CODE_GABAJXZLB") //if (dictItem.getGroupid().equals("CODE_GABAJZLB") || dictItem.getGroupid().equals("CODE_GABAJXZLB")
...@@ -858,14 +858,14 @@ public class DictManageController extends BaseAction { ...@@ -858,14 +858,14 @@ public class DictManageController extends BaseAction {
JSONObject jsonObject = JSONObject.fromObject(jxalbdmSDJoin); JSONObject jsonObject = JSONObject.fromObject(jxalbdmSDJoin);
XalbdmSDJoin xalbdmSDJoin = (XalbdmSDJoin) JSONObject.toBean(jsonObject, XalbdmSDJoin.class); XalbdmSDJoin xalbdmSDJoin = (XalbdmSDJoin) JSONObject.toBean(jsonObject, XalbdmSDJoin.class);
SysUser user = (SysUser) request.getSession().getAttribute("User"); SysUser user = (SysUser) request.getSession().getAttribute("User");
if (operateType.equals("update")) { /*if (operateType.equals("update")) {
xalbdmSDJoin.setGxdwdm(user.getUnitcode()); xalbdmSDJoin.setGxdwdm(user.getUnitcode());
xalbdmSDJoin.setGxr(user.getUsername()); xalbdmSDJoin.setGxr(user.getUsername());
} else if (operateType.equals("insert")) { } else if (operateType.equals("insert")) {
xalbdmSDJoin.setLrr(user.getUsername()); xalbdmSDJoin.setLrr(user.getUsername());
xalbdmSDJoin.setLrdwdm(user.getUnitcode()); xalbdmSDJoin.setLrdwdm(user.getUnitcode());
xalbdmSDJoin.setGlxzqh(xalbdmSDJoin.getXzqh()); xalbdmSDJoin.setGlxzqh(xalbdmSDJoin.getXzqh());
} }*/
Map<String, Object> resultMap = new HashMap<String, Object>(); Map<String, Object> resultMap = new HashMap<String, Object>();
......
...@@ -31,6 +31,7 @@ public class DictItem extends BaseModel { ...@@ -31,6 +31,7 @@ public class DictItem extends BaseModel {
private String spell; private String spell;
private String wbzx; private String wbzx;
private String simple; private String simple;
private String levelid;
//子孙编号对应的父编号,位处理案件列别和案件性质的关系而增加 //子孙编号对应的父编号,位处理案件列别和案件性质的关系而增加
private Object pId1; private Object pId1;
//子孙编号对应的父编号 //子孙编号对应的父编号
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment