创建人修改
This commit is contained in:
@ -31,15 +31,13 @@ public class FileController {
|
|||||||
String baseUrl = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort();
|
String baseUrl = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort();
|
||||||
String oldName= file.getOriginalFilename();
|
String oldName= file.getOriginalFilename();
|
||||||
Map<String, Object> response = new HashMap<>();
|
Map<String, Object> response = new HashMap<>();
|
||||||
if(!file.isEmpty()){
|
String filename = fileStorageService.storeFile(file);
|
||||||
String filename = fileStorageService.storeFile(file);
|
String fileUrl = baseUrl+"/files/" + filename;
|
||||||
String fileUrl = baseUrl+"/files/" + filename;
|
response.put("fileName", oldName);
|
||||||
response.put("fileName", oldName);
|
response.put("fileType", file.getContentType());
|
||||||
response.put("fileType", file.getContentType());
|
response.put("fileSize", file.getSize());
|
||||||
response.put("fileSize", file.getSize());
|
response.put("url", fileUrl);
|
||||||
response.put("url", fileUrl);
|
response.put("filePath", uploadDir + "/"+filename);
|
||||||
response.put("filePath", uploadDir + "/"+filename);
|
|
||||||
}
|
|
||||||
return response;
|
return response;
|
||||||
|
|
||||||
|
|
||||||
|
@ -106,6 +106,20 @@ public class CoscoSupplierBaseController extends BaseController {
|
|||||||
@ApiOperation("新增数据")
|
@ApiOperation("新增数据")
|
||||||
@PostMapping("/addAgent")
|
@PostMapping("/addAgent")
|
||||||
public BaseResponse addAgent(@ApiParam(value = "对象数据", required = true) @RequestBody @Valid CoscoSupplierVo vo){
|
public BaseResponse addAgent(@ApiParam(value = "对象数据", required = true) @RequestBody @Valid CoscoSupplierVo vo){
|
||||||
|
if(CoscoType.SUPPLIER_TYPE_OVS.equals(vo.getCoscoSupplierBase().getSupplierType())){
|
||||||
|
//如果是境外企业
|
||||||
|
boolean valid = supplierRegistrationService.verifySmsCode(vo.getCoscoSupplierBase().getContactsEmail(),vo.getEncryptValue());
|
||||||
|
if (!valid) {
|
||||||
|
return BaseResponse.fail("验证码错误");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(CoscoType.SUPPLIER_TYPE_DVS.equals(vo.getCoscoSupplierBase().getSupplierType())){
|
||||||
|
//如果是境内企业
|
||||||
|
boolean valid = supplierRegistrationService.verifySmsCode(vo.getCoscoSupplierBase().getContactsPhone(),vo.getEncryptValue());
|
||||||
|
if (!valid) {
|
||||||
|
return BaseResponse.fail("验证码错误");
|
||||||
|
}
|
||||||
|
}
|
||||||
BaseCacheUser currentUser = TokenUtil.getCurrentUser();
|
BaseCacheUser currentUser = TokenUtil.getCurrentUser();
|
||||||
String userId = currentUser.getUserId();//登录人id
|
String userId = currentUser.getUserId();//登录人id
|
||||||
CoscoSupplierBase coscoSupplierBase = vo.getCoscoSupplierBase();
|
CoscoSupplierBase coscoSupplierBase = vo.getCoscoSupplierBase();
|
||||||
|
@ -204,7 +204,10 @@ public class CoscoSupplierBaseServiceImpl extends BaseServiceImpl<CoscoSupplierB
|
|||||||
supplierBase.setOrgName(org.getCuCompanyName());// 设置单位名称
|
supplierBase.setOrgName(org.getCuCompanyName());// 设置单位名称
|
||||||
}
|
}
|
||||||
if(!ObjectUtils.isEmpty(supplierBase.getCreateBy())){
|
if(!ObjectUtils.isEmpty(supplierBase.getCreateBy())){
|
||||||
supplierBase.setCreateName(userService.getUserInfo(supplierBase.getCreateBy()).getName());
|
SysUser sysUser = userService.getUserInfo(supplierBase.getCreateBy());
|
||||||
|
if(!ObjectUtils.isEmpty(sysUser)){
|
||||||
|
supplierBase.setCreateName(sysUser.getName());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -64,4 +64,9 @@ public class SupplierQualificationExpireVo {
|
|||||||
private BasePageRequest basePageRequest;
|
private BasePageRequest basePageRequest;
|
||||||
|
|
||||||
private String categoryIds;
|
private String categoryIds;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 资质名称
|
||||||
|
*/
|
||||||
|
private String qualificationsName;
|
||||||
}
|
}
|
||||||
|
@ -150,11 +150,11 @@
|
|||||||
cosco_access_supplier_category c
|
cosco_access_supplier_category c
|
||||||
left join cosco_supplier_base s on c.supplier_id = s.id and s.del_flag = 'normal'
|
left join cosco_supplier_base s on c.supplier_id = s.id and s.del_flag = 'normal'
|
||||||
left join (
|
left join (
|
||||||
select cssc.category_id from cosco_supplierexit_supplier_category cssc
|
select cssc.category_id,cssc.supplier_id from cosco_supplierexit_supplier_category cssc
|
||||||
left join cosco_supplierexit cs on cs.id = cssc.supplierexit_id
|
left join cosco_supplierexit cs on cs.id = cssc.supplierexit_id
|
||||||
where cs.approve_status in (0) and cs.del_flag = 'normal'
|
where cs.approve_status in (0) and cs.del_flag = 'normal'
|
||||||
and cs.org_id = #{vo.orgId}
|
and cs.org_id = #{vo.orgId}
|
||||||
) as exc on c.category_id = exc.category_id
|
) as exc on c.category_id = exc.category_id and exc.supplier_id = s.id
|
||||||
where c.del_flag = 'normal' and s.access_status = 1 and exc.category_id is null
|
where c.del_flag = 'normal' and s.access_status = 1 and exc.category_id is null
|
||||||
<if test="vo.supplierName != null and vo.supplierName != ''">
|
<if test="vo.supplierName != null and vo.supplierName != ''">
|
||||||
and s.name like concat('%', #{vo.supplierName}, '%')
|
and s.name like concat('%', #{vo.supplierName}, '%')
|
||||||
|
@ -260,6 +260,7 @@
|
|||||||
<select id="getSupplierExitStatistics" parameterType="map"
|
<select id="getSupplierExitStatistics" parameterType="map"
|
||||||
resultType="com.chinaunicom.zyhy.ebtp.supplier.dataStatistics.vo.SupplierQualificationExpireVo">
|
resultType="com.chinaunicom.zyhy.ebtp.supplier.dataStatistics.vo.SupplierQualificationExpireVo">
|
||||||
SELECT
|
SELECT
|
||||||
|
csq.name as qualificationsName,
|
||||||
csq.authority,
|
csq.authority,
|
||||||
csq.term_of_validity,
|
csq.term_of_validity,
|
||||||
csb.NAME supplierName,
|
csb.NAME supplierName,
|
||||||
|
Reference in New Issue
Block a user