|
@@ -47,6 +47,20 @@ public class LogisticsInfoServiceImpl extends ServiceImpl<LogisticsInfoMapper, L
|
|
|
public Page<LogisticsInfo> getPage(Map<String, Object> condition) {
|
|
|
|
|
|
IWrapper<LogisticsInfo> wrapper = IWrapper.getWrapper(condition);
|
|
|
+
|
|
|
+ return page(condition, wrapper);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 采购入库列表
|
|
|
+ *
|
|
|
+ * @param condition 查询条件
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public Page<LogisticsInfo> getPurchaseInStockPage(Map<String, Object> condition) {
|
|
|
+
|
|
|
+ IWrapper<LogisticsInfo> wrapper = IWrapper.getWrapper(condition);
|
|
|
wrapper.eq("t1", LogisticsInfo::getStatus, LogisticsConstant.Status.STATUS_1)
|
|
|
.lt("t1", LogisticsInfo::getInStockStatus, LogisticsConstant.InStockStatus.STATUS_30)
|
|
|
.eq("t1", LogisticsInfo::getBusinessType, 1)
|
|
@@ -56,7 +70,7 @@ public class LogisticsInfoServiceImpl extends ServiceImpl<LogisticsInfoMapper, L
|
|
|
.and(Func.isNotEmpty(condition.get("keyword")), o -> o.apply("instr(t1.`code`, '" + condition.get("keyword") + "') > 0").or().apply("instr(t2.`code`, '" + condition.get("keyword") + "') > 0").or().apply("instr(t3.`name`, '" + condition.get("keyword") + "') > 0"))
|
|
|
.orderByDesc("t1", ApplyPurchase::getId);
|
|
|
|
|
|
- Page<LogisticsInfo> page = baseMapper.getPage(createPage(condition), wrapper);
|
|
|
+ Page<LogisticsInfo> page = baseMapper.getPurchaseInStockPage(createPage(condition), wrapper);
|
|
|
if (Func.isNotEmpty(page.getRecords())) {
|
|
|
Map<Long, String> userNameMap = UserClientUtil.getUserNameMap(page.getRecords(), LogisticsInfo::getCreateUser);
|
|
|
for (LogisticsInfo entity : page.getRecords()) {
|