|
|
|
|
@ -148,7 +148,7 @@ public class GoodsController extends BladeController { |
|
|
|
|
if (userList != null) { |
|
|
|
|
for (User user : userList) { |
|
|
|
|
messageClient.event(SysTypeEnum.INFORM.getValue(), "质检入库", |
|
|
|
|
"你有新的物品待质检,请及时处理", 1, 5, user.getId().toString(),"/capital/productstoreList"); |
|
|
|
|
"你有新的物品待质检,请及时处理", 1, 5, user.getId().toString(), "/capital/productstoreList"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return goodsService.save(goods); |
|
|
|
|
@ -321,7 +321,7 @@ public class GoodsController extends BladeController { |
|
|
|
|
if (userList != null) { |
|
|
|
|
for (User user : userList) { |
|
|
|
|
messageClient.event(SysTypeEnum.INFORM.getValue(), "质检入库", |
|
|
|
|
"你有新的物品待质检,请及时处理", 1, 5, user.getId().toString(),"/capital/productstoreList"); |
|
|
|
|
"你有新的物品待质检,请及时处理", 1, 5, user.getId().toString(), "/capital/productstoreList"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
@ -355,7 +355,7 @@ public class GoodsController extends BladeController { |
|
|
|
|
// 周一出库数量
|
|
|
|
|
LambdaQueryWrapper<ApplyDetail> wrapper = new LambdaQueryWrapper<>(); |
|
|
|
|
wrapper.eq(ApplyDetail::getIsCk, 1); |
|
|
|
|
wrapper.between(ApplyDetail::getCkTime,mondayStart,mondayEnd); |
|
|
|
|
wrapper.between(ApplyDetail::getCkTime, mondayStart, mondayEnd); |
|
|
|
|
List<ApplyDetail> applyDetails1 = applyDetailService.list(wrapper); |
|
|
|
|
int mondayOut = 0; |
|
|
|
|
for (ApplyDetail applyDetail : applyDetails1) { |
|
|
|
|
@ -364,7 +364,7 @@ public class GoodsController extends BladeController { |
|
|
|
|
// 周一入库数量
|
|
|
|
|
LambdaQueryWrapper<ProductStoreDetial> queryWrapper = new LambdaQueryWrapper<>(); |
|
|
|
|
queryWrapper.eq(ProductStoreDetial::getStatus, 1); |
|
|
|
|
queryWrapper.between(ProductStoreDetial::getUpdateTime,mondayStart,mondayEnd); |
|
|
|
|
queryWrapper.between(ProductStoreDetial::getUpdateTime, mondayStart, mondayEnd); |
|
|
|
|
List<ProductStoreDetial> storeDetials1 = productStoreDetialService.list(queryWrapper); |
|
|
|
|
int mondayIn = 0; |
|
|
|
|
for (ProductStoreDetial storeDetial : storeDetials1) { |
|
|
|
|
@ -382,7 +382,7 @@ public class GoodsController extends BladeController { |
|
|
|
|
// 周二出库数量
|
|
|
|
|
wrapper.clear(); |
|
|
|
|
wrapper.eq(ApplyDetail::getIsCk, 1); |
|
|
|
|
wrapper.between(ApplyDetail::getCkTime,tuesdayStart,tuesdayEnd); |
|
|
|
|
wrapper.between(ApplyDetail::getCkTime, tuesdayStart, tuesdayEnd); |
|
|
|
|
List<ApplyDetail> applyDetails2 = applyDetailService.list(wrapper); |
|
|
|
|
int tuesdayOut = 0; |
|
|
|
|
for (ApplyDetail applyDetail : applyDetails2) { |
|
|
|
|
@ -391,7 +391,7 @@ public class GoodsController extends BladeController { |
|
|
|
|
// 周二入库数量
|
|
|
|
|
queryWrapper.clear(); |
|
|
|
|
queryWrapper.eq(ProductStoreDetial::getStatus, 1); |
|
|
|
|
queryWrapper.between(ProductStoreDetial::getUpdateTime,tuesdayStart,tuesdayEnd); |
|
|
|
|
queryWrapper.between(ProductStoreDetial::getUpdateTime, tuesdayStart, tuesdayEnd); |
|
|
|
|
List<ProductStoreDetial> storeDetials2 = productStoreDetialService.list(queryWrapper); |
|
|
|
|
int tuesdayIn = 0; |
|
|
|
|
for (ProductStoreDetial storeDetial : storeDetials2) { |
|
|
|
|
@ -409,7 +409,7 @@ public class GoodsController extends BladeController { |
|
|
|
|
// 周三出库数量
|
|
|
|
|
wrapper.clear(); |
|
|
|
|
wrapper.eq(ApplyDetail::getIsCk, 1); |
|
|
|
|
wrapper.between(ApplyDetail::getCkTime,wednedayStart,wednedayEnd); |
|
|
|
|
wrapper.between(ApplyDetail::getCkTime, wednedayStart, wednedayEnd); |
|
|
|
|
List<ApplyDetail> applyDetails3 = applyDetailService.list(wrapper); |
|
|
|
|
int wednedayOut = 0; |
|
|
|
|
for (ApplyDetail applyDetail : applyDetails3) { |
|
|
|
|
@ -418,7 +418,7 @@ public class GoodsController extends BladeController { |
|
|
|
|
// 周三入库数量
|
|
|
|
|
queryWrapper.clear(); |
|
|
|
|
queryWrapper.eq(ProductStoreDetial::getStatus, 1); |
|
|
|
|
queryWrapper.between(ProductStoreDetial::getUpdateTime,wednedayStart,wednedayEnd); |
|
|
|
|
queryWrapper.between(ProductStoreDetial::getUpdateTime, wednedayStart, wednedayEnd); |
|
|
|
|
List<ProductStoreDetial> storeDetials3 = productStoreDetialService.list(queryWrapper); |
|
|
|
|
int wednedayIn = 0; |
|
|
|
|
for (ProductStoreDetial storeDetial : storeDetials3) { |
|
|
|
|
@ -436,7 +436,7 @@ public class GoodsController extends BladeController { |
|
|
|
|
// 周四出库数量
|
|
|
|
|
wrapper.clear(); |
|
|
|
|
wrapper.eq(ApplyDetail::getIsCk, 1); |
|
|
|
|
wrapper.between(ApplyDetail::getCkTime,thursdayStart,thursdayEnd); |
|
|
|
|
wrapper.between(ApplyDetail::getCkTime, thursdayStart, thursdayEnd); |
|
|
|
|
List<ApplyDetail> applyDetails4 = applyDetailService.list(wrapper); |
|
|
|
|
int thursdayOut = 0; |
|
|
|
|
for (ApplyDetail applyDetail : applyDetails4) { |
|
|
|
|
@ -445,7 +445,7 @@ public class GoodsController extends BladeController { |
|
|
|
|
// 周四入库数量
|
|
|
|
|
queryWrapper.clear(); |
|
|
|
|
queryWrapper.eq(ProductStoreDetial::getStatus, 1); |
|
|
|
|
queryWrapper.between(ProductStoreDetial::getUpdateTime,thursdayStart,thursdayEnd); |
|
|
|
|
queryWrapper.between(ProductStoreDetial::getUpdateTime, thursdayStart, thursdayEnd); |
|
|
|
|
List<ProductStoreDetial> storeDetials4 = productStoreDetialService.list(queryWrapper); |
|
|
|
|
int thursdayIn = 0; |
|
|
|
|
for (ProductStoreDetial storeDetial : storeDetials4) { |
|
|
|
|
@ -463,7 +463,7 @@ public class GoodsController extends BladeController { |
|
|
|
|
// 周五出库数量
|
|
|
|
|
wrapper.clear(); |
|
|
|
|
wrapper.eq(ApplyDetail::getIsCk, 1); |
|
|
|
|
wrapper.between(ApplyDetail::getCkTime,fridayStart,fridayEnd); |
|
|
|
|
wrapper.between(ApplyDetail::getCkTime, fridayStart, fridayEnd); |
|
|
|
|
List<ApplyDetail> applyDetails5 = applyDetailService.list(wrapper); |
|
|
|
|
int fridayOut = 0; |
|
|
|
|
for (ApplyDetail applyDetail : applyDetails5) { |
|
|
|
|
@ -472,7 +472,7 @@ public class GoodsController extends BladeController { |
|
|
|
|
// 周五入库数量
|
|
|
|
|
queryWrapper.clear(); |
|
|
|
|
queryWrapper.eq(ProductStoreDetial::getStatus, 1); |
|
|
|
|
queryWrapper.between(ProductStoreDetial::getUpdateTime,fridayStart,fridayEnd); |
|
|
|
|
queryWrapper.between(ProductStoreDetial::getUpdateTime, fridayStart, fridayEnd); |
|
|
|
|
List<ProductStoreDetial> storeDetials5 = productStoreDetialService.list(queryWrapper); |
|
|
|
|
int fridayIn = 0; |
|
|
|
|
for (ProductStoreDetial storeDetial : storeDetials5) { |
|
|
|
|
@ -490,7 +490,7 @@ public class GoodsController extends BladeController { |
|
|
|
|
// 周六出库数量
|
|
|
|
|
wrapper.clear(); |
|
|
|
|
wrapper.eq(ApplyDetail::getIsCk, 1); |
|
|
|
|
wrapper.between(ApplyDetail::getCkTime,saturdayStart,saturdayEnd); |
|
|
|
|
wrapper.between(ApplyDetail::getCkTime, saturdayStart, saturdayEnd); |
|
|
|
|
List<ApplyDetail> applyDetails6 = applyDetailService.list(wrapper); |
|
|
|
|
int saturdayOut = 0; |
|
|
|
|
for (ApplyDetail applyDetail : applyDetails6) { |
|
|
|
|
@ -499,7 +499,7 @@ public class GoodsController extends BladeController { |
|
|
|
|
// 周六入库数量
|
|
|
|
|
queryWrapper.clear(); |
|
|
|
|
queryWrapper.eq(ProductStoreDetial::getStatus, 1); |
|
|
|
|
queryWrapper.between(ProductStoreDetial::getUpdateTime,saturdayStart,saturdayEnd); |
|
|
|
|
queryWrapper.between(ProductStoreDetial::getUpdateTime, saturdayStart, saturdayEnd); |
|
|
|
|
List<ProductStoreDetial> storeDetials6 = productStoreDetialService.list(queryWrapper); |
|
|
|
|
int saturdayIn = 0; |
|
|
|
|
for (ProductStoreDetial storeDetial : storeDetials6) { |
|
|
|
|
@ -517,7 +517,7 @@ public class GoodsController extends BladeController { |
|
|
|
|
// 周日出库数量
|
|
|
|
|
wrapper.clear(); |
|
|
|
|
wrapper.eq(ApplyDetail::getIsCk, 1); |
|
|
|
|
wrapper.between(ApplyDetail::getCkTime,sundayStart,sundayEnd); |
|
|
|
|
wrapper.between(ApplyDetail::getCkTime, sundayStart, sundayEnd); |
|
|
|
|
List<ApplyDetail> applyDetails7 = applyDetailService.list(wrapper); |
|
|
|
|
int sundayOut = 0; |
|
|
|
|
for (ApplyDetail applyDetail : applyDetails7) { |
|
|
|
|
@ -526,7 +526,7 @@ public class GoodsController extends BladeController { |
|
|
|
|
// 周日入库数量
|
|
|
|
|
queryWrapper.clear(); |
|
|
|
|
queryWrapper.eq(ProductStoreDetial::getStatus, 1); |
|
|
|
|
queryWrapper.between(ProductStoreDetial::getUpdateTime,sundayStart,sundayEnd); |
|
|
|
|
queryWrapper.between(ProductStoreDetial::getUpdateTime, sundayStart, sundayEnd); |
|
|
|
|
List<ProductStoreDetial> storeDetials7 = productStoreDetialService.list(queryWrapper); |
|
|
|
|
int sundayIn = 0; |
|
|
|
|
for (ProductStoreDetial storeDetial : storeDetials7) { |
|
|
|
|
|