Merge branch 'feature/mall_product' of http://117.33.142.185:3000/zenghuapei/cyywl_server into feature/mall_product

pull/9/head
TianYu 2023-06-01 11:53:36 +08:00
commit 1301b5d9ea
2 changed files with 1 additions and 10 deletions

View File

@ -13,7 +13,7 @@ public interface DeptMapper extends BaseMapperX<DeptDO> {
default List<DeptDO> selectList(DeptListReqVO reqVO) {
return selectList(new LambdaQueryWrapperX<DeptDO>()
.eq(DeptDO::getTenantId,reqVO.getTenantId())
.eq(null != reqVO.getTenantId(), DeptDO::getTenantId, reqVO.getTenantId())
.likeIfPresent(DeptDO::getName, reqVO.getName())
.eqIfPresent(DeptDO::getStatus, reqVO.getStatus()));
}

View File

@ -154,15 +154,6 @@ public class DeptServiceImpl implements DeptService {
deptProducer.sendDeptRefreshMessage();
}
public static void main(String[] args) {
String words = "创盈云>测试删除1";
System.out.println("原始字符串是'" + words + "'");
System.out.println("replace(\"r's\",\"is\")结果:" + words.replace("测试删除1", "测试删除"));
}
@Override
public void deleteDept(Long id) {
// 校验是否存在