工作组查询优化

This commit is contained in:
yuezhihang
2021-11-11 14:13:11 +08:00
parent 333143549f
commit b714156172
30 changed files with 361 additions and 74 deletions
@@ -18,4 +18,6 @@ import java.util.List;
*/
public interface WgDeptDao extends BaseMapper<WgDept> {
List<WgDeptShow> researchDatas(@Param(value = "data") String data);
List<WgDeptShow> researchAllDatas(@Param(value = "type") String type);
}
@@ -1,8 +1,11 @@
package com.adc.da.slrs.wgDept.service;
import com.adc.da.slrs.wgDept.entity.WgDept;
import com.adc.da.slrs.wgDept.entity.WgDeptShow;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/**
* <p>
* 集团参与情况 服务类
@@ -12,5 +15,5 @@ import com.baomidou.mybatisplus.extension.service.IService;
* @since 2021-11-04
*/
public interface IWgDeptService extends IService<WgDept> {
List<WgDeptShow> getAllDatas(String type);
}
@@ -2,10 +2,14 @@ package com.adc.da.slrs.wgDept.service.impl;
import com.adc.da.slrs.wgDept.entity.WgDept;
import com.adc.da.slrs.wgDept.dao.WgDeptDao;
import com.adc.da.slrs.wgDept.entity.WgDeptShow;
import com.adc.da.slrs.wgDept.service.IWgDeptService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* <p>
* 集团参与情况 服务实现类
@@ -17,4 +21,11 @@ import org.springframework.stereotype.Service;
@Service
public class WgDeptServiceImpl extends ServiceImpl<WgDeptDao, WgDept> implements IWgDeptService {
@Autowired
private WgDeptDao wgDeptDao;
@Override
public List<WgDeptShow> getAllDatas(String type) {
return wgDeptDao.researchAllDatas(type);
}
}