bug修复,自助平台迁移,中继服务修改

master
anthonyywj2 3 years ago
parent 64cfc64c11
commit 669d5593d3

@ -171,12 +171,14 @@ public class BussinessLocalTypeController {
}
}
BussinessChangeTypeEntity bussinessChangeTypeEntity = bussinessChangeTypeService.findFirstByAction(bussinessLocalTypeEntity.getAction());
if (bussinessChangeTypeEntity != null && bussinessChangeTypeEntity.getScAction() != null) {
return ResultVOUtils.error(500, "该业务单据类型已绑定流转单据类型,无法删除!");
}
// BussinessChangeTypeEntity bussinessChangeTypeEntity = bussinessChangeTypeService.findFirstByAction(bussinessLocalTypeEntity.getAction());
// if (bussinessChangeTypeEntity != null && bussinessChangeTypeEntity.getScAction() != null) {
//
// return ResultVOUtils.error(500, "该业务单据类型已绑定流转单据类型,无法删除!");
// }
bussinessLocalTypeService.deleteById(id);
bussinessChangeTypeService.deleteByLocaAction(bussinessLocalTypeEntity.getAction());
return ResultVOUtils.success("删除成功");
}

@ -132,6 +132,7 @@ public class UdiContrastController {
udiRelevanceEntity.setUpdateTime(DateUtil.getDateTime());
udiRelevanceEntity.setManufactory(combineRequest.getManufactory());
udiRelevanceEntity.setSupName(combineRequest.getSupName());
udiRelevanceEntity.setPrice(combineRequest.getPrice());
UdiRelevanceEntity temp = udiContrastService.findById(udiRelevanceEntity.getId());
if (udiContrastService.isExit(temp.getOriginUuid(), udiRelevanceEntity.getMainId())) {
return ResultVOUtils.error(500, "已存在相同的对照关系,对照失败!");
@ -185,6 +186,8 @@ public class UdiContrastController {
try {
CombineRequest combineRequest = new CombineRequest();
combineRequest.setRelId(removeRelRequest.getRelId());
udiRelevanceEntity.setSupName("");
udiRelevanceEntity.setPrice("");
udiRelevanceService.updateUdiRelevance(udiRelevanceEntity);
} catch (Exception e) {
e.printStackTrace();
@ -234,6 +237,7 @@ public class UdiContrastController {
udiRelevanceEntity.setThirdName(combineRequest.getErpName());
udiRelevanceEntity.setMainId(combineRequest.getThirdId());
udiRelevanceEntity.setMainName(combineRequest.getErpName());
udiRelevanceEntity.setPrice(combineRequest.getPrice());
udiRelevanceEntity.setUpdateTime(DateUtil.getDateTime());
udiRelevanceEntity.setUuid(udiInfoEntities.get(0).getUuid());
if (combineRequest.getManufactory() != null) {
@ -241,6 +245,7 @@ public class UdiContrastController {
} else
udiRelevanceEntity.setManufactory(udiInfoEntities.get(0).getYlqxzcrbarmc());
udiRelevanceEntity.setSupName(combineRequest.getSupName());
udiRelevanceEntity.setPrice(combineRequest.getPrice());
udiRelevanceEntity.setId(gennerOrderUtils.getRelId() + "");
udiRelevanceService.insertUdiRelevance(udiRelevanceEntity);
insertUdiInfos(udiInfoEntities);
@ -251,8 +256,10 @@ public class UdiContrastController {
UdiRelevanceEntity udiRelevanceEntity = new UdiRelevanceEntity();
udiRelevanceEntity.setUpdateTime(DateUtil.getDateTime());
udiRelevanceEntity.setUuid(udiInfoEntities.get(0).getUuid());
udiRelevanceEntity.setPrice(combineRequest.getPrice());
udiRelevanceEntity.setManufactory(udiInfoEntities.get(0).getYlqxzcrbarmc());
udiRelevanceEntity.setSupName(combineRequest.getSupName());
udiRelevanceEntity.setPrice(combineRequest.getPrice());
udiRelevanceEntity.setId(gennerOrderUtils.getRelId() + "");
udiRelevanceService.insertUdiRelevance(udiRelevanceEntity);
insertUdiInfos(udiInfoEntities);
@ -272,6 +279,7 @@ public class UdiContrastController {
udiRelevanceEntity.setUuid(CustomUtil.getUUId());
udiRelevanceEntity.setManufactory(thrProductsEntity.getManufactory());
udiRelevanceEntity.setSupName(combineRequest.getSupName());
udiRelevanceEntity.setPrice(thrProductsEntity.getPrice());
udiRelevanceEntity.setId(gennerOrderUtils.getRelId() + "");
udiRelevanceService.insertUdiRelevance(udiRelevanceEntity);
UdiInfoEntity udiInfoEntity = new UdiInfoEntity();

@ -21,4 +21,7 @@ public interface BussinessChangeTypeDao {
boolean deleteByAction(@Param("scAction") String scAction);
boolean deleteByLocaAction(@Param("action") String action);
}

@ -51,7 +51,7 @@ public interface OrderDao {
OrderEntity findOne(OrderFilterRequest orderFilterRequest);
List<OrderEntity> findAllByTime(OrderFilterRequest orderFilterRequest);
List<OrderEntity> findAllByTime(OrderQueryRequest orderFilterRequest);
Integer selectExportStatus(@Param("id") String id);

@ -0,0 +1,31 @@
package com.glxp.api.admin.entity.basic;
import lombok.Data;
import java.util.Date;
@Data
public class SpsBusLoclTypeResponse {
private Integer id;
private String action;
private String name;
private String localAction;
private String originAction;
private String mainAction;
private String localName;
private String remark;
private boolean checkEnable;
private boolean advanceType;
private boolean spUse;
private String storageCode;
private int corpType;
private String defaultUnit;
private boolean genUnit;
private String thirdAction;
private String thirdSys;
private Date updateTime;
private String prefix;
private String localPrefix;
private boolean preIn;
}

@ -33,6 +33,7 @@ public class UdiRelevanceEntity {
private String supName;
private String originUuid;
private boolean allowNoBatch;
private String price;
public Integer getLockStatus() {
if (lockStatus == null)

@ -35,6 +35,7 @@ public class ThrProductsEntity {
private String standard; //规格型号,二合一字段
private String qtbm; //其他编码
private String zczyxqz; //注册有效期截止时间
private String price;
private String remark; //备注
private String remark1; //备注1
private String remark2; //备注2

@ -27,4 +27,20 @@ public class ThrProductsImportDetailEntity {
private Date updateTime;
private String supName;
private String genKeyFk;
//辅助字段
private boolean isChecked;
private String thirdSys;
//添加字段
private String model; //型号
private String standard; //规格型号,二合一字段
private String qtbm; //其他编码
private String zczyxqz; //注册有效期截止时间
private String price;
private String remark; //备注
private String remark1; //备注1
private String remark2; //备注2
private String remark3; //备注3
}

@ -23,6 +23,7 @@ public class CombineRequest {
private Boolean supEnable;
private String manufactory;
private String supName;
private String price;
private boolean idSpliUdi;
private String uuid;

@ -3,7 +3,36 @@ package com.glxp.api.admin.req.inout;
import com.glxp.api.admin.req.ListPageRequest;
import lombok.Data;
import java.util.List;
@Data
public class OrderQueryRequest extends ListPageRequest {
private String id;
private String action;
private String mainAction;
private String code;
private Integer exportStatus;
private Integer status;
private String corpOrderId;
private Integer contrastStatus;
private Integer unionCtrStatus;
private Integer signStatus;
private String startTime;
private String endTime;
private String stockCheckFk;
private Integer receiveStatus;
private Integer statusOrOne;
private String customerId;
private String fromCorpId;
private String orderId;//业务单据ID手持终端上传上来的
private String ullageSupNo;
private Integer createUser;
private Integer reviewUser;
private Integer userId;
private String locStorageCode;
private String lastUpdateTime;
private Integer unionUser;
private List<String> filterActions;
}

@ -33,6 +33,7 @@ public class ErpProductsResponse {
private String standard; //规格型号,二合一字段
private String qtbm; //其他编码
private String zczyxqz; //注册有效期截止时间
private String price;
private String remark; //备注
private String remark1; //备注1
private String remark2; //备注2

@ -3,6 +3,7 @@ package com.glxp.api.admin.res.basic;
import com.glxp.api.admin.entity.basic.BussinessLocalTypeEntity;
import com.glxp.api.admin.entity.basic.BussinessOriginTypeEntity;
import com.glxp.api.admin.entity.basic.BussinessTypeEntity;
import com.glxp.api.admin.entity.basic.SpsBusLoclTypeResponse;
import lombok.Data;
import java.util.List;
@ -12,5 +13,5 @@ public class SpsSyncBusResponse {
private List<BussinessTypeEntity> bussinessTypeEntities;
private List<BussinessOriginTypeEntity> bussinessOriginTypeEntities;
private List<BussinessLocalTypeEntity> bussinessLocalTypeEntities;
private List<SpsBusLoclTypeResponse> bussinessLocalTypeEntities;
}

@ -67,7 +67,7 @@ public class UdiRelevanceResponse {
private String companyName;
private String originUuid;
private boolean allowNoBatch;
private String price;
public int getBhzxxsbzsl() {
if (bhzxxsbzsl == null || bhzxxsbzsl == 0) {

@ -2,6 +2,7 @@ package com.glxp.api.admin.service.basic;
import com.glxp.api.admin.entity.basic.BussinessChangeTypeEntity;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@ -21,4 +22,5 @@ public interface BussinessChangeTypeService {
boolean deleteByAction(String scAction);
boolean deleteByLocaAction(String action);
}

@ -49,6 +49,11 @@ public class BussinessChangeTypeServiceaImpl implements BussinessChangeTypeServi
return bussinessChangeTypeDao.deleteByAction(scAction);
}
@Override
public boolean deleteByLocaAction(String action) {
return bussinessChangeTypeDao.deleteByLocaAction(action);
}
@Override
public boolean deleteById(String id) {
return bussinessChangeTypeDao.deleteById(id);

@ -53,7 +53,7 @@ public interface OrderService {
List<OrderEntity> filterListByCode(List<WarehouseEntity> warehouseEntityList);
List<OrderEntity> findAllByTime(OrderFilterRequest orderFilterRequest);
List<OrderEntity> findAllByTime(OrderQueryRequest orderFilterRequest);
/**

@ -192,7 +192,7 @@ public class OrderServiceImpl implements OrderService {
}
@Override
public List<OrderEntity> findAllByTime(OrderFilterRequest orderFilterRequest) {
public List<OrderEntity> findAllByTime(OrderQueryRequest orderFilterRequest) {
return orderDao.findAllByTime(orderFilterRequest);
}
@ -243,7 +243,7 @@ public class OrderServiceImpl implements OrderService {
BussinessTypeEntity supplementType = bussinessTypeDao.selectByAction(bussinessTypeEntity.getSupplementOrderType());
supplementOrder.setMainAction(supplementType.getMainAction());
supplementOrder.setAction(supplementType.getAction());
supplementOrder.setErpFk(null);
// String time = DateUtil.getBeforeMinute(supplementOrder.getActDate(), 5);
// supplementOrder.setActDate(time);

@ -281,85 +281,7 @@ public class BasicBackUpdateProductService {
}
public void addRl(ErpInvProductResponse onhandQueryResponse, String
thirdSysId, Map<String, ErpProductsResponse> erpProductsMap) {
UdiInfoEntity udiInfoEntity = new UdiInfoEntity();
udiInfoEntity.setNameCode(onhandQueryResponse.getCode());
udiInfoEntity.setCpmctymc(onhandQueryResponse.getName());
udiInfoEntity.setGgxh(onhandQueryResponse.getSpec());
udiInfoEntity.setUuid(CustomUtil.getUUId());
udiInfoEntity.setProductType(ConstantStatus.PRODUCT_TYPE_THIRD);
udiInfoEntity.setDiType(ConstantStatus.DI_TYPE_MAIN);
udiInfoEntity.setManufactory(erpProductsMap.get(onhandQueryResponse.getCode()).getManufactory());
udiInfoEntity.setYlqxzcrbarmc(erpProductsMap.get(onhandQueryResponse.getCode()).getManufactory());
udiInfoEntity.setZczbhhzbapzbh(erpProductsMap.get(onhandQueryResponse.getCode()).getRegisterNo());
udiInfoService.insertUdiInfo(udiInfoEntity);
UdiRelevanceEntity udiRelevanceEntity1 = new UdiRelevanceEntity();
udiRelevanceEntity1.setUuid(udiInfoEntity.getUuid());
if ("thirdId".equals(thirdSysId)) {
udiRelevanceEntity1.setThirdId(onhandQueryResponse.getCode());
udiRelevanceEntity1.setThirdName(onhandQueryResponse.getName());
} else if ("thirdId1".equals(thirdSysId)) {
udiRelevanceEntity1.setThirdId1(onhandQueryResponse.getCode());
udiRelevanceEntity1.setThirdName1(onhandQueryResponse.getName());
} else if ("thirdId2".equals(thirdSysId)) {
udiRelevanceEntity1.setThirdId4(onhandQueryResponse.getCode());
udiRelevanceEntity1.setThirdName4(onhandQueryResponse.getName());
} else if ("thirdId3".equals(thirdSysId)) {
udiRelevanceEntity1.setThirdId3(onhandQueryResponse.getCode());
udiRelevanceEntity1.setThirdName3(onhandQueryResponse.getName());
} else if ("thirdId4".equals(thirdSysId)) {
udiRelevanceEntity1.setThirdId4(onhandQueryResponse.getCode());
udiRelevanceEntity1.setThirdName4(onhandQueryResponse.getName());
}
udiRelevanceEntity1.setThirdId(onhandQueryResponse.getCode());
udiRelevanceEntity1.setThirdName(onhandQueryResponse.getName());
udiRelevanceEntity1.setUpdateTime(DateUtil.getDateTime());
udiRelevanceEntity1.setId(gennerOrderUtils.getRelId() + "");
udiRelevanceService.insertUdiRelevance(udiRelevanceEntity1);
}
public void addRl(ErpInvProductResponse onhandQueryResponse, String
thirdSysId, ThrProductsEntity erpProductsResponse) {
UdiInfoEntity udiInfoEntity = new UdiInfoEntity();
udiInfoEntity.setNameCode(onhandQueryResponse.getCode());
udiInfoEntity.setCpmctymc(onhandQueryResponse.getName());
udiInfoEntity.setGgxh(onhandQueryResponse.getSpec());
udiInfoEntity.setUuid(CustomUtil.getUUId());
udiInfoEntity.setProductType(ConstantStatus.PRODUCT_TYPE_THIRD);
udiInfoEntity.setDiType(ConstantStatus.DI_TYPE_MAIN);
udiInfoEntity.setManufactory(erpProductsResponse.getManufactory());
udiInfoEntity.setYlqxzcrbarmc(erpProductsResponse.getManufactory());
udiInfoEntity.setZczbhhzbapzbh(erpProductsResponse.getRegisterNo());
udiInfoService.insertUdiInfo(udiInfoEntity);
UdiRelevanceEntity udiRelevanceEntity1 = new UdiRelevanceEntity();
udiRelevanceEntity1.setUuid(udiInfoEntity.getUuid());
if ("thirdId".equals(thirdSysId)) {
udiRelevanceEntity1.setThirdId(onhandQueryResponse.getCode());
udiRelevanceEntity1.setThirdName(onhandQueryResponse.getName());
} else if ("thirdId1".equals(thirdSysId)) {
udiRelevanceEntity1.setThirdId1(onhandQueryResponse.getCode());
udiRelevanceEntity1.setThirdName1(onhandQueryResponse.getName());
} else if ("thirdId2".equals(thirdSysId)) {
udiRelevanceEntity1.setThirdId4(onhandQueryResponse.getCode());
udiRelevanceEntity1.setThirdName4(onhandQueryResponse.getName());
} else if ("thirdId3".equals(thirdSysId)) {
udiRelevanceEntity1.setThirdId3(onhandQueryResponse.getCode());
udiRelevanceEntity1.setThirdName3(onhandQueryResponse.getName());
} else if ("thirdId4".equals(thirdSysId)) {
udiRelevanceEntity1.setThirdId4(onhandQueryResponse.getCode());
udiRelevanceEntity1.setThirdName4(onhandQueryResponse.getName());
}
udiRelevanceEntity1.setThirdId(onhandQueryResponse.getCode());
udiRelevanceEntity1.setThirdName(onhandQueryResponse.getName());
udiRelevanceEntity1.setUpdateTime(DateUtil.getDateTime());
udiRelevanceEntity1.setId(gennerOrderUtils.getRelId() + "");
udiRelevanceService.insertUdiRelevance(udiRelevanceEntity1);
}
}

@ -144,6 +144,7 @@ public class BasicUpdateProductService {
udiRelevanceEntity1.setMainId(udiRelevanceEntity1.getThirdId4());
udiRelevanceEntity1.setMainName(udiRelevanceEntity1.getThirdName4());
}
udiRelevanceEntity1.setPrice(thrProductsEntity.getPrice());
udiRelevanceEntity1.setId(gennerOrderUtils.getRelId() + "");
udiRelevanceService.insertUdiRelevance(udiRelevanceEntity1);
}

@ -1,6 +1,7 @@
package com.glxp.api.admin.thread;
import com.glxp.api.admin.entity.basic.CompanyProductRelevanceEntity;
import com.glxp.api.admin.entity.basic.UdiRelevanceEntity;
import com.glxp.api.admin.req.basic.UdiInfoExportRequest;
import com.glxp.api.admin.service.basic.UdiRelevanceService;
import com.glxp.api.admin.service.info.CompanyProductRelevanceService;
@ -24,7 +25,11 @@ public class CompanyProductsRelService {
if (udiInfoExportRequest.getRlIds() != null && udiInfoExportRequest.getRlIds().size() > 0) {
List<String> rlIdS = udiInfoExportRequest.getRlIds();
for (String uuid : rlIdS) {
CompanyProductRelevanceEntity companyProductRelevanceEntity = new CompanyProductRelevanceEntity();
UdiRelevanceEntity udiRelevanceEntity = udiRelevanceService.selectById(uuid);
if (udiRelevanceEntity != null)
companyProductRelevanceEntity.setPrice(udiRelevanceEntity.getPrice());
companyProductRelevanceEntity.setCreate_time(new Date());
companyProductRelevanceEntity.setUpdate_time(new Date());
companyProductRelevanceEntity.setAuditStatus("3");

@ -42,6 +42,7 @@ import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.TransactionIsolationLevel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@ -257,9 +258,11 @@ public class DlBasicService {
//业务单据
if (CollUtil.isNotEmpty(syncDataResponse.getBussinessLocalTypeEntities())) {
try {
List<BussinessLocalTypeEntity> bussinessLocalTypeEntities = syncDataResponse.getBussinessLocalTypeEntities();
List<SpsBusLoclTypeResponse> spsBusLoclTypeResponses = syncDataResponse.getBussinessLocalTypeEntities();
BussinessLocalTypeDao mapper = batchSession.getMapper(BussinessLocalTypeDao.class);
for (BussinessLocalTypeEntity bussinessTypeEntity : bussinessLocalTypeEntities) {
for (SpsBusLoclTypeResponse spsBusLoclTypeResponse : spsBusLoclTypeResponses) {
BussinessLocalTypeEntity bussinessTypeEntity = new BussinessLocalTypeEntity();
BeanUtils.copyProperties(spsBusLoclTypeResponse,bussinessTypeEntity);
bussinessTypeEntity.setUpdateTime(null);
mapper.insertBussinessType(bussinessTypeEntity);
}

@ -765,6 +765,9 @@ public class IoTransInoutService {
orderEntity.setUpdateTime(new Date());
orderEntity.setErpFk(stockOrderEntity.getBillNo());
orderService.updateOrder(orderEntity);
if (stockOrderEntity.getStatus().equals(ConstantStatus.SORDER_DELIVER)) {
invProductsTrService.genInvProducts(orderEntity.getId());
}
} else {
orderEntity.setRemark("该产品DI绑定多个产品ID请在扫码单据详情绑定对应产品ID");
orderEntity.setContrastStatus(ConstantStatus.ORDER_CHECK_FAIL);
@ -832,7 +835,7 @@ public class IoTransInoutService {
}
} else {
stockOrderEntity.setStatus(ConstantStatus.SORDER_DELIVER);
invProductsTrService.genInvProducts(orderEntity.getId());
// invProductsTrService.genInvProducts(orderEntity.getId());
}
stockOrderEntity.setSupplementNo(orderEntity.getSupplementNo());
stockOrderEntity.setCorpName(orderEntity.getFromCorp());

@ -13,6 +13,7 @@ import com.glxp.api.admin.entity.inventory.InvWarehouseEntity;
import com.glxp.api.admin.entity.thrsys.*;
import com.glxp.api.admin.req.basic.*;
import com.glxp.api.admin.req.inout.OrderFilterRequest;
import com.glxp.api.admin.req.inout.OrderQueryRequest;
import com.glxp.api.admin.req.inventory.FilterInvWarehouseRequest;
import com.glxp.api.admin.req.receipt.BussinessTypeFilterRequest;
import com.glxp.api.admin.req.thrsys.*;
@ -194,7 +195,14 @@ public class UpBasicService {
BussinessLocalTypeFilterRequest bussinessLocalTypeFilterRequest = new BussinessLocalTypeFilterRequest();
BeanUtils.copyProperties(basicExportStatusTimeEntity, bussinessLocalTypeFilterRequest);
List<BussinessLocalTypeEntity> bussinessLocalTypeEntities = bussinessLocalTypeService.filterAllList(bussinessLocalTypeFilterRequest);
spsSyncBusResponse.setBussinessLocalTypeEntities(bussinessLocalTypeEntities);
List<SpsBusLoclTypeResponse> spsBusLoclTypeResponses = new ArrayList<>();
bussinessLocalTypeEntities.forEach(bussinessLocalTypeEntity ->
{
SpsBusLoclTypeResponse spsBusLoclTypeResponse = new SpsBusLoclTypeResponse();
BeanUtils.copyProperties(bussinessLocalTypeEntity, spsBusLoclTypeResponse);
spsBusLoclTypeResponses.add(spsBusLoclTypeResponse);
});
spsSyncBusResponse.setBussinessLocalTypeEntities(spsBusLoclTypeResponses);
}
//第三方单据类型
@ -227,7 +235,7 @@ public class UpBasicService {
basicExportStatusTimeEntity = new BasicExportStatusTimeEntity();
basicExportStatusTimeEntity.setLastUpdateTime("1949-10-01 09:00:00");
}
OrderFilterRequest orderFilterRequest = new OrderFilterRequest();
OrderQueryRequest orderFilterRequest = new OrderQueryRequest();
BeanUtils.copyProperties(basicExportStatusTimeEntity, orderFilterRequest);
orderFilterRequest.setStatus(ConstantStatus.ORDER_STATUS_SUCCESS);
List<OrderEntity> orderEntities = orderService.findAllByTime(orderFilterRequest);

@ -90,6 +90,21 @@ public class SpGetHttp {
}
}
public BaseResponse<String> testConnect() {
Map<String, Object> paramMap = new HashMap<>(16);
String response = UHttpClient.mipsGet(spsSyncUrl + "/sps/sync/connect/test", paramMap);
try {
BaseResponse<String> data =
JSONObject.parseObject(response, new TypeReference<BaseResponse<String>>() {
});
return data;
} catch (Exception e) {
e.printStackTrace();
return ResultVOUtils.error(500, "网络错误!");
}
}
public BaseResponse<List<BasicExportStatusEntity>> getBasicStatus(BasicExportStatusRequest basicExportStatusRequest) {
Map<String, Object> paramMap = new HashMap<>(16);
if (basicExportStatusRequest.getType() != null)
@ -114,15 +129,11 @@ public class SpGetHttp {
}
//获取耗材字典
public String getBasicData(String id, int type) {
BasicExportStatusRequest basicExportStatusRequest = new BasicExportStatusRequest();
basicExportStatusRequest.setId(id);
basicExportStatusRequest.setType(type);
String result = UHttpClient.postJson(spsSyncUrl + "/spssync/basic/udiinfo/downloadByStatus", basicExportStatusRequest);
// BaseResponse<UdiRelevanceExportJsonResponse> response =
// JSONObject.parseObject(result, new TypeReference<BaseResponse<UdiRelevanceExportJsonResponse>>() {
// });
return result;
}

@ -51,6 +51,12 @@
WHERE scAction = #{scAction}
</delete>
<delete id="deleteByLocaAction" parameterType="Map">
DELETE
FROM basic_bustype_pre
WHERE `action` = #{action}
</delete>
<select id="selectById" parameterType="Map" resultType="com.glxp.api.admin.entity.basic.BussinessChangeTypeEntity">
select *
FROM basic_bustype_pre

@ -12,7 +12,7 @@
basic_udirel.thirdName1,basic_udirel.thirdName2,basic_udirel.thirdName3,basic_udirel.thirdName4,
basic_udirel.manufactory,basic_udirel.measname,basic_udirel.ybbm,basic_udirel.sptm,
basic_udirel.isDisable, basic_udirel.isLock,basic_udirel.lockStatus,basic_udirel.udplatCode,
basic_udirel.isAdavence,basic_udirel.mainId,basic_udirel.allowNoBatch,
basic_udirel.isAdavence,basic_udirel.mainId,basic_udirel.allowNoBatch,basic_udirel.price,
basic_products.nameCode,basic_products.packRatio,basic_products.packLevel,
basic_products.bhxjsl,basic_products.bhzxxsbzsl,basic_products.zxxsbzbhsydysl,
basic_products.bhxjcpbm,basic_products.bzcj,
@ -97,7 +97,7 @@
basic_udirel.thirdName1,basic_udirel.thirdName2,basic_udirel.thirdName3,basic_udirel.thirdName4,
basic_udirel.manufactory,basic_udirel.measname,basic_udirel.ybbm,basic_udirel.sptm,
basic_udirel.isDisable, basic_udirel.isLock,basic_udirel.lockStatus,basic_udirel.udplatCode,
basic_udirel.isAdavence,basic_udirel.mainId,basic_udirel.allowNoBatch,
basic_udirel.isAdavence,basic_udirel.mainId,basic_udirel.allowNoBatch,basic_udirel.price,
basic_products.nameCode,basic_products.packRatio,basic_products.packLevel,
basic_products.bhxjsl,basic_products.bhzxxsbzsl,basic_products.zxxsbzbhsydysl,
basic_products.bhxjcpbm,basic_products.bzcj,
@ -187,7 +187,7 @@
basic_udirel.ybbm,basic_udirel.sptm,basic_udirel.isDisable, basic_udirel.isLock,basic_udirel.lockStatus,
basic_udirel.thirdName1,basic_udirel.thirdName2,basic_udirel.thirdName3,basic_udirel.thirdName4,
basic_udirel.manufactory,basic_udirel.measname,basic_udirel.udplatCode,basic_udirel.allowNoBatch,
basic_products.nameCode,basic_products.packRatio,basic_products.packLevel,basic_products.bhxjsl,
basic_products.nameCode,basic_products.packRatio,basic_products.packLevel,basic_products.bhxjsl,basic_udirel.price,
basic_products.bhzxxsbzsl,basic_products.zxxsbzbhsydysl,basic_products.bhxjcpbm,basic_products.bzcj,
basic_products.addType,basic_products.deviceRecordKey,basic_products.cpmctymc,basic_products.cplb,
basic_products.flbm,basic_products.ggxh,basic_products.qxlb,basic_products.tyshxydm,basic_products.ylqxzcrbarmc,
@ -393,7 +393,7 @@
(id,
thirdId,thirdName,uuid,isUseDy,updateTime,
thirdId1,thirdId2,thirdId3,thirdId4,thirdName1,thirdName2,thirdName3,thirdName4,manufactory,measname,ybbm,sptm,isDisable,isLock
,mainId,mainName,lockStatus,udplatCode,isAdavence,supName,allowNoBatch
,mainId,mainName,lockStatus,udplatCode,isAdavence,supName,allowNoBatch,price
)
values
(
@ -422,7 +422,7 @@
#{lockStatus},
#{udplatCode},
#{isAdavence},
#{supName},#{allowNoBatch}
#{supName},#{allowNoBatch},#{price}
)
</insert>
@ -434,7 +434,7 @@
(id,
thirdId,thirdName,uuid,isUseDy,updateTime,
thirdId1,thirdId2,thirdId3,thirdId4,thirdName1,thirdName2,thirdName3,thirdName4,manufactory,measname,ybbm,sptm,isDisable,isLock
,mainId,mainName,lockStatus,udplatCode,isAdavence,supName,allowNoBatch
,mainId,mainName,lockStatus,udplatCode,isAdavence,supName,allowNoBatch,price
)
values
(
@ -463,7 +463,7 @@
#{lockStatus},
#{udplatCode},
#{isAdavence},
#{supName},#{allowNoBatch}
#{supName},#{allowNoBatch},#{price}
)
</insert>
<delete id="deleteById" parameterType="Map">
@ -512,6 +512,7 @@
<if test="isAdavence != null">isAdavence=#{isAdavence},</if>
<if test="supName != null">supName=#{supName},</if>
<if test="allowNoBatch != null">allowNoBatch=#{allowNoBatch},</if>
<if test="price != null">price=#{price},</if>
</trim>
WHERE id = #{id}
@ -535,7 +536,7 @@
<insert id="importUdiRelevance" parameterType="java.util.List">
replace into basic_udirel (id, thirdId, thirdName, uuid, isUseDy, updateTime, thirdId1, thirdId2, thirdId3,
thirdId4, thirdName1, thirdName2, thirdName3, thirdName4, ybbm, sptm, manufactory,
measname, isDisable, mainId, mainName, udplatCode,supName,allowNoBatch)
measname, isDisable, mainId, mainName, udplatCode,supName,allowNoBatch,price)
values
<foreach collection="udiRelevanceEntities" item="item" index="index" separator=",">
(#{item.id},
@ -559,7 +560,7 @@
#{item.isDisable},
#{item.mainId},
#{item.mainName},
#{item.udplatCode},#{item.supName},#{item.allowNoBatch})
#{item.udplatCode},#{item.supName},#{item.allowNoBatch},#{item.price})
</foreach>
</insert>
</mapper>

@ -32,6 +32,12 @@
<if test="lastUpdateTime!=null and lastUpdateTime!=''">
<![CDATA[ and DATE_FORMAT(updateTime, '%Y-%m-%d %H:%i:%S')>= DATE_FORMAT(#{lastUpdateTime}, '%Y-%m-%d %H:%i:%S') ]]>
</if>
<if test="filterActions!=null">
and `action` in
<foreach collection="filterActions" item="item" index="index" separator="," open="(" close=")">
#{item}
</foreach>
</if>
</where>
</select>
<select id="listOrderRepeat" parameterType="com.glxp.api.admin.req.inout.OrderQueryRequest"

@ -94,7 +94,7 @@
INTO thr_products
(code, `name`, measname, spec, registerNo, manufactory,
cplb, flbm, qxlb, ybbm, sptm, tyshxydm, zczbhhzbapzbh, ylqxzcrbarmc, ylqxzcrbarywmc, cpms,
thirdSysFk, updateTime, supName, model, standard, qtbm, zczyxqz, remark, remark1, remark2, remark3)
thirdSysFk, updateTime, supName, model, standard, qtbm, zczyxqz, remark, remark1, remark2, remark3,price)
values (
#{code},
#{name},
@ -122,7 +122,7 @@
#{remark},
#{remark1},
#{remark2},
#{remark3}
#{remark3},#{price}
)
</insert>
@ -130,7 +130,7 @@
replace INTO thr_products
(code, `name`, measname, spec, registerNo, manufactory,
cplb, flbm, qxlb, ybbm, sptm, tyshxydm, zczbhhzbapzbh, ylqxzcrbarmc, ylqxzcrbarywmc, cpms,
thirdSysFk, updateTime, supName, model, standard, qtbm, zczyxqz, remark, remark1, remark2, remark3)
thirdSysFk, updateTime, supName, model, standard, qtbm, zczyxqz, remark, remark1, remark2, remark3,price)
values
<foreach collection="thrProductsEntities" item="item" index="index"
@ -145,7 +145,7 @@
#{item.tyshxydm}, #{item.zczbhhzbapzbh}, #{item.ylqxzcrbarmc}, #{item.ylqxzcrbarywmc}, #{item.cpms},
#{item.thirdSysFk}, #{item.updateTime}, #{item.supName}, #{item.model}, #{item.standard},#{item.qtbm},
#{item.zczyxqz},
#{item.remark}, #{item.remark1}, #{item.remark2}, #{item.remark3})
#{item.remark}, #{item.remark1}, #{item.remark2}, #{item.remark3},#{item.price})
</foreach>
</insert>
@ -184,6 +184,8 @@
<if test="remark1 != null">remark1=#{remark1},</if>
<if test="remark2 != null">remark2=#{remark2},</if>
<if test="remark3 != null">remark3=#{remark3},</if>
<if test="price != null">price=#{price},</if>
</trim>
WHERE id = #{id}
</update>
@ -197,7 +199,7 @@
replace into thr_products (id, code, name, measname, spec, registerNo, manufactory, thirdSysFk, cplb, flbm,
qxlb, ybbm, sptm, tyshxydm, zczbhhzbapzbh, ylqxzcrbarmc, ylqxzcrbarywmc, cpms,
updateTime, supName, model, standard, qtbm, zczyxqz, remark, remark1, remark2,
remark3) VALUES
remark3,price) VALUES
<foreach collection="thrProductsEntities" item="item" index="index" separator=",">
(#{item.id},
#{item.code},
@ -225,7 +227,7 @@
#{item.remark},
#{item.remark1},
#{item.remark2},
#{item.remark3})
#{item.remark3},#{item.price})
</foreach>
</insert>
</mapper>
Loading…
Cancel
Save