|
|
@@ -1,5 +1,6 @@
|
|
|
package cn.tr.module.smart.common.service.impl;
|
|
|
|
|
|
+import cn.hutool.core.util.StrUtil;
|
|
|
import cn.tr.core.exception.TRExcCode;
|
|
|
import cn.tr.module.smart.common.dto.BizDeptDTO;
|
|
|
import cn.tr.module.smart.common.dto.BizDeptQueryDTO;
|
|
|
@@ -7,6 +8,7 @@ import cn.tr.module.smart.common.mapper.BizDeptMapper;
|
|
|
import cn.tr.module.smart.common.po.BizDeptPO;
|
|
|
import cn.tr.module.smart.common.repository.BizDeptRepository;
|
|
|
import cn.tr.module.smart.common.service.IBizDeptService;
|
|
|
+import cn.tr.module.smart.wx.controller.vo.BizWxDeptVO;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
@@ -28,6 +30,15 @@ public class BizDeptServiceImpl implements IBizDeptService {
|
|
|
private BizDeptRepository baseRepository;
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<BizWxDeptVO> stdWxAppletSelectBizDeptList(BizDeptQueryDTO query) {
|
|
|
+ return BizDeptMapper.INSTANCE.convertWxDTOList(
|
|
|
+ baseRepository.selectList(new LambdaQueryWrapper<BizDeptPO>()
|
|
|
+ .like(StrUtil.isNotBlank(query.getName()),BizDeptPO::getName, query.getName())
|
|
|
+ )
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 根据条件查询科室
|
|
|
* @param query 查询参数
|