10-25-供应商地域绑定及搜索
This commit is contained in:
@ -1,14 +1,15 @@
|
|||||||
package org.dromara.xzd.domain;
|
package org.dromara.xzd.domain;
|
||||||
|
|
||||||
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import com.baomidou.mybatisplus.annotation.*;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
import java.util.Date;
|
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
import java.io.Serial;
|
import java.io.Serial;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 供应商信息对象 xzd_supplier_info
|
* 供应商信息对象 xzd_supplier_info
|
||||||
@ -30,6 +31,11 @@ public class XzdSupplierInfo extends BaseEntity {
|
|||||||
@TableId(value = "id")
|
@TableId(value = "id")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 区域编码
|
||||||
|
*/
|
||||||
|
private String cityCode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 单位编号
|
* 单位编号
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -1,19 +1,20 @@
|
|||||||
package org.dromara.xzd.domain.bo;
|
package org.dromara.xzd.domain.bo;
|
||||||
|
|
||||||
import org.dromara.xzd.domain.*;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
|
||||||
import org.dromara.common.core.validate.AddGroup;
|
|
||||||
import org.dromara.common.core.validate.EditGroup;
|
|
||||||
import io.github.linpeilie.annotations.AutoMapper;
|
import io.github.linpeilie.annotations.AutoMapper;
|
||||||
|
import jakarta.validation.constraints.NotBlank;
|
||||||
|
import jakarta.validation.constraints.NotNull;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
import jakarta.validation.constraints.*;
|
import org.dromara.common.core.validate.AddGroup;
|
||||||
|
import org.dromara.common.core.validate.EditGroup;
|
||||||
|
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
||||||
|
import org.dromara.xzd.domain.*;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 供应商信息业务对象 xzd_supplier_info
|
* 供应商信息业务对象 xzd_supplier_info
|
||||||
*
|
*
|
||||||
@ -30,6 +31,11 @@ public class XzdSupplierInfoBo extends BaseEntity {
|
|||||||
*/
|
*/
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 区域编码
|
||||||
|
*/
|
||||||
|
private String cityCode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 单位编号
|
* 单位编号
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -36,6 +36,11 @@ public class XzdSupplierInfoVo implements Serializable {
|
|||||||
@ExcelProperty(value = "")
|
@ExcelProperty(value = "")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 区域编码
|
||||||
|
*/
|
||||||
|
private String cityCode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 单位编号
|
* 单位编号
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -10,6 +10,7 @@
|
|||||||
supplement.belonging_organization as sszz,
|
supplement.belonging_organization as sszz,
|
||||||
# settlement.opening_bank as khyh,
|
# settlement.opening_bank as khyh,
|
||||||
# settlement.account_number as khhzh,
|
# settlement.account_number as khhzh,
|
||||||
|
info.city_code as cityCode,
|
||||||
bank.open_bank as khyh,
|
bank.open_bank as khyh,
|
||||||
bank.account as khhzh,
|
bank.account as khhzh,
|
||||||
supplement.creator as createByUser,
|
supplement.creator as createByUser,
|
||||||
@ -45,6 +46,10 @@
|
|||||||
AND info.unit_name LIKE CONCAT('%', #{bo.unitName}, '%')
|
AND info.unit_name LIKE CONCAT('%', #{bo.unitName}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
|
<if test='bo.cityCode != null and bo.cityCode != ""'>
|
||||||
|
AND info.city_code = #{cityCode}
|
||||||
|
</if>
|
||||||
|
|
||||||
<if test='bo.fgbm != null and bo.fgbm != ""'>
|
<if test='bo.fgbm != null and bo.fgbm != ""'>
|
||||||
AND supplement.responsible_department = #{bo.fgbm}
|
AND supplement.responsible_department = #{bo.fgbm}
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
Reference in New Issue
Block a user