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

cert
1178634255 2 years ago
parent c5f98d85be
commit e181b28efe

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

@ -1,5 +1,6 @@
package com.glxp.api.dao.auth; package com.glxp.api.dao.auth;
import com.glxp.api.entity.auth.CustomerInfoEntity; import com.glxp.api.entity.auth.CustomerInfoEntity;
import com.glxp.api.entity.sup.UserCompanyEntity;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
@ -10,6 +11,7 @@ public interface CustomerInfoDao {
boolean updateCustomerInfo(CustomerInfoEntity customerInfoEntity); 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 String reason;
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
} }

@ -9,7 +9,8 @@ import java.util.List;
@Data @Data
public class FilterUserCompanyRequest extends ListPageRequest { public class FilterUserCompanyRequest extends ListPageRequest {
private String customerId; private String id;
// private String customerId;
private String companyName; private String companyName;
private String creditNum; private String creditNum;
private Integer checkStatus; 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.auth.CustomerInfoEntity;
import com.glxp.api.entity.sup.UserCompanyEntity;
public interface CustomerInfoService { public interface CustomerInfoService {
boolean updateCustomerInfo(CustomerInfoEntity customerInfoEntity); boolean updateCustomerInfo(CustomerInfoEntity customerInfoEntity);
CustomerInfoEntity selectById(String customerId); UserCompanyEntity selectById(String customerId);
/** /**
* ID * ID

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

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

Loading…
Cancel
Save