Bläddra i källkod

更新审核信息

dev
1517874642 4 år sedan
förälder
incheckning
16291908d4
2 ändrade filer med 9 tillägg och 3 borttagningar
  1. +7
    -1
      user-service/src/main/java/com/hp/user/service/controller/AuditController.java
  2. +2
    -2
      user-service/src/main/resources/mapper/CustomerCompanyMapper.xml

+ 7
- 1
user-service/src/main/java/com/hp/user/service/controller/AuditController.java Visa fil

@@ -20,7 +20,7 @@ public class AuditController {
@Autowired
private CustomerCompanyService companyService;

@ApiOperation(value = "是否通过企业审核",notes = "若操作成功会返回新的审核记录Id")
@ApiOperation(value = "是否通过企业审核")
@PostMapping("/passCompanyAudit")
@Transactional
public Result passCompanyAudit(@RequestBody AuditVO audit){
@@ -48,4 +48,10 @@ public class AuditController {
result.setCode("0");
return result;
}

@ApiOperation(value = "更新审核信息")
@PostMapping("/updateAudit")
public Result updateAudit(@RequestBody AuditVO audit){
return auditService.update(audit);
}
}

+ 2
- 2
user-service/src/main/resources/mapper/CustomerCompanyMapper.xml Visa fil

@@ -33,8 +33,8 @@
select a.customer_id,a.name,a.type,a.industry_code,a.longitude,a.latitude,a.enterprise_tax_number,a.business_license,a.business_contact,a.phone_number,a.address,a.province_code,a.city_code,a.count_code,b.*,c.service_provider_id
from tb_customer_audit as b,tb_customer_company as a left join r_customer_service_provider_enterprise as c on a.customer_id = c.enterprise_id
where a.customer_id = b.user_id and a.sys_deleted = 0 and a.type = 1 and b.vip_level = 2
<if test="name != null"> and a.business_contact like concat('%', #{businessContact}, '%')</if>
<if test="phone != null"> and a.phone_number like concat('%', #{phoneNumber}, '%')</if>
<if test="businessContact != null"> and a.business_contact like concat('%', #{businessContact}, '%')</if>
<if test="phoneNumber != null"> and a.phone_number like concat('%', #{phoneNumber}, '%')</if>
<if test="follow != 0"> and b.follow = #{follow} </if>
<if test="resource != 0"> and b.resource = #{resource} </if>
<if test="push != 0"> and b.push = #{push} </if>


Laddar…
Avbryt
Spara