Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_REFACTORING
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_REFACTORING
Commits
67e09846
Commit
67e09846
authored
Nov 20, 2018
by
xuwang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://121.22.111.250:8000/zhangyusheng/YX_IDENT_REFACTORING
into dev
parents
fea7f976
51213b5f
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
179 additions
and
98 deletions
+179
-98
UserApi.java
src/main/java/com/yxproject/start/api/UserApi.java
+61
-27
GroupNoEntity.java
src/main/java/com/yxproject/start/entity/GroupNoEntity.java
+4
-16
TaskEntity.java
src/main/java/com/yxproject/start/entity/TaskEntity.java
+0
-3
CardBodyMapper.java
src/main/java/com/yxproject/start/mapper/CardBodyMapper.java
+2
-2
CountyListMapper.java
...ain/java/com/yxproject/start/mapper/CountyListMapper.java
+3
-1
TaskMapper.java
src/main/java/com/yxproject/start/mapper/TaskMapper.java
+1
-2
CardBodyService.java
...ain/java/com/yxproject/start/service/CardBodyService.java
+2
-1
CountyListService.java
...n/java/com/yxproject/start/service/CountyListService.java
+3
-4
CardBodyServiceImpl.java
...com/yxproject/start/service/impl/CardBodyServiceImpl.java
+3
-11
CountyListServiceImpl.java
...m/yxproject/start/service/impl/CountyListServiceImpl.java
+17
-11
TaskServiceImpl.java
...ava/com/yxproject/start/service/impl/TaskServiceImpl.java
+10
-5
CardBodyMapper.xml
src/main/resources/mapper/CardBodyMapper.xml
+3
-4
CountyListMapper.xml
src/main/resources/mapper/CountyListMapper.xml
+5
-2
GroupNoMapper.xml
src/main/resources/mapper/GroupNoMapper.xml
+5
-7
TaskMapper.xml
src/main/resources/mapper/TaskMapper.xml
+7
-2
cycleSheet.html
...in/resources/static/tpl/layout/cycleSheet/cycleSheet.html
+0
-0
cycleSheet.js
...main/resources/static/tpl/layout/cycleSheet/cycleSheet.js
+35
-0
GroupinfoServiceImplTest.java
...xproject/start/service/impl/GroupinfoServiceImplTest.java
+11
-0
web.xml
web/WEB-INF/web.xml
+7
-0
No files found.
src/main/java/com/yxproject/start/api/UserApi.java
View file @
67e09846
...
...
@@ -95,6 +95,7 @@ public class UserApi {
resp
.
setCharacterEncoding
(
"UTF-8"
);
yxjsonResponse
.
outPutSuccess
(
productionTaskListEntity
);
Map
map
=
new
HashMap
();
System
.
out
.
println
(
yxjsonResponse
.
toJSONString
()+
"--------"
);
// map.put("MakeType",productionTaskListEntity);
return
yxjsonResponse
.
toJSONString
();
}
...
...
@@ -362,7 +363,6 @@ public class UserApi {
@RequestMapping
(
"getCountyList"
)
// @RequiresPermissions("userInfo.add")//权限管理;
public
String
getCountyListInfoByTaskListID
(
@RequestParam
(
"taskListID"
)
String
tasklistid
,
HttpServletResponse
resp
)
{
List
<
CountyListEntity
>
countyListInfoEntity
=
countyListService
.
findCountyListByTaskListID
(
tasklistid
);
YXJSONResponse
yxjsonResponse
=
new
YXJSONResponse
();
resp
.
setCharacterEncoding
(
"UTF-8"
);
...
...
@@ -372,59 +372,57 @@ public class UserApi {
return
yxjsonResponse
.
toJSONString
();
}
/**
* 保存卡
机
表;
/**
有误
* 保存卡
基
表;
*
* @return
*/
@RequestMapping
(
"addCardBody"
)
// @RequiresPermissions("userInfo.add")//权限管理;
public
String
addCardBodyInfo
(
@RequestParam
(
"
CardBody"
)
String
cardBodyInfo
Id
,
HttpServletResponse
resp
)
{
String
map
=
"{\"
CardBodyId\":\"1
}"
;
public
String
addCardBodyInfo
(
@RequestParam
(
"
cardBodyId"
)
String
cardBody
Id
,
HttpServletResponse
resp
)
{
String
map
=
"{\"
cardBodyId\":\"1\",
}"
;
JSONObject
jsonObject
=
JSONObject
.
fromObject
(
map
);
Object
cardBodyInfo
=
jsonObject
.
get
(
"CardBody"
);
Object
groupInfoList
=
jsonObject
.
get
(
"groupInfoList"
);
List
<
GroupNoEntity
>
groupNoEntities
=
(
List
<
GroupNoEntity
>)
groupInfoList
;
CardBodyEntity
cardBodyEntity
=
(
CardBodyEntity
)
cardBodyInfo
;
Object
cardBody
=
jsonObject
.
get
(
"CardBody"
);
CardBodyEntity
cardBodyEntity
=
(
CardBodyEntity
)
cardBody
;
YXJSONResponse
yxjsonResponse
=
new
YXJSONResponse
();
resp
.
setCharacterEncoding
(
"UTF-8"
);
int
i
=
cardBodyService
.
addCardBodyEntity
(
cardBodyEntity
,
groupNoEntities
);
int
i
=
cardBodyService
.
addCardBodyEntity
(
cardBodyEntity
);
yxjsonResponse
.
outPutSuccess
(
i
+
"添加成功"
);
return
yxjsonResponse
.
toJSONString
();
}
/**
/**
有误
* 更新循环单
* 添加异常状态;
* @return
*/
@RequestMapping
(
"addExceptionState"
)
// @RequiresPermissions("userInfo.add")//权限管理;
public
String
addExceptionState
(
@RequestParam
(
"exception_
information"
)
String
exception_i
nformation
,
HttpServletResponse
resp
)
{
String
map
=
"{\"
production_Task_List_Id\":\"20181016001\",\"make_Type\":8,\"old_Make_Type\":8,exception_State
:0} "
;
public
String
addExceptionState
(
@RequestParam
(
"exception_
Information"
)
String
exception_I
nformation
,
HttpServletResponse
resp
)
{
String
map
=
"{\"
task_Id\":\"20181016001\",\"exception_Information\"
:0} "
;
JSONObject
jsonObject
=
JSONObject
.
fromObject
(
map
);
TaskEntity
productionTaskList
Entity
=
(
TaskEntity
)
jsonObject
.
toBean
(
jsonObject
,
TaskEntity
.
class
);
TaskEntity
task
Entity
=
(
TaskEntity
)
jsonObject
.
toBean
(
jsonObject
,
TaskEntity
.
class
);
YXJSONResponse
yxjsonResponse
=
new
YXJSONResponse
();
resp
.
setCharacterEncoding
(
"UTF-8"
);
int
i
=
taskService
.
addExceptionState
(
productionTaskList
Entity
);
int
i
=
taskService
.
addExceptionState
(
task
Entity
);
yxjsonResponse
.
outPutSuccess
(
i
+
"更新成功"
);
return
yxjsonResponse
.
toJSONString
();
}
/**
* 更新入库时间
*
*
404
* @return
*/
@RequestMapping
(
"updatePutinstorageDate"
)
@RequiresPermissions
(
"userInfo.add"
)
//权限管理;
//
@RequiresPermissions("userInfo.add")//权限管理;
public
String
updatePutinstorageDate
(
@RequestParam
(
"id"
)
String
id
,
HttpServletResponse
resp
)
{
String
map
=
"{\"
production_Task_List_Id\":\"20181016001\",\"make_Type\":8,\"old_Make_Type\":8
,} "
;
String
map
=
"{\"
id\":\"20181016001\"
,} "
;
JSONObject
jsonObject
=
JSONObject
.
fromObject
(
map
);
TaskEntity
productionTaskListEntity
=
(
TaskEntity
)
jsonObject
.
toBean
(
jsonObject
,
TaskEntity
.
class
);
YXJSONResponse
yxjsonResponse
=
new
YXJSONResponse
();
resp
.
setCharacterEncoding
(
"UTF-8"
);
int
i
=
taskService
.
updateP
roductionTask
(
productionTaskListEntity
);
int
i
=
taskService
.
updateP
utinstorageDate
(
productionTaskListEntity
);
yxjsonResponse
.
outPutSuccess
(
i
+
"更新成功"
);
return
yxjsonResponse
.
toJSONString
();
}
...
...
@@ -437,12 +435,12 @@ public class UserApi {
@RequestMapping
(
"updateOutboundDate"
)
// @RequiresPermissions("userInfo.add")//权限管理;
public
String
updateOutboundDate
(
@RequestParam
(
"id"
)
String
id
,
HttpServletResponse
resp
)
{
String
map
=
"{\"
production_Task_List
_Id\":\"20181016001\",\"make_Type\":8,\"old_Make_Type\":8,} "
;
String
map
=
"{\"
task
_Id\":\"20181016001\",\"make_Type\":8,\"old_Make_Type\":8,} "
;
JSONObject
jsonObject
=
JSONObject
.
fromObject
(
map
);
TaskEntity
productionTaskList
Entity
=
(
TaskEntity
)
jsonObject
.
toBean
(
jsonObject
,
TaskEntity
.
class
);
TaskEntity
task
Entity
=
(
TaskEntity
)
jsonObject
.
toBean
(
jsonObject
,
TaskEntity
.
class
);
YXJSONResponse
yxjsonResponse
=
new
YXJSONResponse
();
resp
.
setCharacterEncoding
(
"UTF-8"
);
int
i
=
taskService
.
update
ProductionTask
(
productionTaskList
Entity
);
int
i
=
taskService
.
update
OutboundDate
(
task
Entity
);
yxjsonResponse
.
outPutSuccess
(
i
+
"更新成功"
);
return
yxjsonResponse
.
toJSONString
();
}
...
...
@@ -450,21 +448,57 @@ public class UserApi {
/**
* 对出库数进行更改
* 更新出库数
* 有点问题
* @return
*/
@RequestMapping
(
"reviseOutBoundCount"
)
@RequiresPermissions
(
"userInfo.add"
)
//权限管理;
public
String
reviseOutBoundCount
(
@RequestParam
(
"
id"
)
String
i
d
,
HttpServletResponse
resp
)
{
String
map
=
"{\"
production_Task_List_Id\":\"20181016001\",\"make_Type\":8,\"old_Make_Type\":8
,} "
;
//
@RequiresPermissions("userInfo.add")//权限管理;
public
String
reviseOutBoundCount
(
@RequestParam
(
"
county_List_Id"
)
String
county_List_I
d
,
HttpServletResponse
resp
)
{
String
map
=
"{\"
county_List_Id\":\"20181016001\",\"Out_Storage_County\":\"52\"
,} "
;
JSONObject
jsonObject
=
JSONObject
.
fromObject
(
map
);
TaskEntity
productionTaskListEntity
=
(
TaskEntity
)
jsonObject
.
toBean
(
jsonObject
,
Task
Entity
.
class
);
CountyListEntity
countyListEntity
=
(
CountyListEntity
)
jsonObject
.
toBean
(
jsonObject
,
CountyList
Entity
.
class
);
YXJSONResponse
yxjsonResponse
=
new
YXJSONResponse
();
resp
.
setCharacterEncoding
(
"UTF-8"
);
int
i
=
taskService
.
updateProductionTask
(
productionTask
ListEntity
);
int
i
=
countyListService
.
reviseOutBoundCount
(
county
ListEntity
);
yxjsonResponse
.
outPutSuccess
(
i
+
"更新成功"
);
return
yxjsonResponse
.
toJSONString
();
}
/**
* 对入库数进行更改
* 更新入库数
* 有点问题
* @return
*/
@RequestMapping
(
"reviseInBoundCount"
)
// @RequiresPermissions("userInfo.add")//权限管理;
public
String
reviseInBoundCount
(
@RequestParam
(
"county_List_Id"
)
String
county_List_Id
,
HttpServletResponse
resp
)
{
String
map
=
"{\"county_List_Id\":\"20181016001\",\"In_Storage_County\":\"52\",} "
;
JSONObject
jsonObject
=
JSONObject
.
fromObject
(
map
);
CountyListEntity
countyListEntity
=
(
CountyListEntity
)
jsonObject
.
toBean
(
jsonObject
,
CountyListEntity
.
class
);
YXJSONResponse
yxjsonResponse
=
new
YXJSONResponse
();
resp
.
setCharacterEncoding
(
"UTF-8"
);
int
i
=
countyListService
.
reviseInBoundCount
(
countyListEntity
);
yxjsonResponse
.
outPutSuccess
(
i
+
"更新成功"
);
return
yxjsonResponse
.
toJSONString
();
}
/**
* 查询交接单;
*
* @return
*/
@RequestMapping
(
"getConnectList"
)
// @RequiresPermissions("userInfo.add")//权限管理;
public
String
getConnectList
(
@RequestParam
(
"save_Date"
)
String
save_Date
,
HttpServletResponse
resp
)
{
List
<
CountyListEntity
>
countyListEntity
=
countyListService
.
getConnectList
(
save_Date
);
YXJSONResponse
yxjsonResponse
=
new
YXJSONResponse
();
resp
.
setCharacterEncoding
(
"UTF-8"
);
yxjsonResponse
.
outPutSuccess
(
countyListEntity
);
Map
map
=
new
HashMap
();
// map.put("MakeType",productionTaskListEntity);
return
yxjsonResponse
.
toJSONString
();
}
/**
* 下载装箱单
...
...
src/main/java/com/yxproject/start/entity/GroupNoEntity.java
View file @
67e09846
...
...
@@ -9,23 +9,12 @@ import java.util.Objects;
@Entity
@Table
(
name
=
"GROUP_NO"
,
schema
=
"DAHAI"
)
public
class
GroupNoEntity
{
private
long
group_Id
;
private
long
task_Id
;
private
String
group_No
;
private
long
vaild_Count
;
private
long
invalid_Count
;
private
long
special_Card_Count
;
public
Long
totalinvalidCount
;
@Basic
@Column
(
name
=
"GROUP_ID"
,
nullable
=
false
,
precision
=
0
)
public
long
getGroup_Id
()
{
return
group_Id
;
}
public
void
setGroup_Id
(
long
group_Id
)
{
this
.
group_Id
=
group_Id
;
}
@Basic
@Column
(
name
=
"TASK_ID"
,
nullable
=
false
,
precision
=
0
)
public
long
getTask_Id
()
{
...
...
@@ -73,11 +62,10 @@ public class GroupNoEntity {
}
@Override
public
boolean
equals
(
Object
o
)
{
if
(
this
==
o
)
return
true
;
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
return
false
;
if
(
this
==
o
)
{
return
true
;}
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
{
return
false
;}
GroupNoEntity
that
=
(
GroupNoEntity
)
o
;
return
group_Id
==
that
.
group_Id
&&
vaild_Count
==
that
.
vaild_Count
&&
return
vaild_Count
==
that
.
vaild_Count
&&
invalid_Count
==
that
.
invalid_Count
&&
special_Card_Count
==
that
.
special_Card_Count
&&
task_Id
==
that
.
task_Id
&&
...
...
@@ -86,6 +74,6 @@ public class GroupNoEntity {
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
group_Id
,
group_No
,
task_Id
,
vaild_Count
,
invalid_Count
,
special_Card_Count
);
return
Objects
.
hash
(
group_No
,
task_Id
,
vaild_Count
,
invalid_Count
,
special_Card_Count
);
}
}
src/main/java/com/yxproject/start/entity/TaskEntity.java
View file @
67e09846
...
...
@@ -190,9 +190,6 @@ public class TaskEntity {
this
.
in_Storage_Date
=
in_Storage_Date
;
}
@Basic
@Column
(
name
=
"TASK_STATE_ID"
,
nullable
=
true
,
precision
=
0
)
public
long
getTask_State_Id
()
{
...
...
src/main/java/com/yxproject/start/mapper/CardBodyMapper.java
View file @
67e09846
...
...
@@ -9,8 +9,7 @@ import org.apache.ibatis.annotations.Mapper;
@Mapper
public
interface
CardBodyMapper
{
public
int
insertCardBodyInfoEntity
(
CardBodyEntity
cardBodyEntity
);
public
int
insertCardBodyEntity
(
CardBodyEntity
cardBodyEntity
);
public
int
updateCardBodyInfo
(
CardBodyEntity
cardBodyEntity
);
}
\ No newline at end of file
src/main/java/com/yxproject/start/mapper/CountyListMapper.java
View file @
67e09846
...
...
@@ -3,6 +3,7 @@ package com.yxproject.start.mapper;
import
com.yxproject.start.entity.CountyListEntity
;
import
org.apache.ibatis.annotations.Mapper
;
import
java.util.Date
;
import
java.util.List
;
/**
...
...
@@ -13,6 +14,7 @@ import java.util.List;
public
interface
CountyListMapper
{
public
List
<
CountyListEntity
>
findCountyListByTaskListID
(
String
tasklistID
);
public
int
updateOutBoundCount
(
CountyListEntity
countyListInfoEntity
);
public
int
updateBoundCount
(
CountyListEntity
countyListEntity
);
public
List
<
CountyListEntity
>
getConnectList
(
String
save_Date
);
}
src/main/java/com/yxproject/start/mapper/TaskMapper.java
View file @
67e09846
...
...
@@ -17,7 +17,6 @@ public interface TaskMapper {
public
int
updateTaskEntity
(
TaskEntity
taskEntity
);
public
List
<
TaskEntity
>
findTaskEntityByAcceptNo
(
String
acceptNo
);
public
List
<
TaskEntity
>
findTaskEntityByState
(
int
state
);
public
int
addExceptionState
(
TaskEntity
taskEntity
);
public
int
replaceExceptionInformation
(
TaskEntity
taskEntity
);
public
int
totalnum
(
int
i
);
}
src/main/java/com/yxproject/start/service/CardBodyService.java
View file @
67e09846
...
...
@@ -9,7 +9,8 @@ import java.util.List;
* Created by Administrator on 2018/11/7.
*/
public
interface
CardBodyService
{
public
int
addCardBodyEntity
(
CardBodyEntity
cardBody
InfoEntity
,
List
<
GroupNoEntity
>
groupNoEntities
);
public
int
addCardBodyEntity
(
CardBodyEntity
cardBody
Entity
);
public
int
updateCardBody
(
CardBodyEntity
map
);
}
src/main/java/com/yxproject/start/service/CountyListService.java
View file @
67e09846
...
...
@@ -2,14 +2,13 @@ package com.yxproject.start.service;
import
com.yxproject.start.entity.CountyListEntity
;
import
java.util.Date
;
import
java.util.List
;
/**
* Created by liuxinben on 2018/11/6.10:30
*/
public
interface
CountyListService
{
public
List
<
CountyListEntity
>
findCountyListByTaskListID
(
String
tasklistID
);
public
int
reviseOutBoundCount
(
CountyListEntity
map
);
public
int
reviseInBoundCount
(
CountyListEntity
map
);
public
List
<
CountyListEntity
>
getConnectList
(
String
save_Date
);
}
src/main/java/com/yxproject/start/service/impl/CardBodyServiceImpl.java
View file @
67e09846
...
...
@@ -21,10 +21,7 @@ import java.util.List;
public
class
CardBodyServiceImpl
implements
CardBodyService
{
@Autowired
public
CardBodyMapper
cardBodyMapper
;
@Autowired
private
UtilMapper
utilMapper
;
@Autowired
public
GroupNoMapper
groupinfoMapper
;
@Override
public
int
updateCardBody
(
CardBodyEntity
cardBodyEntity
)
{
...
...
@@ -35,12 +32,7 @@ public class CardBodyServiceImpl implements CardBodyService {
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
int
addCardBodyEntity
(
CardBodyEntity
cardBodyEntity
,
List
<
GroupNoEntity
>
groupinfoEntities
)
{
int
production_task_list_seq
=
utilMapper
.
findProductionTaskListSequenceNextValue
();
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyyMMdd"
);
cardBodyMapper
.
insertCardBodyInfoEntity
(
cardBodyEntity
);
return
1
;
public
int
addCardBodyEntity
(
CardBodyEntity
cardBodyEntity
)
{
return
cardBodyMapper
.
insertCardBodyEntity
(
cardBodyEntity
);
}
}
src/main/java/com/yxproject/start/service/impl/CountyListServiceImpl.java
View file @
67e09846
...
...
@@ -6,6 +6,7 @@ import com.yxproject.start.service.CountyListService;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.Date
;
import
java.util.List
;
/**
...
...
@@ -15,25 +16,29 @@ import java.util.List;
@Service
public
class
CountyListServiceImpl
implements
CountyListService
{
@Autowired
public
CountyListMapper
countyList
Info
Mapper
;
public
CountyListMapper
countyListMapper
;
@Override
public
List
<
CountyListEntity
>
findCountyListByTaskListID
(
String
tasklistid
)
{
List
<
CountyListEntity
>
byTaskListID
=
countyList
Info
Mapper
.
findCountyListByTaskListID
(
tasklistid
);
List
<
CountyListEntity
>
byTaskListID
=
countyListMapper
.
findCountyListByTaskListID
(
tasklistid
);
return
byTaskListID
;
}
@Override
public
int
reviseOutBoundCount
(
CountyListEntity
countyListEntity
)
{
countyListEntity
.
setOut_Storage_Count
(
countyListEntity
.
getOut_Storage_Count
());
return
countyListMapper
.
updateBoundCount
(
countyListEntity
);
}
@Override
public
int
reviseInBoundCount
(
CountyListEntity
countyListEntity
)
{
countyListEntity
.
setIn_Storage_Count
(
countyListEntity
.
getIn_Storage_Count
());
return
countyListMapper
.
updateBoundCount
(
countyListEntity
);
}
@Override
public
int
reviseOutBoundCount
(
CountyListEntity
countyListInfoEntity
)
{
// int i = 0;
//
//
//
// CountyListInfoEntity.setOutBoundCount( );
// return CountyListInfoMapper.updateOutBoundCount(countyListInfoEntity);
//TODO
return
0
;
public
List
<
CountyListEntity
>
getConnectList
(
String
save_Date
)
{
return
countyListMapper
.
getConnectList
(
save_Date
);
}
}
\ No newline at end of file
src/main/java/com/yxproject/start/service/impl/TaskServiceImpl.java
View file @
67e09846
...
...
@@ -4,6 +4,9 @@ import com.yxproject.start.entity.*;
import
com.yxproject.start.entity.accu.AccCardTEntity
;
import
com.yxproject.start.entity.prod.ProdCardTEntity
;
import
com.yxproject.start.mapper.*
;
import
com.yxproject.start.entity.CountyListEntity
;
import
net.sf.json.JSONObject
;
import
java.util.Scanner
;
import
com.yxproject.start.service.TaskService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -427,14 +430,12 @@ public class TaskServiceImpl implements TaskService {
}
else
{
taskEntity
.
setIs_Exception
((
long
)
0
);
// i= productionTaskListMapper.updateProductionTask(productionTaskListEntity);
i
=
taskMapper
.
replaceExceptionInformation
(
taskEntity
);
}
return
i
;
}
private
CountyListEntity
countyListInfoEntity
;
private
GroupNoEntity
groupNoEntity
;
private
CountyListEntity
countyListEntity
;
/**
* 更新出库时间
* @param
...
...
@@ -442,8 +443,10 @@ public class TaskServiceImpl implements TaskService {
*/
@Override
public
int
updateOutboundDate
(
TaskEntity
taskEntity
)
{
int
i
=
0
;
i
=
taskMapper
.
totalnum
(
i
);
if
(
countyListEntity
.
getOut_Storage_Count
()==
i
){
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyyMMddhhmmss"
);
if
(
groupNoEntity
.
totalinvalidCount
.
equals
(
countyListInfoEntity
.
getOut_Storage_Count
()))
{
taskEntity
.
setOut_Storage_Date
(
new
Date
());
return
taskMapper
.
updateTaskEntity
(
taskEntity
);
}
...
...
@@ -459,8 +462,10 @@ public class TaskServiceImpl implements TaskService {
*/
@Override
public
int
updatePutinstorageDate
(
TaskEntity
taskEntity
)
{
int
i
=
0
;
i
=
taskMapper
.
totalnum
(
i
);
if
(
countyListEntity
.
getIn_Storage_Count
()==
i
){
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyyMMddhhmmss"
);
if
(
groupNoEntity
.
totalinvalidCount
.
equals
(
countyListInfoEntity
.
getIn_Storage_Count
()))
{
taskEntity
.
setIn_Storage_Date
(
new
Date
());
return
taskMapper
.
updateTaskEntity
(
taskEntity
);
}
...
...
src/main/resources/mapper/CardBodyMapper.xml
View file @
67e09846
...
...
@@ -10,10 +10,9 @@
<result
column=
"TOTAL_COUNT"
property=
"total_Count"
jdbcType=
"NUMERIC"
/>
</resultMap>
<insert
id=
"insertCardBodyEntity"
parameterType=
"com.yxproject.start.entity.CardBodyEntity"
>
Insert into CARD_BODY (CARD_BODY_ID,SAVE_DATE,CARD_TYPE_ID,IS_ACTIVE,TASK_ID,TOTAL_COUNT)
values (#{card_Body_Id},#{save_Date},#{card_Type_Id},#{is_Active},#{task_Id},#{total_Count})
</insert>
<select
id=
"insertCardBodyEntity"
resultType=
"com.yxproject.start.entity.CardBodyEntity"
parameterType=
"String"
>
select * from CARD_BODY where CARD_BODY_ID=#{card_Body_Id}
</select>
<update
id=
"updateCardBody"
parameterType=
"com.yxproject.start.entity.CardBodyEntity"
>
update CARD_BODY
...
...
src/main/resources/mapper/CountyListMapper.xml
View file @
67e09846
...
...
@@ -18,9 +18,12 @@
SELECT * FROM COUNTY_LIST where task_Id=#{task_Id}
</select>
<update
id=
"update
Out
BoundCount"
parameterType=
"com.yxproject.start.entity.CountyListEntity"
>
update COUNTY_LIST OUT_STORAGE_COUNT =#{out_Storage_Count} where COUNTY_LIST_ID =#{county_List_Id}
<update
id=
"updateBoundCount"
parameterType=
"com.yxproject.start.entity.CountyListEntity"
>
update COUNTY_LIST OUT_STORAGE_COUNT =#{out_Storage_Count}
,IN_STORAGE_COUNT =#{in_Storage_Count}
where COUNTY_LIST_ID =#{county_List_Id}
</update>
<select
id=
"getConnectList"
resultType=
"com.yxproject.start.entity.CountyListEntity"
parameterType=
"String"
>
SELECT OUT_STORAGE_COUNT FROM COUNTY_LIST where save_Date=#{save_Date}
</select>
</mapper>
src/main/resources/mapper/GroupNoMapper.xml
View file @
67e09846
...
...
@@ -2,9 +2,8 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace=
"com.yxproject.start.mapper.GroupNoMapper"
>
<resultMap
id=
"GroupNoMapper"
type=
"com.yxproject.start.entity.GroupNoEntity"
>
<id
column=
"GROUP_
ID"
property=
"group_Id"
jdbcType=
"NUMERIC
"
/>
<id
column=
"GROUP_
NO"
property=
"group_No"
jdbcType=
"VARCHAR
"
/>
<result
column=
"TASK_ID"
property=
"task_Id"
jdbcType=
"NUMERIC"
/>
<result
column=
"GROUP_NO"
property=
"group_No"
jdbcType=
"VARCHAR"
/>
<result
column=
"VAILD_COUNT"
property=
"vaild_Count"
jdbcType=
"NUMERIC"
/>
<result
column=
"INVALID_COUNT"
property=
"invalid_Count"
jdbcType=
"NUMERIC"
/>
<result
column=
"SPECIAL_CARD_COUNT"
property=
"special_Card_Count"
jdbcType=
"NUMERIC"
/>
...
...
@@ -15,8 +14,8 @@
</select>
<insert
id=
"insertGroupNoEntity"
parameterType=
"com.yxproject.start.entity.GroupNoEntity"
>
Insert into GROUP_NO (GROUP_
ID,GROUP_
NO,task_Id,VAILD_COUNT,INVALID_COUNT,special_Card_Count) values
(#{group_
Id},#{group_
No},#{task_Id},#{vaild_Count},#{invalid_Count},#{special_Card_Count})
Insert into GROUP_NO (GROUP_NO,task_Id,VAILD_COUNT,INVALID_COUNT,special_Card_Count) values
(#{group_No},#{task_Id},#{vaild_Count},#{invalid_Count},#{special_Card_Count})
</insert>
<select
id=
"findGroupNoEntityByAcceptNo"
resultType=
"com.yxproject.start.entity.GroupNoEntity"
parameterType=
"String"
>
...
...
@@ -24,13 +23,12 @@
</select>
<update
id=
"updateGroupinfoEntity"
parameterType=
"com.yxproject.start.entity.GroupNoEntity"
>
update GROUP_NO set GROUP_ID=#{group_Id}
<if
test=
"group_No"
>
,group_No =#{group_No}
</if>
update GROUP_NO set group_No =#{group_No}
<if
test=
"task_Id"
>
,task_Id =#{task_Id}
</if>
<if
test=
"vaild_Count"
>
,vaild_Count =#{vaild_Count}
</if>
<if
test=
"invalid_Count"
>
,invalid_Count =#{invalid_Count}
</if>
<if
test=
"special_Card_Count"
>
,special_Card_Count =#{special_Card_Count}
</if>
where
GROUP_ID=#{group_Id
}
where
group_No=#{group_No
}
</update>
<select
id=
"findGroupNoCountByTaskId"
parameterType=
"String"
resultType=
"int"
>
...
...
src/main/resources/mapper/TaskMapper.xml
View file @
67e09846
...
...
@@ -34,7 +34,7 @@
values (#{task_Id},#{card_Type},#{old_Card_Type},#{citycode},#{submit_Date},#{issued_Date},#{print_State},#{download_Date},#{print_Out_Date},#{position_Date},#{out_Workshop_Date},#{quality_People_Name},#{quality_Test_Date},#{exception_Information},#{out_Storage_Date},#{in_Storage_Date},#{task_State_Id},#{is_Exception},#{printer_Id})
</insert>
<update
id=
"update
ProductionTask
"
parameterType=
"com.yxproject.start.entity.TaskEntity"
>
<update
id=
"update
TaskEntity
"
parameterType=
"com.yxproject.start.entity.TaskEntity"
>
update TASK
<set>
<if
test=
"card_Type "
>
card_Type =#{card_Type},
</if>
...
...
@@ -69,7 +69,11 @@
</select>
<update
id=
"replaceExceptionInformation"
parameterType=
"com.yxproject.start.entity.TaskEntity"
>
update TASK SET exception_Information = NULL,EXCEPTION_STATE =#{exception_State
} where TASK_ID =#{task_Id}
update TASK SET exception_Information = NULL,IS_EXCEPTION=#{is_Exception
} where TASK_ID =#{task_Id}
</update>
<select
id=
"totalnum"
resultType=
"Int"
>
select SUM(VAILD_COUNT)FROM GROUP_NO where TASK_ID =#{task_Id}
</select>
</mapper>
\ No newline at end of file
src/main/resources/static/tpl/layout/cycleSheet/cycleSheet.html
View file @
67e09846
This diff is collapsed.
Click to expand it.
src/main/resources/static/tpl/layout/cycleSheet/cycleSheet.js
View file @
67e09846
...
...
@@ -54,7 +54,42 @@ app.controller('cycleSheetCtrl', ['$scope','$rootScope', '$http', '$state', '$fi
$scope
.
initDate
=
new
Date
(
'2016-15-20'
);
$scope
.
formats
=
[
'dd-MMMM-yyyy'
,
'yyyy/MM/dd'
,
'dd.MM.yyyy'
,
'shortDate'
];
$scope
.
format
=
$scope
.
formats
[
1
];
$scope
.
task_click
=
function
(){
console
.
log
(
$rootScope
.
loginData
.
state
,
"----测试-----"
,
$scope
.
dt
,
"===="
);
}
$scope
.
check_type
=
function
(
typeCode
){
console
.
log
(
$rootScope
.
loginData
.
state
,
"----测试-----"
,
$scope
.
dt
,
"===="
,
typeCode
,
"+++++++++++++"
);
}
$scope
.
typeList
=
[
{
typeCode
:
0
,
typeCount
:
5000
,
typeName
:
'普通证'
},
{
typeCode
:
1
,
typeCount
:
5000
,
typeName
:
'邮寄证'
},
{
typeCode
:
2
,
typeCount
:
5000
,
typeName
:
'特殊证'
},
{
typeCode
:
9
,
typeCount
:
5000
,
typeName
:
'异地证'
},
]
$scope
.
cityList
=
[
{
"card_Type"
:
1
,
"citycode"
:
"410300"
,
cityName
:
"郑州"
,
groupCount
:
10
,
groupSum
:
1500
,
groupInvailedSum
:
15
,
groupNO
:
"1-25"
,
"download_Date"
:
null
,
"exception_Information"
:
""
,
"in_Storage_Date"
:
null
,
"is_Exception"
:
0
,
"issued_Date"
:
null
,
"old_Card_Type"
:
1
,
"out_Storage_Date"
:
null
,
"out_Workshop_Date"
:
null
,
"position_Date"
:
null
,
"print_Out_Date"
:
null
,
"print_State"
:
0
,
"printer_Id"
:
0
,
"quality_People_Name"
:
""
,
"quality_Test_Date"
:
null
,
"submit_Date"
:{
"date"
:
20
,
"day"
:
2
,
"hours"
:
11
,
"minutes"
:
20
,
"month"
:
10
,
"seconds"
:
53
,
"time"
:
1542684053000
,
"timezoneOffset"
:
-
480
,
"year"
:
118
},
"task_Id"
:
201811203
,
"task_State_Id"
:
1
},
{
"card_Type"
:
1
,
"citycode"
:
"410400"
,
cityName
:
"驻马店"
,
groupCount
:
10
,
groupSum
:
2500
,
groupInvailedSum
:
16
,
groupNO
:
"26-45"
,
"download_Date"
:
null
,
"exception_Information"
:
""
,
"in_Storage_Date"
:
null
,
"is_Exception"
:
0
,
"issued_Date"
:
null
,
"old_Card_Type"
:
1
,
"out_Storage_Date"
:
null
,
"out_Workshop_Date"
:
null
,
"position_Date"
:
null
,
"print_Out_Date"
:
null
,
"print_State"
:
0
,
"printer_Id"
:
0
,
"quality_People_Name"
:
""
,
"quality_Test_Date"
:
null
,
"submit_Date"
:{
"date"
:
20
,
"day"
:
2
,
"hours"
:
11
,
"minutes"
:
20
,
"month"
:
10
,
"seconds"
:
53
,
"time"
:
1542684053000
,
"timezoneOffset"
:
-
480
,
"year"
:
118
},
"task_Id"
:
201811203
,
"task_State_Id"
:
1
},
{
"card_Type"
:
1
,
"citycode"
:
"410500"
,
cityName
:
"新乡"
,
groupCount
:
10
,
groupSum
:
3500
,
groupInvailedSum
:
17
,
groupNO
:
"46"
,
"download_Date"
:
null
,
"exception_Information"
:
""
,
"in_Storage_Date"
:
null
,
"is_Exception"
:
0
,
"issued_Date"
:
null
,
"old_Card_Type"
:
1
,
"out_Storage_Date"
:
null
,
"out_Workshop_Date"
:
null
,
"position_Date"
:
null
,
"print_Out_Date"
:
null
,
"print_State"
:
0
,
"printer_Id"
:
0
,
"quality_People_Name"
:
""
,
"quality_Test_Date"
:
null
,
"submit_Date"
:{
"date"
:
20
,
"day"
:
2
,
"hours"
:
11
,
"minutes"
:
20
,
"month"
:
10
,
"seconds"
:
53
,
"time"
:
1542684053000
,
"timezoneOffset"
:
-
480
,
"year"
:
118
},
"task_Id"
:
201811203
,
"task_State_Id"
:
1
},
{
"card_Type"
:
1
,
"citycode"
:
"410600"
,
cityName
:
"周口"
,
groupCount
:
10
,
groupSum
:
3500
,
groupInvailedSum
:
18
,
groupNO
:
"48-52,53-55"
,
"download_Date"
:
null
,
"exception_Information"
:
""
,
"in_Storage_Date"
:
null
,
"is_Exception"
:
0
,
"issued_Date"
:
null
,
"old_Card_Type"
:
1
,
"out_Storage_Date"
:
null
,
"out_Workshop_Date"
:
null
,
"position_Date"
:
null
,
"print_Out_Date"
:
null
,
"print_State"
:
0
,
"printer_Id"
:
0
,
"quality_People_Name"
:
""
,
"quality_Test_Date"
:
null
,
"submit_Date"
:{
"date"
:
20
,
"day"
:
2
,
"hours"
:
11
,
"minutes"
:
20
,
"month"
:
10
,
"seconds"
:
53
,
"time"
:
1542684053000
,
"timezoneOffset"
:
-
480
,
"year"
:
118
},
"task_Id"
:
201811203
,
"task_State_Id"
:
1
},
]
$scope
.
groupList
=
[
{
"groupNO"
:
45
,
"vaildCount"
:
45
,
invaildCount
:
25
,
specialCardCount
:
5
,
specialCardList
:[{
acceptNo
:
20180401
,
specialType
:
1
},{
acceptNo
:
20180401
,
specialType
:
1
}]},
{
"groupNO"
:
45
,
"vaildCount"
:
45
,
invaildCount
:
25
,
specialCardCount
:
5
,
specialCardList
:[{
acceptNo
:
20180401
,
specialType
:
1
},{
acceptNo
:
20180401
,
specialType
:
1
}]},
{
"groupNO"
:
45
,
"vaildCount"
:
45
,
invaildCount
:
25
,
specialCardCount
:
5
,
specialCardList
:[{
acceptNo
:
20180401
,
specialType
:
1
},{
acceptNo
:
20180401
,
specialType
:
1
}]}
]
$scope
.
countyList
=
[
{}
]
$scope
.
showtable
=
-
1
;
$scope
.
showTableDY
=
function
(
taskID
)
{
if
(
$scope
.
showtable
!=
taskID
)
{
$scope
.
showtable
=
taskID
;
}
else
{
$scope
.
showtable
=
-
1
;
}
}
$scope
.
folds
=
[
{
id
:
1
,
name
:
'普通证'
,
count
:
10000
,
filter
:
''
,
isActive
:
true
,
dataTable
:{
...
...
src/test/java/com/yxproject/start/service/impl/GroupinfoServiceImplTest.java
0 → 100644
View file @
67e09846
package
com
.
yxproject
.
start
.
service
.
impl
;
import
static
org
.
junit
.
Assert
.*;
/**
* Created by Administrator on 2018/11/6.
*/
public
class
GroupinfoServiceImplTest
{
}
\ No newline at end of file
web/WEB-INF/web.xml
0 → 100644
View file @
67e09846
<?xml version="1.0" encoding="UTF-8"?>
<web-app
xmlns=
"http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version=
"3.1"
>
</web-app>
\ No newline at end of file
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