|
@@ -7,8 +7,11 @@ import com.gree.mall.miniapp.bean.user.CurrentCompanyWechat;
|
|
import com.gree.mall.miniapp.commonmapper.MaterialMapper;
|
|
import com.gree.mall.miniapp.commonmapper.MaterialMapper;
|
|
import com.gree.mall.miniapp.exception.RemoteServiceException;
|
|
import com.gree.mall.miniapp.exception.RemoteServiceException;
|
|
import com.gree.mall.miniapp.logic.common.CommonLogic;
|
|
import com.gree.mall.miniapp.logic.common.CommonLogic;
|
|
|
|
+import com.gree.mall.miniapp.plus.entity.User;
|
|
|
|
+import com.gree.mall.miniapp.plus.service.UserService;
|
|
import com.gree.mall.miniapp.utils.DateUtils;
|
|
import com.gree.mall.miniapp.utils.DateUtils;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
+import me.chanjar.weixin.cp.bean.WxCpAgent;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
@@ -26,6 +29,8 @@ public class NormRecordLogic {
|
|
MaterialMapper materialMapper;
|
|
MaterialMapper materialMapper;
|
|
@Resource
|
|
@Resource
|
|
CommonLogic commonLogic;
|
|
CommonLogic commonLogic;
|
|
|
|
+ @Resource
|
|
|
|
+ UserService userService;
|
|
|
|
|
|
public IPage<NormRecordVO> list(String orderId, String goodsType, String yearMonth, Integer pageNum, Integer pageSize, HttpServletRequest request) {
|
|
public IPage<NormRecordVO> list(String orderId, String goodsType, String yearMonth, Integer pageNum, Integer pageSize, HttpServletRequest request) {
|
|
String startTime = null;
|
|
String startTime = null;
|
|
@@ -37,7 +42,7 @@ public class NormRecordLogic {
|
|
}
|
|
}
|
|
CurrentCompanyWechat wechat = commonLogic.getCurrentCompanyWechat(request);
|
|
CurrentCompanyWechat wechat = commonLogic.getCurrentCompanyWechat(request);
|
|
IPage<NormRecordVO> page = materialMapper.normRecordList(new Page<>(pageNum, pageSize), wechat.getCurrentCompanyWechatId(),
|
|
IPage<NormRecordVO> page = materialMapper.normRecordList(new Page<>(pageNum, pageSize), wechat.getCurrentCompanyWechatId(),
|
|
- wechat.getUserId(), orderId, goodsType, startTime, endTime);
|
|
|
|
|
|
+ wechat.getUser().getWorkerNumber(), orderId, goodsType, startTime, endTime);
|
|
return page;
|
|
return page;
|
|
}
|
|
}
|
|
|
|
|