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
cc82eaf3
Commit
cc82eaf3
authored
Mar 02, 2019
by
liboyang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
08d9e444
c38b59cc
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
148 additions
and
69 deletions
+148
-69
AdminApi.java
src/main/java/com/yxproject/start/api/AdminApi.java
+0
-1
ReadExcelApi.java
src/main/java/com/yxproject/start/api/ReadExcelApi.java
+0
-0
TaskListApi.java
src/main/java/com/yxproject/start/api/TaskListApi.java
+65
-0
PersonPostEntity.java
...ain/java/com/yxproject/start/entity/PersonPostEntity.java
+64
-6
CrippledCardMapper.java
...n/java/com/yxproject/start/mapper/CrippledCardMapper.java
+0
-10
ExitCardMapper.java
src/main/java/com/yxproject/start/mapper/ExitCardMapper.java
+0
-7
FastCardMapper.java
src/main/java/com/yxproject/start/mapper/FastCardMapper.java
+0
-8
HandoverSheetMapper.java
.../java/com/yxproject/start/mapper/HandoverSheetMapper.java
+0
-7
NeedlessCredMapper.java
...n/java/com/yxproject/start/mapper/NeedlessCredMapper.java
+0
-8
PersonPostMapper.java
...ain/java/com/yxproject/start/mapper/PersonPostMapper.java
+4
-1
QueryCardMapper.java
...main/java/com/yxproject/start/mapper/QueryCardMapper.java
+0
-8
SaveCardDetailListMapper.java
.../com/yxproject/start/mapper/SaveCardDetailListMapper.java
+0
-7
TaskListMapper.java
src/main/java/com/yxproject/start/mapper/TaskListMapper.java
+6
-0
PersonPostServiceImpl.java
...m/yxproject/start/service/impl/PersonPostServiceImpl.java
+3
-2
ReadExcel.java
src/main/java/com/yxproject/start/utils/ReadExcel.java
+6
-4
~$调度系统—详细设计说明书.doc
~$调度系统—详细设计说明书.doc
+0
-0
No files found.
src/main/java/com/yxproject/start/api/AdminApi.java
View file @
cc82eaf3
...
...
@@ -74,7 +74,6 @@ public class AdminApi {
flag
=
userInfoService
.
addUser
(
userInfo
,
Integer
.
parseInt
(
jsonObject
.
getString
(
"roleId"
)));
if
(
flag
)
{
map
.
put
(
"resultMsg"
,
"添加成功"
);
}
else
{
map
.
put
(
"resultMsg"
,
"添加失败"
);
}
...
...
src/main/java/com/yxproject/start/api/ReadExcelApi.java
View file @
cc82eaf3
This diff is collapsed.
Click to expand it.
src/main/java/com/yxproject/start/api/TaskListApi.java
View file @
cc82eaf3
...
...
@@ -5,6 +5,7 @@ import com.yxproject.start.entity.TaskList.CountGajgEntity;
import
com.yxproject.start.entity.TaskList.TaskListEntity
;
import
com.yxproject.start.service.TaskListService
;
import
net.sf.json.JSONObject
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
...
...
@@ -77,4 +78,68 @@ public class TaskListApi {
return
true
;
}
/**
* 根据上传时间查询数据(用于生成任务单)
* @param date
* @return
*/
@RequestMapping
(
"selectByDate"
)
public
String
selectByDate
(
@Param
(
"date"
)
String
date
){
String
result
=
"[\n"
+
" {\n"
+
" typeCode: '1',\n"
+
" typeName: '普通证',\n"
+
" typeSum: 300,\n"
+
" isActive: 'true',\n"
+
" countyList: [\n"
+
" {\n"
+
" taskId: '20190228001',\n"
+
" county: '西城区',\n"
+
" groupNo: '00234653-03687587',\n"
+
" valid: 240,\n"
+
" invalid: 0\n"
+
" },\n"
+
" {\n"
+
" taskId: '20190228001',\n"
+
" county: '东城区',\n"
+
" groupNo: '00234653-03687587',\n"
+
" valid: 240,\n"
+
" invalid: 0\n"
+
" },\n"
+
" {\n"
+
" taskId: '20190228001',\n"
+
" county: '海淀区',\n"
+
" groupNo: '00234653-03687587',\n"
+
" valid: 240,\n"
+
" invalid: 0\n"
+
" }\n"
+
" ]\n"
+
" },\n"
+
" {\n"
+
" typeCode: '9',\n"
+
" typeName: '邮寄证',\n"
+
" typeSum: 500,\n"
+
" isActive: 'false',\n"
+
" countyList: [\n"
+
" {\n"
+
" taskId: '20190228001',\n"
+
" county: '朝阳区',\n"
+
" groupNo: '00234653-03687587',\n"
+
" valid: 240,\n"
+
" invalid: 0\n"
+
" },\n"
+
" {\n"
+
" taskId: '20190228001',\n"
+
" county: '昌平区',\n"
+
" groupNo: '00234653-03687587',\n"
+
" valid: 240,\n"
+
" invalid: 0\n"
+
" }\n"
+
" ]\n"
+
" }\n"
+
"]"
;
return
result
;
}
}
src/main/java/com/yxproject/start/entity/PersonPostEntity.java
View file @
cc82eaf3
...
...
@@ -5,12 +5,12 @@ import java.sql.Time;
import
java.util.Objects
;
@Entity
@Table
(
name
=
"PERSON_POST"
,
schema
=
"Y
INGXIN
"
,
catalog
=
""
)
@Table
(
name
=
"PERSON_POST"
,
schema
=
"Y
X
"
,
catalog
=
""
)
public
class
PersonPostEntity
{
private
String
waybillNumber
;
private
String
backWaybillNumber
;
private
String
orderNumber
;
private
Time
createDate
;
private
String
createDate
;
private
String
openid
;
private
String
wcPlayOrderNumber
;
private
String
playState
;
...
...
@@ -37,7 +37,12 @@ public class PersonPostEntity {
private
Time
validPeriodEnd
;
private
String
note
;
private
Long
state
;
private
Time
uploadDate
;
private
Long
fileId
;
private
Time
analysisDate
;
private
Time
printDate
;
private
Time
formStartTime
;
private
Time
formDeadline
;
@Id
@Column
(
name
=
"WAYBILL_NUMBER"
)
...
...
@@ -71,11 +76,11 @@ public class PersonPostEntity {
@Basic
@Column
(
name
=
"CREATE_DATE"
)
public
Time
getCreateDate
()
{
public
String
getCreateDate
()
{
return
createDate
;
}
public
void
setCreateDate
(
Time
createDate
)
{
public
void
setCreateDate
(
String
createDate
)
{
this
.
createDate
=
createDate
;
}
...
...
@@ -339,6 +344,15 @@ public class PersonPostEntity {
this
.
state
=
state
;
}
@Basic
@Column
(
name
=
"UPLOAD_DATE"
)
public
Time
getUploadDate
()
{
return
uploadDate
;
}
public
void
setUploadDate
(
Time
uploadDate
)
{
this
.
uploadDate
=
uploadDate
;
}
@Basic
@Column
(
name
=
"FILE_ID"
)
...
...
@@ -350,6 +364,45 @@ public class PersonPostEntity {
this
.
fileId
=
fileId
;
}
@Basic
@Column
(
name
=
"ANALYSIS_DATE"
)
public
Time
getAnalysisDate
()
{
return
analysisDate
;
}
public
void
setAnalysisDate
(
Time
analysisDate
)
{
this
.
analysisDate
=
analysisDate
;
}
@Basic
@Column
(
name
=
"PRINT_DATE"
)
public
Time
getPrintDate
()
{
return
printDate
;
}
public
void
setPrintDate
(
Time
printDate
)
{
this
.
printDate
=
printDate
;
}
@Basic
@Column
(
name
=
"FORM_START_TIME"
)
public
Time
getFormStartTime
()
{
return
formStartTime
;
}
public
void
setFormStartTime
(
Time
formStartTime
)
{
this
.
formStartTime
=
formStartTime
;
}
@Basic
@Column
(
name
=
"FORM_DEADLINE"
)
public
Time
getFormDeadline
()
{
return
formDeadline
;
}
public
void
setFormDeadline
(
Time
formDeadline
)
{
this
.
formDeadline
=
formDeadline
;
}
@Override
public
boolean
equals
(
Object
o
)
{
...
...
@@ -386,11 +439,16 @@ public class PersonPostEntity {
Objects
.
equals
(
validPeriodEnd
,
that
.
validPeriodEnd
)
&&
Objects
.
equals
(
note
,
that
.
note
)
&&
Objects
.
equals
(
state
,
that
.
state
)
&&
Objects
.
equals
(
fileId
,
that
.
fileId
)
;
Objects
.
equals
(
uploadDate
,
that
.
uploadDate
)
&&
Objects
.
equals
(
fileId
,
that
.
fileId
)
&&
Objects
.
equals
(
analysisDate
,
that
.
analysisDate
)
&&
Objects
.
equals
(
printDate
,
that
.
printDate
)
&&
Objects
.
equals
(
formStartTime
,
that
.
formStartTime
)
&&
Objects
.
equals
(
formDeadline
,
that
.
formDeadline
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
waybillNumber
,
backWaybillNumber
,
orderNumber
,
createDate
,
openid
,
wcPlayOrderNumber
,
playState
,
orderState
,
applicantName
,
senderName
,
senderPhone
,
senderAddress
,
recipientName
,
recipientPhone
,
recipientAddress
,
orderBlankNumber
,
getToProvince
,
getToCity
,
getToCounty
,
businessType
,
latticeMouthInformation
,
natureOfTheInternal
,
natureOfTheInformation
,
firstWhite
,
idCard
,
acceptTheMatter
,
beginUsefulLife
,
validPeriodEnd
,
note
,
state
,
fileId
);
return
Objects
.
hash
(
waybillNumber
,
backWaybillNumber
,
orderNumber
,
createDate
,
openid
,
wcPlayOrderNumber
,
playState
,
orderState
,
applicantName
,
senderName
,
senderPhone
,
senderAddress
,
recipientName
,
recipientPhone
,
recipientAddress
,
orderBlankNumber
,
getToProvince
,
getToCity
,
getToCounty
,
businessType
,
latticeMouthInformation
,
natureOfTheInternal
,
natureOfTheInformation
,
firstWhite
,
idCard
,
acceptTheMatter
,
beginUsefulLife
,
validPeriodEnd
,
note
,
state
,
uploadDate
,
fileId
,
analysisDate
,
printDate
,
formStartTime
,
formDeadline
);
}
}
src/main/java/com/yxproject/start/mapper/CrippledCardMapper.java
deleted
100644 → 0
View file @
08d9e444
package
com
.
yxproject
.
start
.
mapper
;
/**
* 废证
* @param
* @return
*/
public
interface
CrippledCardMapper
{
}
src/main/java/com/yxproject/start/mapper/ExitCardMapper.java
deleted
100644 → 0
View file @
08d9e444
package
com
.
yxproject
.
start
.
mapper
;
/**
* 退证
*/
public
interface
ExitCardMapper
{
}
src/main/java/com/yxproject/start/mapper/FastCardMapper.java
deleted
100644 → 0
View file @
08d9e444
package
com
.
yxproject
.
start
.
mapper
;
/**
* 快证
*/
public
interface
FastCardMapper
{
}
src/main/java/com/yxproject/start/mapper/HandoverSheetMapper.java
deleted
100644 → 0
View file @
08d9e444
package
com
.
yxproject
.
start
.
mapper
;
/**
* 交接单
*/
public
interface
HandoverSheetMapper
{
}
src/main/java/com/yxproject/start/mapper/NeedlessCredMapper.java
deleted
100644 → 0
View file @
08d9e444
package
com
.
yxproject
.
start
.
mapper
;
/**
* 余证mapper
*/
public
interface
NeedlessCredMapper
{
}
src/main/java/com/yxproject/start/mapper/PersonPostMapper.java
View file @
cc82eaf3
...
...
@@ -12,7 +12,10 @@ import java.util.List;
*/
@Mapper
public
interface
PersonPostMapper
{
@Update
(
"insert into PERSON_POST ( WAYBILL_NUMBER,BACK_WAYBILL_NUMBER,ORDER_NUMBER,CREATE_DATE,OPENID,WC_PLAY_ORDER_NUMBER,PLAY_STATE,ORDER_STATE,APPLICANT_NAME,SENDER_NAME,SENDER_PHONE,SENDER_ADDRESS,RECIPIENT_NAME,RECIPIENT_PHONE,RECIPIENT_ADDRESS,ORDER_BLANK_NUMBER,GET_TO_PROVINCE,GET_TO_CITY,GET_TO_COUNTY,BUSINESS_TYPE,LATTICE_MOUTH_INFORMATION,NATURE_OF_THE_INTERNAL,NATURE_OF_THE_INFORMATION,FIRST_WHITE,UPLOAD_DATE) values (#{waybillNumber},#{backWaybillNumber},#{orderNumber},#{createDate},#{openid},#{wcPlayOrderNumber},#{playState},#{orderState},#{applicantName},#{senderName},#{senderPhone},#{senderAddress},#{recipientName},#{recipientPhone},#{recipientAddress},#{orderBlankNumber},#{getToProvince},#{getToCity},#{getToCounty},#{businessType},#{latticeMouthInformation},#{natureOfTheInternal},#{natureOfTheInformation},#{firstWhite},#(uploadDate))"
)
@Update
(
"insert into PERSON_POST "
+
"( WAYBILL_NUMBER,BACK_WAYBILL_NUMBER,ORDER_NUMBER,CREATE_DATE,OPENID,WC_PLAY_ORDER_NUMBER,PLAY_STATE,ORDER_STATE,APPLICANT_NAME,SENDER_NAME,SENDER_PHONE,SENDER_ADDRESS,RECIPIENT_NAME,RECIPIENT_PHONE,RECIPIENT_ADDRESS,ORDER_BLANK_NUMBER,GET_TO_PROVINCE,GET_TO_CITY,GET_TO_COUNTY,BUSINESS_TYPE,LATTICE_MOUTH_INFORMATION,NATURE_OF_THE_INTERNAL,NATURE_OF_THE_INFORMATION,FIRST_WHITE) "
+
"values "
+
"(#{waybillNumber},#{backWaybillNumber},#{orderNumber},#{createDate},#{openid},#{wcPlayOrderNumber},#{playState},#{orderState},#{applicantName},#{senderName},#{senderPhone},#{senderAddress},#{recipientName},#{recipientPhone},#{recipientAddress},#{orderBlankNumber},#{getToProvince},#{getToCity},#{getToCounty},#{businessType},#{latticeMouthInformation},#{natureOfTheInternal},#{natureOfTheInformation},#{firstWhite})"
)
public
boolean
savePersonPost
(
PersonPostEntity
personPostEntity
);
@Update
(
"update prepro_person p set IS_POST=9 where p.JMSFZSLH in ( select p.JMSFZSLH from prepro_person p left join files files on p.file_id=files.ID \n"
+
...
...
src/main/java/com/yxproject/start/mapper/QueryCardMapper.java
deleted
100644 → 0
View file @
08d9e444
package
com
.
yxproject
.
start
.
mapper
;
/**
* 查询证件信息
*/
public
interface
QueryCardMapper
{
}
src/main/java/com/yxproject/start/mapper/SaveCardDetailListMapper.java
deleted
100644 → 0
View file @
08d9e444
package
com
.
yxproject
.
start
.
mapper
;
/**
* 身份证详单
*/
public
interface
SaveCardDetailListMapper
{
}
src/main/java/com/yxproject/start/mapper/TaskListMapper.java
View file @
cc82eaf3
...
...
@@ -91,5 +91,11 @@ public interface TaskListMapper {
public
List
<
CountCountyEntity
>
selectTaskByCounty
(
@Param
(
"submitDate"
)
String
submitDate
,
@Param
(
"taskState"
)
String
taskState
);
/**
* 生成快证任务单
*/
@Update
(
""
)
public
boolean
createFastCard
(
@Param
(
"acceptNo"
)
String
accept
);
}
src/main/java/com/yxproject/start/service/impl/PersonPostServiceImpl.java
View file @
cc82eaf3
...
...
@@ -9,6 +9,8 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
javax.xml.crypto.Data
;
import
java.sql.Time
;
import
java.util.Date
;
import
java.util.List
;
...
...
@@ -27,8 +29,7 @@ public class PersonPostServiceImpl implements PersonPostService {
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
boolean
savePersonPost
(
List
<
PersonPostEntity
>
personPostEntities
)
{
for
(
PersonPostEntity
personPostEntity:
personPostEntities
)
{
personPostEntity
.
setCreateDate
(
new
java
.
sql
.
Time
(
new
Date
().
getTime
()));
boolean
b
=
personPostMapper
.
savePersonPost
(
personPostEntity
);
personPostMapper
.
savePersonPost
(
personPostEntity
);
}
return
true
;
}
...
...
src/main/java/com/yxproject/start/utils/ReadExcel.java
View file @
cc82eaf3
...
...
@@ -4,7 +4,9 @@ import jxl.Sheet;
import
jxl.Workbook
;
import
jxl.read.biff.BiffException
;
import
java.io.*
;
import
java.io.File
;
import
java.io.FileNotFoundException
;
import
java.io.IOException
;
import
java.util.ArrayList
;
import
java.util.List
;
...
...
@@ -16,10 +18,10 @@ public class ReadExcel {
// 去读Excel的方法readExcel,该方法的入口参数为一个File对象
public
List
readExcel
(
File
file
)
{
try
{
// 创建输入流,读取Excel
InputStream
is
=
new
FileInputStream
(
file
.
getAbsolutePath
());
//
// 创建输入流,读取Excel
//
InputStream is = new FileInputStream(file.getAbsolutePath());
// jxl提供的Workbook类
Workbook
wb
=
Workbook
.
getWorkbook
(
is
);
Workbook
wb
=
Workbook
.
getWorkbook
(
file
);
// Excel的页签数量
int
sheet_size
=
wb
.
getNumberOfSheets
();
for
(
int
index
=
0
;
index
<
sheet_size
;
index
++)
{
...
...
~$调度系统—详细设计说明书.doc
deleted
100644 → 0
View file @
08d9e444
File deleted
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