|
|
@ -17,6 +17,7 @@ import com.hxhq.business.form.yq.YqForm; |
|
|
import com.hxhq.business.form.yq.YqSearchForm; |
|
|
import com.hxhq.business.form.yq.YqSearchForm; |
|
|
import com.hxhq.business.service.IYqJcgjService; |
|
|
import com.hxhq.business.service.IYqJcgjService; |
|
|
import com.hxhq.business.utils.ObjectCompareUtil; |
|
|
import com.hxhq.business.utils.ObjectCompareUtil; |
|
|
|
|
|
import com.hxhq.common.core.domain.MpBaseEntity; |
|
|
import com.hxhq.common.core.exception.ServiceException; |
|
|
import com.hxhq.common.core.exception.ServiceException; |
|
|
import com.hxhq.common.security.utils.SecurityUtils; |
|
|
import com.hxhq.common.security.utils.SecurityUtils; |
|
|
import com.hxhq.system.api.domain.SysUser; |
|
|
import com.hxhq.system.api.domain.SysUser; |
|
|
@ -59,12 +60,16 @@ public class YqServiceImpl extends ServiceImpl implements IYqServi |
|
|
if(StringUtils.isNotEmpty(form.getBh())) { |
|
|
if(StringUtils.isNotEmpty(form.getBh())) { |
|
|
queryWrapper.like(Yq::getBh, form.getBh()); |
|
|
queryWrapper.like(Yq::getBh, form.getBh()); |
|
|
} |
|
|
} |
|
|
|
|
|
if(StringUtils.isNotEmpty(form.getLy())) { |
|
|
|
|
|
queryWrapper.like(Yq::getLy, form.getLy()); |
|
|
|
|
|
} |
|
|
if(StringUtils.isNotEmpty(form.getStartDate())) { |
|
|
if(StringUtils.isNotEmpty(form.getStartDate())) { |
|
|
queryWrapper.ge(Yq::getJzrq, form.getStartDate()); |
|
|
queryWrapper.ge(Yq::getJzrq, form.getStartDate()); |
|
|
} |
|
|
} |
|
|
if(StringUtils.isNotEmpty(form.getEndDate())) { |
|
|
if(StringUtils.isNotEmpty(form.getEndDate())) { |
|
|
queryWrapper.le(Yq::getJzrq, form.getEndDate()); |
|
|
queryWrapper.le(Yq::getJzrq, form.getEndDate()); |
|
|
} |
|
|
} |
|
|
|
|
|
queryWrapper.orderByDesc(MpBaseEntity::getId); |
|
|
return this.list(queryWrapper); |
|
|
return this.list(queryWrapper); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|