证书查看

cert
schry 2 years ago
parent a329755408
commit af7e7e3901

@ -116,10 +116,13 @@ public class SupManufacturerController {
// return ResultVOUtils.success(pageSimpleResponse);
// }
@AuthRuleAnnotation("")
@GetMapping("/directToCpt/sup/manufacturer/getCompanyBySup")
public BaseResponse getCompanyBySup(FilterSupManufacturerRequest filterSupManufacturerRequest) {
// filterSupManufacturerRequest.setCustomerId(getCustomerId());
filterSupManufacturerRequest.setCustomerId(getCompanyId());
System.out.println("111111111111111111111111111111111111:"+getCompanyId());
List<SupManufacturerEntity> companyEntities = supManufacturerService.getCompany(filterSupManufacturerRequest);
PageInfo<SupManufacturerEntity> pageInfo = new PageInfo<>(companyEntities);
PageSimpleResponse<SupManufacturerEntity> pageSimpleResponse = new PageSimpleResponse<>();
@ -650,4 +653,14 @@ public class SupManufacturerController {
AuthAdmin authAdmin = authAdminService.findById(Long.parseLong(userId));
return authAdmin.getCustomerId() + "";
}
public String getCompanyId() {
ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
if (attributes == null) {
throw new JsonException(ResultEnum.NOT_NETWORK);
}
HttpServletRequest request = attributes.getRequest();
String companyId = request.getHeader("companyId");
return companyId;
}
}

@ -5,7 +5,7 @@
<select id="filterCompanyCert" parameterType="com.glxp.api.req.purchase.FilterSupCertRequest"
resultType="com.glxp.api.entity.purchase.SupCertEntity">
select * from sup_cert
select * from user_cert
<where>
<if test="customerId != '' and customerId!=null">
and customerId = #{customerId}
@ -31,7 +31,9 @@
<if test="auditStatus ==25">
and (auditStatus !=0)
</if>
<if test="businessId != '' and businessId!=null">
and businessId = #{businessId}
</if>
</where>
ORDER BY id DESC
</select>

Loading…
Cancel
Save