同步 内部码
parent
bbb845f1bc
commit
1524185bc6
@ -0,0 +1,17 @@
|
|||||||
|
package com.glxp.api.dao.basic;
|
||||||
|
|
||||||
|
|
||||||
|
import com.glxp.api.entity.basic.BasicProductSetEntity;
|
||||||
|
import com.glxp.api.req.basic.FilterBasicProductSetrequest;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface BasicProductSetDao {
|
||||||
|
|
||||||
|
List<BasicProductSetEntity> filterSetup(FilterBasicProductSetrequest filterBasicProductSetrequest);
|
||||||
|
|
||||||
|
boolean updateSetup(BasicProductSetEntity basicProductSetEntity);
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,48 @@
|
|||||||
|
package com.glxp.api.dao.thrsys;
|
||||||
|
|
||||||
|
|
||||||
|
import com.glxp.api.entity.thrsys.ThrProductsAddDiEntity;
|
||||||
|
import com.glxp.api.req.thrsys.FilterThrProductsRequest;
|
||||||
|
import com.glxp.api.res.thrsys.ThrProductsAddDiResponse;
|
||||||
|
import com.glxp.api.res.thrsys.UdiInfoResponse;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface ThrProductsAddDiDao {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 添加产品信息
|
||||||
|
*
|
||||||
|
* @param list
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
boolean insertThrDiProducts(@Param("list") List<ThrProductsAddDiEntity> list);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据ID删除
|
||||||
|
*
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
boolean deleteById(Long id);
|
||||||
|
|
||||||
|
List<ThrProductsAddDiResponse> filterThrProductsList(FilterThrProductsRequest filterThrProductsRequest);
|
||||||
|
|
||||||
|
boolean updateDiProduct(ThrProductsAddDiEntity thrProductsAddDiEntity);
|
||||||
|
|
||||||
|
UdiInfoResponse getDiProductDetail(@Param("uuid") String uuid);
|
||||||
|
|
||||||
|
/** 根据ID查询 */
|
||||||
|
ThrProductsAddDiEntity filterThrProductsGetId(@Param("id") Integer id);
|
||||||
|
ThrProductsAddDiEntity filterThrProductsGetUuid(@Param("uuid") String uuid);
|
||||||
|
|
||||||
|
|
||||||
|
boolean insert(ThrProductsAddDiEntity thrProductsAddDiEntity);
|
||||||
|
|
||||||
|
List<ThrProductsAddDiResponse> filterThrProductsDiList(FilterThrProductsRequest filterThrProductsRequest);
|
||||||
|
|
||||||
|
List<ThrProductsAddDiEntity> filterThrProductsDiLists(FilterThrProductsRequest filterThrProductsRequest);
|
||||||
|
}
|
@ -0,0 +1,25 @@
|
|||||||
|
package com.glxp.api.entity.basic;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@TableName(value = "basic_product_set")
|
||||||
|
public class BasicProductSetEntity {
|
||||||
|
|
||||||
|
@TableId(type = IdType.AUTO)
|
||||||
|
private Integer id;
|
||||||
|
private String parmName;
|
||||||
|
private String parmKey;
|
||||||
|
private boolean enable;
|
||||||
|
private boolean supSelect;
|
||||||
|
private boolean supAdd;
|
||||||
|
private boolean localAdd;
|
||||||
|
private boolean localEdit;
|
||||||
|
private String remark;
|
||||||
|
private Integer sort;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,101 @@
|
|||||||
|
package com.glxp.api.entity.thrsys;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 供应商新增DI产品实体类
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class ThrProductsAddDiEntity {
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 国家库产品UUID
|
||||||
|
*/
|
||||||
|
private String uuid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 添加此产品的客户ID
|
||||||
|
*/
|
||||||
|
private String customerId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 添加时间
|
||||||
|
*/
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 审核时间
|
||||||
|
*/
|
||||||
|
private Date auditTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 审核人
|
||||||
|
*/
|
||||||
|
private String auditUser;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 审核状态
|
||||||
|
*/
|
||||||
|
private int status;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 备注
|
||||||
|
*/
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
|
||||||
|
private String thirdSysFk;
|
||||||
|
private String code;
|
||||||
|
private String sptm;
|
||||||
|
private String ybbm;
|
||||||
|
private String measname;
|
||||||
|
private String manufactory;
|
||||||
|
private String spmc;
|
||||||
|
private String cpms;
|
||||||
|
private String selectThridSysStr;
|
||||||
|
|
||||||
|
private String price;
|
||||||
|
private String basicPrductRemak1;
|
||||||
|
private String basicPrductRemak2;
|
||||||
|
private String basicPrductRemak3;
|
||||||
|
private String basicPrductRemak4;
|
||||||
|
private String basicPrductRemak5;
|
||||||
|
private String basicPrductRemak6;
|
||||||
|
private String basicPrductRemak7;
|
||||||
|
private String basicPrductRemak8;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private String name;
|
||||||
|
private String spec;
|
||||||
|
private String registerNo;
|
||||||
|
private String thirdName;
|
||||||
|
private String cplb;
|
||||||
|
private String flbm;
|
||||||
|
private String qxlb;
|
||||||
|
private String tyshxydm;
|
||||||
|
private String zczbhhzbapzbh;
|
||||||
|
private String ylqxzcrbarmc;
|
||||||
|
private String ylqxzcrbarywmc;
|
||||||
|
private Date updateTime;
|
||||||
|
private String supName;
|
||||||
|
private boolean isChecked;
|
||||||
|
private String corpName;
|
||||||
|
|
||||||
|
//添加字段
|
||||||
|
private String model; //型号
|
||||||
|
private String standard; //规格型号,二合一字段
|
||||||
|
private String qtbm; //其他编码
|
||||||
|
private String zczyxqz; //注册有效期截止时间
|
||||||
|
private Integer checkStatus;
|
||||||
|
private String thirdSys;
|
||||||
|
private String relId;
|
||||||
|
private String nameCode;
|
||||||
|
private Integer type;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
package com.glxp.api.req.basic;
|
||||||
|
|
||||||
|
|
||||||
|
import com.glxp.api.util.page.ListPageRequest;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class FilterBasicProductSetrequest extends ListPageRequest {
|
||||||
|
|
||||||
|
|
||||||
|
String parmName;
|
||||||
|
Boolean enable;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,25 @@
|
|||||||
|
package com.glxp.api.req.basic;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
//选入产品补充信息
|
||||||
|
@Data
|
||||||
|
public class SupplementRequest {
|
||||||
|
|
||||||
|
//补充信息:
|
||||||
|
private String basicPrductRemak1;
|
||||||
|
private String basicPrductRemak2;
|
||||||
|
private String basicPrductRemak3;
|
||||||
|
private String basicPrductRemak4;
|
||||||
|
private String basicPrductRemak5;
|
||||||
|
private String basicPrductRemak6;
|
||||||
|
private String basicPrductRemak7;
|
||||||
|
private String basicPrductRemak8;
|
||||||
|
private String sptm;
|
||||||
|
private String ybbm;
|
||||||
|
private String measname;
|
||||||
|
private String manufactory;
|
||||||
|
private String spmc;
|
||||||
|
private String cpms;
|
||||||
|
private String price;
|
||||||
|
}
|
@ -0,0 +1,49 @@
|
|||||||
|
package com.glxp.api.req.thrsys;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotEmpty;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 供应商添加DI产品信息接口参数
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class AddThrDiProductsRequest {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 产品UUID
|
||||||
|
*/
|
||||||
|
@NotEmpty(message = "请选择需要添加的产品")
|
||||||
|
private List<String> uuids;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 客户ID
|
||||||
|
*/
|
||||||
|
@NotNull(message = "参数错误")
|
||||||
|
private Long customerId;
|
||||||
|
|
||||||
|
|
||||||
|
private String thirdSysFk;
|
||||||
|
private String code;
|
||||||
|
private String sptm;
|
||||||
|
private String ybbm;
|
||||||
|
private String measname;
|
||||||
|
private String manufactory;
|
||||||
|
private String spmc;
|
||||||
|
private String cpms;
|
||||||
|
private String price;
|
||||||
|
private List<String> selectThirdSys;
|
||||||
|
|
||||||
|
private String basicPrductRemak1;
|
||||||
|
private String basicPrductRemak2;
|
||||||
|
private String basicPrductRemak3;
|
||||||
|
private String basicPrductRemak4;
|
||||||
|
private String basicPrductRemak5;
|
||||||
|
private String basicPrductRemak6;
|
||||||
|
private String basicPrductRemak7;
|
||||||
|
private String basicPrductRemak8;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,50 @@
|
|||||||
|
package com.glxp.api.res.thrsys;
|
||||||
|
|
||||||
|
|
||||||
|
import com.glxp.api.entity.thrsys.ThrProductsAddDiEntity;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 供应商添加DI产品信息数据响应类
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class ThrProductsAddDiResponse extends ThrProductsAddDiEntity {
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
private String uuid;
|
||||||
|
|
||||||
|
private String nameCode;
|
||||||
|
|
||||||
|
private String cpmctymc;
|
||||||
|
|
||||||
|
private String ggxh;
|
||||||
|
|
||||||
|
private String ylqxzcrbarmc;
|
||||||
|
|
||||||
|
private String zczbhhzbapzbh;
|
||||||
|
|
||||||
|
private int status;
|
||||||
|
|
||||||
|
private String customerId;
|
||||||
|
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
private String companyName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 规格型号
|
||||||
|
*/
|
||||||
|
private String standard;
|
||||||
|
|
||||||
|
private String price;
|
||||||
|
private String basicPrductRemak1;
|
||||||
|
private String basicPrductRemak2;
|
||||||
|
private String basicPrductRemak3;
|
||||||
|
private String basicPrductRemak4;
|
||||||
|
private String basicPrductRemak5;
|
||||||
|
private String basicPrductRemak6;
|
||||||
|
private String basicPrductRemak7;
|
||||||
|
private String basicPrductRemak8;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,443 @@
|
|||||||
|
package com.glxp.api.res.thrsys;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class UdiInfoResponse {
|
||||||
|
|
||||||
|
private Integer id;
|
||||||
|
private String nameCode;
|
||||||
|
private String packRatio;
|
||||||
|
private String packLevel;
|
||||||
|
private Integer bhxjsl;
|
||||||
|
private Integer bhzxxsbzsl;
|
||||||
|
private Integer zxxsbzbhsydysl;
|
||||||
|
private String bhxjcpbm;
|
||||||
|
private String sjcpbm; //
|
||||||
|
private String bzcj;
|
||||||
|
private String addType;
|
||||||
|
private String deviceRecordKey;
|
||||||
|
private String cpmctymc;
|
||||||
|
private String cplb;
|
||||||
|
private String flbm;
|
||||||
|
private String ggxh;
|
||||||
|
private String qxlb;
|
||||||
|
private String tyshxydm;
|
||||||
|
private String ylqxzcrbarmc;
|
||||||
|
private String zczbhhzbapzbh;
|
||||||
|
private String ylqxzcrbarywmc;
|
||||||
|
private String sydycpbs;
|
||||||
|
private String uuid;
|
||||||
|
private Integer versionNumber;
|
||||||
|
private Integer diType;
|
||||||
|
private String thirdId;
|
||||||
|
private String thirdName;
|
||||||
|
private String ybbm;
|
||||||
|
private String sptm;
|
||||||
|
private String manufactory;
|
||||||
|
private String measname;
|
||||||
|
private Integer productType;
|
||||||
|
private String scbssfbhph;
|
||||||
|
private String scbssfbhxlh;
|
||||||
|
private String scbssfbhscrq;
|
||||||
|
private String scbssfbhsxrq;
|
||||||
|
private String cpms;
|
||||||
|
private String spmc;
|
||||||
|
private String originUuid;
|
||||||
|
|
||||||
|
//本地生成信息
|
||||||
|
private String batchNo;
|
||||||
|
private String produceDate;
|
||||||
|
private String expireDate;
|
||||||
|
private String serialNo;
|
||||||
|
private String udi;
|
||||||
|
private String code;
|
||||||
|
private Integer count;
|
||||||
|
private String warehouseCode;
|
||||||
|
private String udplatCode;
|
||||||
|
private String relId;//关联ID主键
|
||||||
|
private Integer status;
|
||||||
|
private String supId;
|
||||||
|
private boolean isAdavence;
|
||||||
|
private boolean isDisable;
|
||||||
|
private boolean useMuti;
|
||||||
|
|
||||||
|
private Boolean isCheck;
|
||||||
|
private boolean allowNoBatch;
|
||||||
|
private boolean allowNoExpire;
|
||||||
|
private boolean allowNoProduct;
|
||||||
|
private boolean allowNoSerial;
|
||||||
|
|
||||||
|
private String price;
|
||||||
|
private String cplx;
|
||||||
|
private String hchzsb;
|
||||||
|
|
||||||
|
//产品代理商
|
||||||
|
private String cpdls;
|
||||||
|
|
||||||
|
|
||||||
|
private String basicPrductRemak1;
|
||||||
|
private String basicPrductRemak2;
|
||||||
|
private String basicPrductRemak3;
|
||||||
|
private String basicPrductRemak4;
|
||||||
|
private String basicPrductRemak5;
|
||||||
|
private String basicPrductRemak6;
|
||||||
|
private String basicPrductRemak7;
|
||||||
|
private String basicPrductRemak8;
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
public Integer getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Integer id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNameCode() {
|
||||||
|
return nameCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNameCode(String nameCode) {
|
||||||
|
this.nameCode = nameCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPackRatio() {
|
||||||
|
return packRatio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPackRatio(String packRatio) {
|
||||||
|
this.packRatio = packRatio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPackLevel() {
|
||||||
|
return packLevel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPackLevel(String packLevel) {
|
||||||
|
this.packLevel = packLevel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getBhxjsl() {
|
||||||
|
if (bhxjsl == null || bhxjsl == 0) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return bhxjsl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBhxjsl(Integer bhxjsl) {
|
||||||
|
this.bhxjsl = bhxjsl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getBhzxxsbzsl() {
|
||||||
|
if (bhzxxsbzsl == null || bhzxxsbzsl == 0) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return bhzxxsbzsl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSptm() {
|
||||||
|
return sptm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSptm(String sptm) {
|
||||||
|
this.sptm = sptm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getManufactory() {
|
||||||
|
return manufactory;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setManufactory(String manufactory) {
|
||||||
|
this.manufactory = manufactory;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMeasname() {
|
||||||
|
return measname;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMeasname(String measname) {
|
||||||
|
this.measname = measname;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBhzxxsbzsl(Integer bhzxxsbzsl) {
|
||||||
|
this.bhzxxsbzsl = bhzxxsbzsl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getZxxsbzbhsydysl() {
|
||||||
|
if (zxxsbzbhsydysl == null || zxxsbzbhsydysl == 0) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return zxxsbzbhsydysl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZxxsbzbhsydysl(Integer zxxsbzbhsydysl) {
|
||||||
|
this.zxxsbzbhsydysl = zxxsbzbhsydysl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBhxjcpbm() {
|
||||||
|
return bhxjcpbm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBhxjcpbm(String bhxjcpbm) {
|
||||||
|
this.bhxjcpbm = bhxjcpbm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSjcpbm() {
|
||||||
|
return sjcpbm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSjcpbm(String sjcpbm) {
|
||||||
|
this.sjcpbm = sjcpbm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBzcj() {
|
||||||
|
return bzcj;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBzcj(String bzcj) {
|
||||||
|
this.bzcj = bzcj;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAddType() {
|
||||||
|
return addType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAddType(String addType) {
|
||||||
|
this.addType = addType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDeviceRecordKey() {
|
||||||
|
return deviceRecordKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDeviceRecordKey(String deviceRecordKey) {
|
||||||
|
this.deviceRecordKey = deviceRecordKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public String getCpmctymc() {
|
||||||
|
return cpmctymc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCpmctymc(String cpmctymc) {
|
||||||
|
this.cpmctymc = cpmctymc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCplb() {
|
||||||
|
return cplb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCplb(String cplb) {
|
||||||
|
this.cplb = cplb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFlbm() {
|
||||||
|
return flbm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFlbm(String flbm) {
|
||||||
|
this.flbm = flbm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGgxh() {
|
||||||
|
return ggxh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGgxh(String ggxh) {
|
||||||
|
this.ggxh = ggxh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getQxlb() {
|
||||||
|
return qxlb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setQxlb(String qxlb) {
|
||||||
|
this.qxlb = qxlb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTyshxydm() {
|
||||||
|
return tyshxydm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTyshxydm(String tyshxydm) {
|
||||||
|
this.tyshxydm = tyshxydm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYlqxzcrbarmc() {
|
||||||
|
return ylqxzcrbarmc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYlqxzcrbarmc(String ylqxzcrbarmc) {
|
||||||
|
this.ylqxzcrbarmc = ylqxzcrbarmc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZczbhhzbapzbh() {
|
||||||
|
return zczbhhzbapzbh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZczbhhzbapzbh(String zczbhhzbapzbh) {
|
||||||
|
this.zczbhhzbapzbh = zczbhhzbapzbh;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYlqxzcrbarywmc() {
|
||||||
|
return ylqxzcrbarywmc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYlqxzcrbarywmc(String ylqxzcrbarywmc) {
|
||||||
|
this.ylqxzcrbarywmc = ylqxzcrbarywmc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSydycpbs() {
|
||||||
|
return sydycpbs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSydycpbs(String sydycpbs) {
|
||||||
|
this.sydycpbs = sydycpbs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUuid() {
|
||||||
|
return uuid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUuid(String uuid) {
|
||||||
|
this.uuid = uuid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getVersionNumber() {
|
||||||
|
return versionNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setVersionNumber(Integer versionNumber) {
|
||||||
|
this.versionNumber = versionNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDiType() {
|
||||||
|
return diType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDiType(Integer diType) {
|
||||||
|
this.diType = diType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getThirdId() {
|
||||||
|
return thirdId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setThirdId(String thirdId) {
|
||||||
|
this.thirdId = thirdId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getThirdName() {
|
||||||
|
return thirdName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setThirdName(String thirdName) {
|
||||||
|
this.thirdName = thirdName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBatchNo() {
|
||||||
|
return batchNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBatchNo(String batchNo) {
|
||||||
|
this.batchNo = batchNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProduceDate() {
|
||||||
|
return produceDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProduceDate(String produceDate) {
|
||||||
|
this.produceDate = produceDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getExpireDate() {
|
||||||
|
return expireDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExpireDate(String expireDate) {
|
||||||
|
this.expireDate = expireDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSerialNo() {
|
||||||
|
return serialNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSerialNo(String serialNo) {
|
||||||
|
this.serialNo = serialNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUdi() {
|
||||||
|
return udi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUdi(String udi) {
|
||||||
|
this.udi = udi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCode() {
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCode(String code) {
|
||||||
|
this.code = code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getCount() {
|
||||||
|
if (count == null)
|
||||||
|
return 1;
|
||||||
|
return count;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCount(Integer count) {
|
||||||
|
this.count = count;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getWarehouseCode() {
|
||||||
|
return warehouseCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWarehouseCode(String warehouseCode) {
|
||||||
|
this.warehouseCode = warehouseCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYbbm() {
|
||||||
|
return ybbm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYbbm(String ybbm) {
|
||||||
|
this.ybbm = ybbm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getCheck() {
|
||||||
|
return isCheck;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCheck(Boolean check) {
|
||||||
|
isCheck = check;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getProductType() {
|
||||||
|
return productType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProductType(Integer productType) {
|
||||||
|
this.productType = productType;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static UdiInfoResponse initUdiInfoEntity(UdiInfoResponse udiInfoEntity) {
|
||||||
|
if (StrUtil.isNotEmpty(udiInfoEntity.getScbssfbhph()) && "否".equals(udiInfoEntity.getScbssfbhph())) {
|
||||||
|
udiInfoEntity.setAllowNoBatch(true);
|
||||||
|
}
|
||||||
|
if (StrUtil.isNotEmpty(udiInfoEntity.getScbssfbhscrq()) && "否".equals(udiInfoEntity.getScbssfbhscrq())) {
|
||||||
|
udiInfoEntity.setAllowNoProduct(true);
|
||||||
|
}
|
||||||
|
if (StrUtil.isNotEmpty(udiInfoEntity.getScbssfbhsxrq()) && "否".equals(udiInfoEntity.getScbssfbhsxrq())) {
|
||||||
|
udiInfoEntity.setAllowNoExpire(true);
|
||||||
|
}
|
||||||
|
return udiInfoEntity;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,19 @@
|
|||||||
|
package com.glxp.api.service.basic;
|
||||||
|
|
||||||
|
|
||||||
|
import com.glxp.api.entity.basic.BasicProductSetEntity;
|
||||||
|
import com.glxp.api.req.basic.FilterBasicProductSetrequest;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
public interface BasicProductSetService {
|
||||||
|
|
||||||
|
List<BasicProductSetEntity> filterSetup(FilterBasicProductSetrequest filterBasicProductSetrequest);
|
||||||
|
|
||||||
|
Map<String, BasicProductSetEntity> filterAllEnable();
|
||||||
|
|
||||||
|
|
||||||
|
boolean updateSetup(BasicProductSetEntity basicProductSetEntity);
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,60 @@
|
|||||||
|
package com.glxp.api.service.basic.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import com.github.pagehelper.PageHelper;
|
||||||
|
import com.glxp.api.dao.basic.BasicProductSetDao;
|
||||||
|
import com.glxp.api.entity.basic.BasicProductSetEntity;
|
||||||
|
import com.glxp.api.req.basic.FilterBasicProductSetrequest;
|
||||||
|
import com.glxp.api.service.basic.BasicProductSetService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
public class BasicProductSetServiceImpl implements BasicProductSetService {
|
||||||
|
@Resource
|
||||||
|
BasicProductSetDao basicProductSetDao;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<BasicProductSetEntity> filterSetup(FilterBasicProductSetrequest filterBasicProductSetrequest) {
|
||||||
|
if (filterBasicProductSetrequest == null) {
|
||||||
|
return Collections.emptyList();
|
||||||
|
}
|
||||||
|
if (filterBasicProductSetrequest.getPage() != null) {
|
||||||
|
int offset = (filterBasicProductSetrequest.getPage() - 1) * filterBasicProductSetrequest.getLimit();
|
||||||
|
PageHelper.offsetPage(offset, filterBasicProductSetrequest.getLimit());
|
||||||
|
}
|
||||||
|
return basicProductSetDao.filterSetup(filterBasicProductSetrequest);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Map<String, BasicProductSetEntity> filterAllEnable() {
|
||||||
|
|
||||||
|
FilterBasicProductSetrequest filterBasicProductSetrequest = new FilterBasicProductSetrequest();
|
||||||
|
filterBasicProductSetrequest.setEnable(true);
|
||||||
|
List<BasicProductSetEntity> basicProductSetEntities = basicProductSetDao.filterSetup(filterBasicProductSetrequest);
|
||||||
|
|
||||||
|
Map<String, BasicProductSetEntity> basicProductSetEntityMap = new HashMap<>();
|
||||||
|
|
||||||
|
if (CollUtil.isNotEmpty(basicProductSetEntities)) {
|
||||||
|
for (BasicProductSetEntity basicProductSetEntity : basicProductSetEntities) {
|
||||||
|
basicProductSetEntityMap.put(basicProductSetEntity.getParmKey(), basicProductSetEntity);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return basicProductSetEntityMap;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean updateSetup(BasicProductSetEntity basicProductSetEntity) {
|
||||||
|
return basicProductSetDao.updateSetup(basicProductSetEntity);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,41 @@
|
|||||||
|
package com.glxp.api.service.thrsys;
|
||||||
|
|
||||||
|
|
||||||
|
import com.glxp.api.entity.thrsys.ThrProductsAddDiEntity;
|
||||||
|
import com.glxp.api.req.thrsys.AddThrDiProductsRequest;
|
||||||
|
import com.glxp.api.req.thrsys.FilterThrProductsRequest;
|
||||||
|
import com.glxp.api.res.thrsys.ThrProductsAddDiResponse;
|
||||||
|
import com.glxp.api.res.thrsys.UdiInfoResponse;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface ThrProductsAddDiService {
|
||||||
|
|
||||||
|
List<ThrProductsAddDiResponse> filterThrProductsList(FilterThrProductsRequest filterThrProductsRequest);
|
||||||
|
|
||||||
|
ThrProductsAddDiResponse selecById(Long id);
|
||||||
|
|
||||||
|
ThrProductsAddDiResponse selecByUuid(String uuid);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除DI产品信息
|
||||||
|
*
|
||||||
|
* @param id
|
||||||
|
*/
|
||||||
|
boolean delThrDiProducts(Long id);
|
||||||
|
|
||||||
|
boolean updateDiProduct(ThrProductsAddDiEntity thrProductsAddDiEntity);
|
||||||
|
|
||||||
|
boolean addThrAddDiProducts(AddThrDiProductsRequest thrDiProductsRequest);
|
||||||
|
|
||||||
|
UdiInfoResponse getDiProductDetail(String uuid);
|
||||||
|
|
||||||
|
/** 根据ID查询 */
|
||||||
|
ThrProductsAddDiEntity filterThrProductsGetId( Integer id);
|
||||||
|
|
||||||
|
boolean insertThrProducts(ThrProductsAddDiEntity thrProductsAddDiEntity);
|
||||||
|
|
||||||
|
List<ThrProductsAddDiResponse> filterThrProductsDiList(FilterThrProductsRequest filterThrProductsRequest);
|
||||||
|
|
||||||
|
List<ThrProductsAddDiEntity> filterThrProductsDiLists(FilterThrProductsRequest filterThrProductsRequest);
|
||||||
|
}
|
@ -0,0 +1,175 @@
|
|||||||
|
package com.glxp.api.service.thrsys.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import cn.hutool.json.JSONUtil;
|
||||||
|
import com.github.pagehelper.PageHelper;
|
||||||
|
import com.glxp.api.dao.thrsys.ThrProductsAddDiDao;
|
||||||
|
import com.glxp.api.entity.basic.ProductInfoEntity;
|
||||||
|
import com.glxp.api.entity.thrsys.ThrProductsAddDiEntity;
|
||||||
|
import com.glxp.api.req.thrsys.AddThrDiProductsRequest;
|
||||||
|
import com.glxp.api.req.thrsys.FilterThrProductsRequest;
|
||||||
|
import com.glxp.api.res.thrsys.ThrProductsAddDiResponse;
|
||||||
|
import com.glxp.api.res.thrsys.UdiInfoResponse;
|
||||||
|
import com.glxp.api.service.basic.ProductInfoService;
|
||||||
|
import com.glxp.api.service.thrsys.ThrProductsAddDiService;
|
||||||
|
import org.springframework.beans.BeanUtils;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
public class ThrProductsAddDiServiceImpl implements ThrProductsAddDiService {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private ThrProductsAddDiDao thrProductsAddDiDao;
|
||||||
|
@Resource
|
||||||
|
private ProductInfoService productInfoService;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<ThrProductsAddDiResponse> filterThrProductsList(FilterThrProductsRequest filterThrProductsRequest) {
|
||||||
|
if (null != filterThrProductsRequest && filterThrProductsRequest.getPage() != null) {
|
||||||
|
int offset = (filterThrProductsRequest.getPage() - 1) * filterThrProductsRequest.getLimit();
|
||||||
|
PageHelper.offsetPage(offset, filterThrProductsRequest.getLimit());
|
||||||
|
}
|
||||||
|
List<ThrProductsAddDiResponse> thrProductsAddDiResponses = thrProductsAddDiDao.filterThrProductsList(filterThrProductsRequest);
|
||||||
|
|
||||||
|
if (CollUtil.isNotEmpty(thrProductsAddDiResponses)) {
|
||||||
|
thrProductsAddDiResponses.forEach(thrProductsAddDiResponse -> {
|
||||||
|
thrProductsAddDiResponse.setStandard(thrProductsAddDiResponse.getSpec());
|
||||||
|
thrProductsAddDiResponse.setZczbhhzbapzbh(thrProductsAddDiResponse.getRegisterNo());
|
||||||
|
});
|
||||||
|
}
|
||||||
|
return thrProductsAddDiResponses;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ThrProductsAddDiResponse selecById(Long id) {
|
||||||
|
FilterThrProductsRequest filterThrProductsRequest = new FilterThrProductsRequest();
|
||||||
|
filterThrProductsRequest.setId(id);
|
||||||
|
List<ThrProductsAddDiResponse> thrProductsAddDiResponses = thrProductsAddDiDao.filterThrProductsList(filterThrProductsRequest);
|
||||||
|
if (CollUtil.isNotEmpty(thrProductsAddDiResponses)) {
|
||||||
|
return thrProductsAddDiResponses.get(0);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ThrProductsAddDiResponse selecByUuid(String uuid) {
|
||||||
|
if (StrUtil.isEmpty(uuid)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
FilterThrProductsRequest filterThrProductsRequest = new FilterThrProductsRequest();
|
||||||
|
filterThrProductsRequest.setUuid(uuid);
|
||||||
|
List<ThrProductsAddDiResponse> thrProductsAddDiResponses = thrProductsAddDiDao.filterThrProductsList(filterThrProductsRequest);
|
||||||
|
if (CollUtil.isNotEmpty(thrProductsAddDiResponses)) {
|
||||||
|
return thrProductsAddDiResponses.get(0);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean delThrDiProducts(Long id) {
|
||||||
|
return thrProductsAddDiDao.deleteById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean updateDiProduct(ThrProductsAddDiEntity thrProductsAddDiEntity) {
|
||||||
|
return thrProductsAddDiDao.updateDiProduct(thrProductsAddDiEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean addThrAddDiProducts(AddThrDiProductsRequest thrDiProductsRequest) {
|
||||||
|
|
||||||
|
List<String> uuids = thrDiProductsRequest.getUuids();
|
||||||
|
Long customerId = thrDiProductsRequest.getCustomerId();
|
||||||
|
List<ThrProductsAddDiEntity> list = new ArrayList<>(uuids.size());
|
||||||
|
Date date = new Date();
|
||||||
|
for (String uuid : uuids) {
|
||||||
|
ProductInfoEntity productInfoEntity = productInfoService.selectByUuid(uuid).get(0);
|
||||||
|
ThrProductsAddDiEntity thrProductsAddDiEntity = new ThrProductsAddDiEntity();
|
||||||
|
BeanUtils.copyProperties(thrDiProductsRequest, thrProductsAddDiEntity);
|
||||||
|
thrProductsAddDiEntity.setCustomerId(customerId + "");
|
||||||
|
thrProductsAddDiEntity.setUuid(uuid);
|
||||||
|
thrProductsAddDiEntity.setType(1);
|
||||||
|
thrProductsAddDiEntity.setYlqxzcrbarywmc(productInfoEntity.getYlqxzcrbarywmc());
|
||||||
|
thrProductsAddDiEntity.setCplb(productInfoEntity.getCplb());
|
||||||
|
thrProductsAddDiEntity.setCpms(productInfoEntity.getCpms());
|
||||||
|
thrProductsAddDiEntity.setFlbm(productInfoEntity.getFlbm());
|
||||||
|
thrProductsAddDiEntity.setQxlb(productInfoEntity.getQxlb());
|
||||||
|
thrProductsAddDiEntity.setTyshxydm(productInfoEntity.getTyshxydm());
|
||||||
|
thrProductsAddDiEntity.setCode(productInfoEntity.getNameCode());
|
||||||
|
thrProductsAddDiEntity.setName(productInfoEntity.getCpmctymc());
|
||||||
|
thrProductsAddDiEntity.setStandard(productInfoEntity.getGgxh());
|
||||||
|
thrProductsAddDiEntity.setSpec(productInfoEntity.getGgxh());
|
||||||
|
thrProductsAddDiEntity.setRegisterNo(productInfoEntity.getZczbhhzbapzbh());
|
||||||
|
thrProductsAddDiEntity.setYlqxzcrbarmc(productInfoEntity.getYlqxzcrbarmc());
|
||||||
|
thrProductsAddDiEntity.setZczbhhzbapzbh(productInfoEntity.getZczbhhzbapzbh());
|
||||||
|
|
||||||
|
//设置编辑区参数
|
||||||
|
thrProductsAddDiEntity.setSptm(thrDiProductsRequest.getSptm());
|
||||||
|
thrProductsAddDiEntity.setYbbm(thrDiProductsRequest.getYbbm());
|
||||||
|
thrProductsAddDiEntity.setMeasname(thrDiProductsRequest.getMeasname());
|
||||||
|
thrProductsAddDiEntity.setManufactory(thrDiProductsRequest.getManufactory());
|
||||||
|
thrProductsAddDiEntity.setSpmc(thrDiProductsRequest.getSpmc());
|
||||||
|
thrProductsAddDiEntity.setCpms(thrDiProductsRequest.getCpms());
|
||||||
|
thrProductsAddDiEntity.setPrice(thrDiProductsRequest.getPrice());
|
||||||
|
|
||||||
|
thrProductsAddDiEntity.setCreateTime(date);
|
||||||
|
thrProductsAddDiEntity.setUpdateTime(new Date());
|
||||||
|
thrProductsAddDiEntity.setStatus(1); //未审核
|
||||||
|
thrProductsAddDiEntity.setSelectThridSysStr(JSONUtil.toJsonStr(thrDiProductsRequest.getSelectThirdSys()));
|
||||||
|
list.add(thrProductsAddDiEntity);
|
||||||
|
}
|
||||||
|
return thrProductsAddDiDao.insertThrDiProducts(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public UdiInfoResponse getDiProductDetail(String uuid) {
|
||||||
|
ThrProductsAddDiEntity thrProductsAddDiEntity = thrProductsAddDiDao.filterThrProductsGetUuid(uuid);
|
||||||
|
UdiInfoResponse udiInfoResponse = thrProductsAddDiDao.getDiProductDetail(uuid);
|
||||||
|
if(udiInfoResponse!=null){
|
||||||
|
udiInfoResponse.setSptm(thrProductsAddDiEntity.getSptm());
|
||||||
|
udiInfoResponse.setYbbm(thrProductsAddDiEntity.getYbbm());
|
||||||
|
udiInfoResponse.setManufactory(thrProductsAddDiEntity.getManufactory());
|
||||||
|
udiInfoResponse.setCpms(thrProductsAddDiEntity.getCpms());
|
||||||
|
udiInfoResponse.setMeasname(thrProductsAddDiEntity.getMeasname());
|
||||||
|
udiInfoResponse.setManufactory(thrProductsAddDiEntity.getManufactory());
|
||||||
|
udiInfoResponse.setPrice(thrProductsAddDiEntity.getPrice());
|
||||||
|
udiInfoResponse.setBasicPrductRemak1(thrProductsAddDiEntity.getBasicPrductRemak1());
|
||||||
|
udiInfoResponse.setBasicPrductRemak2(thrProductsAddDiEntity.getBasicPrductRemak2());
|
||||||
|
udiInfoResponse.setBasicPrductRemak3(thrProductsAddDiEntity.getBasicPrductRemak3());
|
||||||
|
udiInfoResponse.setBasicPrductRemak4(thrProductsAddDiEntity.getBasicPrductRemak4());
|
||||||
|
udiInfoResponse.setBasicPrductRemak5(thrProductsAddDiEntity.getBasicPrductRemak5());
|
||||||
|
udiInfoResponse.setBasicPrductRemak6(thrProductsAddDiEntity.getBasicPrductRemak6());
|
||||||
|
udiInfoResponse.setBasicPrductRemak7(thrProductsAddDiEntity.getBasicPrductRemak7());
|
||||||
|
udiInfoResponse.setBasicPrductRemak8(thrProductsAddDiEntity.getBasicPrductRemak8());
|
||||||
|
}
|
||||||
|
return udiInfoResponse;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ThrProductsAddDiEntity filterThrProductsGetId(Integer id) {
|
||||||
|
return thrProductsAddDiDao.filterThrProductsGetId(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean insertThrProducts(ThrProductsAddDiEntity thrProductsAddDiEntity) {
|
||||||
|
return thrProductsAddDiDao.insert(thrProductsAddDiEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<ThrProductsAddDiResponse> filterThrProductsDiList(FilterThrProductsRequest filterThrProductsRequest) {
|
||||||
|
return thrProductsAddDiDao.filterThrProductsDiList(filterThrProductsRequest);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<ThrProductsAddDiEntity> filterThrProductsDiLists(FilterThrProductsRequest filterThrProductsRequest) {
|
||||||
|
return thrProductsAddDiDao.filterThrProductsDiLists(filterThrProductsRequest);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,175 @@
|
|||||||
|
package com.glxp.api.util;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.glxp.api.entity.basic.BasicProductSetEntity;
|
||||||
|
import com.glxp.api.entity.system.SystemParamConfigEntity;
|
||||||
|
import com.glxp.api.req.basic.SupplementRequest;
|
||||||
|
import com.glxp.api.service.basic.BasicProductSetService;
|
||||||
|
import com.glxp.api.service.system.SystemParamConfigService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
public class SupplementVailUtil {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
BasicProductSetService basicProductSetService;
|
||||||
|
@Resource
|
||||||
|
SystemParamConfigService systemParamConfigService;
|
||||||
|
|
||||||
|
|
||||||
|
public static final int SUP_SELECT = 1;
|
||||||
|
public static final int SUP_ADD = 2;
|
||||||
|
public static final int LOCAL_ADD = 3;
|
||||||
|
public static final int LOCAL_EIDT = 4;
|
||||||
|
|
||||||
|
|
||||||
|
public String vail(SupplementRequest supplementRequest, int type) {
|
||||||
|
//验证产品信息是否必填
|
||||||
|
Map<String, BasicProductSetEntity> basicProductSetEntityMap = basicProductSetService.filterAllEnable();
|
||||||
|
Map<String, SystemParamConfigEntity> systemParamConfigEntityMap = systemParamConfigService.findBasicAll();
|
||||||
|
if (basicProductSetEntityMap.size() > 0) {
|
||||||
|
BasicProductSetEntity basicProductSetEntity = null;
|
||||||
|
|
||||||
|
basicProductSetEntity = basicProductSetEntityMap.get("sptm");
|
||||||
|
if (isMustFill(type, basicProductSetEntity)) {
|
||||||
|
if (StrUtil.isEmpty(supplementRequest.getSptm())) {
|
||||||
|
return "商品条码不能为空";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
basicProductSetEntity = basicProductSetEntityMap.get("ybbm");
|
||||||
|
if (isMustFill(type, basicProductSetEntity)) {
|
||||||
|
if (StrUtil.isEmpty(supplementRequest.getYbbm())) {
|
||||||
|
return "医保编码不能为空";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
basicProductSetEntity = basicProductSetEntityMap.get("measname");
|
||||||
|
if (isMustFill(type, basicProductSetEntity)) {
|
||||||
|
if (StrUtil.isEmptyIfStr(supplementRequest.getMeasname())) {
|
||||||
|
return "计量单位不能为空";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
basicProductSetEntity = basicProductSetEntityMap.get("manufactory");
|
||||||
|
if (isMustFill(type, basicProductSetEntity)) {
|
||||||
|
if (StrUtil.isEmptyIfStr(supplementRequest.getManufactory())) {
|
||||||
|
return "生产厂家不能为空";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
basicProductSetEntity = basicProductSetEntityMap.get("spmc");
|
||||||
|
if (isMustFill(type, basicProductSetEntity)) {
|
||||||
|
if (StrUtil.isEmptyIfStr(supplementRequest.getSpmc())) {
|
||||||
|
return "商品名称不能为空";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
basicProductSetEntity = basicProductSetEntityMap.get("cpms");
|
||||||
|
if (isMustFill(type, basicProductSetEntity)) {
|
||||||
|
if (StrUtil.isEmptyIfStr(supplementRequest.getCpms())) {
|
||||||
|
return "产品描述不能为空";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
basicProductSetEntity = basicProductSetEntityMap.get("price");
|
||||||
|
if (isMustFill(type, basicProductSetEntity)) {
|
||||||
|
if (StrUtil.isEmptyIfStr(supplementRequest.getPrice())) {
|
||||||
|
return "产品价格不能为空";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
basicProductSetEntity = basicProductSetEntityMap.get("basicPrductRemak1");
|
||||||
|
if (isMustFill(type, basicProductSetEntity)) {
|
||||||
|
if (StrUtil.isEmpty(supplementRequest.getBasicPrductRemak1())) {
|
||||||
|
SystemParamConfigEntity systemParamConfigEntity = systemParamConfigEntityMap.get("basicPrductRemak1");
|
||||||
|
if (!systemParamConfigEntity.getParamValue().equals("0")) {
|
||||||
|
return systemParamConfigEntity.getParamValue() + "不能为空";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
basicProductSetEntity = basicProductSetEntityMap.get("basicPrductRemak2");
|
||||||
|
if (isMustFill(type, basicProductSetEntity)) {
|
||||||
|
if (StrUtil.isEmpty(supplementRequest.getBasicPrductRemak2())) {
|
||||||
|
SystemParamConfigEntity systemParamConfigEntity = systemParamConfigEntityMap.get("basicPrductRemak2");
|
||||||
|
if (!systemParamConfigEntity.getParamValue().equals("0")) {
|
||||||
|
return systemParamConfigEntity.getParamValue() + "不能为空";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
basicProductSetEntity = basicProductSetEntityMap.get("basicPrductRemak3");
|
||||||
|
if (isMustFill(type, basicProductSetEntity)) {
|
||||||
|
if (StrUtil.isEmpty(supplementRequest.getBasicPrductRemak3())) {
|
||||||
|
SystemParamConfigEntity systemParamConfigEntity = systemParamConfigEntityMap.get("basicPrductRemak3");
|
||||||
|
if (!systemParamConfigEntity.getParamValue().equals("0")) {
|
||||||
|
return systemParamConfigEntity.getParamValue() + "不能为空";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
basicProductSetEntity = basicProductSetEntityMap.get("basicPrductRemak4");
|
||||||
|
if (isMustFill(type, basicProductSetEntity)) {
|
||||||
|
if (StrUtil.isEmpty(supplementRequest.getBasicPrductRemak4())) {
|
||||||
|
SystemParamConfigEntity systemParamConfigEntity = systemParamConfigEntityMap.get("basicPrductRemak4");
|
||||||
|
if (!systemParamConfigEntity.getParamValue().equals("0")) {
|
||||||
|
return systemParamConfigEntity.getParamValue() + "不能为空";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
basicProductSetEntity = basicProductSetEntityMap.get("basicPrductRemak5");
|
||||||
|
if (isMustFill(type, basicProductSetEntity)) {
|
||||||
|
if (StrUtil.isEmpty(supplementRequest.getBasicPrductRemak5())) {
|
||||||
|
SystemParamConfigEntity systemParamConfigEntity = systemParamConfigEntityMap.get("basicPrductRemak5");
|
||||||
|
if (!systemParamConfigEntity.getParamValue().equals("0")) {
|
||||||
|
return systemParamConfigEntity.getParamValue() + "不能为空";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
basicProductSetEntity = basicProductSetEntityMap.get("basicPrductRemak6");
|
||||||
|
if (isMustFill(type, basicProductSetEntity)) {
|
||||||
|
if (StrUtil.isEmpty(supplementRequest.getBasicPrductRemak6())) {
|
||||||
|
SystemParamConfigEntity systemParamConfigEntity = systemParamConfigEntityMap.get("basicPrductRemak6");
|
||||||
|
if (!systemParamConfigEntity.getParamValue().equals("0")) {
|
||||||
|
return systemParamConfigEntity.getParamValue() + "不能为空";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
basicProductSetEntity = basicProductSetEntityMap.get("basicPrductRemak7");
|
||||||
|
if (isMustFill(type, basicProductSetEntity)) {
|
||||||
|
if (StrUtil.isEmpty(supplementRequest.getBasicPrductRemak7())) {
|
||||||
|
SystemParamConfigEntity systemParamConfigEntity = systemParamConfigEntityMap.get("basicPrductRemak7");
|
||||||
|
if (!systemParamConfigEntity.getParamValue().equals("0")) {
|
||||||
|
return systemParamConfigEntity.getParamValue() + "不能为空";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
basicProductSetEntity = basicProductSetEntityMap.get("basicPrductRemak8");
|
||||||
|
if (isMustFill(type, basicProductSetEntity)) {
|
||||||
|
if (StrUtil.isEmpty(supplementRequest.getBasicPrductRemak8())) {
|
||||||
|
SystemParamConfigEntity systemParamConfigEntity = systemParamConfigEntityMap.get("basicPrductRemak8");
|
||||||
|
if (!systemParamConfigEntity.getParamValue().equals("0")) {
|
||||||
|
return systemParamConfigEntity.getParamValue() + "不能为空";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public boolean isMustFill(int type, BasicProductSetEntity basicProductSetEntity) {
|
||||||
|
if (basicProductSetEntity == null)
|
||||||
|
return false;
|
||||||
|
if (type == SUP_SELECT && basicProductSetEntity.isSupSelect()) {
|
||||||
|
return true;
|
||||||
|
} else if (type == SUP_ADD && basicProductSetEntity.isSupAdd()) {
|
||||||
|
return true;
|
||||||
|
} else if (type == LOCAL_ADD && basicProductSetEntity.isLocalAdd()) {
|
||||||
|
return true;
|
||||||
|
} else if (type == LOCAL_EIDT && basicProductSetEntity.isLocalEdit()) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,42 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||||
|
|
||||||
|
<mapper namespace="com.glxp.api.dao.basic.BasicProductSetDao">
|
||||||
|
|
||||||
|
|
||||||
|
<select id="filterSetup"
|
||||||
|
parameterType="com.glxp.api.req.basic.FilterBasicProductSetrequest"
|
||||||
|
resultType="com.glxp.api.entity.basic.BasicProductSetEntity">
|
||||||
|
SELECT *
|
||||||
|
FROM basic_product_set
|
||||||
|
<where>
|
||||||
|
<if test="parmName != '' and parmName!=null">
|
||||||
|
and udiRlIdFk = #{udiRlIdFk}
|
||||||
|
</if>
|
||||||
|
<if test="enable != null ">
|
||||||
|
and enable = #{enable}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
ORDER BY sort
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
<insert id="updateSetup" parameterType="com.glxp.api.entity.basic.BasicProductSetEntity">
|
||||||
|
replace
|
||||||
|
INTO basic_product_set(parmName,
|
||||||
|
parmKey,enable,supSelect,supAdd,localAdd,remark,sort,localEdit) values
|
||||||
|
(
|
||||||
|
#{parmName},
|
||||||
|
#{parmKey},
|
||||||
|
#{enable} ,
|
||||||
|
#{supSelect},
|
||||||
|
#{supAdd},
|
||||||
|
#{localAdd},
|
||||||
|
#{remark},
|
||||||
|
#{sort},
|
||||||
|
#{localEdit}
|
||||||
|
)
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,270 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||||
|
|
||||||
|
<mapper namespace="com.glxp.api.dao.thrsys.ThrProductsAddDiDao">
|
||||||
|
<insert id="insertThrDiProducts" keyProperty="id" parameterType="java.util.List">
|
||||||
|
insert into thr_products_add_di (uuid, customerId, createTime,
|
||||||
|
auditTime, remark, auditUser,
|
||||||
|
`status`, thirdSysFk, code,
|
||||||
|
sptm, ybbm, measname,
|
||||||
|
manufactory, spmc, cpms,
|
||||||
|
price, selectThridSysStr, basicPrductRemak1,
|
||||||
|
basicPrductRemak2, basicPrductRemak3, basicPrductRemak4,
|
||||||
|
basicPrductRemak5, basicPrductRemak6, basicPrductRemak7,
|
||||||
|
basicPrductRemak8, `name`, spec,
|
||||||
|
registerNo, cplb, flbm,
|
||||||
|
qxlb, tyshxydm, zczbhhzbapzbh,
|
||||||
|
ylqxzcrbarmc, ylqxzcrbarywmc, updateTime,
|
||||||
|
supName, model, `standard`,
|
||||||
|
qtbm, zczyxqz, relId, type)
|
||||||
|
values
|
||||||
|
<foreach collection="list" index="index" item="item" separator=",">
|
||||||
|
(#{item.uuid},
|
||||||
|
#{item.customerId},
|
||||||
|
#{item.createTime},
|
||||||
|
#{item.auditTime},
|
||||||
|
#{item.remark},
|
||||||
|
#{item.auditUser},
|
||||||
|
#{item.status},
|
||||||
|
#{item.thirdSysFk},
|
||||||
|
#{item.code},
|
||||||
|
#{item.sptm},
|
||||||
|
#{item.ybbm},
|
||||||
|
#{item.measname},
|
||||||
|
#{item.manufactory},
|
||||||
|
#{item.spmc},
|
||||||
|
#{item.cpms}, #{item.price}, #{item.selectThridSysStr}
|
||||||
|
, #{item.basicPrductRemak1}, #{item.basicPrductRemak2}, #{item.basicPrductRemak3},
|
||||||
|
#{item.basicPrductRemak4}
|
||||||
|
, #{item.basicPrductRemak5}, #{item.basicPrductRemak6}, #{item.basicPrductRemak7},
|
||||||
|
#{item.basicPrductRemak8}
|
||||||
|
, #{item.name}, #{item.spec}, #{item.registerNo}, #{item.cplb}
|
||||||
|
, #{item.flbm}, #{item.qxlb}, #{item.tyshxydm}, #{item.zczbhhzbapzbh}
|
||||||
|
, #{item.ylqxzcrbarmc}, #{item.ylqxzcrbarywmc}, #{item.updateTime}, #{item.supName}, #{item.model}
|
||||||
|
, #{item.standard}, #{item.qtbm}, #{item.standard}, #{item.zczyxqz}, #{item.type})
|
||||||
|
</foreach>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateDiProduct" parameterType="com.glxp.api.entity.thrsys.ThrProductsAddDiEntity">
|
||||||
|
update thr_products_add_di
|
||||||
|
<trim prefix="set" suffixOverrides=",">
|
||||||
|
<if test="uuid != null">
|
||||||
|
uuid=#{uuid},
|
||||||
|
</if>
|
||||||
|
<if test="customerId != null">
|
||||||
|
customerId=#{customerId},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
createTime=#{createTime},
|
||||||
|
</if>
|
||||||
|
<if test="auditTime != null">
|
||||||
|
auditTime=#{auditTime},
|
||||||
|
</if>
|
||||||
|
<if test="remark != null">
|
||||||
|
remark=#{remark},
|
||||||
|
</if>
|
||||||
|
<if test="auditUser != null">
|
||||||
|
auditUser=#{auditUser},
|
||||||
|
</if>
|
||||||
|
<if test="thirdSysFk != null">
|
||||||
|
`thirdSysFk`=#{thirdSysFk},
|
||||||
|
</if>
|
||||||
|
<if test="code != null">
|
||||||
|
`code`=#{code},
|
||||||
|
</if>
|
||||||
|
<if test="sptm != null">
|
||||||
|
`sptm`=#{sptm},
|
||||||
|
</if>
|
||||||
|
<if test="ybbm != null">
|
||||||
|
`ybbm`=#{ybbm},
|
||||||
|
</if>
|
||||||
|
<if test="measname != null">
|
||||||
|
`measname`=#{measname},
|
||||||
|
</if>
|
||||||
|
<if test="manufactory != null">
|
||||||
|
`manufactory`=#{manufactory},
|
||||||
|
</if>
|
||||||
|
<if test="spmc != null">
|
||||||
|
`spmc`=#{spmc},
|
||||||
|
</if>
|
||||||
|
<if test="cpms != null">
|
||||||
|
`cpms`=#{cpms},
|
||||||
|
</if>
|
||||||
|
<if test="status != null">
|
||||||
|
`status`=#{status},
|
||||||
|
</if>
|
||||||
|
<if test="price != null">
|
||||||
|
`price`=#{price},
|
||||||
|
</if>
|
||||||
|
<if test="basicPrductRemak1 != null">
|
||||||
|
`basicPrductRemak1`=#{basicPrductRemak1},
|
||||||
|
</if>
|
||||||
|
<if test="basicPrductRemak2 != null">
|
||||||
|
`basicPrductRemak2`=#{basicPrductRemak2},
|
||||||
|
</if>
|
||||||
|
<if test="basicPrductRemak3 != null">
|
||||||
|
`basicPrductRemak3`=#{basicPrductRemak3},
|
||||||
|
</if>
|
||||||
|
<if test="basicPrductRemak4 != null">
|
||||||
|
`basicPrductRemak4`=#{basicPrductRemak4},
|
||||||
|
</if>
|
||||||
|
<if test="basicPrductRemak5 != null">
|
||||||
|
`basicPrductRemak5`=#{basicPrductRemak5},
|
||||||
|
</if>
|
||||||
|
<if test="basicPrductRemak6 != null">
|
||||||
|
`basicPrductRemak6`=#{basicPrductRemak6},
|
||||||
|
</if>
|
||||||
|
<if test="basicPrductRemak7 != null">
|
||||||
|
`basicPrductRemak7`=#{basicPrductRemak7},
|
||||||
|
</if>
|
||||||
|
<if test="basicPrductRemak8 != null">
|
||||||
|
`basicPrductRemak8`=#{basicPrductRemak8},
|
||||||
|
</if>
|
||||||
|
<if test="selectThridSysStr != null">
|
||||||
|
`selectThridSysStr`=#{selectThridSysStr},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
WHERE id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteById">
|
||||||
|
delete
|
||||||
|
from thr_products_add_di
|
||||||
|
where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<select id="filterThrProductsGetId" parameterType="integer"
|
||||||
|
resultType="com.glxp.api.entity.thrsys.ThrProductsAddDiEntity">
|
||||||
|
select *
|
||||||
|
from thr_products_add_di
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="filterThrProductsGetUuid" parameterType="string"
|
||||||
|
resultType="com.glxp.api.entity.thrsys.ThrProductsAddDiEntity">
|
||||||
|
select *
|
||||||
|
from thr_products_add_di
|
||||||
|
where uuid = #{uuid}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
<select id="filterThrProductsList" parameterType="com.glxp.api.req.thrsys.FilterThrProductsRequest"
|
||||||
|
resultType="com.glxp.api.res.thrsys.ThrProductsAddDiResponse">
|
||||||
|
SELECT tdi.*,
|
||||||
|
bc.name companyName
|
||||||
|
FROM thr_products_add_di tdi
|
||||||
|
left join basic_corp bc on tdi.customerId = bc.erpId
|
||||||
|
<where>
|
||||||
|
<if test="checkStatus != null">
|
||||||
|
AND tdi.status = #{checkStatus}
|
||||||
|
</if>
|
||||||
|
<if test="id != null">
|
||||||
|
AND tdi.id = #{id}
|
||||||
|
</if>
|
||||||
|
<if test="customerId != null">
|
||||||
|
AND tdi.customerId = #{customerId}
|
||||||
|
</if>
|
||||||
|
<if test="code != '' and code != null">
|
||||||
|
AND (tdi.sptm = #{code} OR code = #{code} OR tdi.ybbm = #{code})
|
||||||
|
</if>
|
||||||
|
<if test="uuid != '' and uuid != null">
|
||||||
|
AND tdi.uuid = #{uuid}
|
||||||
|
</if>
|
||||||
|
<if test="name != '' and name != null">
|
||||||
|
AND tdi.name = #{name}
|
||||||
|
</if>
|
||||||
|
<if test="spec != '' and spec != null">
|
||||||
|
AND tdi.spec = #{spec}
|
||||||
|
</if>
|
||||||
|
<if test="checkStatus != null">
|
||||||
|
AND tdi.status = #{checkStatus}
|
||||||
|
</if>
|
||||||
|
<if test="customerId != '' and customerId != null">
|
||||||
|
AND tdi.customerId = #{customerId}
|
||||||
|
</if>
|
||||||
|
<if test="registerNo != '' and registerNo != null">
|
||||||
|
AND tdi.registerNo = #{registerNo}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
order by tdi.createTime DESC
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="getDiProductDetail" resultType="com.glxp.api.res.thrsys.UdiInfoResponse">
|
||||||
|
select *
|
||||||
|
from productinfo
|
||||||
|
where uuid = #{uuid}
|
||||||
|
limit 1
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insert" keyColumn="id" keyProperty="id"
|
||||||
|
parameterType="com.glxp.api.entity.thrsys.ThrProductsAddDiEntity" useGeneratedKeys="true">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
insert into thr_products_add_di (uuid, customerId, createTime,
|
||||||
|
auditTime, remark, auditUser,
|
||||||
|
`status`, thirdSysFk, code,
|
||||||
|
sptm, ybbm, measname,
|
||||||
|
manufactory, spmc, cpms,
|
||||||
|
price, selectThridSysStr, basicPrductRemak1,
|
||||||
|
basicPrductRemak2, basicPrductRemak3, basicPrductRemak4,
|
||||||
|
basicPrductRemak5, basicPrductRemak6, basicPrductRemak7,
|
||||||
|
basicPrductRemak8, `name`, spec,
|
||||||
|
registerNo, cplb, flbm,
|
||||||
|
qxlb, tyshxydm, zczbhhzbapzbh,
|
||||||
|
ylqxzcrbarmc, ylqxzcrbarywmc, updateTime,
|
||||||
|
supName, model, `standard`,
|
||||||
|
qtbm, zczyxqz, relId, type)
|
||||||
|
values (#{uuid,jdbcType=VARCHAR}, #{customerId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
#{auditTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}, #{auditUser,jdbcType=VARCHAR},
|
||||||
|
#{status,jdbcType=INTEGER}, #{thirdSysFk,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR},
|
||||||
|
#{sptm,jdbcType=VARCHAR}, #{ybbm,jdbcType=VARCHAR}, #{measname,jdbcType=VARCHAR},
|
||||||
|
#{manufactory,jdbcType=VARCHAR}, #{spmc,jdbcType=VARCHAR}, #{cpms,jdbcType=VARCHAR},
|
||||||
|
#{price,jdbcType=VARCHAR}, #{selectThridSysStr,jdbcType=VARCHAR}, #{basicPrductRemak1,jdbcType=VARCHAR},
|
||||||
|
#{basicPrductRemak2,jdbcType=VARCHAR}, #{basicPrductRemak3,jdbcType=VARCHAR},
|
||||||
|
#{basicPrductRemak4,jdbcType=VARCHAR},
|
||||||
|
#{basicPrductRemak5,jdbcType=VARCHAR}, #{basicPrductRemak6,jdbcType=VARCHAR},
|
||||||
|
#{basicPrductRemak7,jdbcType=VARCHAR},
|
||||||
|
#{basicPrductRemak8,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{spec,jdbcType=VARCHAR},
|
||||||
|
#{registerNo,jdbcType=VARCHAR}, #{cplb,jdbcType=VARCHAR}, #{flbm,jdbcType=VARCHAR},
|
||||||
|
#{qxlb,jdbcType=VARCHAR}, #{tyshxydm,jdbcType=VARCHAR}, #{zczbhhzbapzbh,jdbcType=VARCHAR},
|
||||||
|
#{ylqxzcrbarmc,jdbcType=VARCHAR}, #{ylqxzcrbarywmc,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
||||||
|
#{supName,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR}, #{standard,jdbcType=VARCHAR},
|
||||||
|
#{qtbm,jdbcType=VARCHAR}, #{zczyxqz,jdbcType=VARCHAR}, #{relId,jdbcType=VARCHAR},
|
||||||
|
#{type,jdbcType=VARCHAR})
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<select id="filterThrProductsDiList" parameterType="com.glxp.api.req.thrsys.FilterThrProductsRequest"
|
||||||
|
resultType="com.glxp.api.res.thrsys.ThrProductsAddDiResponse">
|
||||||
|
SELECT tdi.*
|
||||||
|
FROM thr_products_add_di tdi
|
||||||
|
<where>
|
||||||
|
<if test="thirdSysFk != null">
|
||||||
|
AND tdi.thirdSysFk = #{thirdSysFk}
|
||||||
|
</if>
|
||||||
|
<if test="code != null">
|
||||||
|
AND tdi.code = #{code}
|
||||||
|
</if>
|
||||||
|
<if test="status != null">
|
||||||
|
AND tdi.status = #{status}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
</select><select id="filterThrProductsDiLists" parameterType="com.glxp.api.req.thrsys.FilterThrProductsRequest"
|
||||||
|
resultType="com.glxp.api.entity.thrsys.ThrProductsAddDiEntity">
|
||||||
|
SELECT tdi.*
|
||||||
|
FROM thr_products_add_di tdi
|
||||||
|
<where>
|
||||||
|
<if test="thirdSysFk != null">
|
||||||
|
AND tdi.thirdSysFk = #{thirdSysFk}
|
||||||
|
</if>
|
||||||
|
<if test="code != null">
|
||||||
|
AND tdi.code = #{code}
|
||||||
|
</if>
|
||||||
|
<if test="status != null">
|
||||||
|
AND tdi.status = #{status}
|
||||||
|
</if>
|
||||||
|
<if test="diType != null">
|
||||||
|
AND updateTime <= "2023-04-5 00:00:00"
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
</mapper>
|
Loading…
Reference in New Issue