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
47b12f64
Commit
47b12f64
authored
Mar 05, 2019
by
suichenguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
搜索框
parent
19a4a5b4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
25 deletions
+25
-25
SelectSerialNumberMapper.java
.../com/yxproject/start/mapper/SelectSerialNumberMapper.java
+6
-6
SelectSerialNumberServiceImpl.java
...ect/start/service/impl/SelectSerialNumberServiceImpl.java
+19
-19
No files found.
src/main/java/com/yxproject/start/mapper/SelectSerialNumberMapper.java
View file @
47b12f64
...
@@ -29,10 +29,10 @@ public interface SelectSerialNumberMapper {
...
@@ -29,10 +29,10 @@ public interface SelectSerialNumberMapper {
"from TASK\n"
+
"from TASK\n"
+
"LEFT JOIN COUNTY_DIC ON TASK.COUNTY_CODE =COUNTY_DIC.COUNTY_CODE\n"
+
"LEFT JOIN COUNTY_DIC ON TASK.COUNTY_CODE =COUNTY_DIC.COUNTY_CODE\n"
+
"LEFT JOIN CARD_TYPE_DIC ON TASK.CARD_TYPE = CARD_TYPE_DIC.CARD_TYPE_ID\n"
+
"LEFT JOIN CARD_TYPE_DIC ON TASK.CARD_TYPE = CARD_TYPE_DIC.CARD_TYPE_ID\n"
+
"LEFT JOIN GROUP_NO ON TASK.TASK_ID=GROUP_NO.TASK_ID
\n"
+
"LEFT JOIN GROUP_NO ON TASK.TASK_ID=GROUP_NO.TASK_ID\n"
+
"LEFT JOIN
ACC_CARD_T@ACCU_LINK ON subStr(ACC_CARD_T.ACCEPT_NO,0,8)=GROUP_NO.GROUP_NO;
\n"
+
"LEFT JOIN
PROD_DBA.PROD_CARD_T ON subStr(PROD_CARD_T.ACCEPT_NO ,0,8)=GROUP_NO.GROUP_NO
\n"
+
"LEFT JOIN PREPRO_PERSON ON PREPRO_PERSON.GMSFHM
=ACC_CARD_T@ACCU_LINK
.ID_NO\n"
+
"LEFT JOIN PREPRO_PERSON ON PREPRO_PERSON.GMSFHM
= PROD_DBA.PROD_CARD_T
.ID_NO\n"
+
"WHERE PREPRO_PERSON.GMSFHM =#{id} OR
ACC
_CARD_T.ACCEPT_NO=#{id}"
)
"WHERE PREPRO_PERSON.GMSFHM =#{id} OR
PROD
_CARD_T.ACCEPT_NO=#{id}"
)
public
Map
<
String
,
Object
>
selectByAcceptNoOrCardIdFromTaskList
(
String
id
);
public
Map
<
String
,
Object
>
selectByAcceptNoOrCardIdFromTaskList
(
String
id
);
@Select
(
"SELECT ACC_CARD_T.ACCEPT_NO,COUNTY_DIC.COUNTYNAME,ACC_CARD_T.NAME,CARD_TYPE_DIC.CARD_TYPE,ACC_CARD_T.ID_NO,ACC_CARD_T.SEX_NO,\n"
+
@Select
(
"SELECT ACC_CARD_T.ACCEPT_NO,COUNTY_DIC.COUNTYNAME,ACC_CARD_T.NAME,CARD_TYPE_DIC.CARD_TYPE,ACC_CARD_T.ID_NO,ACC_CARD_T.SEX_NO,\n"
+
...
@@ -48,7 +48,7 @@ public interface SelectSerialNumberMapper {
...
@@ -48,7 +48,7 @@ public interface SelectSerialNumberMapper {
@Select
(
"SELECT PROD_CARD_T.ACCEPT_NO,COUNTY_DIC.COUNTYNAME,PROD_CARD_T.NAME,CARD_TYPE_DIC.CARD_TYPE,PROD_CARD_T.ID_NO,PROD_CARD_T.SEX_NO,\n"
+
@Select
(
"SELECT PROD_CARD_T.ACCEPT_NO,COUNTY_DIC.COUNTYNAME,PROD_CARD_T.NAME,CARD_TYPE_DIC.CARD_TYPE,PROD_CARD_T.ID_NO,PROD_CARD_T.SEX_NO,\n"
+
"GAJG_DM.GAJG_MC AS GAJG1,PROD_CARD_T.BEGIN_DATE,PROD_CARD_T.EXPIRE_DATE,PROD_CARD_T.SIGN_GOVT,\n"
+
"GAJG_DM.GAJG_MC AS GAJG1,PROD_CARD_T.BEGIN_DATE,PROD_CARD_T.EXPIRE_DATE,PROD_CARD_T.SIGN_GOVT,\n"
+
"
PROD_TRACE_T.PHOTO_DATE,PROD_TRACE_T.EXPORT_DATE,PROD_TRACE_T.DOWNLOAD_DATE,PROD_TRACE_T.ELECTRIC_WRITE_DATE,PROD_TRACE_T.CHECK_DATE,PROD_TRACE_T.MOVE_DATE
\n"
+
"
decode(PROD_TRACE_T.PHOTO_DATE,null,decode(PROD_TRACE_T.EXPORT_DATE,null,decode(PROD_TRACE_T.DOWNLOAD_DATE,null,decode(PROD_TRACE_T.ELECTRIC_WRITE_DATE,null,decode(PROD_TRACE_T.CHECK_DATE,null,decode(PROD_TRACE_T.MOVE_DATE,null,To_date('20190304','yyyyMMdd'),PROD_TRACE_T.MOVE_DATE),PROD_TRACE_T.CHECK_DATE),PROD_TRACE_T.ELECTRIC_WRITE_DATE),PROD_TRACE_T.DOWNLOAD_DATE),PROD_TRACE_T.EXPORT_DATE),PROD_TRACE_T.PHOTO_DATE)
\n"
+
"FROM PROD_CARD_T@PROD_LINK\n"
+
"FROM PROD_CARD_T@PROD_LINK\n"
+
"LEFT JOIN COUNTY_DIC ON subStr(PROD_CARD_T.UPLOAD_NO,0,6)=COUNTY_DIC.COUNTY_CODE\n"
+
"LEFT JOIN COUNTY_DIC ON subStr(PROD_CARD_T.UPLOAD_NO,0,6)=COUNTY_DIC.COUNTY_CODE\n"
+
"LEFT JOIN GROUP_NO ON subStr(PROD_CARD_T.ACCEPT_NO,0,8)=GROUP_NO.GROUP_NO \n"
+
"LEFT JOIN GROUP_NO ON subStr(PROD_CARD_T.ACCEPT_NO,0,8)=GROUP_NO.GROUP_NO \n"
+
...
@@ -56,7 +56,7 @@ public interface SelectSerialNumberMapper {
...
@@ -56,7 +56,7 @@ public interface SelectSerialNumberMapper {
"LEFT JOIN CARD_TYPE_DIC ON TASK.CARD_TYPE = CARD_TYPE_DIC.CARD_TYPE_ID \n"
+
"LEFT JOIN CARD_TYPE_DIC ON TASK.CARD_TYPE = CARD_TYPE_DIC.CARD_TYPE_ID \n"
+
"LEFT JOIN GAJG_DM ON subStr(PROD_CARD_T.upload_no,0,9)= GAJG_DM.GAJG_DM\n"
+
"LEFT JOIN GAJG_DM ON subStr(PROD_CARD_T.upload_no,0,9)= GAJG_DM.GAJG_DM\n"
+
"LEFT JOIN PROD_TRACE_T@PROD_LINK ON PROD_TRACE_T.ACCEPT_NO =PROD_CARD_T.ACCEPT_NO\n"
+
"LEFT JOIN PROD_TRACE_T@PROD_LINK ON PROD_TRACE_T.ACCEPT_NO =PROD_CARD_T.ACCEPT_NO\n"
+
"WHERE PROD_CARD_T.ACCEPT_NO =
'0231245603' OR PROD_CARD_T.ID_NO ='0231245603';
"
)
"WHERE PROD_CARD_T.ACCEPT_NO =
#{id} OR PROD_CARD_T.ID_NO =#{id}
"
)
public
Map
<
String
,
Object
>
selectByAcceptNoOrCardIdFromPROD
(
String
id
);
public
Map
<
String
,
Object
>
selectByAcceptNoOrCardIdFromPROD
(
String
id
);
}
}
src/main/java/com/yxproject/start/service/impl/SelectSerialNumberServiceImpl.java
View file @
47b12f64
...
@@ -36,31 +36,31 @@ public class SelectSerialNumberServiceImpl implements SelectSerialNumberService{
...
@@ -36,31 +36,31 @@ public class SelectSerialNumberServiceImpl implements SelectSerialNumberService{
@Override
@Override
public
Map
<
String
,
Object
>
selectByAcceptNoOrCardIdFromACC
(
String
id
)
{
public
Map
<
String
,
Object
>
selectByAcceptNoOrCardIdFromACC
(
String
id
)
{
Map
<
String
,
Object
>
result
=
selectSerialNumberMapper
.
selectByAcceptNoOrCardIdFromACC
(
id
);
Map
<
String
,
Object
>
result
=
selectSerialNumberMapper
.
selectByAcceptNoOrCardIdFromACC
(
id
);
if
(
result
.
get
(
"sex"
).
equals
(
"1"
)){
result
.
put
(
"sex"
,
"男"
);
// if (result.get("SEX_ID").equals("1")){
}
else
if
(
result
.
get
(
"sex"
).
equals
(
"2"
)){
// result.put("sex","男");
result
.
put
(
"sex"
,
"女"
);
// }else if(result.get("SEX_ID").equals("2")){
}
else
{
// result.put("sex","女");
result
.
put
(
"sex"
,
"未知"
);
// }else {
}
// result.put("sex","未知");
//
// }
System
.
out
.
println
(
"FromACC:"
+
result
);
return
result
;
return
result
;
}
}
@Override
@Override
public
Map
<
String
,
Object
>
selectByAcceptNoOrCardIdFromPROD
(
String
id
)
{
public
Map
<
String
,
Object
>
selectByAcceptNoOrCardIdFromPROD
(
String
id
)
{
Map
<
String
,
Object
>
result
=
selectSerialNumberMapper
.
selectByAcceptNoOrCardIdFromPROD
(
id
);
Map
<
String
,
Object
>
result
=
selectSerialNumberMapper
.
selectByAcceptNoOrCardIdFromPROD
(
id
);
if
(
result
.
get
(
"sex"
).
equals
(
"1"
)){
// if (result.get("SEX_ID").equals("1")){
result
.
put
(
"sex"
,
"男"
);
// result.put("sex","男");
}
else
if
(
result
.
get
(
"sex"
).
equals
(
"2"
)){
// }else if(result.get("SEX_ID").equals("2")){
result
.
put
(
"sex"
,
"女"
);
// result.put("sex","女");
}
else
{
// }else {
result
.
put
(
"sex"
,
"未知"
);
// result.put("sex","未知");
//
}
// }
Object
photoDate
=
result
.
get
(
""
);
System
.
out
.
println
(
"FromPROD:"
+
result
);
return
result
;
return
result
;
}
}
}
}
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