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
71db789a
Commit
71db789a
authored
Mar 05, 2019
by
dahai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改上传时间格式
parent
b5322c7a
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
63 additions
and
22 deletions
+63
-22
FilesAnalysisApi.java
src/main/java/com/yxproject/start/api/FilesAnalysisApi.java
+1
-1
TaskListApi.java
src/main/java/com/yxproject/start/api/TaskListApi.java
+19
-0
FilesMapper.java
src/main/java/com/yxproject/start/mapper/FilesMapper.java
+2
-5
TaskListMapper.java
src/main/java/com/yxproject/start/mapper/TaskListMapper.java
+14
-9
ImportXmlService.java
...in/java/com/yxproject/start/service/ImportXmlService.java
+1
-1
PersonPostService.java
...n/java/com/yxproject/start/service/PersonPostService.java
+1
-1
TaskListService.java
...ain/java/com/yxproject/start/service/TaskListService.java
+2
-0
ImportXmlServiceImpl.java
...om/yxproject/start/service/impl/ImportXmlServiceImpl.java
+2
-2
PersonPostServiceImpl.java
...m/yxproject/start/service/impl/PersonPostServiceImpl.java
+9
-3
TaskListServiceImpl.java
...com/yxproject/start/service/impl/TaskListServiceImpl.java
+12
-0
No files found.
src/main/java/com/yxproject/start/api/FilesAnalysisApi.java
View file @
71db789a
...
...
@@ -13,7 +13,7 @@ public class FilesAnalysisApi {
private
PersonPostService
personPostService
;
/**
* 文件解析
* 文件解析
修改解析状态
* @param fileId
* @param creatTime
* @return
...
...
src/main/java/com/yxproject/start/api/TaskListApi.java
View file @
71db789a
...
...
@@ -4,6 +4,7 @@ import com.yxproject.start.entity.TaskList.CountCountyEntity;
import
com.yxproject.start.entity.TaskList.CountGajgEntity
;
import
com.yxproject.start.entity.TaskList.TaskListEntity
;
import
com.yxproject.start.service.TaskListService
;
import
com.yxproject.start.utils.YXJSONResponse
;
import
net.sf.json.JSONObject
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -11,6 +12,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
...
...
@@ -83,4 +85,21 @@ public class TaskListApi {
/**
* 查询任务单详情
* (受理库)
* @param state
* @return
*/
@RequestMapping
(
"queryByCountyAtACCU"
)
public
String
queryByCountyAtACCU
(
@RequestParam
(
"state"
)
String
state
,
HttpServletResponse
resp
){
YXJSONResponse
yxjsonResponse
=
new
YXJSONResponse
();
resp
.
setCharacterEncoding
(
"UTF-8"
);
yxjsonResponse
.
outPutSuccess
(
taskListService
.
selectByCountyAtACCU
(
state
));
return
yxjsonResponse
.
toJSONString
();
}
}
src/main/java/com/yxproject/start/mapper/FilesMapper.java
View file @
71db789a
...
...
@@ -20,11 +20,8 @@ public interface FilesMapper {
"<where> 1=1"
+
"<if test='importDate !=null'>"
+
" and to_char(FILES.UPLOAD_DATE,'yyyyMMdd')= #{importDate}"
+
"</if>"
+
"<if test='state !=-1'>"
+
" and PREPRO_PERSON.STATE = #{state}"
+
"</if> </where>"
+
"
group by FILES.upload_date"
)
public
List
<
CountDataEntity
>
selectFilesCount
(
@Param
(
"importDate"
)
String
importDate
,
@Param
(
"state"
)
long
state
);
"group by FILES.upload_date"
)
public
List
<
CountDataEntity
>
selectFilesCount
(
@Param
(
"importDate"
)
String
importDate
);
}
src/main/java/com/yxproject/start/mapper/TaskListMapper.java
View file @
71db789a
...
...
@@ -27,6 +27,20 @@ public interface TaskListMapper {
" GROUP by coun.COUNTYNAME,substr(act.upload_no,0,6)"
)
public
List
<
CountCountyEntity
>
selectByCounty
(
@Param
(
"submitDate"
)
String
submitDate
);
/**
* 循环单查询
* 受理库
* @param submitDate
* @return
*/
@Select
(
"select DISTINCT CARD_TYPE_DIC.*, ACC_GROUP_T.* ,county_dic.* from ACC_CARD_T@ACCU_LINK \n"
+
"left join PREPRO_PERSON on PREPRO_PERSON.JMSFZSLH = acc_card_t.upload_no \n"
+
"left join ACC_GROUP_T@ACCU_LINK on substr(acc_card_t.accept_no,0,8) = ACC_GROUP_T.group_no\n"
+
"left join CARD_TYPE_DIC on PREPRO_PERSON.card_type_id = CARD_TYPE_DIC.CARD_TYPE_ID\n"
+
"left join county_dic on substr(PREPRO_PERSON.JMSFZSLH,0,6)= county_dic.COUNTY_CODE\n"
+
"where county_dic.COUNTY_CODE is not null and to_char(ACC_GROUP_T.IMPORT_TIME,'yyyyMMdd')=#{submitDate}"
)
public
List
<
Object
>
selectByCountyAtACCU
(
@Param
(
"submitDate"
)
String
submitDate
);
/**
* 派出所计数查询
...
...
@@ -81,15 +95,6 @@ public interface TaskListMapper {
public
boolean
updateState
(
@Param
(
"taskId"
)
String
taskId
);
/**
* 区县计数查询
* 辅助库
* @param submitDate
* @return
*/
@Select
(
""
)
public
List
<
CountCountyEntity
>
selectTaskByCounty
(
@Param
(
"submitDate"
)
String
submitDate
,
@Param
(
"taskState"
)
String
taskState
);
...
...
src/main/java/com/yxproject/start/service/ImportXmlService.java
View file @
71db789a
...
...
@@ -14,5 +14,5 @@ public interface ImportXmlService {
public
boolean
importPersonXml
(
List
<
PreproPersonEntity
>
preproPersonEntities
,
FilesEntity
filesEntity
);
public
List
<
CountDataEntity
>
queryPersonXmlCount
(
String
importDate
,
long
state
);
public
List
<
CountDataEntity
>
queryPersonXmlCount
(
String
importDate
);
}
src/main/java/com/yxproject/start/service/PersonPostService.java
View file @
71db789a
...
...
@@ -13,7 +13,7 @@ import java.util.List;
public
interface
PersonPostService
{
/**
*
解析制证包
*
文件解析 修改解析状态
* @param fileId
* @param creatTime
* @return
...
...
src/main/java/com/yxproject/start/service/TaskListService.java
View file @
71db789a
...
...
@@ -18,4 +18,6 @@ public interface TaskListService {
public
boolean
createTaskList
(
List
<
TaskListEntity
>
resultMap
);
public
boolean
updateState
(
String
taskId
);
public
List
<
Object
>
selectByCountyAtACCU
(
String
date
);
}
src/main/java/com/yxproject/start/service/impl/ImportXmlServiceImpl.java
View file @
71db789a
...
...
@@ -40,7 +40,7 @@ public class ImportXmlServiceImpl implements ImportXmlService {
}
@Override
public
List
<
CountDataEntity
>
queryPersonXmlCount
(
String
importDate
,
long
state
)
{
return
filesMapper
.
selectFilesCount
(
importDate
,
state
);
public
List
<
CountDataEntity
>
queryPersonXmlCount
(
String
importDate
)
{
return
filesMapper
.
selectFilesCount
(
importDate
);
}
}
src/main/java/com/yxproject/start/service/impl/PersonPostServiceImpl.java
View file @
71db789a
...
...
@@ -35,6 +35,12 @@ public class PersonPostServiceImpl implements PersonPostService {
return
true
;
}
/**
* 文件解析 修改解析状态
* @param fileId
* @param creatTime
* @return
*/
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
boolean
updateIsPost
(
String
fileId
,
String
creatTime
)
{
...
...
@@ -42,7 +48,7 @@ public class PersonPostServiceImpl implements PersonPostService {
personPostMapper
.
updateIsPost
(
fileId
,
creatTime
);
return
true
;
}
//TODO
@Override
public
List
<
PersonPostEntity
>
findPersonalData
(
String
applicantName
,
String
orderNumber
,
String
state
,
String
latticeMouthInformation
,
List
<
String
>
getToCounty
,
String
uploadDate
,
String
firstIndex
,
String
pageSize
){
String
str
=
null
;
...
...
@@ -73,7 +79,7 @@ public class PersonPostServiceImpl implements PersonPostService {
*/
@Override
public
List
<
FileNameDicEntity
>
queryFileNameDic
(
String
fileName
,
long
analysisState
,
long
currPage
,
long
pageSize
)
{
return
null
;
List
<
FileNameDicEntity
>
fileNameDicEntities
=
fileNameDicMapper
.
queryFileNameDic
(
fileName
,
analysisState
,
currPage
,
pageSize
);
return
fileNameDicEntities
;
}
}
src/main/java/com/yxproject/start/service/impl/TaskListServiceImpl.java
View file @
71db789a
...
...
@@ -44,4 +44,16 @@ public class TaskListServiceImpl implements TaskListService {
taskListMapper
.
updateState
(
taskId
);
return
true
;
}
@Override
public
List
<
Object
>
selectByCountyAtACCU
(
String
date
)
{
List
<
Object
>
objects
=
taskListMapper
.
selectByCountyAtACCU
(
date
);
for
(
Object
o
:
objects
){
}
System
.
out
.
println
(
objects
.
toString
()+
"---------"
);
return
null
;
}
}
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