Merge remote-tracking branch 'origin/dev_price' into 20231126-yw

20231126-yw
yuanwei 1 year ago
commit f44b5e9727

@ -7,7 +7,6 @@ import com.glxp.api.dao.system.DbVersionDao;
import com.glxp.api.entity.system.DbVersionEntity; import com.glxp.api.entity.system.DbVersionEntity;
import com.glxp.api.entity.system.SchemaData; import com.glxp.api.entity.system.SchemaData;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.ApplicationArguments; import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner; import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order; import org.springframework.core.annotation.Order;
@ -27,16 +26,10 @@ public class HdSchemaExecutor implements ApplicationRunner {
@Resource @Resource
DbVersionDao hdCommonDao; DbVersionDao hdCommonDao;
@Value("${initSql:true}")
private boolean initSql;
private List<SchemaData> schema = new ArrayList<>(); private List<SchemaData> schema = new ArrayList<>();
@Override @Override
public void run(ApplicationArguments args) throws Exception { public void run(ApplicationArguments args) throws Exception {
if (!initSql) {
return;
}
//初始版本列表 //初始版本列表
buildSchemas(); buildSchemas();
//定义sql文件路径 //定义sql文件路径
@ -49,7 +42,7 @@ public class HdSchemaExecutor implements ApplicationRunner {
String sql = IoUtil.readUtf8(inputStream); String sql = IoUtil.readUtf8(inputStream);
try { try {
//判断版本表是否存在 //判断版本表是否存在
int count = hdCommonDao.selectTableExist("sys_db_version"); int count = hdCommonDao.selectTableExist("hd_version");
if (count == 0) { if (count == 0) {
hdCommonDao.updateSql(sql); hdCommonDao.updateSql(sql);
} }
@ -84,5 +77,7 @@ public class HdSchemaExecutor implements ApplicationRunner {
// schema.add(new SchemaData("v2.1", "schema_v2.1.sql")); // schema.add(new SchemaData("v2.1", "schema_v2.1.sql"));
// schema.add(new SchemaData("v2.2", "schema_v2.2.sql")); // schema.add(new SchemaData("v2.2", "schema_v2.2.sql"));
schema.add(new SchemaData("v2.3", "schema_v2.3.sql")); schema.add(new SchemaData("v2.3", "schema_v2.3.sql"));
// schema.add(new SchemaData("v2.4", "schema_v2.4.sql"));
} }
} }

@ -36,6 +36,7 @@ import com.glxp.api.service.inv.InvProductService;
import com.glxp.api.service.system.SystemParamConfigService; import com.glxp.api.service.system.SystemParamConfigService;
import com.glxp.api.service.thrsys.ThrDataService; import com.glxp.api.service.thrsys.ThrDataService;
import com.glxp.api.service.thrsys.ThrSystemService; import com.glxp.api.service.thrsys.ThrSystemService;
import com.glxp.api.util.IntUtil;
import com.glxp.api.util.udi.FilterUdiUtils; import com.glxp.api.util.udi.FilterUdiUtils;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.validation.BindingResult; import org.springframework.validation.BindingResult;
@ -343,6 +344,7 @@ public class UdiRelevanceController extends BaseController {
udiProductEntity.setAllowNoProduct(udiRelevanceSaveRequest.getAllowNoProduct()); udiProductEntity.setAllowNoProduct(udiRelevanceSaveRequest.getAllowNoProduct());
udiProductEntity.setAllowNoSerial(udiRelevanceSaveRequest.getAllowNoSerial()); udiProductEntity.setAllowNoSerial(udiRelevanceSaveRequest.getAllowNoSerial());
udiProductEntity.setZxxsbzbhsydysl(udiRelevanceEntity.getUseNum()); udiProductEntity.setZxxsbzbhsydysl(udiRelevanceEntity.getUseNum());
udiProductEntity.setGroupBuy(udiRelevanceSaveRequest.getGroupBuy());
udiProductEntity.setBasicPrductRemak1(udiRelevanceSaveRequest.getBasicPrductRemak1()); udiProductEntity.setBasicPrductRemak1(udiRelevanceSaveRequest.getBasicPrductRemak1());
udiProductEntity.setBasicPrductRemak2(udiRelevanceSaveRequest.getBasicPrductRemak2()); udiProductEntity.setBasicPrductRemak2(udiRelevanceSaveRequest.getBasicPrductRemak2());
udiProductEntity.setBasicPrductRemak3(udiRelevanceSaveRequest.getBasicPrductRemak3()); udiProductEntity.setBasicPrductRemak3(udiRelevanceSaveRequest.getBasicPrductRemak3());
@ -715,7 +717,7 @@ public class UdiRelevanceController extends BaseController {
boolean falg = udiProductService.updateUdiInfoById(udiProductEntity); boolean falg = udiProductService.updateUdiInfoById(udiProductEntity);
UdiRelevanceEntity udiRelevanceEntity = new UdiRelevanceEntity(); UdiRelevanceEntity udiRelevanceEntity = new UdiRelevanceEntity();
udiRelevanceEntity.setId(udiProductEntity.getUid()); udiRelevanceEntity.setId(udiProductEntity.getUid());
udiRelevanceEntity.setGroupBuy(udiProductEntity.isGroupBuy()); udiRelevanceEntity.setGroupBuy(IntUtil.value(udiProductEntity.getGroupBuy()));
boolean b = udiRelevanceService.updateUdiRelevance(udiRelevanceEntity); boolean b = udiRelevanceService.updateUdiRelevance(udiRelevanceEntity);
if (udiProductEntity.getRelSupId() != null) { if (udiProductEntity.getRelSupId() != null) {
UdiRlSupEntity udiRlSupEntity = new UdiRlSupEntity(); UdiRlSupEntity udiRlSupEntity = new UdiRlSupEntity();

@ -244,6 +244,7 @@ public class UdiRlSupController extends BaseController {
UdiRelevanceEntity udiRelevanceEntity = new UdiRelevanceEntity(); UdiRelevanceEntity udiRelevanceEntity = new UdiRelevanceEntity();
udiRelevanceEntity.setId(Long.parseLong(rlidStr)); udiRelevanceEntity.setId(Long.parseLong(rlidStr));
udiRelevanceEntity.setLockStatus(1); udiRelevanceEntity.setLockStatus(1);
udiRelevanceEntity.setGroupBuy(udiInfoExportRequest.getSupplementRequest().getGroupBuy());
udiRelevanceService.updateUdiRelevance(udiRelevanceEntity); udiRelevanceService.updateUdiRelevance(udiRelevanceEntity);
UdiProductEntity udiProductEntity = new UdiProductEntity(); UdiProductEntity udiProductEntity = new UdiProductEntity();
BeanUtil.copyProperties(udiInfoExportRequest.getSupplementRequest(), udiProductEntity); BeanUtil.copyProperties(udiInfoExportRequest.getSupplementRequest(), udiProductEntity);

@ -437,7 +437,7 @@ public class SupCertController {
supData.put("status", obj.getStatus() == 0 ? "有效" : "失效"); supData.put("status", obj.getStatus() == 0 ? "有效" : "失效");
supData.put("auditStatus", getAuditStatus(obj.getAuditStatus())); supData.put("auditStatus", getAuditStatus(obj.getAuditStatus()));
supData.put("remark", obj.getRemark() == null ? ' ' : obj.getRemark()); supData.put("remark", obj.getRemark() == null ? ' ' : obj.getRemark());
supData.put("filePath", filePath + "register/image2/" + url); supData.put("filePath", filePath + "register/file/image2/" + url);
list.add(supData); list.add(supData);
i++; i++;
} }
@ -553,7 +553,7 @@ public class SupCertController {
supData.put("status", obj.getStatus() == 0 ? "有效" : "失效"); supData.put("status", obj.getStatus() == 0 ? "有效" : "失效");
supData.put("auditStatus", getAuditStatus(obj.getAuditStatus())); supData.put("auditStatus", getAuditStatus(obj.getAuditStatus()));
supData.put("remark2", obj.getRemark() == null ? ' ' : obj.getRemark()); supData.put("remark2", obj.getRemark() == null ? ' ' : obj.getRemark());
supData.put("filePath", filePath + "register/image2/" + url); supData.put("filePath", filePath + "register/file/image2/" + url);
list.add(supData); list.add(supData);
i++; i++;
} }
@ -619,7 +619,7 @@ public class SupCertController {
supData.put("status", obj.getStatus() == 0 ? "有效" : "失效"); supData.put("status", obj.getStatus() == 0 ? "有效" : "失效");
supData.put("auditStatus", getAuditStatus(obj.getAuditStatus())); supData.put("auditStatus", getAuditStatus(obj.getAuditStatus()));
supData.put("remark2", obj.getRemark() == null ? ' ' : obj.getRemark()); supData.put("remark2", obj.getRemark() == null ? ' ' : obj.getRemark());
supData.put("filePath", filePath + "register/image2/" + url); supData.put("filePath", filePath + "register/file/image2/" + url);
list.add(supData); list.add(supData);
i++; i++;
} }

@ -177,6 +177,7 @@ public class SupProductController {
supProductEntity.setProductType(udiRelevanceResponse.getQxlb()); supProductEntity.setProductType(udiRelevanceResponse.getQxlb());
supProductEntity.setProductDirectoryCode(udiRelevanceResponse.getFlbm()); supProductEntity.setProductDirectoryCode(udiRelevanceResponse.getFlbm());
supProductEntity.setRecordPeopleName(udiRelevanceResponse.getYlqxzcrbarmc()); supProductEntity.setRecordPeopleName(udiRelevanceResponse.getYlqxzcrbarmc());
supProductEntity.setManufactory(selectProductBindRequest.getCompanyName());
supProductEntity.setSpecification(udiRelevanceResponse.getGgxh()); supProductEntity.setSpecification(udiRelevanceResponse.getGgxh());
supProductEntity.setCreateTime(new Date()); supProductEntity.setCreateTime(new Date());
supProductEntity.setUpdateTime(new Date()); supProductEntity.setUpdateTime(new Date());

@ -224,6 +224,8 @@ public class ThrProductsAddDiController {
udiProductEntity.setBasicPrductRemak6(thrProductsAddDiResponse.getBasicPrductRemak6()); udiProductEntity.setBasicPrductRemak6(thrProductsAddDiResponse.getBasicPrductRemak6());
udiProductEntity.setBasicPrductRemak7(thrProductsAddDiResponse.getBasicPrductRemak7()); udiProductEntity.setBasicPrductRemak7(thrProductsAddDiResponse.getBasicPrductRemak7());
udiProductEntity.setBasicPrductRemak8(thrProductsAddDiResponse.getBasicPrductRemak8()); udiProductEntity.setBasicPrductRemak8(thrProductsAddDiResponse.getBasicPrductRemak8());
udiProductEntity.setGroupBuy(thrProductsAddDiResponse.getGroupBuy());
udiRelevanceEntity.setGroupBuy(thrProductsAddDiResponse.getGroupBuy());
udiProductEntity.setNameCode(null); udiProductEntity.setNameCode(null);
udiProductService.updateUdiInfoByUuid(udiProductEntity); udiProductService.updateUdiInfoByUuid(udiProductEntity);
UdiRelevanceEntity udiRelevanceEntity1 = new UdiRelevanceEntity(); UdiRelevanceEntity udiRelevanceEntity1 = new UdiRelevanceEntity();

@ -30,4 +30,7 @@ public interface IoOrderDetailResultDao extends BaseMapperPlus<IoOrderDetailResu
List<CptTraceOrderResponse> cptTrace(CptTraceRequest cptTraceRequest); List<CptTraceOrderResponse> cptTrace(CptTraceRequest cptTraceRequest);
List<CptTraceOrderResponse> cptCodeTrace(CptTraceRequest cptTraceRequest);
} }

@ -99,7 +99,7 @@ public class BasicCorpEntity {
private String thirdName4; private String thirdName4;
/** /**
* 1.23,4. * 1.23,4.
*/ */
@TableField(value = "corpType") @TableField(value = "corpType")
private Integer corpType; private Integer corpType;

@ -348,6 +348,9 @@ public class BasicProductsEntity {
@TableField(value = "remark") @TableField(value = "remark")
private String remark; private String remark;
@TableField(value = "cphhhbh")
private String cphhhbh;
public static final String COL_ID = "id"; public static final String COL_ID = "id";
public static final String COL_UUID = "uuid"; public static final String COL_UUID = "uuid";

@ -95,7 +95,7 @@ public class UdiProductEntity {
private Long relSupId; private Long relSupId;
private boolean groupBuy; private Boolean groupBuy;
private Long uid; private Long uid;

@ -282,6 +282,11 @@ public class ThrProductsAddDiEntity {
@ApiModelProperty(value = "关联ID主键") @ApiModelProperty(value = "关联ID主键")
private String relId; private String relId;
@TableField(value = "groupBuy")
@ApiModelProperty(value = "集采")
private Boolean groupBuy;
/** /**
* 12 * 12
*/ */

@ -14,6 +14,9 @@ public class FilterInvWarehouseRequest extends ListPageRequest {
private String code; private String code;
private String name; private String name;
private String deptCode; private String deptCode;
/**
* 1:23
*/
private Integer advanceType; private Integer advanceType;
private Boolean isDefault; private Boolean isDefault;
private Date updateTime; private Date updateTime;

@ -5,7 +5,6 @@ import lombok.Data;
//选入产品补充信息 //选入产品补充信息
@Data @Data
public class SupplementRequest { public class SupplementRequest {
//补充信息: //补充信息:
private String basicPrductRemak1; private String basicPrductRemak1;
private String basicPrductRemak2; private String basicPrductRemak2;
@ -22,4 +21,5 @@ public class SupplementRequest {
private String spmc; private String spmc;
private String cpms; private String cpms;
private String price; private String price;
private Boolean groupBuy;
} }

@ -49,6 +49,7 @@ public class AddThrDiProductsRequest {
private String basicPrductRemak8; private String basicPrductRemak8;
private String deviceRecordKey; private String deviceRecordKey;
private Boolean groupBuy;
} }

@ -83,4 +83,6 @@ public class CompanyProductRelevanceResponse {
private String basicPrductRemak6; private String basicPrductRemak6;
private String basicPrductRemak7; private String basicPrductRemak7;
private String basicPrductRemak8; private String basicPrductRemak8;
private String cphhhbh;
} }

@ -119,7 +119,7 @@ public class UdiRelevanceResponse {
private String syqsfxyjxmj; private String syqsfxyjxmj;
private String mjfs; private String mjfs;
private String categoryName; private String categoryName;
private String cphhhbh;
public int getBhzxxsbzsl() { public int getBhzxxsbzsl() {
if (bhzxxsbzsl == null || bhzxxsbzsl == 0) { if (bhzxxsbzsl == null || bhzxxsbzsl == 0) {

@ -45,6 +45,7 @@ public class UdiRlDlResponse {
private String sptm; private String sptm;
private Integer productType; private Integer productType;
private String mainId; private String mainId;
private String cphhhbh;
public Integer getProductType() { public Integer getProductType() {
if (productType == null) return 0 if (productType == null) return 0

@ -94,6 +94,6 @@ public class UdiRlSupResponse {
private String classifyName; private String classifyName;
private boolean groupBuy; //是否集采产品 private boolean groupBuy; //是否集采产品
private String cphhhbh;
private Long uid; private Long uid;
} }

@ -23,6 +23,7 @@ public class InnerOrderPrintResponse {
private String ylqxzcrbarmc; private String ylqxzcrbarmc;
private String zczbhhzbapzbh; private String zczbhhzbapzbh;
private String warehouseName; private String warehouseName;
private String manufactory;
private String warehouseCode; private String warehouseCode;
private String spaceCode; private String spaceCode;
private String spaceName; private String spaceName;

@ -76,7 +76,10 @@ public class IoOrderDetailResultServiceImpl implements IoOrderDetailResultServic
@Override @Override
public List<CptTraceOrderResponse> cptTrace(CptTraceRequest cptTraceRequest) { public List<CptTraceOrderResponse> cptTrace(CptTraceRequest cptTraceRequest) {
return orderDetailResultDao.cptTrace(cptTraceRequest); if (StrUtil.isNotEmpty(cptTraceRequest.getSerialNo())) {
return orderDetailResultDao.cptCodeTrace(cptTraceRequest);
} else
return orderDetailResultDao.cptTrace(cptTraceRequest);
} }
} }

@ -147,10 +147,12 @@ public class SupProductServiceImpl extends ServiceImpl<SupProductDao, SupProduct
public boolean insertRegistration(SupProductEntity companyEntity) { public boolean insertRegistration(SupProductEntity companyEntity) {
return supProductDao.insert(companyEntity) > 0 ? true : false; return supProductDao.insert(companyEntity) > 0 ? true : false;
} }
@Override @Override
public int findProduct(SupProductEntity supProductEntity) { public int findProduct(SupProductEntity supProductEntity) {
return supProductDao.findProduct(supProductEntity); return supProductDao.findProduct(supProductEntity);
} }
@Override @Override
public boolean deleteById(String id) { public boolean deleteById(String id) {
return supProductDao.deleteById(id); return supProductDao.deleteById(id);

@ -295,7 +295,7 @@ public class SpsSyncDownloadService {
} }
exportStatus = BasicExportStatusEntity.builder() exportStatus = BasicExportStatusEntity.builder()
.id(CustomUtil.getId()) .id(CustomUtil.getId())
.status(syncTime == null ? BasicExportStatusEnum.WAIT_TRIGGERED.getCode() : BasicExportStatusEnum.WAIT_BUILT.getCode()) .status(BasicExportStatusEnum.WAIT_BUILT.getCode())
.idDatas(exportEnum.getKey()) .idDatas(exportEnum.getKey())
.type(exportEnum.getRemark()) .type(exportEnum.getRemark())
.scheduleType(0) .scheduleType(0)
@ -303,9 +303,9 @@ public class SpsSyncDownloadService {
.startTime(now) .startTime(now)
.build(); .build();
basicExportService.save(exportStatus); basicExportService.save(exportStatus);
if (syncTime != null) { // if (syncTime != null) {
createFileMethod.apply(applicationContext.getBean(this.getClass())); createFileMethod.apply(applicationContext.getBean(this.getClass()));
} // }
} else if (exportStatus.getStatus().equals(BasicExportStatusEnum.WAIT_BUILT.getCode())) {//文件待生成 } else if (exportStatus.getStatus().equals(BasicExportStatusEnum.WAIT_BUILT.getCode())) {//文件待生成
createFileMethod.apply(applicationContext.getBean(this.getClass())); createFileMethod.apply(applicationContext.getBean(this.getClass()));
} }

@ -122,7 +122,7 @@ public class ThrProductsAddDiService extends ServiceImpl<ThrProductsAddDiDao, Th
thrProductsAddDiEntity.setYlqxzcrbarmc(productInfoEntity.getYlqxzcrbarmc()); thrProductsAddDiEntity.setYlqxzcrbarmc(productInfoEntity.getYlqxzcrbarmc());
thrProductsAddDiEntity.setDeviceRecordKey(productInfoEntity.getDeviceRecordKey()); thrProductsAddDiEntity.setDeviceRecordKey(productInfoEntity.getDeviceRecordKey());
thrProductsAddDiEntity.setZczbhhzbapzbh(productInfoEntity.getZczbhhzbapzbh()); thrProductsAddDiEntity.setZczbhhzbapzbh(productInfoEntity.getZczbhhzbapzbh());
thrProductsAddDiEntity.setGroupBuy(thrDiProductsRequest.getGroupBuy());
//设置编辑区参数 //设置编辑区参数
thrProductsAddDiEntity.setSptm(thrDiProductsRequest.getSptm()); thrProductsAddDiEntity.setSptm(thrDiProductsRequest.getSptm());
thrProductsAddDiEntity.setYbbm(thrDiProductsRequest.getYbbm()); thrProductsAddDiEntity.setYbbm(thrDiProductsRequest.getYbbm());
@ -134,7 +134,7 @@ public class ThrProductsAddDiService extends ServiceImpl<ThrProductsAddDiDao, Th
thrProductsAddDiEntity.setCreateTime(date); thrProductsAddDiEntity.setCreateTime(date);
thrProductsAddDiEntity.setUpdateTime(new Date()); thrProductsAddDiEntity.setUpdateTime(new Date());
thrProductsAddDiEntity.setStatus(1); //未审核 thrProductsAddDiEntity.setStatus(1); //..
thrProductsAddDiEntity.setSelectThridSysStr(JSONUtil.toJsonStr(thrDiProductsRequest.getSelectThirdSys())); thrProductsAddDiEntity.setSelectThridSysStr(JSONUtil.toJsonStr(thrDiProductsRequest.getSelectThirdSys()));
list.add(thrProductsAddDiEntity); list.add(thrProductsAddDiEntity);
} }

@ -1,10 +1,13 @@
package com.glxp.api.upload; package com.glxp.api.upload;
import cn.hutool.core.exceptions.ExceptionUtil;
import com.glxp.api.common.enums.ResultEnum; import com.glxp.api.common.enums.ResultEnum;
import com.glxp.api.common.res.BaseResponse; import com.glxp.api.common.res.BaseResponse;
import com.glxp.api.common.util.ResultVOUtils; import com.glxp.api.common.util.ResultVOUtils;
import com.glxp.api.util.MinioUtil; import com.glxp.api.util.MinioUtil;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.exception.ExceptionUtils;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
@ -21,6 +24,7 @@ import java.util.UUID;
/** /**
* *
*/ */
@Slf4j
@RestController @RestController
public class uploadController { public class uploadController {
@ -41,7 +45,8 @@ public class uploadController {
*/ */
@PostMapping("/udiwms/upload/pdf/template/jasper") @PostMapping("/udiwms/upload/pdf/template/jasper")
public BaseResponse uploadPDFTemplate(@RequestParam("file") MultipartFile file) throws UnsupportedEncodingException { public BaseResponse uploadPDFTemplate(@RequestParam("file") MultipartFile file) {
log.error("上传jasper文件了");
if (file.isEmpty()) { if (file.isEmpty()) {
return ResultVOUtils.error(ResultEnum.DATA_ERROR, "上传文件不能为空"); return ResultVOUtils.error(ResultEnum.DATA_ERROR, "上传文件不能为空");
} }
@ -60,6 +65,8 @@ public class uploadController {
file1.mkdirs();// 创建多层目录 file1.mkdirs();// 创建多层目录
} }
file1 = new File(savePath + "/" + newName); file1 = new File(savePath + "/" + newName);
log.error("创建文件了");
try { try {
file.transferTo(file1); file.transferTo(file1);
Map<String, String> rMap = new HashMap<>(); Map<String, String> rMap = new HashMap<>();
@ -68,6 +75,7 @@ public class uploadController {
return ResultVOUtils.success(rMap); return ResultVOUtils.success(rMap);
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
log.error("异常" + ExceptionUtils.getStackTrace(e));
} }
return ResultVOUtils.error(ResultEnum.DATA_ERROR, "上传失败"); return ResultVOUtils.error(ResultEnum.DATA_ERROR, "上传失败");
} }

@ -2,12 +2,14 @@ package com.glxp.api.util;
import cn.hutool.json.JSONUtil; import cn.hutool.json.JSONUtil;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;
import net.sf.jasperreports.engine.*; import net.sf.jasperreports.engine.*;
import net.sf.jasperreports.engine.export.ooxml.JRDocxExporter; import net.sf.jasperreports.engine.export.ooxml.JRDocxExporter;
import net.sf.jasperreports.engine.query.JsonQueryExecuterFactory; import net.sf.jasperreports.engine.query.JsonQueryExecuterFactory;
import net.sf.jasperreports.engine.util.JRLoader; import net.sf.jasperreports.engine.util.JRLoader;
import net.sf.jasperreports.export.SimpleExporterInput; import net.sf.jasperreports.export.SimpleExporterInput;
import net.sf.jasperreports.export.SimpleOutputStreamExporterOutput; import net.sf.jasperreports.export.SimpleOutputStreamExporterOutput;
import org.apache.commons.lang3.exception.ExceptionUtils;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@ -28,6 +30,7 @@ import java.util.Map;
* @date 2021-11-10 22:23 * @date 2021-11-10 22:23
*/ */
@Component @Component
@Slf4j
public class JasperUtils { public class JasperUtils {
private static Logger logger = LoggerFactory.getLogger(JasperUtils.class); private static Logger logger = LoggerFactory.getLogger(JasperUtils.class);
@ -102,7 +105,7 @@ public class JasperUtils {
os.close(); os.close();
} }
} catch (Exception e) { } catch (Exception e) {
log.error(ExceptionUtils.getStackTrace(e));
e.printStackTrace(); e.printStackTrace();
} }

@ -78,6 +78,13 @@ public class SupplementVailUtil {
} }
} }
basicProductSetEntity = basicProductSetEntityMap.get("groupBuy");
if (isMustFill(type, basicProductSetEntity)) {
if (supplementRequest.getGroupBuy() == null) {
return "请选择是否集采";
}
}
basicProductSetEntity = basicProductSetEntityMap.get("basicPrductRemak1"); basicProductSetEntity = basicProductSetEntityMap.get("basicPrductRemak1");
if (isMustFill(type, basicProductSetEntity)) { if (isMustFill(type, basicProductSetEntity)) {
@ -131,6 +138,15 @@ public class SupplementVailUtil {
if (!systemParamConfigEntity.getParamValue().equals("0")) { if (!systemParamConfigEntity.getParamValue().equals("0")) {
return systemParamConfigEntity.getParamValue() + "不能为空"; return systemParamConfigEntity.getParamValue() + "不能为空";
} }
} else {
if (supplementRequest.getBasicPrductRemak6().equals("1")) {
if (StrUtil.isEmpty(supplementRequest.getBasicPrductRemak8())) {
SystemParamConfigEntity temp = systemParamConfigEntityMap.get("basicPrductRemak8");
if (!temp.getParamValue().equals("0")) {
return temp.getParamValue() + "不能为空";
}
}
}
} }
} }
basicProductSetEntity = basicProductSetEntityMap.get("basicPrductRemak7"); basicProductSetEntity = basicProductSetEntityMap.get("basicPrductRemak7");

@ -3,7 +3,7 @@ server:
spring: spring:
datasource: datasource:
driver-class-name: com.p6spy.engine.spy.P6SpyDriver driver-class-name: com.p6spy.engine.spy.P6SpyDriver
jdbc-url: jdbc:p6spy:mysql://127.0.0.1:3306/udi_spms_pt?allowMultiQueries=true&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true jdbc-url: jdbc:p6spy:mysql://127.0.0.1:3306/udi_spms_ct?allowMultiQueries=true&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
username: root username: root
password: 123456 password: 123456
hikari: hikari:

@ -13,7 +13,7 @@ spring:
redis: redis:
database: 10 database: 10
host: 127.0.0.1 host: 127.0.0.1
port: 6404 port: 6379
# password: 123456 # password: 123456
timeout: 300 timeout: 300
jedis: jedis:
@ -43,15 +43,20 @@ logging:
level: level:
com.glxp.api.dao: debug com.glxp.api.dao: debug
file_path: /udi/udiwms/udiwmsfile/
back_file_path: /share/udisps/back/ file_path: D:/udi/udiwms/udiwmsfile/
err_path: /udi/udiwms/err/ file_lpath: /udiwms/image/register/file/getImage
file_url: http://127.0.0.1:9993
minio_path: /udi
minio_url: http://139.9.219.60:9000
err_path: d:/udi/udiwms/err/
back_file_path: d:/share/udisps/back/
UDI_KEY: 6b137c66-6286-46c6-8efa-c2f5dd9237df UDI_KEY: 6b137c66-6286-46c6-8efa-c2f5dd9237df
UDI_SERVER_URL: https://www.udims.com/UDI_DL_Server_test UDI_SERVER_URL: https://www.udims.com/UDI_DL_Server_test
SPMS_KEY: lCOdWCBKS6Kw45wdnnqUTELXyuSKnXEs SPMS_KEY: lCOdWCBKS6Kw45wdnnqUTELXyuSKnXEs
API_KEY: 1101 API_KEY: 1101
API_SECRET: zBITspLNvuoEd4FaamlSoqxRHmNsmQ9L API_SECRET: zBITspLNvuoEd4FaamlSoqxRHmNsmQ9L
WEB_TITLE: 漳州市中医院 WEB_TITLE: 大田县总医院
WEBSOCKET_TOKEN: 07rKFDFkQvBkbxgc7aUBlONo4gWNdx8b WEBSOCKET_TOKEN: 07rKFDFkQvBkbxgc7aUBlONo4gWNdx8b

@ -7,6 +7,7 @@ spring:
multipart: multipart:
max-file-size: 200MB max-file-size: 200MB
max-request-size: 200MB max-request-size: 200MB
location: D:/tmp
mybatis-plus: mybatis-plus:
mapper-locations: classpath:mybatis/mapper/*/*.xml mapper-locations: classpath:mybatis/mapper/*/*.xml
configuration: configuration:
@ -31,6 +32,6 @@ server:
tomcat: tomcat:
max-http-form-post-size: 100MB max-http-form-post-size: 100MB
max-http-post-size: 100MB max-http-post-size: 100MB
max-http-header-size: 100MB max-http-header-size: 100MB

@ -92,6 +92,7 @@
basic_products.syqsfxyjxmj, basic_products.syqsfxyjxmj,
basic_products.mjfs, basic_products.mjfs,
basic_products.categoryName, basic_products.categoryName,
basic_products.cphhhbh,
basic_products.hchzsb basic_products.hchzsb
FROM (company_product_relevance FROM (company_product_relevance
inner JOIN basic_udirel inner JOIN basic_udirel
@ -674,6 +675,9 @@
<if test="basicPrductRemak8 != null"> <if test="basicPrductRemak8 != null">
basicPrductRemak8=#{basicPrductRemak8}, basicPrductRemak8=#{basicPrductRemak8},
</if> </if>
<if test="groupBuy != null">
groupBuy=#{groupBuy},
</if>
<if test="updateTime != null"> <if test="updateTime != null">
updateTime=#{updateTime}, updateTime=#{updateTime},
</if> </if>

@ -65,7 +65,8 @@
basic_products.sfwwjbz, basic_products.sfwwjbz,
basic_products.syqsfxyjxmj, basic_products.syqsfxyjxmj,
basic_products.mjfs, basic_products.mjfs,
basic_products.categoryName basic_products.categoryName,
basic_products.cphhhbh
FROM basic_udirel FROM basic_udirel
inner JOIN basic_products inner JOIN basic_products
ON basic_products.uuid = basic_udirel.uuid ON basic_products.uuid = basic_udirel.uuid
@ -325,7 +326,7 @@
basic_products.sfwwjbz, basic_products.sfwwjbz,
basic_products.syqsfxyjxmj, basic_products.syqsfxyjxmj,
basic_products.mjfs, basic_products.mjfs,
basic_products.categoryName, basic_products.categoryName,basic_products.cphhhbh,
company_product_relevance.unitFk, company_product_relevance.unitFk,
basic_corp.name companyName basic_corp.name companyName
FROM basic_udirel FROM basic_udirel
@ -463,7 +464,8 @@
basic_products.mjfs, basic_products.mjfs,
basic_products.categoryName, basic_products.categoryName,
basic_products.groupBuy, basic_products.groupBuy,
basic_products.basicPrductRemak8 basic_products.basicPrductRemak8,
basic_products.cphhhbh
FROM basic_products FROM basic_products
inner JOIN basic_udirel inner JOIN basic_udirel
ON basic_products.uuid = basic_udirel.uuid ON basic_products.uuid = basic_udirel.uuid
@ -645,7 +647,7 @@
basic_products.sfwwjbz, basic_products.sfwwjbz,
basic_products.syqsfxyjxmj, basic_products.syqsfxyjxmj,
basic_products.mjfs, basic_products.mjfs,
basic_products.categoryName basic_products.categoryName,basic_products.cphhhbh
FROM basic_products FROM basic_products
inner JOIN basic_udirel inner JOIN basic_udirel
ON basic_products.uuid = basic_udirel.uuid ON basic_products.uuid = basic_udirel.uuid
@ -820,7 +822,7 @@
basic_products.sfwwjbz, basic_products.sfwwjbz,
basic_products.syqsfxyjxmj, basic_products.syqsfxyjxmj,
basic_products.mjfs, basic_products.mjfs,
basic_products.categoryName basic_products.categoryName,basic_products.cphhhbh
from basic_udirel from basic_udirel
INNER JOIN basic_products on basic_udirel.uuid = basic_products.uuid INNER JOIN basic_products on basic_udirel.uuid = basic_products.uuid
<where> <where>
@ -1254,7 +1256,7 @@
basic_products.sfwwjbz, basic_products.sfwwjbz,
basic_products.syqsfxyjxmj, basic_products.syqsfxyjxmj,
basic_products.mjfs, basic_products.mjfs,
basic_products.categoryName basic_products.categoryName,basic_products.cphhhbh
FROM basic_udirel FROM basic_udirel
INNER JOIN basic_products INNER JOIN basic_products
on basic_udirel.uuid = basic_products.uuid on basic_udirel.uuid = basic_products.uuid
@ -1374,7 +1376,7 @@
basic_products.mjfs, basic_products.mjfs,
basic_products.categoryName, basic_products.categoryName,
company_product_relevance.unitFk, company_product_relevance.unitFk,
basic_corp.name companyName basic_corp.name companyName,basic_products.cphhhbh
FROM basic_udirel FROM basic_udirel
inner JOIN basic_products inner JOIN basic_products
ON basic_products.uuid = basic_udirel.uuid ON basic_products.uuid = basic_udirel.uuid

@ -102,6 +102,7 @@
basic_products.basicPrductRemak6, basic_products.basicPrductRemak6,
basic_products.basicPrductRemak7, basic_products.basicPrductRemak7,
basic_products.basicPrductRemak8, basic_products.basicPrductRemak8,
basic_products.cphhhbh,
basic_products.sfwblztlcp, basic_products.sfwblztlcp,
basic_products.cgzmraqxgxx, basic_products.cgzmraqxgxx,
basic_products.sfbjwycxsy, basic_products.sfbjwycxsy,
@ -109,9 +110,8 @@
basic_products.sfwwjbz, basic_products.sfwwjbz,
basic_products.syqsfxyjxmj, basic_products.syqsfxyjxmj,
basic_products.mjfs, basic_products.mjfs,
basic_products.categoryName, basic_products.categoryName,basic_products.cphhhbh,
basic_udirel.groupBuy, basic_udirel.groupBuy,
basic_udirel.id as uid, basic_udirel.id as uid,
basic_corp.name companyName basic_corp.name companyName
FROM company_product_relevance FROM company_product_relevance
@ -377,14 +377,12 @@
<select id="filterCompanyProduct" parameterType="com.glxp.api.req.basic.FilterCompanyProductRelevanceRequest" <select id="filterCompanyProduct" parameterType="com.glxp.api.req.basic.FilterCompanyProductRelevanceRequest"
resultType="com.glxp.api.req.inout.ioOrderUploadRequest"> resultType="com.glxp.api.req.inout.ioOrderUploadRequest">
SELECT SELECT basic_udirel.id,
basic_udirel.id, basic_udirel.uuid as udiRlIdFk
basic_udirel.uuid as udiRlIdFk FROM company_product_relevance
FROM INNER JOIN basic_udirel ON company_product_relevance.udiRlIdFk = basic_udirel.id
company_product_relevance INNER JOIN basic_products ON basic_udirel.uuid = basic_products.uuid
INNER JOIN basic_udirel ON company_product_relevance.udiRlIdFk = basic_udirel.id LEFT JOIN basic_corp ON basic_corp.erpId = company_product_relevance.customerId
INNER JOIN basic_products ON basic_udirel.uuid = basic_products.uuid
LEFT JOIN basic_corp ON basic_corp.erpId = company_product_relevance.customerId
<where> <where>
<if test="customerId != '' and customerId != null"> <if test="customerId != '' and customerId != null">
and company_product_relevance.customerId = #{customerId} and company_product_relevance.customerId = #{customerId}

@ -89,7 +89,8 @@
basic_corp.creditNo, basic_corp.creditNo,
io.action, io.action,
io.fromInvCode, io.fromInvCode,
bbt.corpType,iodr.reCount count bbt.corpType,
iodr.reCount count
from io_order_detail_result iodr from io_order_detail_result iodr
INNER JOIN io_order io on iodr.orderIdFk = io.billNo INNER JOIN io_order io on iodr.orderIdFk = io.billNo
left join basic_corp on io.fromCorp = basic_corp.erpId left join basic_corp on io.fromCorp = basic_corp.erpId
@ -107,4 +108,36 @@
</if> </if>
</where> </where>
</select> </select>
<select id="cptCodeTrace" parameterType="com.glxp.api.req.inout.CptTraceRequest"
resultType="com.glxp.api.res.inout.CptTraceOrderResponse">
select io.billNo,
io.createTime,
io.mainAction,
bbt.`name` billType,
basic_corp.`name` fromCorpName,
basic_corp.creditNo,
io.action,
io.fromInvCode,
bbt.corpType,
iodr.reCount count
from io_code iodr
INNER JOIN io_order io on iodr.orderId = io.billNo
left join basic_corp on io.fromCorp = basic_corp.erpId
INNER JOIN basic_bussiness_type bbt on io.action = bbt.action
<where>
and bbt.inStock = true
<if test="batchNo != null and batchNo != ''">
AND iodr.batchNo = #{batchNo}
</if>
<if test="diList != null and diList.size() != 0">
AND iodr.`nameCode` in
<foreach collection="diList" index="index" item="item" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
<if test="serialNo != null and serialNo != ''">
AND iodr.serialNo = #{serialNo}
</if>
</where>
</select>
</mapper> </mapper>

@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glxp.api.dao.inv.InvInnerOrderPrintDao"> <mapper namespace="com.glxp.api.dao.inv.InvInnerOrderPrintDao">
<resultMap id="BaseResultMap" autoMapping="true" type="com.glxp.api.entity.inv.InvInnerOrderPrintEntity"> <resultMap id="BaseResultMap" autoMapping="true" type="com.glxp.api.entity.inv.InvInnerOrderPrintEntity">
<!--@mbg.generated--> <!--@mbg.generated-->
<!--@Table inv_inner_order_print--> <!--@Table inv_inner_order_print-->
<!-- <id column="id" jdbcType="INTEGER" property="id"/>--> <!-- <id column="id" jdbcType="INTEGER" property="id"/>-->
<result column="orderIdFk" jdbcType="VARCHAR" property="orderIdFk"/> <result column="orderIdFk" jdbcType="VARCHAR" property="orderIdFk"/>
<result column="udiCode" jdbcType="VARCHAR" property="udiCode"/> <result column="udiCode" jdbcType="VARCHAR" property="udiCode"/>
<result column="productId" jdbcType="VARCHAR" property="productId"/> <result column="productId" jdbcType="VARCHAR" property="productId"/>
@ -54,6 +54,7 @@
basic_products.cpmctymc, basic_products.cpmctymc,
basic_products.ylqxzcrbarmc, basic_products.ylqxzcrbarmc,
basic_products.zczbhhzbapzbh, basic_products.zczbhhzbapzbh,
basic_products.manufactory,
basic_products.ggxh basic_products.ggxh
FROM inv_inner_order_print FROM inv_inner_order_print

@ -16,7 +16,7 @@
qxlb, tyshxydm, zczbhhzbapzbh, qxlb, tyshxydm, zczbhhzbapzbh,
ylqxzcrbarmc, ylqxzcrbarywmc, updateTime, ylqxzcrbarmc, ylqxzcrbarywmc, updateTime,
supName, model, `standard`, supName, model, `standard`,
qtbm, zczyxqz, relId, type, deviceRecordKey) qtbm, zczyxqz, relId, type, deviceRecordKey, groupBuy)
values values
<foreach collection="list" index="index" item="item" separator=","> <foreach collection="list" index="index" item="item" separator=",">
(#{item.uuid}, (#{item.uuid},
@ -25,8 +25,6 @@
#{item.auditTime}, #{item.auditTime},
#{item.remark}, #{item.remark},
#{item.auditUser}, #{item.auditUser},
#{item.status}, #{item.status},
#{item.thirdSysFk}, #{item.thirdSysFk},
#{item.code}, #{item.code},
@ -44,7 +42,7 @@
, #{item.flbm}, #{item.qxlb}, #{item.tyshxydm}, #{item.zczbhhzbapzbh} , #{item.flbm}, #{item.qxlb}, #{item.tyshxydm}, #{item.zczbhhzbapzbh}
, #{item.ylqxzcrbarmc}, #{item.ylqxzcrbarywmc}, #{item.updateTime}, #{item.supName}, #{item.model} , #{item.ylqxzcrbarmc}, #{item.ylqxzcrbarywmc}, #{item.updateTime}, #{item.supName}, #{item.model}
, #{item.standard}, #{item.qtbm}, #{item.standard}, #{item.zczyxqz}, #{item.type}, , #{item.standard}, #{item.qtbm}, #{item.standard}, #{item.zczyxqz}, #{item.type},
#{item.deviceRecordKey}) #{item.deviceRecordKey}, #{item.groupBuy})
</foreach> </foreach>
</insert> </insert>
@ -126,6 +124,9 @@
<if test="selectThridSysStr != null"> <if test="selectThridSysStr != null">
`selectThridSysStr`=#{selectThridSysStr}, `selectThridSysStr`=#{selectThridSysStr},
</if> </if>
<if test="groupBuy != null">
`groupBuy`=#{groupBuy},
</if>
</trim> </trim>
WHERE id = #{id} WHERE id = #{id}
</update> </update>
@ -231,9 +232,9 @@
<if test="status != null"> <if test="status != null">
AND tdi.status = #{status} AND tdi.status = #{status}
</if> </if>
<if test="diType != null"> <!-- <if test="diType != null">-->
AND updateTime &lt;= "2023-04-5 00:00:00" <!-- AND updateTime &lt;= "2023-04-5 00:00:00"-->
</if> <!-- </if>-->
</where> </where>
</select> </select>
</mapper> </mapper>

@ -623,39 +623,6 @@ INSERT ignore INTO `sys_param_config`(`id`, `parentId`, `paramName`, `paramKey`,
VALUES (20078, 0, '是否启用价格先进先出策略', 'price_fifo', '1', 1, 0, '01', '2023-10-10 10:10:08'); VALUES (20078, 0, '是否启用价格先进先出策略', 'price_fifo', '1', 1, 0, '01', '2023-10-10 10:10:08');
INSERT ignore INTO `auth_menu`(`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query_param`,
`is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`,
`create_time`, `update_by`, `update_time`, `remark`)
VALUES (2006, '首页111111', 0, 20, 'home/11111', NULL, NULL, 1, 0, 'M', '1', '0', NULL, NULL, '超级用户',
'2023-11-17 09:27:27', NULL, NULL, NULL);
INSERT ignore INTO `auth_menu`(`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query_param`,
`is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`,
`create_time`, `update_by`, `update_time`, `remark`)
VALUES (2007, '已对照产品', 2006, 1, NULL, NULL, NULL, 1, 0, 'F', '0', '0', 'home:index:product', NULL, '超级用户',
'2023-11-17 09:30:47', NULL, NULL, NULL);
INSERT ignore INTO `auth_menu`(`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query_param`,
`is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`,
`create_time`, `update_by`, `update_time`, `remark`)
VALUES (2008, '库存预警', 2006, 2, NULL, NULL, NULL, 1, 0, 'F', '0', '0', 'home:index:invWarn', NULL, '超级用户',
'2023-11-17 09:35:08', NULL, NULL, NULL);
INSERT ignore INTO `auth_menu`(`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query_param`,
`is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`,
`create_time`, `update_by`, `update_time`, `remark`)
VALUES (2009, '资质预警', 2006, 3, NULL, NULL, NULL, 1, 0, 'F', '0', '0', 'home:index:certWarn', NULL, '超级用户',
'2023-11-17 09:35:24', NULL, NULL, NULL);
INSERT ignore INTO `auth_menu`(`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query_param`,
`is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`,
`create_time`, `update_by`, `update_time`, `remark`)
VALUES (2010, '待办事项', 2006, 4, NULL, NULL, NULL, 1, 0, 'F', '0', '0', 'home:index:todo', NULL, '超级用户',
'2023-11-17 09:36:08', NULL, NULL, NULL);
INSERT ignore INTO `auth_menu`(`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query_param`,
`is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`,
`create_time`, `update_by`, `update_time`, `remark`)
VALUES (2011, '待审核单据·', 2006, 5, NULL, NULL, NULL, 1, 0, 'F', '0', '0', 'home:index:ioAudit', NULL, '超级用户',
'2023-11-17 09:36:26', NULL, NULL, NULL);
CALL Pro_Temp_ColumnWork('basic_bussiness_type', 'inPreInBack', 'tinyint', 1); CALL Pro_Temp_ColumnWork('basic_bussiness_type', 'inPreInBack', 'tinyint', 1);
@ -695,3 +662,7 @@ CALL Pro_Temp_ColumnWork('io_order_detail_code', 'sterDate', 'varchar(255)', 1);
CALL Pro_Temp_ColumnWork('io_order_detail_result', 'sterBatchNo', 'varchar(255)', 1); CALL Pro_Temp_ColumnWork('io_order_detail_result', 'sterBatchNo', 'varchar(255)', 1);
CALL Pro_Temp_ColumnWork('io_order_detail_result', 'sterDate', 'varchar(255)', 1); CALL Pro_Temp_ColumnWork('io_order_detail_result', 'sterDate', 'varchar(255)', 1);
CALL Pro_Temp_ColumnWork('basic_products', 'cphhhbh', 'varchar(255)', 1);
CALL Pro_Temp_ColumnWork('thr_products_add_di', 'groupBuy', 'tinyint', 1);

Loading…
Cancel
Save