|
@@ -4,12 +4,15 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.ozs.base.domain.BaseAgency;
|
|
|
import com.ozs.base.mapper.BaseAgencyMapper;
|
|
|
import com.ozs.base.service.BaseAgencyService;
|
|
|
import com.ozs.base.vo.BaseAgentPageReqVo;
|
|
|
import com.ozs.common.constant.HttpStatus;
|
|
|
+import com.ozs.common.core.domain.entity.SysProcurementStandard;
|
|
|
import com.ozs.common.exception.base.BaseException;
|
|
|
+import com.ozs.system.mapper.SysProcurementStandardMapper;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -20,7 +23,7 @@ import java.util.Arrays;
|
|
|
|
|
|
@Service
|
|
|
@Slf4j
|
|
|
-public class BaseAgencyServiceImpl implements BaseAgencyService {
|
|
|
+public class BaseAgencyServiceImpl extends ServiceImpl<BaseAgencyMapper, BaseAgency> implements BaseAgencyService {
|
|
|
|
|
|
@Autowired
|
|
|
private BaseAgencyMapper baseAgencyMapper;
|
|
@@ -54,20 +57,21 @@ public class BaseAgencyServiceImpl implements BaseAgencyService {
|
|
|
return baseAgencyMapper.update(null, lambdaUpdateWrapper);
|
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
- public IPage<BaseAgency> page(Page<BaseAgency> baseAgencyPage, BaseAgentPageReqVo vo) {
|
|
|
- LambdaQueryWrapper<BaseAgency> lw = new LambdaQueryWrapper<BaseAgency>();
|
|
|
- if(!StringUtils.isBlank(vo.getCompanyName())){
|
|
|
- lw.like(BaseAgency::getCompanyName,vo.getCompanyName());
|
|
|
- }
|
|
|
- if(!StringUtils.isBlank(vo.getCompanyNature())){
|
|
|
- lw.eq(BaseAgency::getCompanyNature,vo.getCompanyNature());
|
|
|
- }
|
|
|
- if(!ObjectUtils.isEmpty(vo.getStatus())){
|
|
|
- lw.eq(BaseAgency::getStatus,vo.getStatus());
|
|
|
- }
|
|
|
- return baseAgencyMapper.selectPage(baseAgencyPage,lw);
|
|
|
- }
|
|
|
+// @Override
|
|
|
+// public IPage<BaseAgency> page(Page<BaseAgency> baseAgencyPage, BaseAgentPageReqVo vo) {
|
|
|
+// LambdaQueryWrapper<BaseAgency> lw = new LambdaQueryWrapper<BaseAgency>();
|
|
|
+// if(!StringUtils.isBlank(vo.getCompanyName())){
|
|
|
+// lw.like(BaseAgency::getCompanyName,vo.getCompanyName());
|
|
|
+// }
|
|
|
+// if(!StringUtils.isBlank(vo.getCompanyNature())){
|
|
|
+// lw.eq(BaseAgency::getCompanyNature,vo.getCompanyNature());
|
|
|
+// }
|
|
|
+// if(!ObjectUtils.isEmpty(vo.getStatus())){
|
|
|
+// lw.eq(BaseAgency::getStatus,vo.getStatus());
|
|
|
+// }
|
|
|
+// return baseAgencyMapper.selectPage(baseAgencyPage, lw);
|
|
|
+//
|
|
|
+// }
|
|
|
|
|
|
@Override
|
|
|
public int remove(Long id) {
|