企业资质审核代码更新完善

cert
1178634255 2 years ago
parent c5f98d85be
commit e181b28efe

@ -95,7 +95,7 @@ public class SupCompanyController {
@AuthRuleAnnotation("")
@GetMapping("api/pur/supCompany/getRoId")
public BaseResponse getRoId(String companyId) {
CustomerInfoEntity customerInfoEntity = customerInfoService.selectById(companyId);
UserCompanyEntity customerInfoEntity = customerInfoService.selectById(companyId);
return ResultVOUtils.success(customerInfoEntity);
}

@ -1,5 +1,6 @@
package com.glxp.api.dao.auth;
import com.glxp.api.entity.auth.CustomerInfoEntity;
import com.glxp.api.entity.sup.UserCompanyEntity;
import org.apache.ibatis.annotations.Mapper;
@ -10,6 +11,7 @@ public interface CustomerInfoDao {
boolean updateCustomerInfo(CustomerInfoEntity customerInfoEntity);
CustomerInfoEntity selectById(String customerId);
UserCompanyEntity selectByUserId(String customerId);
CustomerInfoEntity selectById(String customerId);
}

@ -105,5 +105,6 @@ public class UserCompanyEntity implements Serializable {
private String reason;
private static final long serialVersionUID = 1L;
}

@ -9,7 +9,8 @@ import java.util.List;
@Data
public class FilterUserCompanyRequest extends ListPageRequest {
private String customerId;
private String id;
// private String customerId;
private String companyName;
private String creditNum;
private Integer checkStatus;

@ -2,13 +2,14 @@ package com.glxp.api.service.auth;
import com.glxp.api.entity.auth.CustomerInfoEntity;
import com.glxp.api.entity.sup.UserCompanyEntity;
public interface CustomerInfoService {
boolean updateCustomerInfo(CustomerInfoEntity customerInfoEntity);
CustomerInfoEntity selectById(String customerId);
UserCompanyEntity selectById(String customerId);
/**
* ID

@ -5,6 +5,7 @@ import com.glxp.api.dao.auth.CustomerInfoDao;
import com.glxp.api.entity.auth.CustomerInfoEntity;
import com.glxp.api.entity.sup.UserCompanyEntity;
import com.glxp.api.service.auth.CustomerInfoService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@ -25,8 +26,8 @@ public class CustomerInfoServiceImpl implements CustomerInfoService {
return customerInfoDao.updateCustomerInfo(customerInfoEntity);
}
@Override
public CustomerInfoEntity selectById(String customerId) {
return customerInfoDao.selectById(customerId);
public UserCompanyEntity selectById(String customerId) {
return customerInfoDao.selectByUserId(customerId);
}
@Override
public CustomerInfoEntity findByCustomerId(String customerId) {

@ -4,11 +4,19 @@
<mapper namespace="com.glxp.api.dao.auth.CustomerInfoDao">
<select id="selectByUserId" parameterType="java.lang.String"
resultType="com.glxp.api.entity.sup.UserCompanyEntity">
SELECT *
FROM user_company
WHERE (id = #{customerId}) limit 1
</select>
<select id="selectById" parameterType="java.lang.String"
resultType="com.glxp.api.entity.auth.CustomerInfoEntity">
SELECT *
FROM customer_info
WHERE (customerId = #{customerId}) limit 1
FROM user_company
WHERE (id = #{customerId}) limit 1
</select>

Loading…
Cancel
Save