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
88de9c42
Commit
88de9c42
authored
Aug 27, 2019
by
dahai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改废证查询出错
parent
c8227999
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
10 deletions
+13
-10
FailedCardApi.java
src/main/java/com/yxproject/start/api/FailedCardApi.java
+0
-2
FailedCardMapper.java
...ain/java/com/yxproject/start/mapper/FailedCardMapper.java
+7
-2
TaskListMapper.java
src/main/java/com/yxproject/start/mapper/TaskListMapper.java
+6
-6
No files found.
src/main/java/com/yxproject/start/api/FailedCardApi.java
View file @
88de9c42
...
@@ -90,11 +90,9 @@ public class FailedCardApi {
...
@@ -90,11 +90,9 @@ public class FailedCardApi {
/**
/**
* 查询提交人上传的废证详情
* 查询提交人上传的废证详情
*
*
* @param date 提交日期
* @param name 提交人姓名
* @param name 提交人姓名
* @param startDate 提交起始日期
* @param startDate 提交起始日期
* @param endDate 提交结束日期
* @param endDate 提交结束日期
* @param requ
* @return
* @return
*/
*/
@RequestMapping
(
"queryFailedCardInfo"
)
@RequestMapping
(
"queryFailedCardInfo"
)
...
...
src/main/java/com/yxproject/start/mapper/FailedCardMapper.java
View file @
88de9c42
...
@@ -157,14 +157,19 @@ public interface FailedCardMapper {
...
@@ -157,14 +157,19 @@ public interface FailedCardMapper {
* @param name 提交人姓名
* @param name 提交人姓名
* @return
* @return
*/
*/
@Select
(
"select failed_card.FAILED_CARD_ID,FAILED_CARD_REASON_DIC.FAILED_CARD_REASON FAILED_CARD_REASON_ID,\n"
+
@Select
(
"
<script>
select failed_card.FAILED_CARD_ID,FAILED_CARD_REASON_DIC.FAILED_CARD_REASON FAILED_CARD_REASON_ID,\n"
+
"failed_card.ACCEPT_NO,failed_card.TASK_ID,failed_card.POSITION_DATE,failed_card.FINISH_DATE,\n"
+
"failed_card.ACCEPT_NO,failed_card.TASK_ID,failed_card.POSITION_DATE,failed_card.FINISH_DATE,\n"
+
"failed_card.ALLOT_DATE,failed_card.PRINT_DATE,decode(STATE,0,'已提交',1,'打印',2,'预封装',4,'工作组',5,'分拣') STATE,failed_card.INITIATOR,failed_card.NOTE,\n"
+
"failed_card.ALLOT_DATE,failed_card.PRINT_DATE,decode(STATE,0,'已提交',1,'打印',2,'预封装',4,'工作组',5,'分拣') STATE,failed_card.INITIATOR,failed_card.NOTE,\n"
+
"failed_card.WORK_GROUP,failed_card.NAME,failed_card.SUBMIT_DATE,prod_card_t.id_no,prod_card_t.name card_name\n"
+
"failed_card.WORK_GROUP,failed_card.NAME,failed_card.SUBMIT_DATE,prod_card_t.id_no,prod_card_t.name card_name\n"
+
"from failed_card "
+
"from failed_card "
+
"left join PROD_CARD_T@prodyd_link on failed_card.ACCEPT_NO = prod_card_t.ACCEPT_NO\n"
+
"left join PROD_CARD_T@prodyd_link on failed_card.ACCEPT_NO = prod_card_t.ACCEPT_NO\n"
+
"left join FAILED_CARD_REASON_DIC on failed_card.FAILED_CARD_REASON_ID = FAILED_CARD_REASON_DIC.FAILED_CARD_REASON_ID "
+
"left join FAILED_CARD_REASON_DIC on failed_card.FAILED_CARD_REASON_ID = FAILED_CARD_REASON_DIC.FAILED_CARD_REASON_ID "
+
"where failed_card.name = #{name} and to_char(submit_date,'yyyyMMdd') between #{startDate} and #{endDate} order by failed_card.ACCEPT_NO"
)
"where 1=1 "
+
"<if test = 'name != null'> "
+
" and failed_card.name = #{name}"
+
" </if>"
+
" and to_char(submit_date,'yyyyMMdd') between #{startDate} and #{endDate} order by failed_card.ACCEPT_NO"
+
"</script>"
)
public
List
<
Map
<
String
,
Object
>>
selectFailedCardInfo
(
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"name"
)
String
name
);
public
List
<
Map
<
String
,
Object
>>
selectFailedCardInfo
(
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"name"
)
String
name
);
...
...
src/main/java/com/yxproject/start/mapper/TaskListMapper.java
View file @
88de9c42
...
@@ -209,16 +209,16 @@ public interface TaskListMapper {
...
@@ -209,16 +209,16 @@ public interface TaskListMapper {
"<if test = 'workGroup != null'> "
+
"<if test = 'workGroup != null'> "
+
",work_Group"
+
",work_Group"
+
" </if>"
+
" </if>"
+
"<if test = 'note != null'> "
+
//
"<if test = 'note != null'> " +
",note"
+
//
",note" +
" </if>"
+
//
" </if>" +
") values(#{cardType},#{countyCode},#{submitName},#{taskStateId}"
+
") values(#{cardType},#{countyCode},#{submitName},#{taskStateId}"
+
"<if test = 'workGroup != null'> "
+
"<if test = 'workGroup != null'> "
+
",#{workGroup}"
+
",#{workGroup}"
+
" </if>"
+
" </if>"
+
"<if test = 'note != null'> "
+
//
"<if test = 'note != null'> " +
",#{note}"
+
//
",#{note}" +
" </if>"
+
//
" </if>" +
") "
+
") "
+
"</script>"
)
"</script>"
)
@Options
(
useGeneratedKeys
=
true
,
keyProperty
=
"taskId"
,
keyColumn
=
"TASK_ID"
)
@Options
(
useGeneratedKeys
=
true
,
keyProperty
=
"taskId"
,
keyColumn
=
"TASK_ID"
)
...
...
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