diff --git a/src/main/java/com/chinaunicom/zyhy/ebtp/supplier/base/constant/CoscoCategoryConstant.java b/src/main/java/com/chinaunicom/zyhy/ebtp/supplier/base/constant/CoscoCategoryConstant.java index 52dd4bd..5ed57cc 100644 --- a/src/main/java/com/chinaunicom/zyhy/ebtp/supplier/base/constant/CoscoCategoryConstant.java +++ b/src/main/java/com/chinaunicom/zyhy/ebtp/supplier/base/constant/CoscoCategoryConstant.java @@ -53,4 +53,14 @@ public interface CoscoCategoryConstant { * 最高级 0 */ public static final String LEVEL_TOP = "0"; + + /** + * * 类型(0.分类、1.品类) + * */ + public static final Long CATEGORY_TYPE_CATEGORY = 0L; + /** + * * 类型(0.分类、1.品类) + * */ + public static final Long CATEGORY_TYPE_CATEGORY_TYPE = 1L; + } diff --git a/src/main/java/com/chinaunicom/zyhy/ebtp/supplier/common/CoscoBaseEntity.java b/src/main/java/com/chinaunicom/zyhy/ebtp/supplier/common/CoscoBaseEntity.java index af67625..ac1659e 100644 --- a/src/main/java/com/chinaunicom/zyhy/ebtp/supplier/common/CoscoBaseEntity.java +++ b/src/main/java/com/chinaunicom/zyhy/ebtp/supplier/common/CoscoBaseEntity.java @@ -1,18 +1,12 @@ package com.chinaunicom.zyhy.ebtp.supplier.common; -import com.alibaba.excel.annotation.ExcelProperty; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import javax.validation.constraints.Min; -import javax.validation.constraints.NotNull; import java.io.Serializable; import java.util.Date; -import java.util.HashMap; -import java.util.Map; /** * Entity基类 @@ -56,9 +50,6 @@ public class CoscoBaseEntity implements Serializable @ApiModelProperty(value = "备注") private String remark; - /** 请求参数 */ - @JsonInclude(JsonInclude.Include.NON_EMPTY) - private Map params; public String getSearchValue() { @@ -120,20 +111,6 @@ public class CoscoBaseEntity implements Serializable this.remark = remark; } - public Map getParams() - { - if (params == null) - { - params = new HashMap<>(); - } - return params; - } - - public void setParams(Map params) - { - this.params = params; - } - public Integer getPageNo() { return pageNo; } diff --git a/src/main/java/com/chinaunicom/zyhy/ebtp/supplier/coscoCategory/dao/mapper/CoscoCategoryMapper.xml b/src/main/java/com/chinaunicom/zyhy/ebtp/supplier/coscoCategory/dao/mapper/CoscoCategoryMapper.xml index a4c1617..0e328e9 100644 --- a/src/main/java/com/chinaunicom/zyhy/ebtp/supplier/coscoCategory/dao/mapper/CoscoCategoryMapper.xml +++ b/src/main/java/com/chinaunicom/zyhy/ebtp/supplier/coscoCategory/dao/mapper/CoscoCategoryMapper.xml @@ -102,7 +102,7 @@ + + WHERE + id NOT IN ( + SELECT + cas.supplier_id + FROM + cosco_access_work caw + LEFT JOIN cosco_access_supplier cas ON caw.id = cas.access_work_id + WHERE + ( + caw.approve_status IS NULL + OR caw.approve_status IN ( 0, 1 )) + + AND cas.dept_id IN (#{vo.deptId}) + + ) + + and supplier_type = #{vo.supplierType} + + + and licence_accessory = #{vo.licenceAccessory} + + + and licence_date = #{vo.licenceDate} + + + and enterprise_type = #{vo.enterpriseType} + + + and name like concat('%', #{vo.name}, '%') + + + and name_en = #{vo.nameEn} + + + and social_credit_code = #{vo.socialCreditCode} + + + and `range` = #{vo.range} + + + and reg_address = #{vo.regAddress} + + + and work_address = #{vo.workAddress} + + + and parent_company_investor = #{vo.parentCompanyInvestor} + + + and legal_person = #{vo.legalPerson} + + + and id_card = #{vo.idCard} + + + and capital = #{vo.capital} + + + and contacts_name like concat('%', #{vo.contactsName}, '%') + + + and contacts_phone = #{vo.contactsPhone} + + + and contacts_type = #{vo.contactsType} + + + and contacts_email = #{vo.contactsEmail} + + + and telephone = #{telephone} + + + and nation = #{nation} + + + and vat = #{vo.vat} + + + and taxpayer_id = #{vo.taxpayerId} + + + and currency = #{vo.currency} + + + and person_name like concat('%', #{vo.personName}, '%') + + + and person_phone = #{vo.personPhone} + + + and person_bank = #{vo.personBank} + + + and person_account = #{vo.personAccount} + + + and access_status = #{vo.accessStatus} + + + and blacklist_status = #{vo.blacklistStatus} + + + and greylist_status = #{vo.greylistStatus} + + + and fillin_status = #{vo.fillinStatus} + + + and fillin_by = #{vo.fillinBy} + + + and sap_code = #{vo.sapCode} + + + and last_update_time = #{vo.lastUpdateTime} + + + order by create_time desc + + + - -