|
|
@ -6,9 +6,7 @@ import java.util.stream.Collectors; |
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
import com.hxhq.business.domain.Gyzj; |
|
|
|
|
|
import com.hxhq.business.domain.GyzjFfjlJcgj; |
|
|
|
|
|
import com.hxhq.business.domain.StudyGyzj; |
|
|
|
|
|
|
|
|
import com.hxhq.business.domain.*; |
|
|
import com.hxhq.business.dto.gyzj.FfjlDetailDto; |
|
|
import com.hxhq.business.dto.gyzj.FfjlDetailDto; |
|
|
import com.hxhq.business.dto.gyzj.FfjlListDto; |
|
|
import com.hxhq.business.dto.gyzj.FfjlListDto; |
|
|
import com.hxhq.business.dto.gyzj.ListDto; |
|
|
import com.hxhq.business.dto.gyzj.ListDto; |
|
|
@ -28,7 +26,6 @@ import com.hxhq.system.service.ISysUserService; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.stereotype.Service; |
|
|
import com.hxhq.business.mapper.GyzjFfjlMapper; |
|
|
import com.hxhq.business.mapper.GyzjFfjlMapper; |
|
|
import com.hxhq.business.domain.GyzjFfjl; |
|
|
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
|
@ -75,6 +72,22 @@ public class GyzjFfjlServiceImpl extends ServiceImpl i |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public List<FfjlListDto> queryList(FfjlSearchForm form) { |
|
|
public List<FfjlListDto> queryList(FfjlSearchForm form) { |
|
|
|
|
|
QueryWrapper<GyzjFfjl> queryWrapper = getListCondition(form); |
|
|
|
|
|
queryWrapper.orderByDesc("t.id"); |
|
|
|
|
|
return baseMapper.queryList(queryWrapper); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public List<Map> yltj(FfjlSearchForm form){ |
|
|
|
|
|
QueryWrapper<GyzjFfjl> queryWrapper = getListCondition(form); |
|
|
|
|
|
queryWrapper.groupBy("t.ckldw,t.rkldw,t.syldw"); |
|
|
|
|
|
return baseMapper.yltj(queryWrapper); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public QueryWrapper<GyzjFfjl> getListCondition(FfjlSearchForm form) { |
|
|
QueryWrapper<GyzjFfjl> queryWrapper = Wrappers.query(); |
|
|
QueryWrapper<GyzjFfjl> queryWrapper = Wrappers.query(); |
|
|
queryWrapper.eq("t.del_flag", "0"); |
|
|
queryWrapper.eq("t.del_flag", "0"); |
|
|
if (form.getJyzt() != null && form.getJyzt().intValue() > 0) { |
|
|
if (form.getJyzt() != null && form.getJyzt().intValue() > 0) { |
|
|
@ -106,10 +119,10 @@ public class GyzjFfjlServiceImpl extends ServiceImpl i |
|
|
.or().apply(" exists(select s.* from t_study s where find_in_set(s.id, t.`md_ids`) and s.name like CONCAT('%', {0}, '%'))",form.getMdMc()) |
|
|
.or().apply(" exists(select s.* from t_study s where find_in_set(s.id, t.`md_ids`) and s.name like CONCAT('%', {0}, '%'))",form.getMdMc()) |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
queryWrapper.orderByDesc("t.id"); |
|
|
|
|
|
return baseMapper.queryList(queryWrapper); |
|
|
|
|
|
|
|
|
return queryWrapper; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 加签 ok |
|
|
* 加签 ok |
|
|
* |
|
|
* |
|
|
|