Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_beijing_auxiliary_YD
Project
Project
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
zhangyusheng
YX_IDENT_beijing_auxiliary_YD
Commits
5302fb23
Commit
5302fb23
authored
Mar 18, 2019
by
suichenguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
excel添加更改备注
parent
37af3535
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
4 deletions
+14
-4
PersonPostApi.java
src/main/java/com/yxproject/start/api/PersonPostApi.java
+11
-1
PersonPostMapper.java
...ain/java/com/yxproject/start/mapper/PersonPostMapper.java
+1
-1
PersonPostService.java
...n/java/com/yxproject/start/service/PersonPostService.java
+1
-1
PersonPostServiceImpl.java
...m/yxproject/start/service/impl/PersonPostServiceImpl.java
+1
-1
No files found.
src/main/java/com/yxproject/start/api/PersonPostApi.java
View file @
5302fb23
...
...
@@ -53,18 +53,28 @@ public class PersonPostApi {
return
null
;
}
/**
* 查询备注信息
* @param jsonStr
* @return
*/
@RequestMapping
(
"selectNote"
)
public
List
<
Map
<
String
,
Object
>>
selectNote
(
@RequestBody
String
jsonStr
){
List
<
Map
<
String
,
Object
>>
resultList
=
new
ArrayList
<>();
JSONArray
jsonArray
=
JSONArray
.
fromObject
(
jsonStr
);
for
(
int
i
=
0
;
i
<
jsonArray
.
size
();
i
++){
Map
<
String
,
Object
>
resultMap
=
personPostService
.
selectNote
((
String
)
jsonArray
.
get
(
i
));
Map
<
String
,
Object
>
resultMap
=
personPostService
.
selectNote
((
int
)(
jsonArray
.
get
(
i
)
));
resultList
.
add
(
resultMap
);
}
return
resultList
;
}
/**
* 更改备注信息
* @param jsonStr
* @return
*/
@RequestMapping
(
"addNote"
)
public
boolean
addNote
(
@RequestBody
String
jsonStr
){
JSONArray
jsonArray
=
JSONArray
.
fromObject
(
jsonStr
);
...
...
src/main/java/com/yxproject/start/mapper/PersonPostMapper.java
View file @
5302fb23
...
...
@@ -58,7 +58,7 @@ public interface PersonPostMapper {
@Select
(
"select ID,FIRST_WHITE,APPLICANT_NAME,NOTE from person_post where ID=#{id}"
)
public
Map
<
String
,
Object
>
selectNote
(
@Param
(
"id"
)
String
id
);
public
Map
<
String
,
Object
>
selectNote
(
@Param
(
"id"
)
int
id
);
@Update
(
"UPDATE PERSON_POST SET NOTE = #{note} where ID = #{id}"
)
...
...
src/main/java/com/yxproject/start/service/PersonPostService.java
View file @
5302fb23
...
...
@@ -44,7 +44,7 @@ public interface PersonPostService {
public
List
<
PersonPostEntity
>
downLoadReportForm
(
HttpServletRequest
request
,
HttpServletResponse
response
,
String
sqrxm
,
String
ddh
,
String
hasPrinted
,
String
gkxx
,
JSONArray
jsonArray
,
String
uploadDate
,
String
emailNo
);
public
Map
<
String
,
Object
>
selectNote
(
@Param
(
"id"
)
String
id
);
public
Map
<
String
,
Object
>
selectNote
(
@Param
(
"id"
)
int
id
);
public
boolean
addNote
(
@Param
(
"id"
)
String
id
,
@Param
(
"note"
)
String
note
);
...
...
src/main/java/com/yxproject/start/service/impl/PersonPostServiceImpl.java
View file @
5302fb23
...
...
@@ -134,7 +134,7 @@ public class PersonPostServiceImpl implements PersonPostService {
}
@Override
public
Map
<
String
,
Object
>
selectNote
(
String
id
)
{
public
Map
<
String
,
Object
>
selectNote
(
int
id
)
{
Map
<
String
,
Object
>
resultMap
=
personPostMapper
.
selectNote
(
id
);
return
resultMap
;
}
...
...
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