准入供应商查询最后一次评价相关信息去除
This commit is contained in:
@ -38,6 +38,16 @@ public class UserController {
|
||||
return BaseResponse.success(userService.getUserList(param));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询用户信息
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/getUserById")
|
||||
public BaseResponse getUserById(String id) {
|
||||
return BaseResponse.success(userService.getUserById(id));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -21,6 +21,6 @@ public interface IUserService{
|
||||
|
||||
BaseResponse<List<SysUser>> getUserList(SysUser vo);
|
||||
|
||||
|
||||
SysUser getUserById(String id);
|
||||
List<UserVo> getUser(SelectUserVo vo);
|
||||
}
|
||||
|
@ -31,6 +31,12 @@ public class UserServiceImpl implements IUserService {
|
||||
return systemClient.getUserlist(user);
|
||||
}
|
||||
|
||||
public SysUser getUserById(String id){
|
||||
BaseResponse<SysUser> user = systemClient.getUser(id);
|
||||
return user.getData();
|
||||
}
|
||||
|
||||
|
||||
public List<UserVo> getUser(SelectUserVo vo) {
|
||||
BaseResponse<List<SysUser>> userlist = systemClient.getUserlist(new SysUser());
|
||||
List<UserVo> list = new ArrayList<>();
|
||||
|
@ -1,6 +1,7 @@
|
||||
package com.chinaunicom.zyhy.ebtp.supplier.coscoEvaluate.vo;
|
||||
|
||||
import com.chinaunicom.mall.ebtp.common.base.entity.BasePageRequest;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@ -35,11 +36,13 @@ public class SupplierDimensionVo implements Serializable {
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
private String startTime;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date startTime;
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
private String endTime;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date endTime;
|
||||
/**
|
||||
* 评价状态
|
||||
*/
|
||||
|
@ -1,10 +1,12 @@
|
||||
package com.chinaunicom.zyhy.ebtp.supplier.coscoEvaluate.vo;
|
||||
|
||||
import com.chinaunicom.mall.ebtp.common.base.entity.BasePageRequest;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class TaskPageVo implements Serializable {
|
||||
@ -28,11 +30,13 @@ public class TaskPageVo implements Serializable {
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
private String startTime;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date startTime;
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
private String endTime;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date endTime;
|
||||
/**
|
||||
* 评价任务状态(0.待评价、1.评价中、2.已结束)
|
||||
*/
|
||||
|
@ -5,9 +5,11 @@ import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.chinaunicom.mall.ebtp.common.base.entity.BaseCacheUser;
|
||||
import com.chinaunicom.mall.ebtp.common.base.entity.SysOrg;
|
||||
import com.chinaunicom.mall.ebtp.common.base.service.impl.BaseServiceImpl;
|
||||
import com.chinaunicom.mall.ebtp.common.base.util.TokenUtil;
|
||||
import com.chinaunicom.mall.ebtp.common.util.PropertyUtils;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.base.service.IOrgService;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.common.ChineseName;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.common.CoscoDateUtils;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.base.constant.CoscoType;
|
||||
@ -44,27 +46,18 @@ public class CoscoSupplierBaseServiceImpl extends BaseServiceImpl<CoscoSupplierB
|
||||
private CoscoSupplierQualificationsMapper coscoSupplierQualificationsMapper;
|
||||
|
||||
|
||||
|
||||
|
||||
@Autowired
|
||||
private CoscoSupplierInvoiceMapper coscoSupplierInvoiceMapper;
|
||||
|
||||
|
||||
|
||||
|
||||
@Autowired
|
||||
private CoscoSupplierBankMapper coscoSupplierBankMapper;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@Autowired
|
||||
private CoscoSupplierSurveyMapper coscoSupplierSurveyMapper;
|
||||
|
||||
|
||||
|
||||
@Autowired
|
||||
private CoscoSupplierSurveyQuestionReplyMapper coscoSupplierSurveyQuestionReplyMapper;
|
||||
|
||||
@ -73,8 +66,6 @@ public class CoscoSupplierBaseServiceImpl extends BaseServiceImpl<CoscoSupplierB
|
||||
private CoscoSupplierSurveyAttachmentsMapper coscoSupplierSurveyAttachmentsMapper;
|
||||
|
||||
|
||||
|
||||
|
||||
@Autowired
|
||||
private CoscoSupplierChangeHistoryMapper coscoSupplierChangeHistoryMapper;
|
||||
|
||||
@ -90,11 +81,13 @@ public class CoscoSupplierBaseServiceImpl extends BaseServiceImpl<CoscoSupplierB
|
||||
|
||||
@Autowired
|
||||
private CoscoCategoryLibraryContainMapper coscoCategoryLibraryContainMapper;
|
||||
|
||||
@Autowired
|
||||
private IOrgService orgService;
|
||||
|
||||
|
||||
/**
|
||||
* 未准入的供应商分页列表查询
|
||||
*
|
||||
* @param coscoSupplierBase
|
||||
* @return
|
||||
*/
|
||||
@ -126,6 +119,7 @@ public class CoscoSupplierBaseServiceImpl extends BaseServiceImpl<CoscoSupplierB
|
||||
|
||||
/**
|
||||
* 供应商准入明细
|
||||
*
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
@ -404,7 +398,16 @@ public class CoscoSupplierBaseServiceImpl extends BaseServiceImpl<CoscoSupplierB
|
||||
supplierPageVo.setLibrarySupplierIdList(supplierIds);
|
||||
}
|
||||
IPage<CoscoSupplierBase> page = new Page<>(supplierPageVo.getBasePageRequest().getPageNo(), supplierPageVo.getBasePageRequest().getPageSize());
|
||||
return coscoSupplierBaseMapper.getSupplierPage(page ,supplierPageVo);
|
||||
IPage<SupplierPageVo> supplierPage = coscoSupplierBaseMapper.getSupplierPage(page, supplierPageVo);
|
||||
supplierPage.getRecords().forEach(vo -> {
|
||||
|
||||
SysOrg orgInfo = orgService.getOrgInfo(vo.getDeptId());
|
||||
if (orgInfo != null) {
|
||||
vo.setDeptName(orgInfo.getOrgName());
|
||||
}
|
||||
|
||||
});
|
||||
return supplierPage;
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -487,7 +490,6 @@ public class CoscoSupplierBaseServiceImpl extends BaseServiceImpl<CoscoSupplierB
|
||||
coscoSupplierChangeApply.setLastUpdateTime(date);
|
||||
|
||||
|
||||
|
||||
//新增变更后基本信息
|
||||
CoscoSupplierChangeBase coscoSupplierChangeBase = new CoscoSupplierChangeBase();
|
||||
BeanUtil.copyProperties(newCoscoSupplierBase, coscoSupplierChangeBase);
|
||||
@ -521,6 +523,7 @@ public class CoscoSupplierBaseServiceImpl extends BaseServiceImpl<CoscoSupplierB
|
||||
|
||||
/**
|
||||
* 字段比对方法
|
||||
*
|
||||
* @param newCoscoSupplierBase
|
||||
* @param oldCoscoSupplierBase
|
||||
* @param supplierChangeApplyId
|
||||
@ -586,6 +589,7 @@ public class CoscoSupplierBaseServiceImpl extends BaseServiceImpl<CoscoSupplierB
|
||||
public static boolean isChanged(Object newValue, Object oldValue) {
|
||||
return !Objects.equals(newValue, oldValue);
|
||||
}
|
||||
|
||||
public static boolean baseDiff(String str1, String str2) {
|
||||
// 处理两个都为null的情况
|
||||
if (str1 == null && str2 == null) {
|
||||
|
@ -836,8 +836,6 @@
|
||||
END AS unifiedCode,
|
||||
GROUP_CONCAT(caw.dept_id) as dept_id,
|
||||
max(caw.update_time) AS admissionTime,
|
||||
max(ets.update_time) AS evaluationTime ,
|
||||
max(ets.level_name) as levelName,
|
||||
GROUP_CONCAT(DISTINCT cc.category_name SEPARATOR ', ') AS categoryName
|
||||
from
|
||||
cosco_access_supplier_category as casc
|
||||
@ -845,24 +843,6 @@
|
||||
left join cosco_access_supplier as cas on cas.supplier_id = csb.id
|
||||
left join cosco_access_work as caw on caw.id = cas.access_work_id and caw.apply_type=1 and caw.approve_status=1
|
||||
left join cosco_category as cc on casc.category_id = cc.id
|
||||
LEFT JOIN (
|
||||
SELECT ts1.*
|
||||
FROM cosco_evaluate_task_supplier ts1
|
||||
JOIN cosco_evaluate_task tsk1 ON ts1.evaluate_task_id = tsk1.id
|
||||
WHERE tsk1.approve_status = 1
|
||||
AND ts1.del_flag = 'normal'
|
||||
AND tsk1.del_flag = 'normal'
|
||||
AND ts1.create_time = (
|
||||
SELECT MAX(ts2.create_time)
|
||||
FROM cosco_evaluate_task_supplier ts2
|
||||
JOIN cosco_evaluate_task tsk2 ON ts2.evaluate_task_id = tsk2.id
|
||||
WHERE ts2.supplier_id = ts1.supplier_id
|
||||
AND tsk2.approve_status = 1
|
||||
AND ts2.del_flag = 'normal'
|
||||
AND tsk2.del_flag = 'normal'
|
||||
)
|
||||
) ets ON ets.supplier_id = csb.id
|
||||
|
||||
-- 黑名单排除
|
||||
WHERE NOT EXISTS (
|
||||
SELECT 1
|
||||
@ -892,9 +872,7 @@
|
||||
<if test="vo.categoryId!=null and vo.categoryId!=''">
|
||||
and cc.categoryId like concat('%',#{vo.categoryId},'%')
|
||||
</if>
|
||||
<if test="vo.levelName!=null and vo.levelName!=''">
|
||||
and ets.level_name = #{vo.levelName}
|
||||
</if>
|
||||
|
||||
<if test="vo.librarySupplierIdList!=null and vo.librarySupplierIdList.size>0">
|
||||
and csb.id IN
|
||||
<foreach item="id" collection="vo.librarySupplierIdList" open="(" separator="," close=")">
|
||||
|
Reference in New Issue
Block a user