提前开票问题修改

This commit is contained in:
hp
2022-11-01 13:37:47 +08:00
parent bc86d0fa4b
commit 8af405efde

View File

@@ -308,9 +308,9 @@ public class MessageListService extends MybatisBaseService<MessageListMapper, Me
QueryWrapper<MessageList> qw = new QueryWrapper<>();
qw.eq("ml.receiverSid", pq.getParams().getUserSid());
qw.eq("m.msgTypeSid", pq.getParams().getMsgTypeSid());
if(StringUtils.isNotBlank(pq.getParams().getOrgPath())){
qw.and(wrapper -> wrapper.isNull("ml.receiverDeptSid").or().eq("ml.receiverDeptSid",pq.getParams().getOrgPath()).or().eq("ml.receiverDeptSid", ""));
}
// if(StringUtils.isNotBlank(pq.getParams().getOrgPath())){
// qw.and(wrapper -> wrapper.isNull("ml.receiverDeptSid").or().eq("ml.receiverDeptSid",pq.getParams().getOrgPath()).or().eq("ml.receiverDeptSid", ""));
// }
IPage<AppMessageListQuery> iPage = PagerUtil.queryToPage(pq);
IPage<AppMessageListVo> page = baseMapper.getAppMsgListByUserSid(iPage, qw);
PagerVo<AppMessageListVo> pagerVo = PagerUtil.pageToVo(page, null);