企业资质审核代码更新备份

cert
1178634255 2 years ago
parent b9e7877d02
commit abee12e987

@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;
import io.swagger.annotations.ApiModel;
@ -105,6 +106,241 @@ public class UserCompanyEntity implements Serializable {
private String reason;
private String customerId;
private String classes;
/**
*
*/
private String area;
/**
*
*/
private String detailAddr;
/**
* x
*/
private String appId;
/**
* x
*/
private String appSecret;
/**
*
*/
private String contacts;
/**
*
*/
private String mobile;
/**
*
*/
private String tel;
/**
*
*/
private String email;
private String areaCode;
/**
* x
*/
private String refEntId;
/**
* IDx
*/
private String entId;
/**
* 012x
*/
private Integer networkType;
/**
* appkeyIDx
*/
private Integer certIdFk;
/**
* x
*/
private String parentCompany;
/**
* Idx
*/
private String parentIdFk;
/**
* 1
*/
private String contactsPapersType;
/**
*
*/
private String contactsPapersCode;
/**
* 1234
*/
private String registerStatus;
/**
*
*/
private String jyxkzh;
/**
*
*/
private String jyxkzfzjg;
/**
*
*/
private LocalDate jyxkzyxq;
/**
*
*/
private String jybapzh;
/**
*
*/
private String jybabm;
/**
*
*/
@TableField("fzrq")
private Date fzrq;
/**
*
*/
private String suihao;
/**
*
*/
private String kaihuhang;
/**
*
*/
private String kaihuzhanghao;
/**
* 0稿435612
*/
private Integer auditStatus;
/**
*
*/
private String filePath;
/**
*
*/
private String filePath2;
/**
*
*/
private String filePath3;
/**
*
*/
private String filePath4;
/**
*
*/
private String unitIdFk;
/**
*
*/
private String createBy;
/**
*
*/
private Date auditTime;
/**
*
*/
private String auditComment;
/**
* 1.稿2.)
*/
private Integer editStatus;
/**
*
*/
private String remark;
/**
*
*/
private String createUser;
/**
*
*/
private Date createTime;
/**
*
*/
private String updateUser;
/**
*
*/
private Date updateTime;
private String auditor;
private String roleId;
@TableField(exist = false)
private String failCout;
@TableField(exist = false)
private String passCout;
@TableField(exist = false)
private String productFailCout;
@TableField(exist = false)
private String prouctPassCout;
private static final long serialVersionUID = 1L;
}

@ -114,8 +114,17 @@ public class FilterUdiRelRequest extends ListPageRequest {
private Boolean groupBuy;
@ApiModelProperty(value = "企业id")
private Long companyId;
private String productStatus;
private String companyIdFk;
private String burId;
private String manufacturerId;
private String creditCode;
private String placeArea;
private Integer auditStatus;
private Integer type;
}

@ -10,7 +10,7 @@ import java.util.List;
public class FilterUserCompanyRequest extends ListPageRequest {
private String id;
// private String customerId;
private String customerId;
private String companyName;
private String creditNum;
private Integer checkStatus;
@ -18,8 +18,11 @@ public class FilterUserCompanyRequest extends ListPageRequest {
private String registerAddress;
private Integer auditStatus;
private String unitIdFk;
private String lastUpdateTime;
private List<String> auditStatusList;
private Integer manufacturerStatus;
}

@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
import com.glxp.api.entity.purchase.SupManufacturerEntity;
import com.glxp.api.req.purchase.FilterSupManufacturerRequest;
import java.util.List;
public interface SupManufacturerService extends IService<SupManufacturerEntity> {

@ -162,6 +162,58 @@
</where>
ORDER BY bur.updateTime DESC
</select>
<!-- <select id="filterBasicList" parameterType="com.glxp.api.req.basic.FilterUdiRelRequest"-->
<!-- resultType="com.glxp.api.res.basic.BasicUdiRelResponse">-->
<!-- SELECT sup_manufacturer.* ,user_company.companyName as supName-->
<!-- <if test="productStatus!=null">-->
<!-- ,(SELECT count(*) FROM sup_product WHERE sup_manufacturer.customerId=sup_product.customerId AND sup_product.auditStatus!=0 AND sup_product.auditStatus!=1 AND sup_product.auditStatus!=4 AND sup_manufacturer.manufacturerId=sup_product.manufacturerIdFk ) as failCout,-->
<!-- (SELECT count(*) FROM sup_product WHERE sup_manufacturer.customerId=sup_product.customerId AND (sup_product.auditStatus=1 OR sup_product.auditStatus=4) AND sup_manufacturer.manufacturerId=sup_product.manufacturerIdFk ) as passCout-->
<!-- </if>-->
<!-- FROM sup_manufacturer-->
<!-- inner join user_company on sup_manufacturer.customerId = user_company.customerId-->
<!-- <where>-->
<!-- <if test="id != null and id != '' and type==null">-->
<!-- and id = #{id}-->
<!-- </if>-->
<!-- <if test="manufacturerId != null and manufacturerId != ''">-->
<!-- and manufacturerId = #{manufacturerId}-->
<!-- </if>-->
<!-- <if test="companyName != null and companyName != ''">-->
<!-- and sup_manufacturer.companyName like concat('%',#{companyName},'%')-->
<!-- </if>-->
<!-- <if test="creditCode != null and creditCode != ''">-->
<!-- and creditCode like concat('%',#{creditCode},'%')-->
<!-- </if>-->
<!-- <if test="placeArea != null and placeArea != ''">-->
<!-- and placeArea like concat('%',#{placeArea},'%')-->
<!-- </if>-->
<!-- <if test="customerId != null and customerId != ''">-->
<!-- and sup_manufacturer.customerId = #{customerId}-->
<!-- </if>-->
<!-- <if test="auditStatus != null and auditStatus !=20 and auditStatus !=21 and auditStatus !=22">-->
<!-- and sup_manufacturer.auditStatus = #{auditStatus}-->
<!-- </if>-->
<!-- <if test="auditStatus ==20">-->
<!-- and (sup_manufacturer.auditStatus = 0 or sup_manufacturer.auditStatus=5 or-->
<!-- sup_manufacturer.auditStatus=2)-->
<!-- </if>-->
<!-- <if test="auditStatus ==21">-->
<!-- and <![CDATA[ sup_manufacturer.auditStatus <> 0 ]]>-->
<!-- </if>-->
<!-- <if test="auditStatus ==22">-->
<!-- and (sup_manufacturer.auditStatus = 1 or sup_manufacturer.auditStatus=4 )-->
<!-- </if>-->
<!-- <if test="lastUpdateTime!=null and lastUpdateTime!=''">-->
<!-- <![CDATA[ and DATE_FORMAT(sup_manufacturer.updateTime, '%Y-%m-%d %H:%i:%S')>= DATE_FORMAT(#{lastUpdateTime}, '%Y-%m-%d %H:%i:%S') ]]>-->
<!-- </if>-->
<!-- <if test="type != null">-->
<!-- and id != #{id}-->
<!-- </if>-->
<!-- </where>-->
<!-- </select>-->
<select id="findByNameCode" parameterType="java.lang.String"

@ -61,8 +61,14 @@
resultType="com.glxp.api.entity.sup.UserCompanyEntity">
SELECT
*
<if test="manufacturerStatus!=null">
,(SELECT count(*) FROM sup_manufacturer WHERE user_company.customerId=sup_manufacturer.customerId AND sup_manufacturer.auditStatus!=1 AND sup_manufacturer.auditStatus!=0 AND sup_manufacturer.auditStatus!=4 ) as failCout,
(SELECT count(*) FROM sup_manufacturer WHERE user_company.customerId=sup_manufacturer.customerId AND (sup_manufacturer.auditStatus=1 OR sup_manufacturer.auditStatus=4) ) as passCout
,(SELECT count(*) FROM sup_product WHERE user_company.customerId=sup_product.customerId AND sup_product.auditStatus!=0 AND sup_product.auditStatus!=1 AND sup_product.auditStatus!=4 ) as productFailCout,
(SELECT count(*) FROM sup_product WHERE user_company.customerId=sup_product.customerId AND (sup_product.auditStatus=1 OR sup_product.auditStatus=4) ) as prouctPassCout
</if>
FROM user_company
-- left JOIN basic_udi_product p on bur.uuid = p.uuid
<where>
checkStatus=1
and bussinessStatus =1

Loading…
Cancel
Save