Commit 359d1836 authored by Administrator's avatar Administrator

下载装箱单并连接盈信库

更新异常状态并更新异常信息
更新出库时间和入库时间
parent b2a253d0
...@@ -19,5 +19,5 @@ public interface TaskMapper { ...@@ -19,5 +19,5 @@ public interface TaskMapper {
public List<TaskEntity> findTaskEntityByState(int state); public List<TaskEntity> findTaskEntityByState(int state);
public int addExceptionState(TaskEntity taskEntity); public int addExceptionState(TaskEntity taskEntity);
public int replaceExceptionInformation(TaskEntity taskEntity); public int replaceExceptionInformation(TaskEntity taskEntity);
public int totalnum (String i); public int totalnum (int i);
} }
...@@ -447,13 +447,14 @@ public class TaskServiceImpl implements TaskService { ...@@ -447,13 +447,14 @@ public class TaskServiceImpl implements TaskService {
public int updateOutboundDate(TaskEntity taskEntity) { public int updateOutboundDate(TaskEntity taskEntity) {
int i=0; int i=0;
i= taskMapper.totalnum(i); i= taskMapper.totalnum(i);
if (countyListInfoEntity.getOutBoundCount()=!i){ if (countyListInfoEntity.getOutBoundCount()==i){
return 0;
}
else{
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddhhmmss"); SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddhhmmss");
taskEntity.setOut_Storage_Date(new Date()); taskEntity.setOut_Storage_Date(new Date());
return taskMapper.updateTaskEntity(taskEntity); return taskMapper.updateTaskEntity(taskEntity);
}
else{
return 0;
} }
} }
...@@ -464,15 +465,16 @@ public class TaskServiceImpl implements TaskService { ...@@ -464,15 +465,16 @@ public class TaskServiceImpl implements TaskService {
*/ */
@Override @Override
public int updatePutinstorageDate(TaskEntity taskEntity) { public int updatePutinstorageDate(TaskEntity taskEntity) {
String i; int i=0;
i= taskMapper.totalnum(i); i= taskMapper.totalnum(i);
if (countyListInfoEntity.getInStorageCount()=){ if (countyListInfoEntity.getInStorageCount()==i){
return 0; SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddhhmmss");
}
else{ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddhhmmss");
taskEntity.setIn_Storage_Date(new Date()); taskEntity.setIn_Storage_Date(new Date());
return taskMapper.updateTaskEntity(taskEntity); return taskMapper.updateTaskEntity(taskEntity);
} }
else{
return 0;
}
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment