|
@@ -8,6 +8,7 @@ import com.steerinfo.dil.model.WmspSendReceive;
|
|
import com.steerinfo.dil.service.IWmspSendReceiveService;
|
|
import com.steerinfo.dil.service.IWmspSendReceiveService;
|
|
import com.steerinfo.dil.util.DataChange;
|
|
import com.steerinfo.dil.util.DataChange;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.scheduling.annotation.Async;
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
@@ -163,10 +164,11 @@ public class WmspSendReceiveServiceImpl implements IWmspSendReceiveService {
|
|
//零点生成前一天的入库、出库、库存
|
|
//零点生成前一天的入库、出库、库存
|
|
@Override
|
|
@Override
|
|
@Scheduled(cron = "1 45 23 * * ? ")
|
|
@Scheduled(cron = "1 45 23 * * ? ")
|
|
|
|
+ @Async("threadPoolTaskExecutor")
|
|
public int addSendReceive(){
|
|
public int addSendReceive(){
|
|
int i = 0;
|
|
int i = 0;
|
|
- int count = wmspSendReceiveMapper.getTodaySendReceiveCount();
|
|
|
|
- if(count == 0){
|
|
|
|
|
|
+ // int count = wmspSendReceiveMapper.getTodaySendReceiveCount();
|
|
|
|
+ // if(count == 0){
|
|
//高线库,一棒库,二棒库,配送库
|
|
//高线库,一棒库,二棒库,配送库
|
|
List<Map<String, Object>> mapList = rmsWarehouseMapper.getWarehouseName();
|
|
List<Map<String, Object>> mapList = rmsWarehouseMapper.getWarehouseName();
|
|
//遍历四个仓库
|
|
//遍历四个仓库
|
|
@@ -228,9 +230,9 @@ public class WmspSendReceiveServiceImpl implements IWmspSendReceiveService {
|
|
i+=wmspSendReceiveMapper.insertSelective(wmspSendReceive);
|
|
i+=wmspSendReceiveMapper.insertSelective(wmspSendReceive);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ // }
|
|
|
|
|
|
- return i;
|
|
|
|
|
|
+ return i;
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|