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
1b5e0aab
Commit
1b5e0aab
authored
Mar 18, 2019
by
suichenguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
excel添加更改备注
parent
9f63d4a5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
0 deletions
+52
-0
PersonPostApi.java
src/main/java/com/yxproject/start/api/PersonPostApi.java
+25
-0
PersonPostMapper.java
...ain/java/com/yxproject/start/mapper/PersonPostMapper.java
+8
-0
PersonPostService.java
...n/java/com/yxproject/start/service/PersonPostService.java
+6
-0
PersonPostServiceImpl.java
...m/yxproject/start/service/impl/PersonPostServiceImpl.java
+13
-0
No files found.
src/main/java/com/yxproject/start/api/PersonPostApi.java
View file @
1b5e0aab
...
@@ -24,8 +24,10 @@ import java.nio.charset.StandardCharsets;
...
@@ -24,8 +24,10 @@ import java.nio.charset.StandardCharsets;
import
java.text.DateFormat
;
import
java.text.DateFormat
;
import
java.text.ParseException
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* 自主选择删除个人邮寄信息
* 自主选择删除个人邮寄信息
...
@@ -51,6 +53,29 @@ public class PersonPostApi {
...
@@ -51,6 +53,29 @@ public class PersonPostApi {
return
null
;
return
null
;
}
}
@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
));
resultList
.
add
(
resultMap
);
}
return
resultList
;
}
@RequestMapping
(
"addNote"
)
public
boolean
addNote
(
@RequestBody
String
jsonStr
){
JSONArray
jsonArray
=
JSONArray
.
fromObject
(
jsonStr
);
for
(
int
i
=
0
;
i
<
jsonArray
.
size
();
i
++){
Map
<
String
,
Object
>
noteMap
=
(
Map
<
String
,
Object
>)
jsonArray
.
get
(
i
);
personPostService
.
addNote
(
noteMap
.
get
(
"id"
).
toString
(),
noteMap
.
get
(
"note"
).
toString
());
}
return
true
;
}
/**
/**
* 按条件查询个人邮寄信息
* 按条件查询个人邮寄信息
* @param jsonStr
* @param jsonStr
...
...
src/main/java/com/yxproject/start/mapper/PersonPostMapper.java
View file @
1b5e0aab
...
@@ -5,6 +5,7 @@ import org.apache.ibatis.annotations.*;
...
@@ -5,6 +5,7 @@ import org.apache.ibatis.annotations.*;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
...
@@ -56,6 +57,13 @@ public interface PersonPostMapper {
...
@@ -56,6 +57,13 @@ public interface PersonPostMapper {
public
List
<
PersonPostEntity
>
findAllPersonalData
(
@Param
(
"applicantName"
)
String
applicantName
,
@Param
(
"orderNumber"
)
String
orderNumber
,
@Param
(
"state"
)
String
state
,
@Param
(
"latticeMouthInformation"
)
String
latticeMouthInformation
,
@Param
(
"getToCounty"
)
String
getToCounty
,
@Param
(
"uploadDate"
)
String
uploadDate
,
@Param
(
"firstIndex"
)
long
firstIndex
,
@Param
(
"pageSize"
)
long
pageSize
,
@Param
(
"emailNo"
)
String
emailNo
,
@Param
(
"notNull"
)
int
notNull
);
public
List
<
PersonPostEntity
>
findAllPersonalData
(
@Param
(
"applicantName"
)
String
applicantName
,
@Param
(
"orderNumber"
)
String
orderNumber
,
@Param
(
"state"
)
String
state
,
@Param
(
"latticeMouthInformation"
)
String
latticeMouthInformation
,
@Param
(
"getToCounty"
)
String
getToCounty
,
@Param
(
"uploadDate"
)
String
uploadDate
,
@Param
(
"firstIndex"
)
long
firstIndex
,
@Param
(
"pageSize"
)
long
pageSize
,
@Param
(
"emailNo"
)
String
emailNo
,
@Param
(
"notNull"
)
int
notNull
);
@Select
(
"select ID,FIRST_WHITE,APPLICANT_NAME,NOTE from person_post where ID=#{id}"
)
public
Map
<
String
,
Object
>
selectNote
(
@Param
(
"id"
)
String
id
);
@Update
(
"UPDATE PERSON_POST SET NOTE = #{note} where ID = #{id}"
)
public
boolean
addNote
(
@Param
(
"id"
)
String
id
,
@Param
(
"note"
)
String
note
);
@Select
(
"<script> "
+
@Select
(
"<script> "
+
"SELECT COUNT(*) FROM PERSON_POST \n"
+
"SELECT COUNT(*) FROM PERSON_POST \n"
+
" LEFT JOIN FILE_NAME_DIC ON FILE_NAME_DIC.FILE_ID=PERSON_POST.FILE_ID "
+
" LEFT JOIN FILE_NAME_DIC ON FILE_NAME_DIC.FILE_ID=PERSON_POST.FILE_ID "
+
...
...
src/main/java/com/yxproject/start/service/PersonPostService.java
View file @
1b5e0aab
...
@@ -10,6 +10,7 @@ import javax.servlet.http.HttpServletRequest;
...
@@ -10,6 +10,7 @@ import javax.servlet.http.HttpServletRequest;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* @auther zhangyusheng
* @auther zhangyusheng
...
@@ -42,4 +43,9 @@ public interface PersonPostService {
...
@@ -42,4 +43,9 @@ public interface PersonPostService {
public
int
findPersonalDataCountByImportDate
(
String
importDate
);
public
int
findPersonalDataCountByImportDate
(
String
importDate
);
public
List
<
PersonPostEntity
>
downLoadReportForm
(
HttpServletRequest
request
,
HttpServletResponse
response
,
String
sqrxm
,
String
ddh
,
String
hasPrinted
,
String
gkxx
,
JSONArray
jsonArray
,
String
uploadDate
,
String
emailNo
);
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
boolean
addNote
(
@Param
(
"id"
)
String
id
,
@Param
(
"note"
)
String
note
);
}
}
src/main/java/com/yxproject/start/service/impl/PersonPostServiceImpl.java
View file @
1b5e0aab
...
@@ -19,6 +19,7 @@ import javax.servlet.http.HttpServletResponse;
...
@@ -19,6 +19,7 @@ import javax.servlet.http.HttpServletResponse;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* @auther zhangyusheng
* @auther zhangyusheng
...
@@ -132,6 +133,18 @@ public class PersonPostServiceImpl implements PersonPostService {
...
@@ -132,6 +133,18 @@ public class PersonPostServiceImpl implements PersonPostService {
return
list
;
return
list
;
}
}
@Override
public
Map
<
String
,
Object
>
selectNote
(
String
id
)
{
Map
<
String
,
Object
>
resultMap
=
personPostMapper
.
selectNote
(
id
);
return
resultMap
;
}
@Override
public
boolean
addNote
(
String
id
,
String
note
)
{
personPostMapper
.
addNote
(
id
,
note
);
return
true
;
}
// /**
// /**
// * 查询个人邮寄信息
// * 查询个人邮寄信息
// * @param fileName 文件名
// * @param fileName 文件名
...
...
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