Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
map-parent
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常超
map-parent
Commits
4606acc1
Commit
4606acc1
authored
Jul 12, 2021
by
dupengfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
插入方式bug修改
parent
6fffee05
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
service/zdgl/src/main/java/com/founder/zdgl/controller/DictManageController.java
+5
-5
service/zdgl/src/main/java/com/founder/zdgl/entity/DictItem.java
+1
-0
No files found.
service/zdgl/src/main/java/com/founder/zdgl/controller/DictManageController.java
View file @
4606acc1
...
...
@@ -85,7 +85,7 @@ public class DictManageController extends BaseAction {
JSONObject
jsonObject
=
JSONObject
.
fromObject
(
JdictItem
);
dictItem
=
(
DictItem
)
JSONObject
.
toBean
(
jsonObject
,
DictItem
.
class
);
//如果是更新操作 设置改写人信息
if
(
operateType
.
equals
(
"update"
))
{
/*
if (operateType.equals("update")) {
dictItem.setGxdwdm(user.getUnitcode());
dictItem.setGxrLxdh(user.getTelephone());
dictItem.setGxr(user.getUsername());
...
...
@@ -95,7 +95,7 @@ public class DictManageController extends BaseAction {
dictItem.setLrrLxdh(user.getTelephone());
dictItem.setLrdwdm(user.getUnitcode());
dictItem.setLrdwmc(user.getUnitname());
}
}
*/
//logger.warn("=======================operateType==================="+operateType);
String
code
=
""
;
...
...
@@ -139,7 +139,7 @@ public class DictManageController extends BaseAction {
}
dictItem
.
setIsParent
(
"false"
);
//线下测试,采用UUID作为主键添加
//
dictItem.setId(String.valueOf(UUID.randomUUID()).replace("-",""));
dictItem
.
setId
(
String
.
valueOf
(
UUID
.
randomUUID
()).
replace
(
"-"
,
""
));
dictManageService
.
insertDict
(
dictItem
);
//dictItem.setPId6(dictItem.getPid());
//if (dictItem.getGroupid().equals("CODE_GABAJZLB") || dictItem.getGroupid().equals("CODE_GABAJXZLB")
...
...
@@ -858,14 +858,14 @@ public class DictManageController extends BaseAction {
JSONObject
jsonObject
=
JSONObject
.
fromObject
(
jxalbdmSDJoin
);
XalbdmSDJoin
xalbdmSDJoin
=
(
XalbdmSDJoin
)
JSONObject
.
toBean
(
jsonObject
,
XalbdmSDJoin
.
class
);
SysUser
user
=
(
SysUser
)
request
.
getSession
().
getAttribute
(
"User"
);
if
(
operateType
.
equals
(
"update"
))
{
/*
if (operateType.equals("update")) {
xalbdmSDJoin.setGxdwdm(user.getUnitcode());
xalbdmSDJoin.setGxr(user.getUsername());
} else if (operateType.equals("insert")) {
xalbdmSDJoin.setLrr(user.getUsername());
xalbdmSDJoin.setLrdwdm(user.getUnitcode());
xalbdmSDJoin.setGlxzqh(xalbdmSDJoin.getXzqh());
}
}
*/
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<
String
,
Object
>();
...
...
service/zdgl/src/main/java/com/founder/zdgl/entity/DictItem.java
View file @
4606acc1
...
...
@@ -31,6 +31,7 @@ public class DictItem extends BaseModel {
private
String
spell
;
private
String
wbzx
;
private
String
simple
;
private
String
levelid
;
//子孙编号对应的父编号,位处理案件列别和案件性质的关系而增加
private
Object
pId1
;
//子孙编号对应的父编号
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment