From 303392dbff8f071960c4ae01779080e5d6949412 Mon Sep 17 00:00:00 2001 From: anthonywj Date: Sat, 25 Mar 2023 17:27:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E8=B4=A8=E8=AF=81=E4=B9=A6=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../basic/UdiRelevanceController.java | 14 + .../inout/IoOrderDetailBizController.java | 2 +- .../purchase/SupCertController.java | 2 +- .../purchase/SupProductController.java | 8 +- .../glxp/api/dao/basic/UdiRelevanceDao.java | 2 + .../api/entity/basic/BasicProductsEntity.java | 6 +- .../api/entity/basic/UdiProductEntity.java | 8 +- .../api/entity/basic/UdiRelevanceEntity.java | 3 + .../api/entity/purchase/SupProductEntity.java | 34 +- .../com/glxp/api/idc/thread/AsyncIdcTask.java | 2 +- .../api/req/basic/FilterUdiRelRequest.java | 3 +- .../glxp/api/req/basic/UdiInfoRequest.java | 2 +- .../req/basic/UdiRelevanceSaveRequest.java | 2 + .../api/req/purchase/FilterPoductRequest.java | 2 +- .../CompanyProductRelevanceResponse.java | 1 + .../api/res/basic/UdiRelevanceResponse.java | 9 +- .../glxp/api/res/basic/UdiRlSupResponse.java | 1 + .../glxp/api/res/thrsys/UdiInfoResponse.java | 1 + .../service/basic/UdiRelevanceService.java | 2 + .../impl/BasicBussinessTypeServiceImpl.java | 23 +- .../basic/impl/UdiRelevanceServiceImpl.java | 17 + .../service/purchase/SupProductService.java | 3 + .../purchase/impl/SupProductServiceImpl.java | 10 + .../basic/CompanyProductRelevanceDao.xml | 1 + .../mybatis/mapper/basic/UdiProductDao.xml | 1149 ++++++++++++----- .../mybatis/mapper/basic/UdiRelevanceDao.xml | 169 +++ .../mybatis/mapper/basic/UdiRlSupDao.xml | 1 + .../mybatis/mapper/purchase/SupProductDao.xml | 33 +- src/main/resources/schemas/schema_v2.1.sql | 14 + 29 files changed, 1137 insertions(+), 387 deletions(-) diff --git a/src/main/java/com/glxp/api/controller/basic/UdiRelevanceController.java b/src/main/java/com/glxp/api/controller/basic/UdiRelevanceController.java index 328e14fb..cd215260 100644 --- a/src/main/java/com/glxp/api/controller/basic/UdiRelevanceController.java +++ b/src/main/java/com/glxp/api/controller/basic/UdiRelevanceController.java @@ -188,6 +188,19 @@ public class UdiRelevanceController extends BaseController { } + //资质证书选入产品列表 产品名称,生产企业过滤 + @AuthRuleAnnotation("") + @GetMapping("/udi/cert/filterUdi") + public BaseResponse filterCertUdi(FilterUdiRelRequest filterUdiRelRequest) { + List udiRelevanceResponses = udiRelevanceService.filterCertUdi(filterUdiRelRequest); + PageInfo pageInfo; + pageInfo = new PageInfo<>(udiRelevanceResponses); + PageSimpleResponse pageSimpleResponse = new PageSimpleResponse<>(); + pageSimpleResponse.setTotal(pageInfo.getTotal()); + pageSimpleResponse.setList(udiRelevanceResponses); + return ResultVOUtils.success(pageSimpleResponse); + } + /** * 耗材字典信息获取同一产品对应DI信息 */ @@ -322,6 +335,7 @@ public class UdiRelevanceController extends BaseController { udiProductEntity.setAllowNoBatch(udiRelevanceSaveRequest.getAllowNoBatch()); udiProductEntity.setAllowNoExpire(udiRelevanceSaveRequest.getAllowNoExpire()); udiProductEntity.setAllowNoProduct(udiRelevanceSaveRequest.getAllowNoProduct()); + udiProductEntity.setAllowNoSerial(udiRelevanceSaveRequest.getAllowNoBatch()); udiProductEntity.setZxxsbzbhsydysl(udiRelevanceEntity.getUseNum()); udiProductEntity.setBasicPrductRemak1(udiRelevanceSaveRequest.getBasicPrductRemak1()); udiProductEntity.setBasicPrductRemak2(udiRelevanceSaveRequest.getBasicPrductRemak2()); diff --git a/src/main/java/com/glxp/api/controller/inout/IoOrderDetailBizController.java b/src/main/java/com/glxp/api/controller/inout/IoOrderDetailBizController.java index fcd877c5..23d01ef1 100644 --- a/src/main/java/com/glxp/api/controller/inout/IoOrderDetailBizController.java +++ b/src/main/java/com/glxp/api/controller/inout/IoOrderDetailBizController.java @@ -152,7 +152,7 @@ public class IoOrderDetailBizController extends BaseController { // todo 查询产品是否已经通过认证 if (isVailCert && udiRelevanceResponse.isNeedCert()) { - SupProductEntity supProductEntity = supProductService.findByRelIdFk(udiRelevanceResponse.getId() + ""); + SupProductEntity supProductEntity = supProductService.findByManufactury(udiRelevanceResponse.getCpmctymc(), udiRelevanceResponse.getManufactory()); if (supProductEntity != null && (supProductEntity.getAuditStatus() == ConstantStatus.AUDIT_PASS || supProductEntity.getAuditStatus() == ConstantStatus.AUDIT_CHANGE_PASS)) { } else { diff --git a/src/main/java/com/glxp/api/controller/purchase/SupCertController.java b/src/main/java/com/glxp/api/controller/purchase/SupCertController.java index 4a745f56..d43b779b 100644 --- a/src/main/java/com/glxp/api/controller/purchase/SupCertController.java +++ b/src/main/java/com/glxp/api/controller/purchase/SupCertController.java @@ -493,7 +493,7 @@ public class SupCertController { supData.put("productType", supProductEntity.getProductType() == null ? ' ' : supProductEntity.getProductType()); supData.put("productDirectoryCode", supProductEntity.getProductDirectoryCode() == null ? ' ' : supProductEntity.getProductDirectoryCode()); supData.put("specification", supProductEntity.getSpecification() == null ? ' ' : supProductEntity.getSpecification()); - supData.put("cpms", supProductEntity.getCpms() == null ? ' ' : supProductEntity.getCpms()); +// supData.put("cpms", supProductEntity.getCpms() == null ? ' ' : supProductEntity.getCpms()); supData.put("remark1", supProductEntity.getRemark() == null ? ' ' : supProductEntity.getRemark()); supData.put("index", String.valueOf(i)); diff --git a/src/main/java/com/glxp/api/controller/purchase/SupProductController.java b/src/main/java/com/glxp/api/controller/purchase/SupProductController.java index 8a7be91b..a0296b55 100644 --- a/src/main/java/com/glxp/api/controller/purchase/SupProductController.java +++ b/src/main/java/com/glxp/api/controller/purchase/SupProductController.java @@ -150,10 +150,12 @@ public class SupProductController { @PostMapping("/sup/product/selectBind") public BaseResponse selectBind(@RequestBody SelectProductBindRequest selectProductBindRequest) { - UdiRelevanceResponse udiRelevanceResponse = udiRelevanceService.selectGroupById(Long.valueOf(selectProductBindRequest.getRelIdFk())); - - SupProductEntity supProductEntity = new SupProductEntity(); + SupProductEntity supProductEntity = supProductService.findByManufactury(udiRelevanceResponse.getCpmctymc(), udiRelevanceResponse.getManufactory()); + if (supProductEntity != null) { + return ResultVOUtils.error(500, "资质证书已存在,请勿重复添加!"); + } + supProductEntity = new SupProductEntity(); BeanUtils.copyProperties(udiRelevanceResponse, supProductEntity); supProductEntity.setProductId(selectProductBindRequest.getProductId()); supProductEntity.setRecordCode(udiRelevanceResponse.getZczbhhzbapzbh()); diff --git a/src/main/java/com/glxp/api/dao/basic/UdiRelevanceDao.java b/src/main/java/com/glxp/api/dao/basic/UdiRelevanceDao.java index aa53b62f..2230afe0 100644 --- a/src/main/java/com/glxp/api/dao/basic/UdiRelevanceDao.java +++ b/src/main/java/com/glxp/api/dao/basic/UdiRelevanceDao.java @@ -17,6 +17,8 @@ public interface UdiRelevanceDao extends BaseMapperPlus filterUdiJoinSup(FilterUdiRelRequest filterUdiRelRequest); + List filterCertUdi(FilterUdiRelRequest filterUdiRelRequest); + List filterUdiGp(FilterUdiRelRequest filterUdiRelRequest); diff --git a/src/main/java/com/glxp/api/entity/basic/BasicProductsEntity.java b/src/main/java/com/glxp/api/entity/basic/BasicProductsEntity.java index 965edb9b..9c28c388 100644 --- a/src/main/java/com/glxp/api/entity/basic/BasicProductsEntity.java +++ b/src/main/java/com/glxp/api/entity/basic/BasicProductsEntity.java @@ -69,7 +69,7 @@ public class BasicProductsEntity { private Integer bhzxxsbzsl; /** - * 最小包装单元内包含使用单元数量: + * 最小包装单元内包含使用单元数量: 最小销售标识包含使用单元数量 */ @TableField(value = "zxxsbzbhsydysl") @@ -229,7 +229,7 @@ public class BasicProductsEntity { * 是否允许无批次号扫码 */ @TableField(value = "allowNoBatch") - private Byte allowNoBatch; + private Boolean allowNoBatch; /** * 是否允许无生产日期扫码 @@ -461,4 +461,4 @@ public class BasicProductsEntity { public static final String COL_UPDATEUSER = "updateUser"; public static final String COL_REMARK = "remark"; -} \ No newline at end of file +} diff --git a/src/main/java/com/glxp/api/entity/basic/UdiProductEntity.java b/src/main/java/com/glxp/api/entity/basic/UdiProductEntity.java index d725ed77..e408cc71 100644 --- a/src/main/java/com/glxp/api/entity/basic/UdiProductEntity.java +++ b/src/main/java/com/glxp/api/entity/basic/UdiProductEntity.java @@ -47,6 +47,7 @@ public class UdiProductEntity { private Boolean allowNoBatch; private Boolean allowNoExpire; private Boolean allowNoProduct; + private Boolean allowNoSerial; private String spmc; private String cplx; private String hchzsb; @@ -95,6 +96,9 @@ public class UdiProductEntity { return false; return allowNoProduct; } - - + public Boolean getAllowNoSerial() { + if (allowNoSerial == null) + return false; + return allowNoSerial; + } } diff --git a/src/main/java/com/glxp/api/entity/basic/UdiRelevanceEntity.java b/src/main/java/com/glxp/api/entity/basic/UdiRelevanceEntity.java index 00c3fff2..2e489e97 100644 --- a/src/main/java/com/glxp/api/entity/basic/UdiRelevanceEntity.java +++ b/src/main/java/com/glxp/api/entity/basic/UdiRelevanceEntity.java @@ -169,4 +169,7 @@ public class UdiRelevanceEntity { @TableField(value = "needCert") private boolean needCert; //是否需要资质材料 + @TableField(value = "certIdFk") + private String certIdFk; + } diff --git a/src/main/java/com/glxp/api/entity/purchase/SupProductEntity.java b/src/main/java/com/glxp/api/entity/purchase/SupProductEntity.java index dffec45b..eb7700e7 100644 --- a/src/main/java/com/glxp/api/entity/purchase/SupProductEntity.java +++ b/src/main/java/com/glxp/api/entity/purchase/SupProductEntity.java @@ -10,7 +10,7 @@ import java.util.Date; /** *

- * + * *

* * @author 作者 @@ -18,7 +18,7 @@ import java.util.Date; */ @TableName("sup_product") @Data -public class SupProductEntity{ +public class SupProductEntity { @TableId(value = "id", type = IdType.AUTO) private Long id; @@ -209,8 +209,6 @@ public class SupProductEntity{ @TableField("measname") private String measname; - @TableField("cpms") - private String cpms; /** * 耗材字典关联主键 @@ -254,10 +252,38 @@ public class SupProductEntity{ @TableField("updateTime") private Date updateTime; + + @TableField(value = "manufactory") + private String manufactory; + /** * 往来单位ID */ @TableField(exist = false) private String companyName; + + /** + * 是否允许无批次号扫码 + */ + @TableField(value = "allowNoBatch") + private Boolean allowNoBatch; + + /** + * 是否允许无生产日期扫码 + */ + @TableField(value = "allowNoExpire") + private Boolean allowNoExpire; + + /** + * 是否允许无失效日期扫码 + */ + @TableField(value = "allowNoProduct") + private Boolean allowNoProduct; + + /** + * 是否允许无序列号 + */ + @TableField(value = "allowNoSerial") + private Boolean allowNoSerial; } diff --git a/src/main/java/com/glxp/api/idc/thread/AsyncIdcTask.java b/src/main/java/com/glxp/api/idc/thread/AsyncIdcTask.java index 2e76095e..98118bfa 100644 --- a/src/main/java/com/glxp/api/idc/thread/AsyncIdcTask.java +++ b/src/main/java/com/glxp/api/idc/thread/AsyncIdcTask.java @@ -34,7 +34,7 @@ public class AsyncIdcTask implements SchedulingConfigurer { scheduledRequest.setCronName("syncIdc"); logger.info("syncIdc----------------"); ScheduledEntity scheduledEntity = scheduledDao.findScheduled(scheduledRequest); - String cron = scheduledEntity != null ? scheduledEntity.getCron() : "5 * * * * ?"; + String cron = scheduledEntity != null ? scheduledEntity.getCron() : "* 0/30 * * * ?"; if (cron.isEmpty()) { logger.error("cron is null"); diff --git a/src/main/java/com/glxp/api/req/basic/FilterUdiRelRequest.java b/src/main/java/com/glxp/api/req/basic/FilterUdiRelRequest.java index 043503cb..7c324d33 100644 --- a/src/main/java/com/glxp/api/req/basic/FilterUdiRelRequest.java +++ b/src/main/java/com/glxp/api/req/basic/FilterUdiRelRequest.java @@ -63,5 +63,6 @@ public class FilterUdiRelRequest extends ListPageRequest { private String bindRlIds; private String relCode; private String bindType; - + private String certIdFk; + private String manufactory; } diff --git a/src/main/java/com/glxp/api/req/basic/UdiInfoRequest.java b/src/main/java/com/glxp/api/req/basic/UdiInfoRequest.java index 490c426f..d00ed478 100644 --- a/src/main/java/com/glxp/api/req/basic/UdiInfoRequest.java +++ b/src/main/java/com/glxp/api/req/basic/UdiInfoRequest.java @@ -62,7 +62,7 @@ public class UdiInfoRequest { private boolean allowNoBatch; private boolean allowNoExpire; private boolean allowNoProduct; - + private boolean allowNoSerial; private String price; private String cplx; private String hchzsb; diff --git a/src/main/java/com/glxp/api/req/basic/UdiRelevanceSaveRequest.java b/src/main/java/com/glxp/api/req/basic/UdiRelevanceSaveRequest.java index 37416755..d7c1527a 100644 --- a/src/main/java/com/glxp/api/req/basic/UdiRelevanceSaveRequest.java +++ b/src/main/java/com/glxp/api/req/basic/UdiRelevanceSaveRequest.java @@ -70,6 +70,7 @@ public class UdiRelevanceSaveRequest { private Boolean allowNoBatch; private Boolean allowNoExpire; private Boolean allowNoProduct; + private Boolean allowNoSerial; private String spmc; private String cplx; private String hchzsb; @@ -98,4 +99,5 @@ public class UdiRelevanceSaveRequest { private boolean dispatch; //是否可配送 private boolean groupBuy; //是否集采产品 private boolean needCert; //是否需要资质材料 + private String certIdFk; } diff --git a/src/main/java/com/glxp/api/req/purchase/FilterPoductRequest.java b/src/main/java/com/glxp/api/req/purchase/FilterPoductRequest.java index b36a4673..57fc3a7f 100644 --- a/src/main/java/com/glxp/api/req/purchase/FilterPoductRequest.java +++ b/src/main/java/com/glxp/api/req/purchase/FilterPoductRequest.java @@ -12,7 +12,7 @@ public class FilterPoductRequest extends ListPageRequest { private String recordCode; private String recordProductName; private String recordPeopleName; - + private String manufactory; private String productId; private String manufacturerIdFk; diff --git a/src/main/java/com/glxp/api/res/basic/CompanyProductRelevanceResponse.java b/src/main/java/com/glxp/api/res/basic/CompanyProductRelevanceResponse.java index 8e545c6f..c123629d 100644 --- a/src/main/java/com/glxp/api/res/basic/CompanyProductRelevanceResponse.java +++ b/src/main/java/com/glxp/api/res/basic/CompanyProductRelevanceResponse.java @@ -68,6 +68,7 @@ public class CompanyProductRelevanceResponse { private boolean allowNoBatch; private boolean allowNoExpire; private boolean allowNoProduct; + private boolean allowNoSerial; private String spmc; private Integer productType; private String price; diff --git a/src/main/java/com/glxp/api/res/basic/UdiRelevanceResponse.java b/src/main/java/com/glxp/api/res/basic/UdiRelevanceResponse.java index e75499ea..cae21f03 100644 --- a/src/main/java/com/glxp/api/res/basic/UdiRelevanceResponse.java +++ b/src/main/java/com/glxp/api/res/basic/UdiRelevanceResponse.java @@ -70,6 +70,7 @@ public class UdiRelevanceResponse { private Boolean allowNoBatch; private Boolean allowNoExpire; private Boolean allowNoProduct; + private Boolean allowNoSerial; private String spmc; private String cplx; private String hchzsb; @@ -108,6 +109,8 @@ public class UdiRelevanceResponse { private String classifyName; //物资分类名称 + private String certIdFk; + public int getBhzxxsbzsl() { if (bhzxxsbzsl == null || bhzxxsbzsl == 0) { @@ -134,7 +137,11 @@ public class UdiRelevanceResponse { return false; return allowNoProduct; } - + public Boolean getAllowNoSerial() { + if (allowNoSerial == null) + return false; + return allowNoSerial; + } public Boolean getUseDy() { if (isUseDy == null) diff --git a/src/main/java/com/glxp/api/res/basic/UdiRlSupResponse.java b/src/main/java/com/glxp/api/res/basic/UdiRlSupResponse.java index 45bb7cbc..31178271 100644 --- a/src/main/java/com/glxp/api/res/basic/UdiRlSupResponse.java +++ b/src/main/java/com/glxp/api/res/basic/UdiRlSupResponse.java @@ -68,6 +68,7 @@ public class UdiRlSupResponse { private boolean allowNoBatch; private boolean allowNoExpire; private boolean allowNoProduct; + private boolean allowNoSerial; private String spmc; private Integer productType; private String price; diff --git a/src/main/java/com/glxp/api/res/thrsys/UdiInfoResponse.java b/src/main/java/com/glxp/api/res/thrsys/UdiInfoResponse.java index 2e741511..e7a3dc27 100644 --- a/src/main/java/com/glxp/api/res/thrsys/UdiInfoResponse.java +++ b/src/main/java/com/glxp/api/res/thrsys/UdiInfoResponse.java @@ -67,6 +67,7 @@ public class UdiInfoResponse { private boolean allowNoBatch; private boolean allowNoExpire; private boolean allowNoProduct; + private boolean allowNoSerial; private String price; private String cplx; diff --git a/src/main/java/com/glxp/api/service/basic/UdiRelevanceService.java b/src/main/java/com/glxp/api/service/basic/UdiRelevanceService.java index 886af28a..b7687545 100644 --- a/src/main/java/com/glxp/api/service/basic/UdiRelevanceService.java +++ b/src/main/java/com/glxp/api/service/basic/UdiRelevanceService.java @@ -14,6 +14,8 @@ public interface UdiRelevanceService { List filterUdiRelevance(FilterUdiRelRequest filterUdiRelRequest); + List filterCertUdi(FilterUdiRelRequest filterUdiRelRequest); + List filterUdiJoinSup(FilterUdiRelRequest filterUdiRelRequest); List filterUdiEntity(FilterUdiRelRequest filterUdiRelRequest); diff --git a/src/main/java/com/glxp/api/service/basic/impl/BasicBussinessTypeServiceImpl.java b/src/main/java/com/glxp/api/service/basic/impl/BasicBussinessTypeServiceImpl.java index 569c30d0..b3a8978b 100644 --- a/src/main/java/com/glxp/api/service/basic/impl/BasicBussinessTypeServiceImpl.java +++ b/src/main/java/com/glxp/api/service/basic/impl/BasicBussinessTypeServiceImpl.java @@ -13,6 +13,7 @@ import com.glxp.api.req.basic.FilterBussinessTypeRequest; import com.glxp.api.res.basic.BasicBussinessTypeResponse; import com.glxp.api.service.auth.CustomerService; import com.glxp.api.service.basic.IBasicBussinessTypeService; +import com.glxp.api.service.system.SystemParamConfigService; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -191,6 +192,10 @@ public class BasicBussinessTypeServiceImpl implements IBasicBussinessTypeService return list; } + + @Resource + SystemParamConfigService systemParamConfigService; + @Override public List findByVueType(String vueType) { @@ -204,18 +209,26 @@ public class BasicBussinessTypeServiceImpl implements IBasicBussinessTypeService case Constant.ORDER_ACTION_PRE_DETAIL: bussinessTypeEntities = basicBussinessTypeDao.selectList(new QueryWrapper() - .eq("actionType", 3).eq("inStock", true).eq("enable",true)); + .eq("actionType", 3).eq("inStock", true).eq("enable", true)); break; case Constant.ORDER_ACTION_SUP_DELIVERY: - bussinessTypeEntities = basicBussinessTypeDao.selectList(new QueryWrapper() - .eq("mainAction", ConstantType.TYPE_PUT).eq("corpType", ConstantStatus.CORP_TYPE_OUT) - .eq("spUse", true).eq("inStock", false).eq("enable",true)); + //允许送货单直接入库变更库存,则不判断送货单是否入库 + String deliveryInstock = systemParamConfigService.selectValueByParamKey("deliveryInstock"); + if (StrUtil.isNotEmpty(deliveryInstock) && deliveryInstock.equals("1")) { + bussinessTypeEntities = basicBussinessTypeDao.selectList(new QueryWrapper() + .eq("mainAction", ConstantType.TYPE_PUT).eq("corpType", ConstantStatus.CORP_TYPE_OUT) + .eq("spUse", true).eq("enable", true)); + } else { + bussinessTypeEntities = basicBussinessTypeDao.selectList(new QueryWrapper() + .eq("mainAction", ConstantType.TYPE_PUT).eq("corpType", ConstantStatus.CORP_TYPE_OUT) + .eq("spUse", true).eq("inStock", false).eq("enable", true)); + } break; case Constant.ORDER_ACTION_SUP_INVOICE: bussinessTypeEntities = basicBussinessTypeDao.selectList(new QueryWrapper() .eq("mainAction", ConstantType.TYPE_PUT).eq("corpType", ConstantStatus.CORP_TYPE_OUT) - .eq("spUse", true).eq("actionType", 1).eq("enable",true)); + .eq("spUse", true).eq("actionType", 1).eq("enable", true)); break; default: break; diff --git a/src/main/java/com/glxp/api/service/basic/impl/UdiRelevanceServiceImpl.java b/src/main/java/com/glxp/api/service/basic/impl/UdiRelevanceServiceImpl.java index 12740dc4..8ceab1d7 100644 --- a/src/main/java/com/glxp/api/service/basic/impl/UdiRelevanceServiceImpl.java +++ b/src/main/java/com/glxp/api/service/basic/impl/UdiRelevanceServiceImpl.java @@ -39,6 +39,22 @@ public class UdiRelevanceServiceImpl implements UdiRelevanceService { return data; } + @Override + public List filterCertUdi(FilterUdiRelRequest filterUdiRelRequest) { + + + if (filterUdiRelRequest == null) { + return Collections.emptyList(); + } + if (filterUdiRelRequest.getPage() != null) { + int offset = (filterUdiRelRequest.getPage() - 1) * filterUdiRelRequest.getLimit(); + PageHelper.offsetPage(offset, filterUdiRelRequest.getLimit()); + } + List data = udiRelevanceDao.filterCertUdi(filterUdiRelRequest); + return data; + + } + @Override public List filterUdiJoinSup(FilterUdiRelRequest filterUdiRelRequest) { if (filterUdiRelRequest == null) { @@ -177,6 +193,7 @@ public class UdiRelevanceServiceImpl implements UdiRelevanceService { return data.get(0); return null; } + @Override public UdiRelevanceResponse selectSupGroupById(Long id) { FilterUdiRelRequest filterUdiRelRequest = new FilterUdiRelRequest(); diff --git a/src/main/java/com/glxp/api/service/purchase/SupProductService.java b/src/main/java/com/glxp/api/service/purchase/SupProductService.java index bcc7a079..f764afe6 100644 --- a/src/main/java/com/glxp/api/service/purchase/SupProductService.java +++ b/src/main/java/com/glxp/api/service/purchase/SupProductService.java @@ -16,6 +16,9 @@ public interface SupProductService { SupProductEntity findByRelIdFk(String relIdFk); + + SupProductEntity findByManufactury(String cpmctymc, String manufactory); + SupProductResponse findByPassByReCert(String registerCert); SupProductResponse findJoinRegistration(Long id); diff --git a/src/main/java/com/glxp/api/service/purchase/impl/SupProductServiceImpl.java b/src/main/java/com/glxp/api/service/purchase/impl/SupProductServiceImpl.java index dcdd33d4..42e0cca9 100644 --- a/src/main/java/com/glxp/api/service/purchase/impl/SupProductServiceImpl.java +++ b/src/main/java/com/glxp/api/service/purchase/impl/SupProductServiceImpl.java @@ -79,6 +79,16 @@ public class SupProductServiceImpl implements SupProductService { else return null; } + @Override + public SupProductEntity findByManufactury(String cpmctymc, String manufactory) { + List supProductEntities = supProductDao.selectList(new QueryWrapper().eq("manufactory", manufactory) + .eq("recordProductName", cpmctymc) + .last("LIMIT 1")); + if (CollUtil.isNotEmpty(supProductEntities)) + return supProductEntities.get(0); + else return null; + } + @Override public SupProductEntity findRegistrationByName(String recordProductName) { return supProductDao.findRegistrationByName(recordProductName); diff --git a/src/main/resources/mybatis/mapper/basic/CompanyProductRelevanceDao.xml b/src/main/resources/mybatis/mapper/basic/CompanyProductRelevanceDao.xml index 9295ef4e..f6c5c24d 100644 --- a/src/main/resources/mybatis/mapper/basic/CompanyProductRelevanceDao.xml +++ b/src/main/resources/mybatis/mapper/basic/CompanyProductRelevanceDao.xml @@ -74,6 +74,7 @@ basic_products.allowNoBatch, basic_products.allowNoExpire, basic_products.allowNoProduct, + basic_products.allowNoSerial, basic_products.productType, basic_products.nameCode, basic_products.packRatio, diff --git a/src/main/resources/mybatis/mapper/basic/UdiProductDao.xml b/src/main/resources/mybatis/mapper/basic/UdiProductDao.xml index 1abe8e8f..9c104d56 100644 --- a/src/main/resources/mybatis/mapper/basic/UdiProductDao.xml +++ b/src/main/resources/mybatis/mapper/basic/UdiProductDao.xml @@ -2,19 +2,19 @@ - @@ -99,14 +136,16 @@ resultType="com.glxp.api.entity.basic.UdiProductEntity"> SELECT * FROM basic_products - WHERE (id = #{id}) limit 1 + WHERE (id = #{id}) + limit 1 replace - INTO basic_products - (uuid,originUuid,nameCode,deviceRecordKey,packRatio,packLevel,packUnit,bhxjsl,bhzxxsbzsl,zxxsbzbhsydysl,bhxjcpbm,bzcj,cpmctymc,cplb,flbm,ggxh,qxlb,tyshxydm, - ylqxzcrbarmc,zczbhhzbapzbh,ylqxzcrbarywmc,sydycpbs,sjcpbm,versionNumber,diType,ybbm,sptm,manufactory,measname,productType,scbssfbhph,scbssfbhxlh,scbssfbhscrq,scbssfbhsxrq,cpms,allowNoBatch,allowNoExpire, - allowNoProduct,spmc,cplx,hchzsb,cpdls,price,basicPrductRemak1,basicPrductRemak2,basicPrductRemak3,basicPrductRemak4,basicPrductRemak5,basicPrductRemak6,basicPrductRemak7,basicPrductRemak8) - values - ( - #{uuid}, - #{originUuid}, - #{nameCode}, - #{deviceRecordKey}, - #{packRatio}, - #{packLevel}, - #{packUnit}, - #{bhxjsl}, - #{bhzxxsbzsl }, - #{zxxsbzbhsydysl}, - #{bhxjcpbm}, - #{bzcj}, - #{cpmctymc}, - #{cplb}, - #{flbm}, - #{ggxh}, - #{qxlb}, - #{tyshxydm}, - #{ylqxzcrbarmc}, - #{zczbhhzbapzbh}, - #{ylqxzcrbarywmc}, - #{sydycpbs}, - #{sjcpbm}, - #{versionNumber}, - #{diType}, - #{ybbm}, - #{sptm}, - #{manufactory}, - #{measname}, - #{productType}, - #{scbssfbhph}, - #{scbssfbhxlh}, - #{scbssfbhscrq}, - #{scbssfbhsxrq}, - #{cpms}, - #{allowNoBatch}, - #{allowNoExpire}, - #{allowNoProduct}, - #{spmc}, - #{cplx}, - #{hchzsb}, - #{cpdls}, - #{price}, - #{basicPrductRemak1}, - #{basicPrductRemak2}, - #{basicPrductRemak3}, - #{basicPrductRemak4}, - #{basicPrductRemak5}, - #{basicPrductRemak6}, - #{basicPrductRemak7}, - #{basicPrductRemak8} - ) + INTO basic_products + (uuid, originUuid, nameCode, deviceRecordKey, packRatio, packLevel, packUnit, bhxjsl, bhzxxsbzsl, + zxxsbzbhsydysl, bhxjcpbm, bzcj, cpmctymc, cplb, flbm, ggxh, qxlb, tyshxydm, + ylqxzcrbarmc, zczbhhzbapzbh, ylqxzcrbarywmc, sydycpbs, sjcpbm, versionNumber, diType, ybbm, sptm, + manufactory, measname, productType, scbssfbhph, scbssfbhxlh, scbssfbhscrq, scbssfbhsxrq, cpms, + allowNoBatch, allowNoExpire, + allowNoProduct, allowNoSerial, spmc, cplx, hchzsb, cpdls, price, basicPrductRemak1, basicPrductRemak2, + basicPrductRemak3, basicPrductRemak4, basicPrductRemak5, basicPrductRemak6, basicPrductRemak7, + basicPrductRemak8) + values (#{uuid}, + #{originUuid}, + #{nameCode}, + #{deviceRecordKey}, + #{packRatio}, + #{packLevel}, + #{packUnit}, + #{bhxjsl}, + #{bhzxxsbzsl }, + #{zxxsbzbhsydysl}, + #{bhxjcpbm}, + #{bzcj}, + #{cpmctymc}, + #{cplb}, + #{flbm}, + #{ggxh}, + #{qxlb}, + #{tyshxydm}, + #{ylqxzcrbarmc}, + #{zczbhhzbapzbh}, + #{ylqxzcrbarywmc}, + #{sydycpbs}, + #{sjcpbm}, + #{versionNumber}, + #{diType}, + #{ybbm}, + #{sptm}, + #{manufactory}, + #{measname}, + #{productType}, + #{scbssfbhph}, + #{scbssfbhxlh}, + #{scbssfbhscrq}, + #{scbssfbhsxrq}, + #{cpms}, + #{allowNoBatch}, + #{allowNoExpire}, + #{allowNoProduct}, #{allowNoSerial}, + #{spmc}, + #{cplx}, + #{hchzsb}, + #{cpdls}, + #{price}, + #{basicPrductRemak1}, + #{basicPrductRemak2}, + #{basicPrductRemak3}, + #{basicPrductRemak4}, + #{basicPrductRemak5}, + #{basicPrductRemak6}, + #{basicPrductRemak7}, + #{basicPrductRemak8}) replace INTO basic_products - (uuid,originUuid,nameCode,deviceRecordKey,packRatio,packLevel,packUnit,bhxjsl,bhzxxsbzsl,zxxsbzbhsydysl,bhxjcpbm,bzcj,cpmctymc,cplb,flbm,ggxh,qxlb,tyshxydm, - ylqxzcrbarmc,zczbhhzbapzbh,ylqxzcrbarywmc,sydycpbs,sjcpbm,versionNumber,diType,ybbm,sptm,manufactory,measname,productType,scbssfbhph,scbssfbhxlh,scbssfbhscrq,scbssfbhsxrq,cpms,allowNoBatch,allowNoExpire, - allowNoProduct,spmc,cplx,hchzsb,cpdls,price,basicPrductRemak1,basicPrductRemak2,basicPrductRemak3,basicPrductRemak4,basicPrductRemak5,basicPrductRemak6,basicPrductRemak7,basicPrductRemak8) - values + (uuid, originUuid, nameCode, deviceRecordKey, packRatio, packLevel, packUnit, bhxjsl, bhzxxsbzsl, + zxxsbzbhsydysl, bhxjcpbm, bzcj, cpmctymc, cplb, flbm, ggxh, qxlb, tyshxydm, + ylqxzcrbarmc, zczbhhzbapzbh, ylqxzcrbarywmc, sydycpbs, sjcpbm, versionNumber, diType, ybbm, sptm, + manufactory, measname, productType, scbssfbhph, scbssfbhxlh, scbssfbhscrq, scbssfbhsxrq, cpms, + allowNoBatch, allowNoExpire, + allowNoProduct, allowNoSerial, spmc, cplx, hchzsb, cpdls, price, basicPrductRemak1, basicPrductRemak2, + basicPrductRemak3, basicPrductRemak4, basicPrductRemak5, basicPrductRemak6, basicPrductRemak7, + basicPrductRemak8) + values - ( - #{item.uuid}, - #{item.originUuid}, - #{item.nameCode}, - #{item.deviceRecordKey}, - #{item.packRatio}, - #{item.packLevel}, - #{item.packUnit}, - #{item.bhxjsl}, - #{item.bhzxxsbzsl}, - #{item.zxxsbzbhsydysl}, - #{item.bhxjcpbm}, - #{item.bzcj}, - #{item.cpmctymc}, - #{item.cplb}, - #{item.flbm}, - #{item.ggxh}, - #{item.qxlb}, - #{item.tyshxydm}, - #{item.ylqxzcrbarmc}, - #{item.zczbhhzbapzbh}, - #{item.ylqxzcrbarywmc}, - #{item.sydycpbs}, - #{item.sjcpbm}, - #{item.versionNumber}, - #{item.diType}, - #{item.ybbm}, - #{item.sptm}, - #{item.manufactory}, - #{item.measname}, - #{item.productType}, - #{item.scbssfbhph}, - #{item.scbssfbhxlh}, - #{item.scbssfbhscrq}, - #{item.scbssfbhsxrq}, - #{item.cpms}, - #{item.allowNoBatch}, - #{item.allowNoExpire}, - #{item.allowNoProduct}, - #{item.spmc}, - #{item.cplx}, - #{item.hchzsb}, - #{item.cpdls}, - #{item.price}, - #{item.basicPrductRemak1}, - #{item.basicPrductRemak2}, - #{item.basicPrductRemak3}, - #{item.basicPrductRemak4}, - #{item.basicPrductRemak5}, - #{item.basicPrductRemak6}, - #{item.basicPrductRemak7}, - #{item.basicPrductRemak8} - ) + (#{item.uuid}, + #{item.originUuid}, + #{item.nameCode}, + #{item.deviceRecordKey}, + #{item.packRatio}, + #{item.packLevel}, + #{item.packUnit}, + #{item.bhxjsl}, + #{item.bhzxxsbzsl}, + #{item.zxxsbzbhsydysl}, + #{item.bhxjcpbm}, + #{item.bzcj}, + #{item.cpmctymc}, + #{item.cplb}, + #{item.flbm}, + #{item.ggxh}, + #{item.qxlb}, + #{item.tyshxydm}, + #{item.ylqxzcrbarmc}, + #{item.zczbhhzbapzbh}, + #{item.ylqxzcrbarywmc}, + #{item.sydycpbs}, + #{item.sjcpbm}, + #{item.versionNumber}, + #{item.diType}, + #{item.ybbm}, + #{item.sptm}, + #{item.manufactory}, + #{item.measname}, + #{item.productType}, + #{item.scbssfbhph}, + #{item.scbssfbhxlh}, + #{item.scbssfbhscrq}, + #{item.scbssfbhsxrq}, + #{item.cpms}, + #{item.allowNoBatch}, + #{item.allowNoExpire}, + #{item.allowNoProduct}, #{item.allowNoSerial}, + #{item.spmc}, + #{item.cplx}, + #{item.hchzsb}, + #{item.cpdls}, + #{item.price}, + #{item.basicPrductRemak1}, + #{item.basicPrductRemak2}, + #{item.basicPrductRemak3}, + #{item.basicPrductRemak4}, + #{item.basicPrductRemak5}, + #{item.basicPrductRemak6}, + #{item.basicPrductRemak7}, + #{item.basicPrductRemak8}) @@ -264,113 +309,319 @@ UPDATE basic_products - originUuid=#{originUuid}, - nameCode=#{nameCode}, - deviceRecordKey=#{deviceRecordKey}, - packRatio=#{packRatio}, - packLevel=#{packLevel}, - packUnit=#{packUnit}, - bhxjsl=#{bhxjsl}, - bhzxxsbzsl=#{bhzxxsbzsl}, - zxxsbzbhsydysl=#{zxxsbzbhsydysl}, - bhxjcpbm=#{bhxjcpbm}, - bzcj=#{bzcj}, - cpmctymc=#{cpmctymc}, - cplb=#{cplb}, - flbm=#{flbm}, - ggxh=#{ggxh}, - qxlb=#{qxlb}, - tyshxydm=#{tyshxydm}, - ylqxzcrbarmc=#{ylqxzcrbarmc}, - zczbhhzbapzbh=#{zczbhhzbapzbh}, - ylqxzcrbarywmc=#{ylqxzcrbarywmc}, - sydycpbs=#{sydycpbs}, - sjcpbm=#{sjcpbm}, - versionNumber=#{versionNumber}, - diType=#{diType}, - ybbm=#{ybbm}, - sptm=#{sptm}, - manufactory=#{manufactory}, - measname=#{measname}, - productType=#{productType}, - scbssfbhph=#{scbssfbhph}, - scbssfbhxlh=#{scbssfbhxlh}, - scbssfbhscrq=#{scbssfbhscrq}, - scbssfbhsxrq=#{scbssfbhsxrq}, - cpms=#{cpms}, - allowNoBatch=#{allowNoBatch}, - allowNoExpire=#{allowNoExpire}, - allowNoProduct=#{allowNoProduct}, - spmc=#{spmc}, - cplx=#{cplx}, - hchzsb=#{hchzsb}, - cpdls=#{cpdls}, - price=#{price}, - basicPrductRemak1=#{basicPrductRemak1}, - basicPrductRemak2=#{basicPrductRemak2}, - basicPrductRemak3=#{basicPrductRemak3}, - basicPrductRemak4=#{basicPrductRemak4}, - basicPrductRemak5=#{basicPrductRemak5}, - basicPrductRemak6=#{basicPrductRemak6}, - basicPrductRemak7=#{basicPrductRemak7}, - basicPrductRemak8=#{basicPrductRemak8}, + + originUuid=#{originUuid}, + + + nameCode=#{nameCode}, + + + deviceRecordKey=#{deviceRecordKey}, + + + packRatio=#{packRatio}, + + + packLevel=#{packLevel}, + + + packUnit=#{packUnit}, + + + bhxjsl=#{bhxjsl}, + + + bhzxxsbzsl=#{bhzxxsbzsl}, + + + zxxsbzbhsydysl=#{zxxsbzbhsydysl}, + + + bhxjcpbm=#{bhxjcpbm}, + + + bzcj=#{bzcj}, + + + cpmctymc=#{cpmctymc}, + + + cplb=#{cplb}, + + + flbm=#{flbm}, + + + ggxh=#{ggxh}, + + + qxlb=#{qxlb}, + + + tyshxydm=#{tyshxydm}, + + + ylqxzcrbarmc=#{ylqxzcrbarmc}, + + + zczbhhzbapzbh=#{zczbhhzbapzbh}, + + + ylqxzcrbarywmc=#{ylqxzcrbarywmc}, + + + sydycpbs=#{sydycpbs}, + + + sjcpbm=#{sjcpbm}, + + + versionNumber=#{versionNumber}, + + + diType=#{diType}, + + + ybbm=#{ybbm}, + + + sptm=#{sptm}, + + + manufactory=#{manufactory}, + + + measname=#{measname}, + + + productType=#{productType}, + + + scbssfbhph=#{scbssfbhph}, + + + scbssfbhxlh=#{scbssfbhxlh}, + + + scbssfbhscrq=#{scbssfbhscrq}, + + + scbssfbhsxrq=#{scbssfbhsxrq}, + + + cpms=#{cpms}, + + + allowNoBatch=#{allowNoBatch}, + + + allowNoExpire=#{allowNoExpire}, + + + allowNoProduct=#{allowNoProduct}, + + + allowNoSerial=#{allowNoSerial}, + + + + + spmc=#{spmc}, + + + cplx=#{cplx}, + + + hchzsb=#{hchzsb}, + + + cpdls=#{cpdls}, + + + price=#{price}, + + + basicPrductRemak1=#{basicPrductRemak1}, + + + basicPrductRemak2=#{basicPrductRemak2}, + + + basicPrductRemak3=#{basicPrductRemak3}, + + + basicPrductRemak4=#{basicPrductRemak4}, + + + basicPrductRemak5=#{basicPrductRemak5}, + + + basicPrductRemak6=#{basicPrductRemak6}, + + + basicPrductRemak7=#{basicPrductRemak7}, + + + basicPrductRemak8=#{basicPrductRemak8}, + - WHERE nameCode = #{nameCode} and uuid = #{uuid} + WHERE nameCode = #{nameCode} + and uuid = #{uuid} update basic_products - originUuid=#{originUuid}, - nameCode=#{nameCode}, - deviceRecordKey=#{deviceRecordKey}, - packRatio=#{packRatio}, - packLevel=#{packLevel}, - packUnit=#{packUnit}, - bhxjsl=#{bhxjsl}, - bhzxxsbzsl=#{bhzxxsbzsl}, - zxxsbzbhsydysl=#{zxxsbzbhsydysl}, - bhxjcpbm=#{bhxjcpbm}, - bzcj=#{bzcj}, - cpmctymc=#{cpmctymc}, - cplb=#{cplb}, - flbm=#{flbm}, - ggxh=#{ggxh}, - qxlb !==#{qxlb !=}, - tyshxydm=#{tyshxydm}, - ylqxzcrbarmc=#{ylqxzcrbarmc}, - zczbhhzbapzbh=#{zczbhhzbapzbh}, - ylqxzcrbarywmc=#{ylqxzcrbarywmc}, - sydycpbs=#{sydycpbs}, - sjcpbm=#{sjcpbm}, - versionNumber=#{versionNumber}, - diType=#{diType}, - ybbm=#{ybbm}, - sptm=#{sptm}, - manufactory=#{manufactory}, - measname=#{measname}, - productType=#{productType}, - scbssfbhph=#{scbssfbhph}, - scbssfbhxlh=#{scbssfbhxlh}, - scbssfbhscrq=#{scbssfbhscrq}, - scbssfbhsxrq=#{scbssfbhsxrq}, - cpms=#{cpms}, - allowNoBatch=#{allowNoBatch}, - allowNoExpire=#{allowNoExpire}, - allowNoProduct=#{allowNoProduct}, - spmc=#{spmc}, - cplx=#{cplx}, - hchzsb=#{hchzsb}, - cpdls=#{cpdls}, - price=#{price}, - basicPrductRemak1=#{basicPrductRemak1}, - basicPrductRemak2=#{basicPrductRemak2}, - basicPrductRemak3=#{basicPrductRemak3}, - basicPrductRemak4=#{basicPrductRemak4}, - basicPrductRemak5=#{basicPrductRemak5}, - basicPrductRemak6=#{basicPrductRemak6}, - basicPrductRemak7=#{basicPrductRemak7}, - basicPrductRemak8=#{basicPrductRemak8}, + + originUuid=#{originUuid}, + + + nameCode=#{nameCode}, + + + deviceRecordKey=#{deviceRecordKey}, + + + packRatio=#{packRatio}, + + + packLevel=#{packLevel}, + + + packUnit=#{packUnit}, + + + bhxjsl=#{bhxjsl}, + + + bhzxxsbzsl=#{bhzxxsbzsl}, + + + zxxsbzbhsydysl=#{zxxsbzbhsydysl}, + + + bhxjcpbm=#{bhxjcpbm}, + + + bzcj=#{bzcj}, + + + cpmctymc=#{cpmctymc}, + + + cplb=#{cplb}, + + + flbm=#{flbm}, + + + ggxh=#{ggxh}, + + + qxlb !==#{qxlb !=}, + + + tyshxydm=#{tyshxydm}, + + + ylqxzcrbarmc=#{ylqxzcrbarmc}, + + + zczbhhzbapzbh=#{zczbhhzbapzbh}, + + + ylqxzcrbarywmc=#{ylqxzcrbarywmc}, + + + sydycpbs=#{sydycpbs}, + + + sjcpbm=#{sjcpbm}, + + + versionNumber=#{versionNumber}, + + + diType=#{diType}, + + + ybbm=#{ybbm}, + + + sptm=#{sptm}, + + + manufactory=#{manufactory}, + + + measname=#{measname}, + + + productType=#{productType}, + + + scbssfbhph=#{scbssfbhph}, + + + scbssfbhxlh=#{scbssfbhxlh}, + + + scbssfbhscrq=#{scbssfbhscrq}, + + + scbssfbhsxrq=#{scbssfbhsxrq}, + + + cpms=#{cpms}, + + + allowNoBatch=#{allowNoBatch}, + + + allowNoExpire=#{allowNoExpire}, + + + allowNoProduct=#{allowNoProduct}, + + + spmc=#{spmc}, + + + cplx=#{cplx}, + + + hchzsb=#{hchzsb}, + + + cpdls=#{cpdls}, + + + price=#{price}, + + + basicPrductRemak1=#{basicPrductRemak1}, + + + basicPrductRemak2=#{basicPrductRemak2}, + + + basicPrductRemak3=#{basicPrductRemak3}, + + + basicPrductRemak4=#{basicPrductRemak4}, + + + basicPrductRemak5=#{basicPrductRemak5}, + + + basicPrductRemak6=#{basicPrductRemak6}, + + + basicPrductRemak7=#{basicPrductRemak7}, + + + basicPrductRemak8=#{basicPrductRemak8}, + where uuid = #{uuid} @@ -378,56 +629,159 @@ update basic_products - originUuid=#{originUuid}, - nameCode=#{nameCode}, - deviceRecordKey=#{deviceRecordKey}, - packRatio=#{packRatio}, - packLevel=#{packLevel}, - packUnit=#{packUnit}, - bhxjsl=#{bhxjsl}, - bhzxxsbzsl=#{bhzxxsbzsl}, - zxxsbzbhsydysl=#{zxxsbzbhsydysl}, - bhxjcpbm=#{bhxjcpbm}, - bzcj=#{bzcj}, - cpmctymc=#{cpmctymc}, - cplb=#{cplb}, - flbm=#{flbm}, - ggxh=#{ggxh}, - qxlb !==#{qxlb !=}, - tyshxydm=#{tyshxydm}, - ylqxzcrbarmc=#{ylqxzcrbarmc}, - zczbhhzbapzbh=#{zczbhhzbapzbh}, - ylqxzcrbarywmc=#{ylqxzcrbarywmc}, - sydycpbs=#{sydycpbs}, - sjcpbm=#{sjcpbm}, - versionNumber=#{versionNumber}, - diType=#{diType}, - ybbm=#{ybbm}, - sptm=#{sptm}, - manufactory=#{manufactory}, - measname=#{measname}, - productType=#{productType}, - scbssfbhph=#{scbssfbhph}, - scbssfbhxlh=#{scbssfbhxlh}, - scbssfbhscrq=#{scbssfbhscrq}, - scbssfbhsxrq=#{scbssfbhsxrq}, - cpms=#{cpms}, - allowNoBatch=#{allowNoBatch}, - allowNoExpire=#{allowNoExpire}, - allowNoProduct=#{allowNoProduct}, - spmc=#{spmc}, - cplx=#{cplx}, - hchzsb=#{hchzsb}, - cpdls=#{cpdls}, - price=#{price}, - basicPrductRemak1=#{basicPrductRemak1}, - basicPrductRemak2=#{basicPrductRemak2}, - basicPrductRemak3=#{basicPrductRemak3}, - basicPrductRemak4=#{basicPrductRemak4}, - basicPrductRemak5=#{basicPrductRemak5}, - basicPrductRemak6=#{basicPrductRemak6}, - basicPrductRemak7=#{basicPrductRemak7}, - basicPrductRemak8=#{basicPrductRemak8}, + + originUuid=#{originUuid}, + + + nameCode=#{nameCode}, + + + deviceRecordKey=#{deviceRecordKey}, + + + packRatio=#{packRatio}, + + + packLevel=#{packLevel}, + + + packUnit=#{packUnit}, + + + bhxjsl=#{bhxjsl}, + + + bhzxxsbzsl=#{bhzxxsbzsl}, + + + zxxsbzbhsydysl=#{zxxsbzbhsydysl}, + + + bhxjcpbm=#{bhxjcpbm}, + + + bzcj=#{bzcj}, + + + cpmctymc=#{cpmctymc}, + + + cplb=#{cplb}, + + + flbm=#{flbm}, + + + ggxh=#{ggxh}, + + + qxlb !==#{qxlb !=}, + + + tyshxydm=#{tyshxydm}, + + + ylqxzcrbarmc=#{ylqxzcrbarmc}, + + + zczbhhzbapzbh=#{zczbhhzbapzbh}, + + + ylqxzcrbarywmc=#{ylqxzcrbarywmc}, + + + sydycpbs=#{sydycpbs}, + + + sjcpbm=#{sjcpbm}, + + + versionNumber=#{versionNumber}, + + + diType=#{diType}, + + + ybbm=#{ybbm}, + + + sptm=#{sptm}, + + + manufactory=#{manufactory}, + + + measname=#{measname}, + + + productType=#{productType}, + + + scbssfbhph=#{scbssfbhph}, + + + scbssfbhxlh=#{scbssfbhxlh}, + + + scbssfbhscrq=#{scbssfbhscrq}, + + + scbssfbhsxrq=#{scbssfbhsxrq}, + + + cpms=#{cpms}, + + + allowNoBatch=#{allowNoBatch}, + + + allowNoExpire=#{allowNoExpire}, + + + allowNoProduct=#{allowNoProduct}, + + + allowNoSerial=#{allowNoSerial}, + + + spmc=#{spmc}, + + + cplx=#{cplx}, + + + hchzsb=#{hchzsb}, + + + cpdls=#{cpdls}, + + + price=#{price}, + + + basicPrductRemak1=#{basicPrductRemak1}, + + + basicPrductRemak2=#{basicPrductRemak2}, + + + basicPrductRemak3=#{basicPrductRemak3}, + + + basicPrductRemak4=#{basicPrductRemak4}, + + + basicPrductRemak5=#{basicPrductRemak5}, + + + basicPrductRemak6=#{basicPrductRemak6}, + + + basicPrductRemak7=#{basicPrductRemak7}, + + + basicPrductRemak8=#{basicPrductRemak8}, + where id = #{id} @@ -450,13 +804,16 @@ @@ -464,51 +821,133 @@ UPDATE basic_products - packRatio=#{packRatio}, - packLevel=#{packLevel}, - bhxjsl=#{bhxjsl}, - bhzxxsbzsl=#{bhzxxsbzsl}, - zxxsbzbhsydysl=#{zxxsbzbhsydysl}, - bhxjcpbm=#{bhxjcpbm}, - bzcj=#{bzcj}, - addType=#{addType}, - deviceRecordKey=#{deviceRecordKey}, - cpmctymc=#{cpmctymc}, - cplb=#{cplb}, - flbm=#{flbm}, - ggxh=#{ggxh}, - qxlb=#{qxlb}, - tyshxydm=#{tyshxydm}, - ylqxzcrbarmc=#{ylqxzcrbarmc}, - ylqxzcrbarywmc=#{ylqxzcrbarywmc}, - uuid=#{uuid}, - sjcpbm=#{sjcpbm}, - versionNumber=#{versionNumber}, - sptm=#{sptm}, - manufactory=#{manufactory}, - ybbm=#{ybbm}, - measname=#{measname}, - diType=#{diType}, - productType=#{productType}, - scbssfbhph=#{scbssfbhph}, - scbssfbhxlh=#{scbssfbhxlh}, - scbssfbhscrq=#{scbssfbhscrq}, - scbssfbhsxrq=#{scbssfbhsxrq}, - cpms=#{cpms}, - originUuid=#{originUuid}, - spmc=#{spmc}, - cpdls=#{cpdls}, - basicPrductRemak1=#{basicPrductRemak1}, - basicPrductRemak2=#{basicPrductRemak2}, - basicPrductRemak3=#{basicPrductRemak3}, - basicPrductRemak4=#{basicPrductRemak4}, - basicPrductRemak5=#{basicPrductRemak5}, - basicPrductRemak6=#{basicPrductRemak6}, - basicPrductRemak7=#{basicPrductRemak7}, - basicPrductRemak8=#{basicPrductRemak8}, + + packRatio=#{packRatio}, + + + packLevel=#{packLevel}, + + + bhxjsl=#{bhxjsl}, + + + bhzxxsbzsl=#{bhzxxsbzsl}, + + + zxxsbzbhsydysl=#{zxxsbzbhsydysl}, + + + bhxjcpbm=#{bhxjcpbm}, + + + bzcj=#{bzcj}, + + + addType=#{addType}, + + + deviceRecordKey=#{deviceRecordKey}, + + + cpmctymc=#{cpmctymc}, + + + cplb=#{cplb}, + + + flbm=#{flbm}, + + + ggxh=#{ggxh}, + + + qxlb=#{qxlb}, + + + tyshxydm=#{tyshxydm}, + + + ylqxzcrbarmc=#{ylqxzcrbarmc}, + + + ylqxzcrbarywmc=#{ylqxzcrbarywmc}, + + + uuid=#{uuid}, + + + sjcpbm=#{sjcpbm}, + + + versionNumber=#{versionNumber}, + + + sptm=#{sptm}, + + + manufactory=#{manufactory}, + + + ybbm=#{ybbm}, + + + measname=#{measname}, + + + diType=#{diType}, + + + productType=#{productType}, + + + scbssfbhph=#{scbssfbhph}, + + + scbssfbhxlh=#{scbssfbhxlh}, + + + scbssfbhscrq=#{scbssfbhscrq}, + + + scbssfbhsxrq=#{scbssfbhsxrq}, + + + cpms=#{cpms}, + + + originUuid=#{originUuid}, + + + spmc=#{spmc}, + + + cpdls=#{cpdls}, + + + basicPrductRemak1=#{basicPrductRemak1}, + + + basicPrductRemak2=#{basicPrductRemak2}, + + + basicPrductRemak3=#{basicPrductRemak3}, + + + basicPrductRemak4=#{basicPrductRemak4}, + + + basicPrductRemak5=#{basicPrductRemak5}, + + + basicPrductRemak6=#{basicPrductRemak6}, + + + basicPrductRemak7=#{basicPrductRemak7}, + + + basicPrductRemak8=#{basicPrductRemak8}, + WHERE uuid = #{uuid} - - - \ No newline at end of file + diff --git a/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml b/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml index 016c8fe5..ac196592 100644 --- a/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml +++ b/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml @@ -43,6 +43,8 @@ basic_products.allowNoBatch, basic_products.allowNoExpire, basic_products.allowNoProduct, + basic_products.allowNoSerial, + basic_products.spmc, basic_products.cplx, basic_products.hchzsb, @@ -161,6 +163,7 @@ basic_products.allowNoBatch, basic_products.allowNoExpire, basic_products.allowNoProduct, + basic_products.allowNoSerial, basic_products.spmc, basic_products.cplx, basic_products.hchzsb, @@ -289,6 +292,7 @@ basic_products.allowNoBatch, basic_products.allowNoExpire, basic_products.allowNoProduct, + basic_products.allowNoSerial, basic_products.spmc, basic_products.cplx, basic_products.hchzsb, @@ -404,6 +408,169 @@ ORDER BY modifyTime DESC + + + + +