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
03b72d27
Commit
03b72d27
authored
Jun 13, 2019
by
dahai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
任务单加上一个工位的操作转出确认时间
parent
12005cfa
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
12 deletions
+14
-12
ExportExcelApi.java
src/main/java/com/yxproject/start/api/ExportExcelApi.java
+2
-2
TaskListApi.java
src/main/java/com/yxproject/start/api/TaskListApi.java
+5
-5
TaskListMapper.java
src/main/java/com/yxproject/start/mapper/TaskListMapper.java
+0
-0
DetailReceiptListService.java
...com/yxproject/start/service/DetailReceiptListService.java
+1
-1
DetailReceiptListServiceImpl.java
...ject/start/service/impl/DetailReceiptListServiceImpl.java
+5
-3
TaskListServiceImpl.java
...com/yxproject/start/service/impl/TaskListServiceImpl.java
+1
-1
No files found.
src/main/java/com/yxproject/start/api/ExportExcelApi.java
View file @
03b72d27
...
@@ -43,9 +43,9 @@ public class ExportExcelApi {
...
@@ -43,9 +43,9 @@ public class ExportExcelApi {
MDC
.
put
(
"ip"
,
remoteAddr
);
MDC
.
put
(
"ip"
,
remoteAddr
);
JSONObject
jsonObject
=
JSONObject
.
fromObject
(
list
);
JSONObject
jsonObject
=
JSONObject
.
fromObject
(
list
);
JSONArray
jsonArray
=
JSONArray
.
fromObject
(
jsonObject
.
get
(
"list"
));
JSONArray
jsonArray
=
JSONArray
.
fromObject
(
jsonObject
.
get
(
"list"
));
// String type = jsonObject.get("type
").toString();
String
isHistory
=
jsonObject
.
get
(
"isHistory
"
).
toString
();
String
name
=
jsonObject
.
get
(
"name"
).
toString
();
String
name
=
jsonObject
.
get
(
"name"
).
toString
();
List
<
Map
<
String
,
Object
>>
mapList
=
detailReceiptListService
.
selectPostDetails
(
jsonArray
,
name
);
List
<
Map
<
String
,
Object
>>
mapList
=
detailReceiptListService
.
selectPostDetails
(
jsonArray
,
name
,
isHistory
);
response
.
setContentType
(
"application/x-download"
);
response
.
setContentType
(
"application/x-download"
);
response
.
setCharacterEncoding
(
"UTF-8"
);
response
.
setCharacterEncoding
(
"UTF-8"
);
String
dateTime
=
DateFormatUtils
.
format
(
new
Date
(),
"yyyy-MM-dd"
);
String
dateTime
=
DateFormatUtils
.
format
(
new
Date
(),
"yyyy-MM-dd"
);
...
...
src/main/java/com/yxproject/start/api/TaskListApi.java
View file @
03b72d27
...
@@ -192,12 +192,12 @@ public class TaskListApi {
...
@@ -192,12 +192,12 @@ public class TaskListApi {
String
remoteAddr
=
requ
.
getRemoteAddr
();
String
remoteAddr
=
requ
.
getRemoteAddr
();
MDC
.
put
(
"ip"
,
remoteAddr
);
MDC
.
put
(
"ip"
,
remoteAddr
);
List
<
Object
>
objects
=
new
ArrayList
<>();
List
<
Object
>
objects
=
new
ArrayList
<>();
try
{
//
try {
objects
=
taskListService
.
selectByCountyAtAuxiliary
(
Long
.
valueOf
(
process
)
-
1
);
objects
=
taskListService
.
selectByCountyAtAuxiliary
(
Long
.
valueOf
(
process
)
-
1
);
}
catch
(
Exception
e
){
//
}catch (Exception e){
logger
.
error
(
"工序:"
+
process
);
//
logger.error("工序:" + process);
logger
.
error
(
"Exception 查询任务单详情(辅助库)(下发、数据核验、膜打印)异常"
,
e
);
//
logger.error("Exception 查询任务单详情(辅助库)(下发、数据核验、膜打印)异常", e);
}
//
}
return
objects
;
return
objects
;
}
}
...
...
src/main/java/com/yxproject/start/mapper/TaskListMapper.java
View file @
03b72d27
This diff is collapsed.
Click to expand it.
src/main/java/com/yxproject/start/service/DetailReceiptListService.java
View file @
03b72d27
...
@@ -10,7 +10,7 @@ import java.util.Map;
...
@@ -10,7 +10,7 @@ import java.util.Map;
* 2019/3/9 14:55
* 2019/3/9 14:55
*/
*/
public
interface
DetailReceiptListService
{
public
interface
DetailReceiptListService
{
public
List
<
Map
<
String
,
Object
>>
selectPostDetails
(
List
<
Integer
>
stringList
,
String
name
);
public
List
<
Map
<
String
,
Object
>>
selectPostDetails
(
List
<
Integer
>
stringList
,
String
name
,
String
isHistory
);
public
List
<
DetailReceiptListEntity
>
selectDetailReceiptListEntityByCardId
(
String
cardID
);
public
List
<
DetailReceiptListEntity
>
selectDetailReceiptListEntityByCardId
(
String
cardID
);
...
...
src/main/java/com/yxproject/start/service/impl/DetailReceiptListServiceImpl.java
View file @
03b72d27
package
com
.
yxproject
.
start
.
service
.
impl
;
package
com
.
yxproject
.
start
.
service
.
impl
;
import
com.yxproject.start.entity.DetailReceiptListEntity
;
import
com.yxproject.start.entity.DetailReceiptListEntity
;
import
com.yxproject.start.mapper.DetailReceiptListMapper
;
import
com.yxproject.start.service.DetailReceiptListService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.yxproject.start.service.DetailReceiptListService
;
import
com.yxproject.start.mapper.DetailReceiptListMapper
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -19,7 +19,7 @@ public class DetailReceiptListServiceImpl implements DetailReceiptListService {
...
@@ -19,7 +19,7 @@ public class DetailReceiptListServiceImpl implements DetailReceiptListService {
private
DetailReceiptListMapper
detailReceiptListMapper
;
private
DetailReceiptListMapper
detailReceiptListMapper
;
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
selectPostDetails
(
List
<
Integer
>
stringList
,
String
name
)
{
public
List
<
Map
<
String
,
Object
>>
selectPostDetails
(
List
<
Integer
>
stringList
,
String
name
,
String
isHistory
)
{
String
str
=
""
;
String
str
=
""
;
for
(
int
i
=
0
;
i
<
stringList
.
size
();
i
++){
for
(
int
i
=
0
;
i
<
stringList
.
size
();
i
++){
if
(
i
==
stringList
.
size
()-
1
){
if
(
i
==
stringList
.
size
()-
1
){
...
@@ -30,7 +30,9 @@ public class DetailReceiptListServiceImpl implements DetailReceiptListService {
...
@@ -30,7 +30,9 @@ public class DetailReceiptListServiceImpl implements DetailReceiptListService {
}
}
// str+=")";
// str+=")";
if
(
"0"
.
equals
(
isHistory
)){
detailReceiptListMapper
.
updateReceiptListEntityByCardId
(
str
,
name
);
detailReceiptListMapper
.
updateReceiptListEntityByCardId
(
str
,
name
);
}
return
detailReceiptListMapper
.
selectPostDetails
(
str
);
return
detailReceiptListMapper
.
selectPostDetails
(
str
);
}
}
@Override
@Override
...
...
src/main/java/com/yxproject/start/service/impl/TaskListServiceImpl.java
View file @
03b72d27
...
@@ -781,7 +781,7 @@ public class TaskListServiceImpl implements TaskListService {
...
@@ -781,7 +781,7 @@ public class TaskListServiceImpl implements TaskListService {
}
}
Map
<
String
,
Object
>
datemap
=
new
LinkedHashMap
<>();
Map
<
String
,
Object
>
datemap
=
new
LinkedHashMap
<>();
datemap
.
put
(
"date"
,
"
合
计"
);
datemap
.
put
(
"date"
,
"
总
计"
);
datemap
.
put
(
"yi"
,
yi
);
datemap
.
put
(
"yi"
,
yi
);
datemap
.
put
(
"gangao"
,
gangao
);
datemap
.
put
(
"gangao"
,
gangao
);
datemap
.
put
(
"kuai"
,
kuai
);
datemap
.
put
(
"kuai"
,
kuai
);
...
...
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