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
19a4a5b4
Commit
19a4a5b4
authored
Mar 05, 2019
by
suichenguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
搜索框
parent
26271c2f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
77 additions
and
922 deletions
+77
-922
SelectApi.java
src/main/java/com/yxproject/start/api/SelectApi.java
+24
-45
SelectByAcceptedEntity.java
...m/yxproject/start/entity/resp/SelectByAcceptedEntity.java
+0
-134
SelectByGroupNumEntity.java
...m/yxproject/start/entity/resp/SelectByGroupNumEntity.java
+0
-122
SelectByIdcardEntity.java
...com/yxproject/start/entity/resp/SelectByIdcardEntity.java
+0
-133
SelectByWorkOrderEntity.java
.../yxproject/start/entity/resp/SelectByWorkOrderEntity.java
+0
-106
SelectFromAccEntity.java
.../com/yxproject/start/entity/resp/SelectFromAccEntity.java
+0
-112
SelectFromProdEntity.java
...com/yxproject/start/entity/resp/SelectFromProdEntity.java
+0
-112
SelectFromTaskListEntity.java
...yxproject/start/entity/resp/SelectFromTaskListEntity.java
+0
-101
SelectSerialNumberMapper.java
.../com/yxproject/start/mapper/SelectSerialNumberMapper.java
+0
-0
SelectSerialNumberService.java
...om/yxproject/start/service/SelectSerialNumberService.java
+11
-19
SelectSerialNumberServiceImpl.java
...ect/start/service/impl/SelectSerialNumberServiceImpl.java
+32
-38
test.java
src/test/java/com/yxproject/start/test.java
+10
-0
No files found.
src/main/java/com/yxproject/start/api/SelectApi.java
View file @
19a4a5b4
package
com
.
yxproject
.
start
.
api
;
import
com.yxproject.start.entity.resp.*
;
import
com.yxproject.start.service.SelectSerialNumberService
;
import
com.yxproject.start.utils.YXJSONResponse
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -8,7 +7,6 @@ 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
;
...
...
@@ -28,8 +26,8 @@ public class SelectApi {
private
SelectSerialNumberService
selectSerialNumberService
;
@RequestMapping
(
value
=
"selectByCard"
)
public
String
selectByCard
(
@RequestParam
(
"id"
)
String
id
,
HttpServletResponse
resp
){
resp
.
setCharacterEncoding
(
"UTF-8"
);
public
String
selectByCard
(
@RequestParam
(
"id"
)
String
id
){
//
resp.setCharacterEncoding("UTF-8");
List
<
Map
<
String
,
Object
>>
resultList
=
new
ArrayList
<>();
/*任务单*/
Map
<
String
,
Object
>
taskListMap
=
new
HashMap
<>();
...
...
@@ -38,56 +36,37 @@ public class SelectApi {
/*制证库*/
Map
<
String
,
Object
>
accreditationMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
if
(
id
.
length
()
==
1
1
){
SelectFromTaskListEntity
specialCardInfo4
=
selectSerialNumberService
.
selectByWorkOrderFromYX
(
id
);
taskListMap
.
put
(
"workOrderDat
e"
,
specialCardInfo4
);
if
(
id
.
length
()
==
1
0
){
Map
<
String
,
Object
>
workOrderData
=
selectSerialNumberService
.
selectByWorkOrderFromYX
(
id
);
taskListMap
.
put
(
"workOrderDat
a"
,
workOrderData
);
resultList
.
add
(
taskListMap
);
resultList
.
add
(
acceptMap
);
resultList
.
add
(
accreditationMap
);
}
else
{
switch
(
id
.
length
())
{
case
8
:
SelectFromTaskListEntity
specialCardInfo
=
selectSerialNumberService
.
selectByGroupNoFromYX
(
id
);
SelectFromProdEntity
selectResult
=
selectSerialNumberService
.
selectByGroupNoFromProd
(
id
);
SelectFromAccEntity
specialCardInfo4
=
selectSerialNumberService
.
selectByGroupNoFromAcc
(
id
);
taskListMap
.
put
(
"yxData"
,
specialCardInfo
);
accreditationMap
.
put
(
"prodData"
,
selectResult
);
acceptMap
.
put
(
"accData"
,
specialCardInfo4
);
resultList
.
add
(
taskListMap
);
resultList
.
add
(
accreditationMap
);
resultList
.
add
(
acceptMap
);
break
;
case
10
:
SelectFromTaskListEntity
specialCardInfo2
=
selectSerialNumberService
.
selectByAcceptFromYX
(
id
);
SelectFromProdEntity
selectResult2
=
selectSerialNumberService
.
selectByAcceptFromProd
(
id
);
SelectFromAccEntity
specialCardInfo5
=
selectSerialNumberService
.
selectByAcceptFromAcc
(
id
);
taskListMap
.
put
(
"yxData"
,
specialCardInfo2
);
accreditationMap
.
put
(
"prodData"
,
selectResult2
);
acceptMap
.
put
(
"accData"
,
specialCardInfo5
);
resultList
.
add
(
taskListMap
);
resultList
.
add
(
accreditationMap
);
resultList
.
add
(
acceptMap
);
break
;
case
18
:
}
else
if
(
id
.
length
()
==
8
){
SelectFromTaskListEntity
specialCardInfo3
=
selectSerialNumberService
.
selectByCardIdFromYX
(
id
);
SelectFromProdEntity
selectResult3
=
selectSerialNumberService
.
selectByCardIdFromProd
(
id
);
SelectFromAccEntity
specialCardInfo6
=
selectSerialNumberService
.
selectByCardIdFromAcc
(
id
);
taskListMap
.
put
(
"yxData"
,
specialCardInfo3
);
accreditationMap
.
put
(
"prodData"
,
selectResult3
);
acceptMap
.
put
(
"accData"
,
specialCardInfo6
);
resultList
.
add
(
taskListMap
);
resultList
.
add
(
accreditationMap
);
resultList
.
add
(
acceptMap
);
Map
<
String
,
Object
>
workOrderData
=
selectSerialNumberService
.
selectByGroupNo
(
id
);
taskListMap
.
put
(
"workOrderData"
,
workOrderData
);
resultList
.
add
(
taskListMap
);
resultList
.
add
(
acceptMap
);
resultList
.
add
(
accreditationMap
);
break
;
}
}
else
if
(
id
.
length
()==
11
||
id
.
length
()==
18
){
Map
<
String
,
Object
>
workOrderData
=
selectSerialNumberService
.
selectByAcceptNoOrCardIdFromTaskList
(
id
);
Map
<
String
,
Object
>
ACCdata
=
selectSerialNumberService
.
selectByAcceptNoOrCardIdFromACC
(
id
);
Map
<
String
,
Object
>
PRODData
=
selectSerialNumberService
.
selectByAcceptNoOrCardIdFromPROD
(
id
);
taskListMap
.
put
(
"workOrderDate"
,
workOrderData
);
taskListMap
.
put
(
"ACCdata"
,
ACCdata
);
taskListMap
.
put
(
"PRODData"
,
PRODData
);
resultList
.
add
(
taskListMap
);
resultList
.
add
(
acceptMap
);
resultList
.
add
(
accreditationMap
);
}
else
{
return
"数据错误"
;
}
YXJSONResponse
yxjsonResponse
=
new
YXJSONResponse
();
resp
.
setCharacterEncoding
(
"UTF-8"
);
//
resp.setCharacterEncoding("UTF-8");
yxjsonResponse
.
outPutSuccess
(
resultList
);
return
yxjsonResponse
.
toJSONString
();
...
...
src/main/java/com/yxproject/start/entity/resp/SelectByAcceptedEntity.java
deleted
100644 → 0
View file @
26271c2f
package
com
.
yxproject
.
start
.
entity
.
resp
;
import
javax.xml.crypto.Data
;
public
class
SelectByAcceptedEntity
{
private
String
cardType
;
private
String
library
;
private
String
accept_No
;
private
String
name
;
private
String
sex_No
;
private
String
id_No
;
private
String
birthday
;
private
String
sign_Govt
;
private
String
begin_Date
;
private
String
expire_Date
;
private
String
status_No
;
private
String
taskState
;
private
String
cityName
;
private
Data
lastModifyTime
;
public
String
getCardType
()
{
return
cardType
;
}
public
void
setCardType
(
String
cardType
)
{
this
.
cardType
=
cardType
;
}
public
String
getLibrary
()
{
return
library
;
}
public
void
setLibrary
(
String
library
)
{
this
.
library
=
library
;
}
public
String
getAccept_No
()
{
return
accept_No
;
}
public
void
setAccept_No
(
String
accept_No
)
{
this
.
accept_No
=
accept_No
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getSex_No
()
{
return
sex_No
;
}
public
void
setSex_No
(
String
sex_No
)
{
this
.
sex_No
=
sex_No
;
}
public
String
getId_No
()
{
return
id_No
;
}
public
void
setId_No
(
String
id_No
)
{
this
.
id_No
=
id_No
;
}
public
String
getBirthday
()
{
return
birthday
;
}
public
void
setBirthday
(
String
birthday
)
{
this
.
birthday
=
birthday
;
}
public
String
getSign_Govt
()
{
return
sign_Govt
;
}
public
void
setSign_Govt
(
String
sign_Govt
)
{
this
.
sign_Govt
=
sign_Govt
;
}
public
String
getBegin_Date
()
{
return
begin_Date
;
}
public
void
setBegin_Date
(
String
begin_Date
)
{
this
.
begin_Date
=
begin_Date
;
}
public
String
getExpire_Date
()
{
return
expire_Date
;
}
public
void
setExpire_Date
(
String
expire_Date
)
{
this
.
expire_Date
=
expire_Date
;
}
public
String
getStatus_No
()
{
return
status_No
;
}
public
void
setStatus_No
(
String
status_No
)
{
this
.
status_No
=
status_No
;
}
public
String
getTaskState
()
{
return
taskState
;
}
public
void
setTaskState
(
String
taskState
)
{
this
.
taskState
=
taskState
;
}
public
String
getCityName
()
{
return
cityName
;
}
public
void
setCityName
(
String
cityName
)
{
this
.
cityName
=
cityName
;
}
public
Data
getLastModifyTime
()
{
return
lastModifyTime
;
}
public
void
setLastModifyTime
(
Data
lastModifyTime
)
{
this
.
lastModifyTime
=
lastModifyTime
;
}
}
src/main/java/com/yxproject/start/entity/resp/SelectByGroupNumEntity.java
deleted
100644 → 0
View file @
26271c2f
package
com
.
yxproject
.
start
.
entity
.
resp
;
import
java.util.Date
;
public
class
SelectByGroupNumEntity
{
private
String
library
;
private
String
cityName
;
private
String
cardType
;
private
String
painterName
;
private
String
taskId
;
private
String
group_No
;
private
Date
submit_Date
;
private
Date
position_Date
;
private
String
quality_People_Name
;
private
Date
out_Storage_Date
;
private
Date
in_Storage_Date
;
private
String
exception_Information
;
public
String
getLibrary
()
{
return
library
;
}
public
void
setLibrary
(
String
library
)
{
this
.
library
=
library
;
}
public
String
getCityName
()
{
return
cityName
;
}
public
void
setCityName
(
String
cityName
)
{
this
.
cityName
=
cityName
;
}
public
String
getCardType
()
{
return
cardType
;
}
public
void
setCardType
(
String
cardType
)
{
this
.
cardType
=
cardType
;
}
public
String
getPainterName
()
{
return
painterName
;
}
public
void
setPainterName
(
String
painterName
)
{
this
.
painterName
=
painterName
;
}
public
String
getTaskId
()
{
return
taskId
;
}
public
void
setTaskId
(
String
taskId
)
{
this
.
taskId
=
taskId
;
}
public
String
getGroup_No
()
{
return
group_No
;
}
public
void
setGroup_No
(
String
group_No
)
{
this
.
group_No
=
group_No
;
}
public
Date
getSubmit_Date
()
{
return
submit_Date
;
}
public
void
setSubmit_Date
(
Date
submit_Date
)
{
this
.
submit_Date
=
submit_Date
;
}
public
Date
getPosition_Date
()
{
return
position_Date
;
}
public
void
setPosition_Date
(
Date
position_Date
)
{
this
.
position_Date
=
position_Date
;
}
public
String
getQuality_People_Name
()
{
return
quality_People_Name
;
}
public
void
setQuality_People_Name
(
String
quality_People_Name
)
{
this
.
quality_People_Name
=
quality_People_Name
;
}
public
Date
getOut_Storage_Date
()
{
return
out_Storage_Date
;
}
public
void
setOut_Storage_Date
(
Date
out_Storage_Date
)
{
this
.
out_Storage_Date
=
out_Storage_Date
;
}
public
Date
getIn_Storage_Date
()
{
return
in_Storage_Date
;
}
public
void
setIn_Storage_Date
(
Date
in_Storage_Date
)
{
this
.
in_Storage_Date
=
in_Storage_Date
;
}
public
String
getException_Information
()
{
return
exception_Information
;
}
public
void
setException_Information
(
String
exception_Information
)
{
this
.
exception_Information
=
exception_Information
;
}
}
src/main/java/com/yxproject/start/entity/resp/SelectByIdcardEntity.java
deleted
100644 → 0
View file @
26271c2f
package
com
.
yxproject
.
start
.
entity
.
resp
;
import
javax.xml.crypto.Data
;
public
class
SelectByIdcardEntity
{
private
String
cardType
;
private
String
library
;
private
String
accept_No
;
private
String
name
;
private
String
sex_No
;
private
String
id_No
;
private
String
birthday
;
private
String
sign_Govt
;
private
String
begin_Date
;
private
String
expire_Date
;
private
String
status_No
;
private
String
taskState
;
private
String
cityName
;
private
Data
lastModifyTime
;
public
String
getCardType
()
{
return
cardType
;
}
public
void
setCardType
(
String
cardType
)
{
this
.
cardType
=
cardType
;
}
public
String
getLibrary
()
{
return
library
;
}
public
void
setLibrary
(
String
library
)
{
this
.
library
=
library
;
}
public
String
getAccept_No
()
{
return
accept_No
;
}
public
void
setAccept_No
(
String
accept_No
)
{
this
.
accept_No
=
accept_No
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getSex_No
()
{
return
sex_No
;
}
public
void
setSex_No
(
String
sex_No
)
{
this
.
sex_No
=
sex_No
;
}
public
String
getId_No
()
{
return
id_No
;
}
public
void
setId_No
(
String
id_No
)
{
this
.
id_No
=
id_No
;
}
public
String
getBirthday
()
{
return
birthday
;
}
public
void
setBirthday
(
String
birthday
)
{
this
.
birthday
=
birthday
;
}
public
String
getSign_Govt
()
{
return
sign_Govt
;
}
public
void
setSign_Govt
(
String
sign_Govt
)
{
this
.
sign_Govt
=
sign_Govt
;
}
public
String
getBegin_Date
()
{
return
begin_Date
;
}
public
void
setBegin_Date
(
String
begin_Date
)
{
this
.
begin_Date
=
begin_Date
;
}
public
String
getExpire_Date
()
{
return
expire_Date
;
}
public
void
setExpire_Date
(
String
expire_Date
)
{
this
.
expire_Date
=
expire_Date
;
}
public
String
getStatus_No
()
{
return
status_No
;
}
public
void
setStatus_No
(
String
status_No
)
{
this
.
status_No
=
status_No
;
}
public
String
getTaskState
()
{
return
taskState
;
}
public
void
setTaskState
(
String
taskState
)
{
this
.
taskState
=
taskState
;
}
public
String
getCityName
()
{
return
cityName
;
}
public
void
setCityName
(
String
cityName
)
{
this
.
cityName
=
cityName
;
}
public
Data
getLastModifyTime
()
{
return
lastModifyTime
;
}
public
void
setLastModifyTime
(
Data
lastModifyTime
)
{
this
.
lastModifyTime
=
lastModifyTime
;
}
}
\ No newline at end of file
src/main/java/com/yxproject/start/entity/resp/SelectByWorkOrderEntity.java
deleted
100644 → 0
View file @
26271c2f
package
com
.
yxproject
.
start
.
entity
.
resp
;
import
java.util.Date
;
public
class
SelectByWorkOrderEntity
{
private
String
library
;
private
String
cityName
;
private
String
cardType
;
private
String
painterName
;
private
long
task_Id
;
private
Date
submit_Date
;
private
Date
position_Date
;
private
String
quality_People_Name
;
private
Date
out_Storage_Date
;
private
Date
in_Storage_Date
;
private
String
exception_Information
;
public
String
getLibrary
()
{
return
library
;
}
public
void
setLibrary
(
String
library
)
{
this
.
library
=
library
;
}
public
String
getCityName
()
{
return
cityName
;
}
public
void
setCityName
(
String
cityName
)
{
this
.
cityName
=
cityName
;
}
public
String
getCardType
()
{
return
cardType
;
}
public
void
setCardType
(
String
cardType
)
{
this
.
cardType
=
cardType
;
}
public
String
getPainterName
()
{
return
painterName
;
}
public
void
setPainterName
(
String
painterName
)
{
this
.
painterName
=
painterName
;
}
public
long
getTask_Id
()
{
return
task_Id
;
}
public
void
setTask_Id
(
long
task_Id
)
{
this
.
task_Id
=
task_Id
;
}
public
Date
getSubmit_Date
()
{
return
submit_Date
;
}
public
void
setSubmit_Date
(
Date
submit_Date
)
{
this
.
submit_Date
=
submit_Date
;
}
public
Date
getPosition_Date
()
{
return
position_Date
;
}
public
void
setPosition_Date
(
Date
position_Date
)
{
this
.
position_Date
=
position_Date
;
}
public
String
getQuality_People_Name
()
{
return
quality_People_Name
;
}
public
void
setQuality_People_Name
(
String
quality_People_Name
)
{
this
.
quality_People_Name
=
quality_People_Name
;
}
public
Date
getOut_Storage_Date
()
{
return
out_Storage_Date
;
}
public
void
setOut_Storage_Date
(
Date
out_Storage_Date
)
{
this
.
out_Storage_Date
=
out_Storage_Date
;
}
public
Date
getIn_Storage_Date
()
{
return
in_Storage_Date
;
}
public
void
setIn_Storage_Date
(
Date
in_Storage_Date
)
{
this
.
in_Storage_Date
=
in_Storage_Date
;
}
public
String
getException_Information
()
{
return
exception_Information
;
}
public
void
setException_Information
(
String
exception_Information
)
{
this
.
exception_Information
=
exception_Information
;
}
}
src/main/java/com/yxproject/start/entity/resp/SelectFromAccEntity.java
deleted
100644 → 0
View file @
26271c2f
package
com
.
yxproject
.
start
.
entity
.
resp
;
public
class
SelectFromAccEntity
{
private
String
acceptNo
;
private
String
county
;
private
String
name
;
private
String
cardType
;
private
String
cardId
;
private
String
sex
;
private
String
signGovt
;
private
String
beginDate
;
private
String
endDate
;
private
String
policeStation
;
private
String
dataState
;
private
String
time
;
public
String
getAcceptNo
()
{
return
acceptNo
;
}
public
void
setAcceptNo
(
String
acceptNo
)
{
this
.
acceptNo
=
acceptNo
;
}
public
String
getCounty
()
{
return
county
;
}
public
void
setCounty
(
String
county
)
{
this
.
county
=
county
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getCardType
()
{
return
cardType
;
}
public
void
setCardType
(
String
cardType
)
{
this
.
cardType
=
cardType
;
}
public
String
getCardId
()
{
return
cardId
;
}
public
void
setCardId
(
String
cardId
)
{
this
.
cardId
=
cardId
;
}
public
String
getSex
()
{
return
sex
;
}
public
void
setSex
(
String
sex
)
{
this
.
sex
=
sex
;
}
public
String
getSignGovt
()
{
return
signGovt
;
}
public
void
setSignGovt
(
String
signGovt
)
{
this
.
signGovt
=
signGovt
;
}
public
String
getBeginDate
()
{
return
beginDate
;
}
public
void
setBeginDate
(
String
beginDate
)
{
this
.
beginDate
=
beginDate
;
}
public
String
getEndDate
()
{
return
endDate
;
}
public
void
setEndDate
(
String
endDate
)
{
this
.
endDate
=
endDate
;
}
public
String
getPoliceStation
()
{
return
policeStation
;
}
public
void
setPoliceStation
(
String
policeStation
)
{
this
.
policeStation
=
policeStation
;
}
public
String
getDataState
()
{
return
dataState
;
}
public
void
setDataState
(
String
dataState
)
{
this
.
dataState
=
dataState
;
}
public
String
getTime
()
{
return
time
;
}
public
void
setTime
(
String
time
)
{
this
.
time
=
time
;
}
}
src/main/java/com/yxproject/start/entity/resp/SelectFromProdEntity.java
deleted
100644 → 0
View file @
26271c2f
package
com
.
yxproject
.
start
.
entity
.
resp
;
public
class
SelectFromProdEntity
{
private
String
acceptNo
;
private
String
county
;
private
String
name
;
private
String
cardType
;
private
String
cardId
;
private
String
sex
;
private
String
signGovt
;
private
String
beginDate
;
private
String
endDate
;
private
String
policeStation
;
private
String
dataState
;
private
String
time
;
public
String
getAcceptNo
()
{
return
acceptNo
;
}
public
void
setAcceptNo
(
String
acceptNo
)
{
this
.
acceptNo
=
acceptNo
;
}
public
String
getCounty
()
{
return
county
;
}
public
void
setCounty
(
String
county
)
{
this
.
county
=
county
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getCardType
()
{
return
cardType
;
}
public
void
setCardType
(
String
cardType
)
{
this
.
cardType
=
cardType
;
}
public
String
getCardId
()
{
return
cardId
;
}
public
void
setCardId
(
String
cardId
)
{
this
.
cardId
=
cardId
;
}
public
String
getSex
()
{
return
sex
;
}
public
void
setSex
(
String
sex
)
{
this
.
sex
=
sex
;
}
public
String
getSignGovt
()
{
return
signGovt
;
}
public
void
setSignGovt
(
String
signGovt
)
{
this
.
signGovt
=
signGovt
;
}
public
String
getBeginDate
()
{
return
beginDate
;
}
public
void
setBeginDate
(
String
beginDate
)
{
this
.
beginDate
=
beginDate
;
}
public
String
getEndDate
()
{
return
endDate
;
}
public
void
setEndDate
(
String
endDate
)
{
this
.
endDate
=
endDate
;
}
public
String
getPoliceStation
()
{
return
policeStation
;
}
public
void
setPoliceStation
(
String
policeStation
)
{
this
.
policeStation
=
policeStation
;
}
public
String
getDataState
()
{
return
dataState
;
}
public
void
setDataState
(
String
dataState
)
{
this
.
dataState
=
dataState
;
}
public
String
getTime
()
{
return
time
;
}
public
void
setTime
(
String
time
)
{
this
.
time
=
time
;
}
}
src/main/java/com/yxproject/start/entity/resp/SelectFromTaskListEntity.java
deleted
100644 → 0
View file @
26271c2f
package
com
.
yxproject
.
start
.
entity
.
resp
;
import
java.util.Date
;
/**
* 根据任务单查询结果实体
* 任务单流水号 区县 制证类型 日期 数据核验 膜打印 预定位 分拣 质检 仓库
*/
public
class
SelectFromTaskListEntity
{
private
String
taskId
;
private
String
county
;
private
Long
cardType
;
private
Date
issuedDate
;
private
Date
dataCheckDate
;
private
Date
printOutDate
;
private
Date
positionDate
;
private
Date
sortOutDate
;
private
Date
qualityTestDate
;
private
Date
outStorageDate
;
public
String
getTaskId
()
{
return
taskId
;
}
public
void
setTaskId
(
String
taskId
)
{
this
.
taskId
=
taskId
;
}
public
String
getCounty
()
{
return
county
;
}
public
void
setCounty
(
String
county
)
{
this
.
county
=
county
;
}
public
Long
getCardType
()
{
return
cardType
;
}
public
void
setCardType
(
Long
cardType
)
{
this
.
cardType
=
cardType
;
}
public
Date
getIssuedDate
()
{
return
issuedDate
;
}
public
void
setIssuedDate
(
Date
issuedDate
)
{
this
.
issuedDate
=
issuedDate
;
}
public
Date
getDataCheckDate
()
{
return
dataCheckDate
;
}
public
void
setDataCheckDate
(
Date
dataCheckDate
)
{
this
.
dataCheckDate
=
dataCheckDate
;
}
public
Date
getPrintOutDate
()
{
return
printOutDate
;
}
public
void
setPrintOutDate
(
Date
printOutDate
)
{
this
.
printOutDate
=
printOutDate
;
}
public
Date
getPositionDate
()
{
return
positionDate
;
}
public
void
setPositionDate
(
Date
positionDate
)
{
this
.
positionDate
=
positionDate
;
}
public
Date
getSortOutDate
()
{
return
sortOutDate
;
}
public
void
setSortOutDate
(
Date
sortOutDate
)
{
this
.
sortOutDate
=
sortOutDate
;
}
public
Date
getQualityTestDate
()
{
return
qualityTestDate
;
}
public
void
setQualityTestDate
(
Date
qualityTestDate
)
{
this
.
qualityTestDate
=
qualityTestDate
;
}
public
Date
getOutStorageDate
()
{
return
outStorageDate
;
}
public
void
setOutStorageDate
(
Date
outStorageDate
)
{
this
.
outStorageDate
=
outStorageDate
;
}
}
src/main/java/com/yxproject/start/mapper/SelectSerialNumberMapper.java
View file @
19a4a5b4
This diff is collapsed.
Click to expand it.
src/main/java/com/yxproject/start/service/SelectSerialNumberService.java
View file @
19a4a5b4
package
com
.
yxproject
.
start
.
service
;
import
com.yxproject.start.entity.resp.*
;
import
java.util.Map
;
public
interface
SelectSerialNumberService
{
/*根据任务单查询辅助库*/
SelectFromTaskListEntity
selectByWorkOrderFromYX
(
String
id
);
/*根据受理号查询*/
SelectFromTaskListEntity
selectByAcceptFromYX
(
String
id
);
SelectFromAccEntity
selectByAcceptFromAcc
(
String
id
);
SelectFromProdEntity
selectByAcceptFromProd
(
String
id
);
/*根据组号查询*/
SelectFromTaskListEntity
selectByGroupNoFromYX
(
String
id
);
SelectFromProdEntity
selectByGroupNoFromProd
(
String
id
);
SelectFromAccEntity
selectByGroupNoFromAcc
(
String
id
);
/*根据身份证号查询*/
SelectFromTaskListEntity
selectByCardIdFromYX
(
String
id
);
SelectFromAccEntity
selectByCardIdFromAcc
(
String
id
);
SelectFromProdEntity
selectByCardIdFromProd
(
String
id
);
Map
<
String
,
Object
>
selectByWorkOrderFromYX
(
String
id
);
/*根据组号查询辅助库*/
Map
<
String
,
Object
>
selectByGroupNo
(
String
id
);
/*根据身份证号或受理号查询辅助库*/
Map
<
String
,
Object
>
selectByAcceptNoOrCardIdFromTaskList
(
String
id
);
/*根据身份证号或受理号查询受理库*/
Map
<
String
,
Object
>
selectByAcceptNoOrCardIdFromACC
(
String
id
);
/*根据身份证号或受理号查询制证库*/
Map
<
String
,
Object
>
selectByAcceptNoOrCardIdFromPROD
(
String
id
);
}
src/main/java/com/yxproject/start/service/impl/SelectSerialNumberServiceImpl.java
View file @
19a4a5b4
package
com
.
yxproject
.
start
.
service
.
impl
;
import
com.yxproject.start.entity.resp.*
;
import
com.yxproject.start.mapper.SelectSerialNumberMapper
;
import
com.yxproject.start.service.SelectSerialNumberService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
javax.xml.crypto.Data
;
import
java.util.Date
;
import
java.util.Map
;
@Service
public
class
SelectSerialNumberServiceImpl
implements
SelectSerialNumberService
{
public
class
SelectSerialNumberServiceImpl
implements
SelectSerialNumberService
{
@Autowired
public
SelectSerialNumberMapper
selectSerialNumberMapper
;
@Override
public
SelectFromTaskListEntity
selectByWorkOrderFromYX
(
String
id
)
{
return
null
;
}
@Override
public
SelectFromTaskListEntity
selectByAcceptFromYX
(
String
id
)
{
return
null
;
public
Map
<
String
,
Object
>
selectByWorkOrderFromYX
(
String
id
){
Map
<
String
,
Object
>
result
=
selectSerialNumberMapper
.
selectByWorkOrder
(
id
);
return
result
;
}
@Override
public
SelectFromAccEntity
selectByAcceptFromAcc
(
String
id
)
{
return
null
;
public
Map
<
String
,
Object
>
selectByGroupNo
(
String
id
)
{
System
.
out
.
println
(
"impl"
);
Map
<
String
,
Object
>
result
=
selectSerialNumberMapper
.
selectByGroupNo
(
id
);
System
.
out
.
println
(
"查询结果:"
+
result
);
return
result
;
}
@Override
public
SelectFromProdEntity
selectByAcceptFromProd
(
String
id
)
{
return
null
;
public
Map
<
String
,
Object
>
selectByAcceptNoOrCardIdFromTaskList
(
String
id
)
{
Map
<
String
,
Object
>
result
=
selectSerialNumberMapper
.
selectByAcceptNoOrCardIdFromTaskList
(
id
);
return
result
;
}
@Override
public
SelectFromTaskListEntity
selectByGroupNoFromYX
(
String
id
)
{
return
null
;
public
Map
<
String
,
Object
>
selectByAcceptNoOrCardIdFromACC
(
String
id
)
{
Map
<
String
,
Object
>
result
=
selectSerialNumberMapper
.
selectByAcceptNoOrCardIdFromACC
(
id
);
if
(
result
.
get
(
"sex"
).
equals
(
"1"
)){
result
.
put
(
"sex"
,
"男"
);
}
else
if
(
result
.
get
(
"sex"
).
equals
(
"2"
)){
result
.
put
(
"sex"
,
"女"
);
}
else
{
result
.
put
(
"sex"
,
"未知"
);
}
return
result
;
}
@Override
public
SelectFromProdEntity
selectByGroupNoFromProd
(
String
id
)
{
return
null
;
}
public
Map
<
String
,
Object
>
selectByAcceptNoOrCardIdFromPROD
(
String
id
)
{
Map
<
String
,
Object
>
result
=
selectSerialNumberMapper
.
selectByAcceptNoOrCardIdFromPROD
(
id
);
if
(
result
.
get
(
"sex"
).
equals
(
"1"
)){
result
.
put
(
"sex"
,
"男"
);
}
else
if
(
result
.
get
(
"sex"
).
equals
(
"2"
)){
result
.
put
(
"sex"
,
"女"
);
}
else
{
result
.
put
(
"sex"
,
"未知"
);
@Override
public
SelectFromAccEntity
selectByGroupNoFromAcc
(
String
id
)
{
return
null
;
}
Object
photoDate
=
result
.
get
(
""
);
@Override
public
SelectFromTaskListEntity
selectByCardIdFromYX
(
String
id
)
{
return
null
;
return
result
;
}
@Override
public
SelectFromAccEntity
selectByCardIdFromAcc
(
String
id
)
{
return
null
;
}
@Override
public
SelectFromProdEntity
selectByCardIdFromProd
(
String
id
)
{
return
null
;
}
}
src/test/java/com/yxproject/start/test.java
0 → 100644
View file @
19a4a5b4
package
com
.
yxproject
.
start
;
import
com.yxproject.start.api.SelectApi
;
public
class
test
{
public
static
void
main
(
String
[]
args
){
SelectApi
selectApi
=
new
SelectApi
();
selectApi
.
selectByCard
(
"20190305001"
);
}
}
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