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
ee4a2d58
Commit
ee4a2d58
authored
Apr 01, 2019
by
dahai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改下发任务单时 添加工作组别
parent
4b05d32c
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
43 additions
and
13 deletions
+43
-13
FailedCardApi.java
src/main/java/com/yxproject/start/api/FailedCardApi.java
+5
-0
TaskListApi.java
src/main/java/com/yxproject/start/api/TaskListApi.java
+8
-1
FailedCardMapper.java
...ain/java/com/yxproject/start/mapper/FailedCardMapper.java
+1
-2
TaskListMapper.java
src/main/java/com/yxproject/start/mapper/TaskListMapper.java
+8
-2
FailedCardService.java
...n/java/com/yxproject/start/service/FailedCardService.java
+5
-5
TaskListService.java
...ain/java/com/yxproject/start/service/TaskListService.java
+2
-0
TaskListServiceImpl.java
...com/yxproject/start/service/impl/TaskListServiceImpl.java
+14
-3
No files found.
src/main/java/com/yxproject/start/api/FailedCardApi.java
View file @
ee4a2d58
...
...
@@ -115,6 +115,11 @@ public class FailedCardApi {
taskEntity
.
setCardType
(
cardType
);
taskEntity
.
setTaskStateId
((
long
)
1
);
taskEntity
.
setSubmitName
(
name
);
if
(
"null"
.
equals
(
resultMap
.
get
(
"WORK_GROUP"
)+
""
)){
}
else
{
taskEntity
.
setWorkGroup
(
Long
.
valueOf
(
resultMap
.
get
(
"WORK_GROUP"
)+
""
));
}
/*特证数+1*/
failedCardService
.
specialCardAdd
(
acceptNo
);
/*生成新任务单*/
...
...
src/main/java/com/yxproject/start/api/TaskListApi.java
View file @
ee4a2d58
...
...
@@ -98,9 +98,16 @@ public class TaskListApi {
JSONArray
jsonArray
=
(
JSONArray
)
jsonObject
.
get
(
"taskIdList"
);
JSONArray
failedList
=
(
JSONArray
)
jsonObject
.
get
(
"failedList"
);
String
process
=
jsonObject
.
get
(
"process"
).
toString
();
String
name
=
jsonObject
.
get
(
"name"
).
toString
();
List
<
String
>
list
=
(
List
<
String
>)
jsonArray
;
return
taskListService
.
updateState
(
failedList
,
list
,
process
,
name
);
if
(
"1"
.
equals
(
process
)){
String
workGroup
=
jsonObject
.
get
(
"workGroup"
).
toString
();
return
taskListService
.
updateState1
(
failedList
,
list
,
process
,
name
,
workGroup
);
}
else
{
return
taskListService
.
updateState
(
failedList
,
list
,
process
,
name
);
}
}
/**
...
...
src/main/java/com/yxproject/start/mapper/FailedCardMapper.java
View file @
ee4a2d58
...
...
@@ -4,7 +4,6 @@ import com.yxproject.start.entity.FailedCardEntity;
import
com.yxproject.start.entity.FailedCardReasonDicEntity
;
import
com.yxproject.start.entity.SpecialCardEntity
;
import
org.apache.ibatis.annotations.*
;
import
org.omg.CORBA.PUBLIC_MEMBER
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -75,7 +74,7 @@ public interface FailedCardMapper {
@Select
(
"select prod_card_t.accept_no,subStr(prod_card_t.UPLOAD_NO,0,6) as COUNTY_CODE,task.CARD_TYPE\n"
+
"from prod_card_t@prod_link\n"
+
"
,task.work_gruop
from prod_card_t@prod_link\n"
+
"left join group_no on subStr(prod_card_t.ACCEPT_NO,0,8)=group_no.group_no "
+
"left join task on group_no.task_id = task.task_id "
+
"where prod_card_t.accept_no=#{acceptNo} or prod_card_t.ID_NO=#{acceptNo}"
)
...
...
src/main/java/com/yxproject/start/mapper/TaskListMapper.java
View file @
ee4a2d58
...
...
@@ -160,6 +160,9 @@ public interface TaskListMapper {
"<if test='connectName != null '>"
+
" ,CONNECT_NAME"
+
"</if>"
+
"<if test='workGroup != null '>"
+
" ,work_group"
+
"</if>"
+
",TASK_STATE_ID,OLD_CARD_TYPE) "
+
"values(#{cardType},#{countyCode}"
+
"<if test='submitDate != null '>"
+
...
...
@@ -207,6 +210,9 @@ public interface TaskListMapper {
"<if test='connectName != null '>"
+
" , #{connectName}"
+
"</if>"
+
"<if test='workGroup != null '>"
+
" , #{workGroup}"
+
"</if>"
+
",#{taskStateId},#{oldCardType}) </script>"
)
@Options
(
useGeneratedKeys
=
true
,
keyProperty
=
"taskId"
,
keyColumn
=
"TASK_ID"
)
public
boolean
saveFastTask
(
TaskEntity
taskEntity
);
...
...
@@ -1145,8 +1151,8 @@ public interface TaskListMapper {
* @param taskId
* @return
*/
@Update
(
"UPDATE TASK SET TASK_STATE_ID=#{process},ISSUED_NAME=#{name} WHERE TASK_ID = #{taskId} "
)
public
boolean
updateState1
(
@Param
(
"taskId"
)
String
taskId
,
@Param
(
"process"
)
String
process
,
@Param
(
"name"
)
String
name
);
@Update
(
"UPDATE TASK SET TASK_STATE_ID=#{process},ISSUED_NAME=#{name}
work_group = #{workGroup},
WHERE TASK_ID = #{taskId} "
)
public
boolean
updateState1
(
@Param
(
"taskId"
)
String
taskId
,
@Param
(
"process"
)
String
process
,
@Param
(
"name"
)
String
name
,
@Param
(
"workGroup"
)
String
workGroup
);
/**
*更改任务单状态
...
...
src/main/java/com/yxproject/start/service/FailedCardService.java
View file @
ee4a2d58
...
...
@@ -12,23 +12,23 @@ public interface FailedCardService {
public
List
<
FailedCardReasonDicEntity
>
selectFailedCardDic
();
public
Map
<
String
,
Object
>
selectInfoByCardId
(
@Param
(
"cardId"
)
String
cardId
);
public
Map
<
String
,
Object
>
selectInfoByCardId
(
String
cardId
);
public
boolean
insertFailedCard
(
@Param
(
"failedCardReasonId"
)
String
failedCardReasonId
,
@Param
(
"acceptNo"
)
String
acceptNo
,
@Param
(
"taskId"
)
String
taskId
,
@Param
(
"initiator"
)
String
initiator
,
@Param
(
"note"
)
String
note
,
String
workGroup
);
public
boolean
insertFailedCard
(
String
failedCardReasonId
,
String
acceptNo
,
String
taskId
,
String
initiator
,
String
note
,
String
workGroup
);
public
Map
<
String
,
Object
>
selectCountIdByCardId
(
String
cardId
);
public
boolean
specialCardAdd
(
@Param
(
"acceptNo"
)
String
acceptNo
);
public
boolean
specialCardAdd
(
String
acceptNo
);
public
boolean
addSpecialCard
(
SpecialCardEntity
specialCardEntity
);
public
Map
<
String
,
Object
>
selectTaskListDate
(
@Param
(
"acceptNo"
)
String
acceptNo
);
public
Map
<
String
,
Object
>
selectTaskListDate
(
String
acceptNo
);
public
List
<
String
>
selectCardType
();
public
List
<
String
>
selectGroupNo
(
String
idCard
);
public
Map
<
String
,
Object
>
selectTaskListById
(
@Param
(
"id"
)
String
id
);
public
Map
<
String
,
Object
>
selectTaskListById
(
String
id
);
public
Map
<
String
,
Object
>
selectGroupDate
(
String
groupNo
);
...
...
src/main/java/com/yxproject/start/service/TaskListService.java
View file @
ee4a2d58
...
...
@@ -23,6 +23,8 @@ public interface TaskListService {
public
boolean
updateState
(
List
<
String
>
failedlist
,
List
<
String
>
list
,
String
process
,
String
name
);
public
boolean
updateState1
(
List
<
String
>
failedlist
,
List
<
String
>
list
,
String
process
,
String
name
,
String
workGroup
);
public
boolean
updateState2
(
List
<
String
>
failedlist
,
List
<
String
>
list
,
String
process
,
String
name
,
long
printer
);
public
List
<
Object
>
selectByCountyAtACCU
(
String
date
);
...
...
src/main/java/com/yxproject/start/service/impl/TaskListServiceImpl.java
View file @
ee4a2d58
...
...
@@ -56,9 +56,6 @@ public class TaskListServiceImpl implements TaskListService {
public
boolean
updateState
(
List
<
String
>
failedList
,
List
<
String
>
list
,
String
process
,
String
name
)
{
for
(
String
taskId
:
list
)
{
switch
(
process
)
{
case
"1"
:
taskListMapper
.
updateState1
(
taskId
,
process
,
name
);
break
;
case
"3"
:
taskListMapper
.
updateState3
(
taskId
,
process
,
name
);
break
;
...
...
@@ -102,6 +99,20 @@ public class TaskListServiceImpl implements TaskListService {
return
true
;
}
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
boolean
updateState1
(
List
<
String
>
failedList
,
List
<
String
>
list
,
String
process
,
String
name
,
String
workGroup
)
{
for
(
String
taskId
:
list
)
{
taskListMapper
.
updateState1
(
taskId
,
process
,
name
,
workGroup
);
}
return
true
;
}
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
boolean
updateState2
(
List
<
String
>
failedlist
,
List
<
String
>
list
,
String
process
,
String
name
,
long
printer
)
{
...
...
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