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
d65c69bc
Commit
d65c69bc
authored
Nov 20, 2018
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下载装箱单并连接盈信库
更新异常状态并更新异常信息 更新出库时间和入库时间 查询交接单
parent
b53ecaf6
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
111 additions
and
74 deletions
+111
-74
UserApi.java
src/main/java/com/yxproject/start/api/UserApi.java
+59
-26
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
+0
-1
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
TaskMapper.xml
src/main/resources/mapper/TaskMapper.xml
+4
-3
No files found.
src/main/java/com/yxproject/start/api/UserApi.java
View file @
d65c69bc
...
@@ -361,7 +361,6 @@ public class UserApi {
...
@@ -361,7 +361,6 @@ public class UserApi {
@RequestMapping
(
"getCountyList"
)
@RequestMapping
(
"getCountyList"
)
// @RequiresPermissions("userInfo.add")//权限管理;
// @RequiresPermissions("userInfo.add")//权限管理;
public
String
getCountyListInfoByTaskListID
(
@RequestParam
(
"taskListID"
)
String
tasklistid
,
HttpServletResponse
resp
)
{
public
String
getCountyListInfoByTaskListID
(
@RequestParam
(
"taskListID"
)
String
tasklistid
,
HttpServletResponse
resp
)
{
List
<
CountyListEntity
>
countyListInfoEntity
=
countyListService
.
findCountyListByTaskListID
(
tasklistid
);
List
<
CountyListEntity
>
countyListInfoEntity
=
countyListService
.
findCountyListByTaskListID
(
tasklistid
);
YXJSONResponse
yxjsonResponse
=
new
YXJSONResponse
();
YXJSONResponse
yxjsonResponse
=
new
YXJSONResponse
();
resp
.
setCharacterEncoding
(
"UTF-8"
);
resp
.
setCharacterEncoding
(
"UTF-8"
);
...
@@ -371,59 +370,57 @@ public class UserApi {
...
@@ -371,59 +370,57 @@ public class UserApi {
return
yxjsonResponse
.
toJSONString
();
return
yxjsonResponse
.
toJSONString
();
}
}
/**
/**
有误
* 保存卡
机
表;
* 保存卡
基
表;
*
*
* @return
* @return
*/
*/
@RequestMapping
(
"addCardBody"
)
@RequestMapping
(
"addCardBody"
)
// @RequiresPermissions("userInfo.add")//权限管理;
// @RequiresPermissions("userInfo.add")//权限管理;
public
String
addCardBodyInfo
(
@RequestParam
(
"
CardBody"
)
String
cardBodyInfo
Id
,
HttpServletResponse
resp
)
{
public
String
addCardBodyInfo
(
@RequestParam
(
"
cardBodyId"
)
String
cardBody
Id
,
HttpServletResponse
resp
)
{
String
map
=
"{\"
CardBodyId\":\"1
}"
;
String
map
=
"{\"
cardBodyId\":\"1\",
}"
;
JSONObject
jsonObject
=
JSONObject
.
fromObject
(
map
);
JSONObject
jsonObject
=
JSONObject
.
fromObject
(
map
);
Object
cardBodyInfo
=
jsonObject
.
get
(
"CardBody"
);
Object
cardBody
=
jsonObject
.
get
(
"CardBody"
);
Object
groupInfoList
=
jsonObject
.
get
(
"groupInfoList"
);
CardBodyEntity
cardBodyEntity
=
(
CardBodyEntity
)
cardBody
;
List
<
GroupNoEntity
>
groupNoEntities
=
(
List
<
GroupNoEntity
>)
groupInfoList
;
CardBodyEntity
cardBodyEntity
=
(
CardBodyEntity
)
cardBodyInfo
;
YXJSONResponse
yxjsonResponse
=
new
YXJSONResponse
();
YXJSONResponse
yxjsonResponse
=
new
YXJSONResponse
();
resp
.
setCharacterEncoding
(
"UTF-8"
);
resp
.
setCharacterEncoding
(
"UTF-8"
);
int
i
=
cardBodyService
.
addCardBodyEntity
(
cardBodyEntity
,
groupNoEntities
);
int
i
=
cardBodyService
.
addCardBodyEntity
(
cardBodyEntity
);
yxjsonResponse
.
outPutSuccess
(
i
+
"添加成功"
);
yxjsonResponse
.
outPutSuccess
(
i
+
"添加成功"
);
return
yxjsonResponse
.
toJSONString
();
return
yxjsonResponse
.
toJSONString
();
}
}
/**
/**
有误
* 更新循环单
* 更新循环单
* 添加异常状态;
* 添加异常状态;
* @return
* @return
*/
*/
@RequestMapping
(
"addExceptionState"
)
@RequestMapping
(
"addExceptionState"
)
// @RequiresPermissions("userInfo.add")//权限管理;
// @RequiresPermissions("userInfo.add")//权限管理;
public
String
addExceptionState
(
@RequestParam
(
"exception_
information"
)
String
exception_i
nformation
,
HttpServletResponse
resp
)
{
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} "
;
String
map
=
"{\"
task_Id\":\"20181016001\",\"exception_Information\"
:0} "
;
JSONObject
jsonObject
=
JSONObject
.
fromObject
(
map
);
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
();
YXJSONResponse
yxjsonResponse
=
new
YXJSONResponse
();
resp
.
setCharacterEncoding
(
"UTF-8"
);
resp
.
setCharacterEncoding
(
"UTF-8"
);
int
i
=
taskService
.
addExceptionState
(
productionTaskList
Entity
);
int
i
=
taskService
.
addExceptionState
(
task
Entity
);
yxjsonResponse
.
outPutSuccess
(
i
+
"更新成功"
);
yxjsonResponse
.
outPutSuccess
(
i
+
"更新成功"
);
return
yxjsonResponse
.
toJSONString
();
return
yxjsonResponse
.
toJSONString
();
}
}
/**
/**
* 更新入库时间
* 更新入库时间
*
*
404
* @return
* @return
*/
*/
@RequestMapping
(
"updatePutinstorageDate"
)
@RequestMapping
(
"updatePutinstorageDate"
)
// @RequiresPermissions("userInfo.add")//权限管理;
// @RequiresPermissions("userInfo.add")//权限管理;
public
String
updatePutinstorageDate
(
@RequestParam
(
"id"
)
String
id
,
HttpServletResponse
resp
)
{
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
);
JSONObject
jsonObject
=
JSONObject
.
fromObject
(
map
);
TaskEntity
productionTaskListEntity
=
(
TaskEntity
)
jsonObject
.
toBean
(
jsonObject
,
TaskEntity
.
class
);
TaskEntity
productionTaskListEntity
=
(
TaskEntity
)
jsonObject
.
toBean
(
jsonObject
,
TaskEntity
.
class
);
YXJSONResponse
yxjsonResponse
=
new
YXJSONResponse
();
YXJSONResponse
yxjsonResponse
=
new
YXJSONResponse
();
resp
.
setCharacterEncoding
(
"UTF-8"
);
resp
.
setCharacterEncoding
(
"UTF-8"
);
int
i
=
taskService
.
updateP
roductionTask
(
productionTaskListEntity
);
int
i
=
taskService
.
updateP
utinstorageDate
(
productionTaskListEntity
);
yxjsonResponse
.
outPutSuccess
(
i
+
"更新成功"
);
yxjsonResponse
.
outPutSuccess
(
i
+
"更新成功"
);
return
yxjsonResponse
.
toJSONString
();
return
yxjsonResponse
.
toJSONString
();
}
}
...
@@ -436,12 +433,12 @@ public class UserApi {
...
@@ -436,12 +433,12 @@ public class UserApi {
@RequestMapping
(
"updateOutboundDate"
)
@RequestMapping
(
"updateOutboundDate"
)
// @RequiresPermissions("userInfo.add")//权限管理;
// @RequiresPermissions("userInfo.add")//权限管理;
public
String
updateOutboundDate
(
@RequestParam
(
"id"
)
String
id
,
HttpServletResponse
resp
)
{
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
);
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
();
YXJSONResponse
yxjsonResponse
=
new
YXJSONResponse
();
resp
.
setCharacterEncoding
(
"UTF-8"
);
resp
.
setCharacterEncoding
(
"UTF-8"
);
int
i
=
taskService
.
update
ProductionTask
(
productionTaskList
Entity
);
int
i
=
taskService
.
update
OutboundDate
(
task
Entity
);
yxjsonResponse
.
outPutSuccess
(
i
+
"更新成功"
);
yxjsonResponse
.
outPutSuccess
(
i
+
"更新成功"
);
return
yxjsonResponse
.
toJSONString
();
return
yxjsonResponse
.
toJSONString
();
}
}
...
@@ -449,21 +446,57 @@ public class UserApi {
...
@@ -449,21 +446,57 @@ public class UserApi {
/**
/**
* 对出库数进行更改
* 对出库数进行更改
* 更新出库数
* 更新出库数
* 有点问题
* @return
* @return
*/
*/
@RequestMapping
(
"reviseOutBoundCount"
)
@RequestMapping
(
"reviseOutBoundCount"
)
@RequiresPermissions
(
"userInfo.add"
)
//权限管理;
//
@RequiresPermissions("userInfo.add")//权限管理;
public
String
reviseOutBoundCount
(
@RequestParam
(
"
id"
)
String
i
d
,
HttpServletResponse
resp
)
{
public
String
reviseOutBoundCount
(
@RequestParam
(
"
county_List_Id"
)
String
county_List_I
d
,
HttpServletResponse
resp
)
{
String
map
=
"{\"
production_Task_List_Id\":\"20181016001\",\"make_Type\":8,\"old_Make_Type\":8
,} "
;
String
map
=
"{\"
county_List_Id\":\"20181016001\",\"Out_Storage_County\":\"52\"
,} "
;
JSONObject
jsonObject
=
JSONObject
.
fromObject
(
map
);
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
();
YXJSONResponse
yxjsonResponse
=
new
YXJSONResponse
();
resp
.
setCharacterEncoding
(
"UTF-8"
);
resp
.
setCharacterEncoding
(
"UTF-8"
);
int
i
=
taskService
.
updateProductionTask
(
productionTask
ListEntity
);
int
i
=
countyListService
.
reviseOutBoundCount
(
county
ListEntity
);
yxjsonResponse
.
outPutSuccess
(
i
+
"更新成功"
);
yxjsonResponse
.
outPutSuccess
(
i
+
"更新成功"
);
return
yxjsonResponse
.
toJSONString
();
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/TaskEntity.java
View file @
d65c69bc
...
@@ -190,9 +190,6 @@ public class TaskEntity {
...
@@ -190,9 +190,6 @@ public class TaskEntity {
this
.
in_Storage_Date
=
in_Storage_Date
;
this
.
in_Storage_Date
=
in_Storage_Date
;
}
}
@Basic
@Basic
@Column
(
name
=
"TASK_STATE_ID"
,
nullable
=
true
,
precision
=
0
)
@Column
(
name
=
"TASK_STATE_ID"
,
nullable
=
true
,
precision
=
0
)
public
long
getTask_State_Id
()
{
public
long
getTask_State_Id
()
{
...
...
src/main/java/com/yxproject/start/mapper/CardBodyMapper.java
View file @
d65c69bc
...
@@ -9,8 +9,7 @@ import org.apache.ibatis.annotations.Mapper;
...
@@ -9,8 +9,7 @@ import org.apache.ibatis.annotations.Mapper;
@Mapper
@Mapper
public
interface
CardBodyMapper
{
public
interface
CardBodyMapper
{
public
int
insertCardBodyEntity
(
CardBodyEntity
cardBodyEntity
);
public
int
insertCardBodyInfoEntity
(
CardBodyEntity
cardBodyEntity
);
public
int
updateCardBodyInfo
(
CardBodyEntity
cardBodyEntity
);
public
int
updateCardBodyInfo
(
CardBodyEntity
cardBodyEntity
);
}
}
\ No newline at end of file
src/main/java/com/yxproject/start/mapper/CountyListMapper.java
View file @
d65c69bc
...
@@ -3,6 +3,7 @@ package com.yxproject.start.mapper;
...
@@ -3,6 +3,7 @@ package com.yxproject.start.mapper;
import
com.yxproject.start.entity.CountyListEntity
;
import
com.yxproject.start.entity.CountyListEntity
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -13,6 +14,7 @@ import java.util.List;
...
@@ -13,6 +14,7 @@ import java.util.List;
public
interface
CountyListMapper
{
public
interface
CountyListMapper
{
public
List
<
CountyListEntity
>
findCountyListByTaskListID
(
String
tasklistID
);
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 @
d65c69bc
...
@@ -17,7 +17,6 @@ public interface TaskMapper {
...
@@ -17,7 +17,6 @@ public interface TaskMapper {
public
int
updateTaskEntity
(
TaskEntity
taskEntity
);
public
int
updateTaskEntity
(
TaskEntity
taskEntity
);
public
List
<
TaskEntity
>
findTaskEntityByAcceptNo
(
String
acceptNo
);
public
List
<
TaskEntity
>
findTaskEntityByAcceptNo
(
String
acceptNo
);
public
List
<
TaskEntity
>
findTaskEntityByState
(
int
state
);
public
List
<
TaskEntity
>
findTaskEntityByState
(
int
state
);
public
int
addExceptionState
(
TaskEntity
taskEntity
);
public
int
replaceExceptionInformation
(
TaskEntity
taskEntity
);
public
int
replaceExceptionInformation
(
TaskEntity
taskEntity
);
public
int
totalnum
(
int
i
);
public
int
totalnum
(
int
i
);
}
}
src/main/java/com/yxproject/start/service/CardBodyService.java
View file @
d65c69bc
...
@@ -9,7 +9,8 @@ import java.util.List;
...
@@ -9,7 +9,8 @@ import java.util.List;
* Created by Administrator on 2018/11/7.
* Created by Administrator on 2018/11/7.
*/
*/
public
interface
CardBodyService
{
public
interface
CardBodyService
{
public
int
addCardBodyEntity
(
CardBodyEntity
cardBody
InfoEntity
,
List
<
GroupNoEntity
>
groupNoEntities
);
public
int
addCardBodyEntity
(
CardBodyEntity
cardBody
Entity
);
public
int
updateCardBody
(
CardBodyEntity
map
);
public
int
updateCardBody
(
CardBodyEntity
map
);
}
}
src/main/java/com/yxproject/start/service/CountyListService.java
View file @
d65c69bc
...
@@ -2,14 +2,13 @@ package com.yxproject.start.service;
...
@@ -2,14 +2,13 @@ package com.yxproject.start.service;
import
com.yxproject.start.entity.CountyListEntity
;
import
com.yxproject.start.entity.CountyListEntity
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
/**
* Created by liuxinben on 2018/11/6.10:30
*/
public
interface
CountyListService
{
public
interface
CountyListService
{
public
List
<
CountyListEntity
>
findCountyListByTaskListID
(
String
tasklistID
);
public
List
<
CountyListEntity
>
findCountyListByTaskListID
(
String
tasklistID
);
public
int
reviseOutBoundCount
(
CountyListEntity
map
);
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 @
d65c69bc
...
@@ -21,10 +21,7 @@ import java.util.List;
...
@@ -21,10 +21,7 @@ import java.util.List;
public
class
CardBodyServiceImpl
implements
CardBodyService
{
public
class
CardBodyServiceImpl
implements
CardBodyService
{
@Autowired
@Autowired
public
CardBodyMapper
cardBodyMapper
;
public
CardBodyMapper
cardBodyMapper
;
@Autowired
private
UtilMapper
utilMapper
;
@Autowired
public
GroupNoMapper
groupinfoMapper
;
@Override
@Override
public
int
updateCardBody
(
CardBodyEntity
cardBodyEntity
)
{
public
int
updateCardBody
(
CardBodyEntity
cardBodyEntity
)
{
...
@@ -35,12 +32,7 @@ public class CardBodyServiceImpl implements CardBodyService {
...
@@ -35,12 +32,7 @@ public class CardBodyServiceImpl implements CardBodyService {
@Override
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
int
addCardBodyEntity
(
CardBodyEntity
cardBodyEntity
)
{
public
int
addCardBodyEntity
(
CardBodyEntity
cardBodyEntity
,
List
<
GroupNoEntity
>
groupinfoEntities
)
{
return
cardBodyMapper
.
insertCardBodyEntity
(
cardBodyEntity
);
int
production_task_list_seq
=
utilMapper
.
findProductionTaskListSequenceNextValue
();
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyyMMdd"
);
cardBodyMapper
.
insertCardBodyInfoEntity
(
cardBodyEntity
);
return
1
;
}
}
}
}
src/main/java/com/yxproject/start/service/impl/CountyListServiceImpl.java
View file @
d65c69bc
...
@@ -6,6 +6,7 @@ import com.yxproject.start.service.CountyListService;
...
@@ -6,6 +6,7 @@ import com.yxproject.start.service.CountyListService;
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
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -15,25 +16,29 @@ import java.util.List;
...
@@ -15,25 +16,29 @@ import java.util.List;
@Service
@Service
public
class
CountyListServiceImpl
implements
CountyListService
{
public
class
CountyListServiceImpl
implements
CountyListService
{
@Autowired
@Autowired
public
CountyListMapper
countyList
Info
Mapper
;
public
CountyListMapper
countyListMapper
;
@Override
@Override
public
List
<
CountyListEntity
>
findCountyListByTaskListID
(
String
tasklistid
)
{
public
List
<
CountyListEntity
>
findCountyListByTaskListID
(
String
tasklistid
)
{
List
<
CountyListEntity
>
byTaskListID
=
countyList
Info
Mapper
.
findCountyListByTaskListID
(
tasklistid
);
List
<
CountyListEntity
>
byTaskListID
=
countyListMapper
.
findCountyListByTaskListID
(
tasklistid
);
return
byTaskListID
;
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
@Override
public
int
reviseOutBoundCount
(
CountyListEntity
countyListInfoEntity
)
{
public
List
<
CountyListEntity
>
getConnectList
(
String
save_Date
)
{
// int i = 0;
return
countyListMapper
.
getConnectList
(
save_Date
);
//
//
//
// CountyListInfoEntity.setOutBoundCount( );
// return CountyListInfoMapper.updateOutBoundCount(countyListInfoEntity);
//TODO
return
0
;
}
}
}
}
\ No newline at end of file
src/main/java/com/yxproject/start/service/impl/TaskServiceImpl.java
View file @
d65c69bc
...
@@ -4,6 +4,9 @@ import com.yxproject.start.entity.*;
...
@@ -4,6 +4,9 @@ import com.yxproject.start.entity.*;
import
com.yxproject.start.entity.accu.AccCardTEntity
;
import
com.yxproject.start.entity.accu.AccCardTEntity
;
import
com.yxproject.start.entity.prod.ProdCardTEntity
;
import
com.yxproject.start.entity.prod.ProdCardTEntity
;
import
com.yxproject.start.mapper.*
;
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
com.yxproject.start.service.TaskService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -427,14 +430,12 @@ public class TaskServiceImpl implements TaskService {
...
@@ -427,14 +430,12 @@ public class TaskServiceImpl implements TaskService {
}
else
{
}
else
{
taskEntity
.
setIs_Exception
((
long
)
0
);
taskEntity
.
setIs_Exception
((
long
)
0
);
// i= productionTaskListMapper.updateProductionTask(productionTaskListEntity);
i
=
taskMapper
.
replaceExceptionInformation
(
taskEntity
);
i
=
taskMapper
.
replaceExceptionInformation
(
taskEntity
);
}
}
return
i
;
return
i
;
}
}
private
CountyListEntity
countyListInfoEntity
;
private
CountyListEntity
countyListEntity
;
private
GroupNoEntity
groupNoEntity
;
/**
/**
* 更新出库时间
* 更新出库时间
* @param
* @param
...
@@ -442,8 +443,10 @@ public class TaskServiceImpl implements TaskService {
...
@@ -442,8 +443,10 @@ public class TaskServiceImpl implements TaskService {
*/
*/
@Override
@Override
public
int
updateOutboundDate
(
TaskEntity
taskEntity
)
{
public
int
updateOutboundDate
(
TaskEntity
taskEntity
)
{
int
i
=
0
;
i
=
taskMapper
.
totalnum
(
i
);
if
(
countyListEntity
.
getOut_Storage_Count
()==
i
){
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyyMMddhhmmss"
);
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyyMMddhhmmss"
);
if
(
groupNoEntity
.
totalinvalidCount
.
equals
(
countyListInfoEntity
.
getOut_Storage_Count
()))
{
taskEntity
.
setOut_Storage_Date
(
new
Date
());
taskEntity
.
setOut_Storage_Date
(
new
Date
());
return
taskMapper
.
updateTaskEntity
(
taskEntity
);
return
taskMapper
.
updateTaskEntity
(
taskEntity
);
}
}
...
@@ -459,8 +462,10 @@ public class TaskServiceImpl implements TaskService {
...
@@ -459,8 +462,10 @@ public class TaskServiceImpl implements TaskService {
*/
*/
@Override
@Override
public
int
updatePutinstorageDate
(
TaskEntity
taskEntity
)
{
public
int
updatePutinstorageDate
(
TaskEntity
taskEntity
)
{
int
i
=
0
;
i
=
taskMapper
.
totalnum
(
i
);
if
(
countyListEntity
.
getIn_Storage_Count
()==
i
){
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyyMMddhhmmss"
);
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyyMMddhhmmss"
);
if
(
groupNoEntity
.
totalinvalidCount
.
equals
(
countyListInfoEntity
.
getIn_Storage_Count
()))
{
taskEntity
.
setIn_Storage_Date
(
new
Date
());
taskEntity
.
setIn_Storage_Date
(
new
Date
());
return
taskMapper
.
updateTaskEntity
(
taskEntity
);
return
taskMapper
.
updateTaskEntity
(
taskEntity
);
}
}
...
...
src/main/resources/mapper/CardBodyMapper.xml
View file @
d65c69bc
...
@@ -10,10 +10,9 @@
...
@@ -10,10 +10,9 @@
<result
column=
"TOTAL_COUNT"
property=
"total_Count"
jdbcType=
"NUMERIC"
/>
<result
column=
"TOTAL_COUNT"
property=
"total_Count"
jdbcType=
"NUMERIC"
/>
</resultMap>
</resultMap>
<insert
id=
"insertCardBodyEntity"
parameterType=
"com.yxproject.start.entity.CardBodyEntity"
>
<select
id=
"insertCardBodyEntity"
resultType=
"com.yxproject.start.entity.CardBodyEntity"
parameterType=
"String"
>
Insert into CARD_BODY (CARD_BODY_ID,SAVE_DATE,CARD_TYPE_ID,IS_ACTIVE,TASK_ID,TOTAL_COUNT)
select * from CARD_BODY where CARD_BODY_ID=#{card_Body_Id}
values (#{card_Body_Id},#{save_Date},#{card_Type_Id},#{is_Active},#{task_Id},#{total_Count})
</select>
</insert>
<update
id=
"updateCardBody"
parameterType=
"com.yxproject.start.entity.CardBodyEntity"
>
<update
id=
"updateCardBody"
parameterType=
"com.yxproject.start.entity.CardBodyEntity"
>
update CARD_BODY
update CARD_BODY
...
...
src/main/resources/mapper/CountyListMapper.xml
View file @
d65c69bc
...
@@ -18,9 +18,12 @@
...
@@ -18,9 +18,12 @@
SELECT * FROM COUNTY_LIST where task_Id=#{task_Id}
SELECT * FROM COUNTY_LIST where task_Id=#{task_Id}
</select>
</select>
<update
id=
"update
Out
BoundCount"
parameterType=
"com.yxproject.start.entity.CountyListEntity"
>
<update
id=
"updateBoundCount"
parameterType=
"com.yxproject.start.entity.CountyListEntity"
>
update COUNTY_LIST OUT_STORAGE_COUNT =#{out_Storage_Count} where COUNTY_LIST_ID =#{county_List_Id}
update COUNTY_LIST OUT_STORAGE_COUNT =#{out_Storage_Count}
,IN_STORAGE_COUNT =#{in_Storage_Count}
where COUNTY_LIST_ID =#{county_List_Id}
</update>
</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>
</mapper>
src/main/resources/mapper/TaskMapper.xml
View file @
d65c69bc
...
@@ -69,11 +69,11 @@
...
@@ -69,11 +69,11 @@
</select>
</select>
<update
id=
"replaceExceptionInformation"
parameterType=
"com.yxproject.start.entity.TaskEntity"
>
<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>
</update>
<select
id=
"totalnum"
resultType=
"
com.yxproject.start.entity.TaskEntity"
parameterType=
"String
"
>
<select
id=
"totalnum"
resultType=
"
Int
"
>
SELECT SUM(VAILD_COUNT)FROM TASK
select SUM(VAILD_COUNT)FROM GROUP_NO where TASK_ID =#{task_Id}
</select>
</select>
</mapper>
</mapper>
\ 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