湖里妇幼初始化 第二次

Lhxyy
qiuyt 4 months ago
parent 3e6053c14f
commit 4c530f05d1

@ -1,4 +1,4 @@
package com.glxp.mipsdl.client.hlhyxyy;
package com.glxp.mipsdl.client.hlfyyy;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollUtil;
@ -19,9 +19,9 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.pagehelper.PageInfo;
import com.glxp.mipsdl.client.CommonHttpClient;
import com.glxp.mipsdl.client.hlhyxyy.entity.InvCodeResultEntity;
import com.glxp.mipsdl.client.hlhyxyy.entity.InvProjectResultEntity;
import com.glxp.mipsdl.client.hlhyxyy.entity.InvResultEntity;
import com.glxp.mipsdl.client.hlfyyy.entity.InvCodeResultEntity;
import com.glxp.mipsdl.client.hlfyyy.entity.InvProjectResultEntity;
import com.glxp.mipsdl.client.hlfyyy.entity.InvResultEntity;
import com.glxp.mipsdl.config.ThirdSysConfig;
import com.glxp.mipsdl.constant.BusTypeConstant;
import com.glxp.mipsdl.constant.ConstantType;
@ -37,7 +37,7 @@ import com.glxp.mipsdl.entity.auth.AuthUserEntity;
import com.glxp.mipsdl.entity.auth.AuthWarehouseEntity;
import com.glxp.mipsdl.entity.basic.*;
import com.glxp.mipsdl.entity.ctqyy.*;
import com.glxp.mipsdl.entity.hlhyxyy.VA001;
import com.glxp.mipsdl.entity.hlfyyy.*;
import com.glxp.mipsdl.entity.inout.*;
import com.glxp.mipsdl.entity.system.ThrYbSetupMapper;
import com.glxp.mipsdl.entity.thrsys.ThrCorpEntity;
@ -57,13 +57,14 @@ import com.glxp.mipsdl.res.ctqyy.CtBaseResponse;
import com.glxp.mipsdl.res.udiwms.*;
import com.glxp.mipsdl.service.auth.AuthWarehouseService;
import com.glxp.mipsdl.service.basic.RelCodeDetailService;
import com.glxp.mipsdl.service.hlhyxyy.*;
import com.glxp.mipsdl.service.hlfyyy.*;
import com.glxp.mipsdl.service.order.OrderUploadLogService;
import com.glxp.mipsdl.service.system.SysParamConfigService;
import com.glxp.mipsdl.service.thrsys.ThrCorpService;
import com.glxp.mipsdl.service.thrsys.ThrSystemDetailService;
import com.glxp.mipsdl.service.yb.YbClient;
import com.glxp.mipsdl.thirddao.ctqyy.*;
import com.glxp.mipsdl.thirddao.hlfyyy.*;
import com.glxp.mipsdl.util.*;
import lombok.extern.slf4j.Slf4j;
import org.dom4j.Document;
@ -74,12 +75,14 @@ import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.stream.Collectors;
@Slf4j
@Service(value = "100015HttpClient")
public class HlhyxyyClient extends CommonHttpClient {
public class HlfyyyClient extends CommonHttpClient {
private final String[] buyType_3501 = {"24"};
private final String[] buyType_3502 = {"7", "6", "5", "4", "1", "16", "12", "28", "35"};
private final String[] buyType_3505 = {"QXCF001", "YPCF002"};
@ -152,8 +155,7 @@ public class HlhyxyyClient extends CommonHttpClient {
@Resource
private VA001Service va001Service;
@Resource
private VA003Service va003Service;
@Resource
private VA005Service va005Service;
@Resource
@ -175,8 +177,16 @@ public class HlhyxyyClient extends CommonHttpClient {
@Resource
private VA015Service va015Service;
@Resource
private VA003Mapper va003Mapper;
@Resource
private VA010Mapper va010Mapper;
@Resource
private VA010MxMapper va010MxMapper;
@Resource
private VA011Mapper va011Mapper;
@Resource
private VA011MxMapper va011MxMapper;
/**
* xml
@ -213,7 +223,7 @@ public class HlhyxyyClient extends CommonHttpClient {
public BaseResponse getUnit(UdiwmsUnitRequest udiwmsUnitRequest) {
udiwmsUnitRequest.setDatabaseProductName(getDataSourceType());
List<VA001> list = va001Service.filterList(udiwmsUnitRequest);
log.info("解析四川武平县医院返回往来单位,返回结果:{}", list);
log.info("解析湖里妇幼返回往来单位,返回结果:{}", list);
PageInfo<VA001> pageInfo = new PageInfo<>(list);
PageSimpleResponse<VA001> pageSimpleResponse = new PageSimpleResponse<>();
pageSimpleResponse.setTotal(pageInfo.getTotal());
@ -278,30 +288,53 @@ public class HlhyxyyClient extends CommonHttpClient {
baseResponse.setData(map);
return baseResponse;
} catch (Exception e) {
log.error("解析长泰区医院智业接口返回产品信息字典数据异常,返回结果:{}", response);
log.error("解析湖里妇幼医院智业接口返回产品信息字典数据异常,返回结果:{}", response);
log.error("异常信息:{}", e);
return ResultVOUtils.error(500, "网络错误,或远程服务器异常无法返回正确结果(" + response + ")");
}
} else if (udiwmsProductRequest.getProductType().equals(Constants.PRODUCT_TYPE_DRUG)) {
LambdaQueryWrapper<VYpzsPhysicDict> wrapper = new LambdaQueryWrapper();
List<ThrProductsEntity> list = udiwmsProductRequest.getThrProductsEntities();
List codeList = new ArrayList();
List nameList = new ArrayList();
List registerNoList = new ArrayList();
if(list!=null && list.size() >0 ){
for (ThrProductsEntity thrProductsEntity : list) {
if(StringUtils.isNotEmpty(thrProductsEntity.getCode())){
codeList.add(thrProductsEntity.getCode());
}
if(StringUtils.isNotEmpty(thrProductsEntity.getName())){
nameList.add(thrProductsEntity.getName());
}
if(StringUtils.isNotEmpty(thrProductsEntity.getRegisterNo())){
registerNoList.add(thrProductsEntity.getRegisterNo());
}
}
}
LambdaQueryWrapper<VA003> wrapper = new LambdaQueryWrapper();
//补充其他查询条件
wrapper.eq(StrUtil.isNotBlank(udiwmsProductRequest.getCode()), VYpzsPhysicDict::getPHYSIC_CODE, udiwmsProductRequest.getCode());
wrapper.eq(StrUtil.isNotBlank(udiwmsProductRequest.getName()), VYpzsPhysicDict::getPHYSIC_NAME, udiwmsProductRequest.getName());
wrapper.eq(StrUtil.isNotBlank(udiwmsProductRequest.getRegisterNo()), VYpzsPhysicDict::getPHYSIC_NO, udiwmsProductRequest.getRegisterNo());
IPage<VYpzsPhysicDict> page = vYpzsPhysicDictMapper.selectPage(new Page<VYpzsPhysicDict>(udiwmsProductRequest.getPage(), udiwmsProductRequest.getLimit()), wrapper);
List<VYpzsPhysicDict> physicDictEntities = page.getRecords();
wrapper.in(codeList!=null && codeList.size()>0, VA003::getCode,codeList);
wrapper.in(nameList!=null && nameList.size()>0, VA003::getName, nameList);
wrapper.in(registerNoList!=null && registerNoList.size()>0, VA003::getRegisterno, registerNoList);
// 保留之前的查询方法怕有用到
wrapper.eq(StrUtil.isNotBlank(udiwmsProductRequest.getCode()), VA003::getCode, udiwmsProductRequest.getCode());
wrapper.eq(StrUtil.isNotBlank(udiwmsProductRequest.getName()), VA003::getName, udiwmsProductRequest.getName());
wrapper.eq(StrUtil.isNotBlank(udiwmsProductRequest.getRegisterNo()), VA003::getRegisterno, udiwmsProductRequest.getRegisterNo());
wrapper.eq(VA003::getRemark,"Y");
IPage<VA003> page = va003Mapper.selectPage(new Page<VA003>(udiwmsProductRequest.getPage(), udiwmsProductRequest.getLimit()), wrapper);
List<VA003> physicDictEntities = page.getRecords();
List<ThrProductsEntity> thrProductsEntityList = null;
if (CollUtil.isNotEmpty(physicDictEntities)) {
//数据处理以thr_products 返回
thrProductsEntityList = physicDictEntities.stream().map(dict -> {
ThrProductsEntity products = new ThrProductsEntity();
products.setCode(dict.getPHYSIC_CODE());
products.setName(dict.getPHYSIC_NAME());
products.setMeasname(dict.getPACK_UNIT());
products.setSpec(dict.getPACK_SPEC());
products.setYbbm(dict.getCOUNTRY_CODE());
products.setPrepnSpec(dict.getPHYSIC_SPEC());
products.setPrepnUnit(dict.getPHYSIC_UNIT());
BeanUtil.copyProperties(dict,products);
products.setSpec(dict.getBzgg());
products.setProductType(2);
return products;
}).collect(Collectors.toList());
@ -311,7 +344,7 @@ public class HlhyxyyClient extends CommonHttpClient {
pageSimpleResponse.setList(thrProductsEntityList);
return ResultVOUtils.success(pageSimpleResponse);
}
log.error("解析长泰区医院医疗类型,返回结果:{}", udiwmsProductRequest.getProductType());
log.error("解析湖里妇幼医院医疗类型,返回结果:{}", udiwmsProductRequest.getProductType());
return ResultVOUtils.error(500, "医疗类型不正确productType" + udiwmsProductRequest.getProductType());
}
@ -1396,28 +1429,15 @@ public class HlhyxyyClient extends CommonHttpClient {
@Override
public BaseResponse getPrescribes(UdiwmsBasicSkPrescribeRequest udiwmsBasicSkPrescribeRequest) {
if (IntUtil.value(udiwmsBasicSkPrescribeRequest.getInOutType()) == 0) {
LambdaQueryWrapper<VInsurNationGoodsPhysic> wrapper = new LambdaQueryWrapper<>();
String startTime = udiwmsBasicSkPrescribeRequest.getStartTime();
String endTime = udiwmsBasicSkPrescribeRequest.getEndTime();
wrapper.ge(StrUtil.isNotEmpty(startTime), VInsurNationGoodsPhysic::getSEL_RETN_TIME, startTime);
wrapper.le(StrUtil.isNotEmpty(endTime), VInsurNationGoodsPhysic::getSEL_RETN_TIME, endTime);
String code = udiwmsBasicSkPrescribeRequest.getCode();
String fromCorpName = udiwmsBasicSkPrescribeRequest.getFromCorpName();
String key = udiwmsBasicSkPrescribeRequest.getKey();
wrapper.and(StrUtil.isNotEmpty(code), t -> t.eq(VInsurNationGoodsPhysic::getSTOOUT_NO, code).or().eq(VInsurNationGoodsPhysic::getRXNO, code));
wrapper.and(StrUtil.isNotEmpty(key), t -> t.like(VInsurNationGoodsPhysic::getSTOOUT_NO, key)
.or().like(VInsurNationGoodsPhysic::getRXNO, key)
.or().like(VInsurNationGoodsPhysic::getPSN_NAME, key)
.or().like(VInsurNationGoodsPhysic::getPSN_NO, key)
);
wrapper.and(StrUtil.isNotEmpty(fromCorpName), t -> t.eq(VInsurNationGoodsPhysic::getPSN_NAME, fromCorpName));
// 拉取处方时改成拉取v_ypzs_pres_info
IPage<VYpzsPresInfo> page = vYpzsPresInfoMapper.selectGroupedWithPagination(new Page<VYpzsPresInfo>(udiwmsBasicSkPrescribeRequest.getPage(), udiwmsBasicSkPrescribeRequest.getLimit()),
udiwmsBasicSkPrescribeRequest);
return this.covertSellOrder(udiwmsBasicSkPrescribeRequest, page);
udiwmsBasicSkPrescribeRequest.setDatabaseProductName(getDataSourceType());
IPage<VA010> iPage = va010Service.getList(new Page<VA010>(udiwmsBasicSkPrescribeRequest.getPage(), udiwmsBasicSkPrescribeRequest.getLimit()),udiwmsBasicSkPrescribeRequest);
// List<VA010> list = iPage.getRecords();
// PageInfo<VA010> pageInfo = new PageInfo<>(list);
// PageSimpleResponse<VA010> pageSimpleResponse = new PageSimpleResponse<>();
// pageSimpleResponse.setTotal(iPage.getTotal());
// pageSimpleResponse.setList(list);
return this.covertSellOrder(udiwmsBasicSkPrescribeRequest, iPage);
} else {
LambdaQueryWrapper<VInsurNationGoodsReturn> wrapper = new LambdaQueryWrapper<>();
@ -1669,86 +1689,111 @@ public class HlhyxyyClient extends CommonHttpClient {
* @param udiwmsBasicSkPrescribeRequest
* @return
*/
private BaseResponse covertSellOrder(UdiwmsBasicSkPrescribeRequest udiwmsBasicSkPrescribeRequest, IPage<VYpzsPresInfo> page) {
List<VYpzsPresInfo> presInfoEntities = page.getRecords();
List<VYpzsPresInfo> vInsurNationGoodsPhysics = new ArrayList<>();
if (CollUtil.isNotEmpty(presInfoEntities)) {
List<String> collect = presInfoEntities.stream().map(VYpzsPresInfo::getPRESCRIBE_NUMBER).collect(Collectors.toList());
LambdaQueryWrapper<VYpzsPresInfo> wrapper1 = new LambdaQueryWrapper<>();
wrapper1.in(VYpzsPresInfo::getPRESCRIBE_NUMBER, collect);
vInsurNationGoodsPhysics = vYpzsPresInfoMapper.selectList(wrapper1);
}
private BaseResponse covertSellOrder(UdiwmsBasicSkPrescribeRequest udiwmsBasicSkPrescribeRequest, IPage<VA010> iPage) {
List<VA010> headList = iPage.getRecords();
if (CollUtil.isNotEmpty(headList)) {
List<String> codefks = headList.stream().map(VA010::getCode).collect(Collectors.toList());
LambdaQueryWrapper<VA010Mx> wrapper1 = new LambdaQueryWrapper<>();
wrapper1.in(VA010Mx::getCodefk, codefks);
List<VA010Mx> a010details = va010MxMapper.selectList(wrapper1);
Map<String, List<VA010Mx>> detailsMap = new HashMap<>();
if (CollUtil.isNotEmpty(a010details)) {
detailsMap = a010details.stream()
.collect(Collectors.groupingBy(VA010Mx::getCodefk));
}
// TODO: 2024/9/19 这边在转换的时候就不能用VInsurNationGoodsPhysic
if (CollUtil.isNotEmpty(vInsurNationGoodsPhysics)) {
Map<String, List<VYpzsPresInfo>> groupedByPrescribeNumber = vInsurNationGoodsPhysics.stream()
.collect(Collectors.groupingBy(VYpzsPresInfo::getPHYSIC_CODE));
List<IoCollectOrder> ioCollectOrders = new ArrayList<>();
groupedByPrescribeNumber.forEach((key, value) -> {
VYpzsPresInfo presInfoEntity = value.get(0);
Map<String, List<VA010Mx>> finalDetailsMap = detailsMap;
headList.forEach(item -> {
StringBuilder errorMsg = new StringBuilder();
IoCollectOrder ioCollectOrder = new IoCollectOrder();
ioCollectOrder.setBillNo(presInfoEntity.getPRESCRIBE_NUMBER());
ioCollectOrder.setBillNo(item.getCode());
ioCollectOrder.setFromType("HIS系统");
ioCollectOrder.setFromCorp(presInfoEntity.getSICK_ID());
ioCollectOrder.setFromCorp(item.getDeptcode());
ioCollectOrder.setWorkPlaceCode(udiwmsBasicSkPrescribeRequest.getWorkPlaceCode());
ioCollectOrder.setFromCorpName(presInfoEntity.getSICK_NAME());
Date date = DateUtil.parseDate(presInfoEntity.getLAY_TIME());
ioCollectOrder.setFromCorpName(item.getSickname());
ioCollectOrder.setShipperName(item.getDeptname());
Date date = null;
try {
date = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss").parse(item.getPrescribedate());
} catch (ParseException e) {
}
ioCollectOrder.setBillTime(date);
ioCollectOrder.setCreateTime(new Date());
ioCollectOrder.setCreateUser(udiwmsBasicSkPrescribeRequest.getCreateUser());
ioCollectOrder.setBackupOrderRemark1(presInfoEntity.getSTOOUT_NO());
ioCollectOrder.setBackupOrderRemark2(presInfoEntity.getSICK_ID());
ioCollectOrder.setBusType(udiwmsBasicSkPrescribeRequest.getBusType());
ioCollectOrder.setBackupOrderRemark1(item.getCode());
// ioCollectOrder.setBackupOrderRemark2(presInfoEntity.getSICK_ID());
// ioCollectOrder.setBackupOrderRemark3(presInfoEntity.getPSN_NAME());
// ioCollectOrder.setBackupOrderRemark4(presInfoEntity.getPSN_NO());
ioCollectOrder.setUpdateTime(new Date());
ioCollectOrder.setSplitStatus(0);
ioCollectOrder.setTagStatus(0);
List<VA010Mx> itemDetails = finalDetailsMap.get(item.getCode());
List<IoCollectOrderBiz> bizList = new ArrayList<>();
value.forEach(entity -> {
IoCollectOrderBiz collectOrderBiz = new IoCollectOrderBiz();
List<BasicUdirelEntity> basicUdirelEntities = basicUdirelDao.selectList(new LambdaQueryWrapper<BasicUdirelEntity>().eq(BasicUdirelEntity::getMainId, entity.getPHYSIC_CODE()));
if (CollUtil.isNotEmpty(basicUdirelEntities)) {
BasicUdirelEntity basicUdirelEntity = basicUdirelEntities.get(0);
collectOrderBiz.setRelId(basicUdirelEntity.getId());
} else {
errorMsg.append(entity.getPHYSIC_NAME()).append("字典未对照").append(";");
}
if (CollUtil.isNotEmpty(itemDetails)) {
itemDetails.forEach(entity -> {
IoCollectOrderBiz collectOrderBiz = new IoCollectOrderBiz();
List<BasicUdirelEntity> basicUdirelEntities = basicUdirelDao.selectList(new LambdaQueryWrapper<BasicUdirelEntity>().eq(BasicUdirelEntity::getMainId, entity.getItemcode()));
if (CollUtil.isNotEmpty(basicUdirelEntities)) {
BasicUdirelEntity basicUdirelEntity = basicUdirelEntities.get(0);
collectOrderBiz.setRelId(basicUdirelEntity.getId());
} else {
errorMsg.append(entity.getItemname()).append("字典未对照").append(";");
}
// List<VYpzsPresInfo> vYpzsPresInfos = vYpzsPresInfoMapper.selectList(new LambdaQueryWrapper<VYpzsPresInfo>().eq(VYpzsPresInfo::getPRESCRIBE_NUMBER, entity.getPRESCRIBE_NUMBER()).eq(VYpzsPresInfo::getPHYSIC_CODE, entity.getPHYSIC_CODE()));
collectOrderBiz.setGgxh(entity.getBzgg());
collectOrderBiz.setMeasureUnit(entity.getMeasureunit());
collectOrderBiz.setCount(IntUtil.value(entity.getCount()));
collectOrderBiz.setThrCode(entity.getItemcode());
collectOrderBiz.setCpmctymc(entity.getItemname());
collectOrderBiz.setOrderIdFk(ioCollectOrder.getBillNo());
// if (CollUtil.isNotEmpty(vYpzsPresInfos)) {
// VYpzsPresInfo vYpzsPresInfo = vYpzsPresInfos.get(0);
//
// }
collectOrderBiz.setGgxh(entity.getPACK_SPEC());
collectOrderBiz.setMeasureUnit(entity.getPHYSIC_UNIT());
collectOrderBiz.setCount(IntUtil.value(entity.getLAY_PHYSIC_QUANTITY()));
collectOrderBiz.setThrCode(entity.getPHYSIC_CODE());
collectOrderBiz.setCpmctymc(entity.getPHYSIC_NAME());
collectOrderBiz.setOrderIdFk(ioCollectOrder.getBillNo());
collectOrderBiz.setYbbm(entity.getCOUNTRY_CODE());
// collectOrderBiz.setRemark1(entity.get() + "");
collectOrderBiz.setRemark1(entity.getRemark());
collectOrderBiz.setNameCode(entity.getItemcode());
collectOrderBiz.setTagStatus(1);
collectOrderBiz.setUnTagCount(0);
bizList.add(collectOrderBiz);
});
collectOrderBiz.setTagStatus(1);
collectOrderBiz.setUnTagCount(0);
bizList.add(collectOrderBiz);
});
}
if (StrUtil.isNotBlank(errorMsg)) {
ioCollectOrder.setErrorMsg(errorMsg.toString());
ioCollectOrder.setTagStatus(4);
}
ioCollectOrder.setBizList(bizList);
ioCollectOrder.setBizList(summarizeByCode(bizList));
ioCollectOrders.add(ioCollectOrder);
});
PageSimpleResponse<IoCollectOrder> pageSimpleResponse = new PageSimpleResponse<>();
pageSimpleResponse.setTotal(page.getTotal());
pageSimpleResponse.setTotal(iPage.getTotal());
pageSimpleResponse.setList(ioCollectOrders);
return ResultVOUtils.success(pageSimpleResponse);
} else {
return ResultVOUtils.error(500, "下载失败!");
}
}
public static List<IoCollectOrderBiz> summarizeByCode(List<IoCollectOrderBiz> bizList) {
Map<String, IoCollectOrderBiz> summarizedMap = new HashMap<>();
for (IoCollectOrderBiz biz : bizList) {
String code = biz.getThrCode();
if (summarizedMap.containsKey(code)) {
IoCollectOrderBiz existingBiz = summarizedMap.get(code);
existingBiz.setCount(existingBiz.getCount() + biz.getCount());
} else {
summarizedMap.put(code, biz);
}
}
return new ArrayList<>(summarizedMap.values());
}
private BaseResponse covertReturnOrder(UdiwmsBasicSkPrescribeRequest udiwmsBasicSkPrescribeRequest, IPage<VYpzsPresInfoReturn> page) {
List<VYpzsPresInfoReturn> presInfoEntities = page.getRecords();
@ -1823,6 +1868,7 @@ public class HlhyxyyClient extends CommonHttpClient {
}
public BaseResponse optionUploadCollectOrder3505(IoCollectOrder ioCollectOrder) {
//摆药流水号
// String stoout_no = ioCollectOrder.getBackupOrderRemark1();

@ -1,4 +1,4 @@
package com.glxp.mipsdl.client.hlhyxyy.entity;
package com.glxp.mipsdl.client.hlfyyy.entity;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

@ -1,4 +1,4 @@
package com.glxp.mipsdl.client.hlhyxyy.entity;
package com.glxp.mipsdl.client.hlfyyy.entity;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

@ -1,4 +1,4 @@
package com.glxp.mipsdl.client.hlhyxyy.entity;
package com.glxp.mipsdl.client.hlfyyy.entity;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

@ -1,8 +1,6 @@
package com.glxp.mipsdl.entity.hlhyxyy;
package com.glxp.mipsdl.entity.hlfyyy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.AllArgsConstructor;

@ -1,8 +1,6 @@
package com.glxp.mipsdl.entity.hlhyxyy;
package com.glxp.mipsdl.entity.hlfyyy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.AllArgsConstructor;

@ -1,8 +1,6 @@
package com.glxp.mipsdl.entity.hlhyxyy;
package com.glxp.mipsdl.entity.hlfyyy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.AllArgsConstructor;

@ -1,8 +1,6 @@
package com.glxp.mipsdl.entity.hlhyxyy;
package com.glxp.mipsdl.entity.hlfyyy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.AllArgsConstructor;

@ -1,8 +1,6 @@
package com.glxp.mipsdl.entity.hlhyxyy;
package com.glxp.mipsdl.entity.hlfyyy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.AllArgsConstructor;

@ -1,8 +1,6 @@
package com.glxp.mipsdl.entity.hlhyxyy;
package com.glxp.mipsdl.entity.hlfyyy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.AllArgsConstructor;

@ -1,8 +1,6 @@
package com.glxp.mipsdl.entity.hlhyxyy;
package com.glxp.mipsdl.entity.hlfyyy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.AllArgsConstructor;

@ -1,8 +1,6 @@
package com.glxp.mipsdl.entity.hlhyxyy;
package com.glxp.mipsdl.entity.hlfyyy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.AllArgsConstructor;

@ -0,0 +1,76 @@
package com.glxp.mipsdl.entity.hlfyyy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* -
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "v_a010_mx")
public class VA010Mx implements Serializable {
@TableField(value = "CODEFK")
private String codefk;
@TableField(value = "THRID")
private String thrid;
@TableField(value = "ITEMNAME")
private String itemname;
@TableField(value = "ITEMCODE")
private String itemcode;
@TableField(value = "MEASURECOUNT")
private String measurecount;
@TableField(value = "MEASUREUNIT")
private String measureunit;
@TableField(value = "CATEGORY")
private String category;
@TableField(value = "FREQUENCY")
private String frequency;
@TableField(value = "`COUNT`")
private String count;
@TableField(value = "BZGG")
private String bzgg;
@TableField(value = "PACKUNIT")
private String packunit;
@TableField(value = "PREPNSPEC")
private String prepnspec;
@TableField(value = "PREPNUNIT")
private String prepnunit;
@TableField(value = "MEASNAME")
private String measname;
@TableField(value = "PRICE")
private String price;
@TableField(value = "RETAILPRICE")
private String retailprice;
@TableField(value = "AMOUNT")
private String amount;
@TableField(value = "REMARK")
private String remark;
@TableField(value = "DRUGLIST")
private String druglist;
private static final long serialVersionUID = 1L;
}

@ -1,8 +1,6 @@
package com.glxp.mipsdl.entity.hlhyxyy;
package com.glxp.mipsdl.entity.hlfyyy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.AllArgsConstructor;

@ -1,8 +1,6 @@
package com.glxp.mipsdl.entity.hlhyxyy;
package com.glxp.mipsdl.entity.hlfyyy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.AllArgsConstructor;

@ -1,8 +1,6 @@
package com.glxp.mipsdl.entity.hlhyxyy;
package com.glxp.mipsdl.entity.hlfyyy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.AllArgsConstructor;

@ -1,8 +1,6 @@
package com.glxp.mipsdl.entity.hlhyxyy;
package com.glxp.mipsdl.entity.hlfyyy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.AllArgsConstructor;

@ -1,21 +1,29 @@
package com.glxp.mipsdl.req.base;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
/**
*
*/
@Data
public class ListPageRequest {
/**
*
*/
@Min(message = "分页参数错误", value = 1)
private Integer page;
/**
*
*/
@Min(value = 1, message = "分页参数不能小于1")
@Max(value = 500, message = "分页参数不能大于500")
private Integer limit;
private String orderBy;
private String sort;
public Page getPageObj() {
return new Page(this.page == null ? 1 : this.page, this.limit == null ? 10 : this.limit);
}
}

@ -136,5 +136,6 @@ public class UdiwmsBasicSkPrescribeRequest extends ListPageRequest {
private String databaseProductName;
private String IN_HOSP;
}

@ -1,13 +1,17 @@
package com.glxp.mipsdl.req.base;
import com.glxp.mipsdl.constant.Constants;
import com.glxp.mipsdl.entity.thrsys.ThrProductsEntity;
import lombok.Data;
import java.util.List;
/**
*
*/
@Data
public class UdiwmsProductRequest extends ListPageRequest {
private List<ThrProductsEntity> thrProductsEntities;
/**
*

@ -1,14 +1,14 @@
package com.glxp.mipsdl.service.hlhyxyy;
package com.glxp.mipsdl.service.hlfyyy;
import com.github.pagehelper.PageHelper;
import com.glxp.mipsdl.req.base.UdiwmsUnitRequest;
import com.glxp.mipsdl.thirddao.hlhyxyy.VA001Mapper;
import com.glxp.mipsdl.thirddao.hlfyyy.VA001Mapper;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.mipsdl.entity.hlhyxyy.VA001;
import com.glxp.mipsdl.entity.hlfyyy.VA001;
@Service
public class VA001Service extends ServiceImpl<VA001Mapper, VA001> {
public List<VA001> filterList(UdiwmsUnitRequest udiwmsUnitRequest) {

@ -1,11 +1,9 @@
package com.glxp.mipsdl.service.hlhyxyy;
package com.glxp.mipsdl.service.hlfyyy;
import com.glxp.mipsdl.thirddao.hlhyxyy.VA002Mapper;
import com.glxp.mipsdl.thirddao.hlfyyy.VA002Mapper;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.mipsdl.entity.hlhyxyy.VA002;
import com.glxp.mipsdl.entity.hlfyyy.VA002;
@Service
public class VA002Service extends ServiceImpl<VA002Mapper, VA002> {

@ -1,11 +1,9 @@
package com.glxp.mipsdl.service.hlhyxyy;
package com.glxp.mipsdl.service.hlfyyy;
import com.glxp.mipsdl.thirddao.hlhyxyy.VA003Mapper;
import com.glxp.mipsdl.thirddao.hlfyyy.VA003Mapper;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.mipsdl.entity.hlhyxyy.VA003;
import com.glxp.mipsdl.entity.hlfyyy.VA003;
@Service
public class VA003Service extends ServiceImpl<VA003Mapper, VA003> {

@ -1,11 +1,9 @@
package com.glxp.mipsdl.service.hlhyxyy;
package com.glxp.mipsdl.service.hlfyyy;
import com.glxp.mipsdl.thirddao.hlhyxyy.VA004Mapper;
import com.glxp.mipsdl.thirddao.hlfyyy.VA004Mapper;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.mipsdl.entity.hlhyxyy.VA004;
import com.glxp.mipsdl.entity.hlfyyy.VA004;
@Service
public class VA004Service extends ServiceImpl<VA004Mapper, VA004> {

@ -1,11 +1,9 @@
package com.glxp.mipsdl.service.hlhyxyy;
package com.glxp.mipsdl.service.hlfyyy;
import com.glxp.mipsdl.thirddao.hlhyxyy.VA005Mapper;
import com.glxp.mipsdl.thirddao.hlfyyy.VA005Mapper;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.mipsdl.entity.hlhyxyy.VA005;
import com.glxp.mipsdl.entity.hlfyyy.VA005;
@Service
public class VA005Service extends ServiceImpl<VA005Mapper, VA005> {

@ -1,11 +1,9 @@
package com.glxp.mipsdl.service.hlhyxyy;
package com.glxp.mipsdl.service.hlfyyy;
import com.glxp.mipsdl.thirddao.hlhyxyy.VA006MxMapper;
import com.glxp.mipsdl.thirddao.hlfyyy.VA006MxMapper;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.mipsdl.entity.hlhyxyy.VA006Mx;
import com.glxp.mipsdl.entity.hlfyyy.VA006Mx;
@Service
public class VA006MxService extends ServiceImpl<VA006MxMapper, VA006Mx> {

@ -1,11 +1,9 @@
package com.glxp.mipsdl.service.hlhyxyy;
package com.glxp.mipsdl.service.hlfyyy;
import com.glxp.mipsdl.thirddao.hlhyxyy.VA006Mapper;
import com.glxp.mipsdl.thirddao.hlfyyy.VA006Mapper;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.mipsdl.entity.hlhyxyy.VA006;
import com.glxp.mipsdl.entity.hlfyyy.VA006;
@Service
public class VA006Service extends ServiceImpl<VA006Mapper, VA006> {

@ -0,0 +1,10 @@
package com.glxp.mipsdl.service.hlfyyy;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.mipsdl.entity.hlfyyy.VA010Mx;
import com.glxp.mipsdl.thirddao.hlfyyy.VA010MxMapper;
@Service
public class VA010MxService extends ServiceImpl<VA010MxMapper, VA010Mx> {
}

@ -0,0 +1,31 @@
package com.glxp.mipsdl.service.hlfyyy;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.glxp.mipsdl.req.base.UdiwmsBasicSkPrescribeRequest;
import com.glxp.mipsdl.thirddao.hlfyyy.VA010Mapper;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.mipsdl.entity.hlfyyy.VA010;
@Service
public class VA010Service extends ServiceImpl<VA010Mapper, VA010> {
@Resource
private VA010Mapper va010Mapper;
public IPage<VA010> getList(Page page , UdiwmsBasicSkPrescribeRequest udiwmsBasicSkPrescribeRequest){
IPage<VA010> iPage = va010Mapper.getList(page,udiwmsBasicSkPrescribeRequest);
// List<VA010> list = iPage.getRecords();
// List<String> codeList = new ArrayList<>();
// if(list!=null && list.size() >0){
// for (VA010 va010 : list) {
// codeList.add(va010.getCode());
// }
// List<VA010> listNew = va010Mapper.selectList(new QueryWrapper<VA010>().in("code",codeList).groupBy("code"));
// iPage.setRecords(listNew);
// }
return iPage;
};
}

@ -1,11 +1,9 @@
package com.glxp.mipsdl.service.hlhyxyy;
package com.glxp.mipsdl.service.hlfyyy;
import com.glxp.mipsdl.thirddao.hlhyxyy.VA011MxMapper;
import com.glxp.mipsdl.thirddao.hlfyyy.VA011MxMapper;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.mipsdl.entity.hlhyxyy.VA011Mx;
import com.glxp.mipsdl.entity.hlfyyy.VA011Mx;
@Service
public class VA011MxService extends ServiceImpl<VA011MxMapper, VA011Mx> {

@ -1,11 +1,9 @@
package com.glxp.mipsdl.service.hlhyxyy;
package com.glxp.mipsdl.service.hlfyyy;
import com.glxp.mipsdl.thirddao.hlhyxyy.VA011Mapper;
import com.glxp.mipsdl.thirddao.hlfyyy.VA011Mapper;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.mipsdl.entity.hlhyxyy.VA011;
import com.glxp.mipsdl.entity.hlfyyy.VA011;
@Service
public class VA011Service extends ServiceImpl<VA011Mapper, VA011> {

@ -1,11 +1,9 @@
package com.glxp.mipsdl.service.hlhyxyy;
package com.glxp.mipsdl.service.hlfyyy;
import com.glxp.mipsdl.thirddao.hlhyxyy.VA015MxMapper;
import com.glxp.mipsdl.thirddao.hlfyyy.VA015MxMapper;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.mipsdl.entity.hlhyxyy.VA015Mx;
import com.glxp.mipsdl.entity.hlfyyy.VA015Mx;
@Service
public class VA015MxService extends ServiceImpl<VA015MxMapper, VA015Mx> {

@ -1,11 +1,9 @@
package com.glxp.mipsdl.service.hlhyxyy;
package com.glxp.mipsdl.service.hlfyyy;
import com.glxp.mipsdl.thirddao.hlhyxyy.VA015Mapper;
import com.glxp.mipsdl.thirddao.hlfyyy.VA015Mapper;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.mipsdl.entity.hlhyxyy.VA015;
import com.glxp.mipsdl.entity.hlfyyy.VA015;
@Service
public class VA015Service extends ServiceImpl<VA015Mapper, VA015> {

@ -1,12 +0,0 @@
package com.glxp.mipsdl.service.hlhyxyy;
import com.glxp.mipsdl.thirddao.hlhyxyy.VA010Mapper;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.mipsdl.entity.hlhyxyy.VA010;
@Service
public class VA010Service extends ServiceImpl<VA010Mapper, VA010> {
}

@ -1,13 +1,15 @@
package com.glxp.mipsdl.thirddao.hlhyxyy;
package com.glxp.mipsdl.thirddao.hlfyyy;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.mipsdl.entity.hlhyxyy.VA001;
import com.glxp.mipsdl.entity.hlfyyy.VA001;
import com.glxp.mipsdl.req.base.UdiwmsUnitRequest;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
@DS("hlfyyySql")
public interface VA001Mapper extends BaseMapper<VA001> {
List<VA001> filterList(UdiwmsUnitRequest udiwmsUnitRequest);

@ -1,9 +1,11 @@
package com.glxp.mipsdl.thirddao.hlhyxyy;
package com.glxp.mipsdl.thirddao.hlfyyy;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.mipsdl.entity.hlhyxyy.VA002;
import com.glxp.mipsdl.entity.hlfyyy.VA002;
import org.apache.ibatis.annotations.Mapper;
@Mapper
@DS("hlfyyySql")
public interface VA002Mapper extends BaseMapper<VA002> {
}
}

@ -1,9 +1,11 @@
package com.glxp.mipsdl.thirddao.hlhyxyy;
package com.glxp.mipsdl.thirddao.hlfyyy;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.mipsdl.entity.hlhyxyy.VA003;
import com.glxp.mipsdl.entity.hlfyyy.VA003;
import org.apache.ibatis.annotations.Mapper;
@Mapper
@DS("hlfyyySql")
public interface VA003Mapper extends BaseMapper<VA003> {
}
}

@ -1,9 +1,11 @@
package com.glxp.mipsdl.thirddao.hlhyxyy;
package com.glxp.mipsdl.thirddao.hlfyyy;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.mipsdl.entity.hlhyxyy.VA004;
import com.glxp.mipsdl.entity.hlfyyy.VA004;
import org.apache.ibatis.annotations.Mapper;
@Mapper
@DS("hlfyyySql")
public interface VA004Mapper extends BaseMapper<VA004> {
}
}

@ -1,9 +1,11 @@
package com.glxp.mipsdl.thirddao.hlhyxyy;
package com.glxp.mipsdl.thirddao.hlfyyy;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.mipsdl.entity.hlhyxyy.VA005;
import com.glxp.mipsdl.entity.hlfyyy.VA005;
import org.apache.ibatis.annotations.Mapper;
@Mapper
@DS("hlfyyySql")
public interface VA005Mapper extends BaseMapper<VA005> {
}
}

@ -1,9 +1,11 @@
package com.glxp.mipsdl.thirddao.hlhyxyy;
package com.glxp.mipsdl.thirddao.hlfyyy;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.mipsdl.entity.hlhyxyy.VA006;
import com.glxp.mipsdl.entity.hlfyyy.VA006;
import org.apache.ibatis.annotations.Mapper;
@Mapper
@DS("hlfyyySql")
public interface VA006Mapper extends BaseMapper<VA006> {
}
}

@ -1,9 +1,11 @@
package com.glxp.mipsdl.thirddao.hlhyxyy;
package com.glxp.mipsdl.thirddao.hlfyyy;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.mipsdl.entity.hlhyxyy.VA006Mx;
import com.glxp.mipsdl.entity.hlfyyy.VA006Mx;
import org.apache.ibatis.annotations.Mapper;
@Mapper
@DS("hlfyyySql")
public interface VA006MxMapper extends BaseMapper<VA006Mx> {
}
}

@ -0,0 +1,16 @@
package com.glxp.mipsdl.thirddao.hlfyyy;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.glxp.mipsdl.entity.hlfyyy.VA010;
import com.glxp.mipsdl.req.base.UdiwmsBasicSkPrescribeRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
@DS("hlfyyySql")
public interface VA010Mapper extends BaseMapper<VA010> {
IPage<VA010> getList(Page page, @Param("req") UdiwmsBasicSkPrescribeRequest udiwmsBasicSkPrescribeRequest);
}

@ -0,0 +1,11 @@
package com.glxp.mipsdl.thirddao.hlfyyy;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.mipsdl.entity.hlfyyy.VA010Mx;
import org.apache.ibatis.annotations.Mapper;
@Mapper
@DS("hlfyyySql")
public interface VA010MxMapper extends BaseMapper<VA010Mx> {
}

@ -1,9 +1,11 @@
package com.glxp.mipsdl.thirddao.hlhyxyy;
package com.glxp.mipsdl.thirddao.hlfyyy;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.mipsdl.entity.hlhyxyy.VA011;
import com.glxp.mipsdl.entity.hlfyyy.VA011;
import org.apache.ibatis.annotations.Mapper;
@Mapper
@DS("hlfyyySql")
public interface VA011Mapper extends BaseMapper<VA011> {
}
}

@ -1,9 +1,11 @@
package com.glxp.mipsdl.thirddao.hlhyxyy;
package com.glxp.mipsdl.thirddao.hlfyyy;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.mipsdl.entity.hlhyxyy.VA011Mx;
import com.glxp.mipsdl.entity.hlfyyy.VA011Mx;
import org.apache.ibatis.annotations.Mapper;
@Mapper
@DS("hlfyyySql")
public interface VA011MxMapper extends BaseMapper<VA011Mx> {
}
}

@ -1,9 +1,11 @@
package com.glxp.mipsdl.thirddao.hlhyxyy;
package com.glxp.mipsdl.thirddao.hlfyyy;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.mipsdl.entity.hlhyxyy.VA015;
import com.glxp.mipsdl.entity.hlfyyy.VA015;
import org.apache.ibatis.annotations.Mapper;
@Mapper
@DS("hlfyyySql")
public interface VA015Mapper extends BaseMapper<VA015> {
}
}

@ -1,9 +1,11 @@
package com.glxp.mipsdl.thirddao.hlhyxyy;
package com.glxp.mipsdl.thirddao.hlfyyy;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.mipsdl.entity.hlhyxyy.VA015Mx;
import com.glxp.mipsdl.entity.hlfyyy.VA015Mx;
import org.apache.ibatis.annotations.Mapper;
@Mapper
@DS("hlfyyySql")
public interface VA015MxMapper extends BaseMapper<VA015Mx> {
}
}

@ -1,9 +0,0 @@
package com.glxp.mipsdl.thirddao.hlhyxyy;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.mipsdl.entity.hlhyxyy.VA010;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface VA010Mapper extends BaseMapper<VA010> {
}

@ -9,7 +9,7 @@ spring:
username: root
password: 123456
driver-class-name: com.p6spy.engine.spy.P6SpyDriver
hlhyxyySql:
hlfyyySql:
# jdbc-url: jdbc:oracle:thin:@192.168.10.8:1521/njxyy
# username: SD_UDIJK
# password: SD_UDIJK

@ -9,7 +9,7 @@ spring:
username: root
password: Glxp@6066
driver-class-name: com.mysql.cj.jdbc.Driver
hlhyxyySql:
hlfyyySql:
driver-class-name: oracle.jdbc.driver.OracleDriver
url: jdbc:oracle:thin:@192.168.158.251:1521/hlfy
username: PZH

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glxp.mipsdl.thirddao.hlhyxyy.VA001Mapper">
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.hlhyxyy.VA001">
<mapper namespace="com.glxp.mipsdl.thirddao.hlfyyy.VA001Mapper">
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.hlfyyy.VA001">
<!--@mbg.generated-->
<!--@Table v_a001-->
<result column="UNITID" jdbcType="VARCHAR" property="UNITID" />
@ -17,7 +17,7 @@
<!--@mbg.generated-->
UNITID, `NAME`, LASTUPDATETIME, ADDR, CREDITNO, SPELL, CONTACT, MOBILE
</sql>
<select id="filterList" resultType="com.glxp.mipsdl.entity.hlhyxyy.VA001">
<select id="filterList" resultType="com.glxp.mipsdl.entity.hlfyyy.VA001">
select *
from a001
<where>

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glxp.mipsdl.thirddao.hlhyxyy.VA002Mapper">
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.hlhyxyy.VA002">
<mapper namespace="com.glxp.mipsdl.thirddao.hlfyyy.VA002Mapper">
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.hlfyyy.VA002">
<!--@mbg.generated-->
<!--@Table v_a002-->
<result column="LASTUPDATETIME" jdbcType="VARCHAR" property="LASTUPDATETIME" />
@ -38,9 +38,9 @@
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
LASTUPDATETIME, CODE, `NAME`, MEASNAME, `STANDARD`, REGISTERNO, MANUFACTORYCODE,
MANUFACTORY, SUPCODE, SUPNAME, CPLB, FLBM, QXLB, YBBM, SPTM, TYSHXYDM, YLQXZCRBARMC,
YLQXZCRBARYWMC, CPMS, SPMC, QTBM, ZCZYXQZ, PRICE, RETAILPRICE, INVCODE, REMARK, REMARK1,
LASTUPDATETIME, CODE, `NAME`, MEASNAME, `STANDARD`, REGISTERNO, MANUFACTORYCODE,
MANUFACTORY, SUPCODE, SUPNAME, CPLB, FLBM, QXLB, YBBM, SPTM, TYSHXYDM, YLQXZCRBARMC,
YLQXZCRBARYWMC, CPMS, SPMC, QTBM, ZCZYXQZ, PRICE, RETAILPRICE, INVCODE, REMARK, REMARK1,
REMARK2, REMARK3, REMARK4, REMARK5
</sql>
</mapper>
</mapper>

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glxp.mipsdl.thirddao.hlhyxyy.VA003Mapper">
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.hlhyxyy.VA003">
<mapper namespace="com.glxp.mipsdl.thirddao.hlfyyy.VA003Mapper">
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.hlfyyy.VA003">
<!--@mbg.generated-->
<!--@Table v_a003-->
<result column="LASTUPDATETIME" jdbcType="VARCHAR" property="LASTUPDATETIME" />
@ -37,9 +37,9 @@
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
LASTUPDATETIME, CODE, `NAME`, NAMECODE, MEASNAME, BZGG, PACKUNIT, PREPNSPEC, PREPNUNIT,
ZXBZSL, REGISTERNO, MANUFACTORYCODE, MANUFACTORY, SUPCODE, SUPNAME, CPLB, FLBM, YBBM,
SPTM, TYSHXYDM, CPMS, SPMC, ZCZYXQZ, PRICE, RETAILPRICE, INVCODE, REMARK, REMARK1,
LASTUPDATETIME, CODE, `NAME`, NAMECODE, MEASNAME, BZGG, PACKUNIT, PREPNSPEC, PREPNUNIT,
ZXBZSL, REGISTERNO, MANUFACTORYCODE, MANUFACTORY, SUPCODE, SUPNAME, CPLB, FLBM, YBBM,
SPTM, TYSHXYDM, CPMS, SPMC, ZCZYXQZ, PRICE, RETAILPRICE, INVCODE, REMARK, REMARK1,
REMARK2, REMARK3
</sql>
</mapper>
</mapper>

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glxp.mipsdl.thirddao.hlhyxyy.VA004Mapper">
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.hlhyxyy.VA004">
<mapper namespace="com.glxp.mipsdl.thirddao.hlfyyy.VA004Mapper">
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.hlfyyy.VA004">
<!--@mbg.generated-->
<!--@Table v_a004-->
<result column="CODE" jdbcType="VARCHAR" property="CODE" />
@ -12,4 +12,4 @@
<!--@mbg.generated-->
CODE, `NAME`, REMARK
</sql>
</mapper>
</mapper>

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glxp.mipsdl.thirddao.hlhyxyy.VA005Mapper">
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.hlhyxyy.VA005">
<mapper namespace="com.glxp.mipsdl.thirddao.hlfyyy.VA005Mapper">
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.hlfyyy.VA005">
<!--@mbg.generated-->
<!--@Table v_a005-->
<result column="CODE" jdbcType="VARCHAR" property="CODE" />
@ -13,4 +13,4 @@
<!--@mbg.generated-->
CODE, `NAME`, INOUTTYPE, REMARK
</sql>
</mapper>
</mapper>

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glxp.mipsdl.thirddao.hlhyxyy.VA006Mapper">
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.hlhyxyy.VA006">
<mapper namespace="com.glxp.mipsdl.thirddao.hlfyyy.VA006Mapper">
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.hlfyyy.VA006">
<!--@mbg.generated-->
<!--@Table v_a006-->
<result column="CODE" jdbcType="VARCHAR" property="CODE" />
@ -17,7 +17,7 @@
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
CODE, SICKCODE, SICKNAME, PRESCRIBEDATE, CREATEDR, AMOUNT, DEPTCODE, DEPTNAME, DIAGNOSIS,
CODE, SICKCODE, SICKNAME, PRESCRIBEDATE, CREATEDR, AMOUNT, DEPTCODE, DEPTNAME, DIAGNOSIS,
REMARK
</sql>
</mapper>
</mapper>

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glxp.mipsdl.thirddao.hlhyxyy.VA006MxMapper">
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.hlhyxyy.VA006Mx">
<mapper namespace="com.glxp.mipsdl.thirddao.hlfyyy.VA006MxMapper">
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.hlfyyy.VA006Mx">
<!--@mbg.generated-->
<!--@Table v_a006_mx-->
<result column="CODEFK" jdbcType="VARCHAR" property="CODEFK" />
@ -21,7 +21,7 @@
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
CODEFK, THRID, ITEMNAME, ITEMCODE, MEASURECOUNT, MEASUREUNIT, CATEGORY, FREQUENCY,
CODEFK, THRID, ITEMNAME, ITEMCODE, MEASURECOUNT, MEASUREUNIT, CATEGORY, FREQUENCY,
GGXH, `COUNT`, PRICE, RETAILPRICE, AMOUNT, REMARK
</sql>
</mapper>
</mapper>

@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glxp.mipsdl.thirddao.hlfyyy.VA010Mapper">
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.hlfyyy.VA010">
<!--@mbg.generated-->
<!--@Table v_a010-->
<result column="CODE" jdbcType="VARCHAR" property="CODE"/>
<result column="SICKCODE" jdbcType="VARCHAR" property="SICKCODE"/>
<result column="SICKNAME" jdbcType="VARCHAR" property="SICKNAME"/>
<result column="PRESCRIBEDATE" jdbcType="VARCHAR" property="PRESCRIBEDATE"/>
<result column="CREATEDR" jdbcType="VARCHAR" property="CREATEDR"/>
<result column="AMOUNT" jdbcType="VARCHAR" property="AMOUNT"/>
<result column="DEPTCODE" jdbcType="VARCHAR" property="DEPTCODE"/>
<result column="DEPTNAME" jdbcType="VARCHAR" property="DEPTNAME"/>
<result column="DIAGNOSIS" jdbcType="VARCHAR" property="DIAGNOSIS"/>
<result column="REMARK" jdbcType="VARCHAR" property="REMARK"/>
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
CODE, SICKCODE, SICKNAME, PRESCRIBEDATE, CREATEDR, AMOUNT, DEPTCODE, DEPTNAME, DIAGNOSIS,
REMARK
</sql>
<select id="getList" resultType="com.glxp.mipsdl.entity.hlfyyy.VA010">
select
<include refid="Base_Column_List">
</include>
from v_a010 WHERE 1=1
<if test="req.databaseProductName == 'MySQL'">
<if test="req.startTime != '' and req.startTime != null and req.endTime != '' and req.endTime != null">
AND STR_TO_DATE(PRESCRIBEDATE, '%e/%c/%Y %H:%i:%s') >= #{req.startTime} AND STR_TO_DATE(PRESCRIBEDATE, '%e/%c/%Y %H:%i:%s') &lt; #{req.endTime}
</if>
<if test="req.code != '' and req.code != null">
AND CODE = #{req.code}
</if>
<if test="req.fromCorpName != '' and req.fromCorpName != null">
AND DEPTNAME = #{req.fromCorpName}
</if>
<if test="req.key != '' and req.key != null">
AND CODE like concat('%', #{req.key}, '%')
or DEPTNAME like concat('%', #{req.key}, '%')
<!-- or STR_TO_DATE(PRESCRIBEDATE, '%e/%c/%Y %H:%i:%s') = #{req.key}-->
</if>
group by CODE
order by STR_TO_DATE(PRESCRIBEDATE, '%e/%c/%Y %H:%i:%s') desc
</if>
<if test="req.databaseProductName == 'Oracle'">
<if test="req.startTime != '' and req.startTime != null and req.endTime != '' and req.endTime != null">
AND TO_DATE(PRESCRIBEDATE, 'dd/MM/yyyy HH:mm:ss') >= #{req.startTime} AND TO_DATE(PRESCRIBEDATE, 'dd/MM/yyyy HH:mm:ss') &lt; #{req.endTime}
</if>
<if test="req.code != '' and req.code != null">
AND CODE = #{req.code}
</if>
<if test="req.fromCorpName != '' and req.fromCorpName != null">
AND DEPTNAME = #{req.fromCorpName}
</if>
<if test="req.key != '' and req.key != null">
AND CODE like '%' || #{req.key} || '%'
or DEPTNAME '%' || #{req.key} || '%'
<!-- or TO_DATE(PRESCRIBEDATE, 'dd/MM/yyyy HH:mm:ss') = #{req.key}-->
</if>
group by CODE
order by TO_DATE(PRESCRIBEDATE, 'dd/MM/yyyy HH:mm:ss') desc
</if>
</select>
</mapper>

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glxp.mipsdl.thirddao.hlfyyy.VA010MxMapper">
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.hlfyyy.VA010Mx">
<!--@mbg.generated-->
<!--@Table v_a010_mx-->
<result column="CODEFK" jdbcType="VARCHAR" property="CODEFK" />
<result column="THRID" jdbcType="VARCHAR" property="THRID" />
<result column="ITEMNAME" jdbcType="VARCHAR" property="ITEMNAME" />
<result column="ITEMCODE" jdbcType="VARCHAR" property="ITEMCODE" />
<result column="MEASURECOUNT" jdbcType="VARCHAR" property="MEASURECOUNT" />
<result column="MEASUREUNIT" jdbcType="VARCHAR" property="MEASUREUNIT" />
<result column="CATEGORY" jdbcType="VARCHAR" property="CATEGORY" />
<result column="FREQUENCY" jdbcType="VARCHAR" property="FREQUENCY" />
<result column="COUNT" jdbcType="VARCHAR" property="COUNT" />
<result column="BZGG" jdbcType="VARCHAR" property="BZGG" />
<result column="PACKUNIT" jdbcType="VARCHAR" property="PACKUNIT" />
<result column="PREPNSPEC" jdbcType="VARCHAR" property="PREPNSPEC" />
<result column="PREPNUNIT" jdbcType="VARCHAR" property="PREPNUNIT" />
<result column="MEASNAME" jdbcType="VARCHAR" property="MEASNAME" />
<result column="PRICE" jdbcType="VARCHAR" property="PRICE" />
<result column="RETAILPRICE" jdbcType="VARCHAR" property="RETAILPRICE" />
<result column="AMOUNT" jdbcType="VARCHAR" property="AMOUNT" />
<result column="REMARK" jdbcType="VARCHAR" property="REMARK" />
<result column="DRUGLIST" jdbcType="VARCHAR" property="DRUGLIST" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
CODEFK, THRID, ITEMNAME, ITEMCODE, MEASURECOUNT, MEASUREUNIT, CATEGORY, FREQUENCY,
`COUNT`, BZGG, PACKUNIT, PREPNSPEC, PREPNUNIT, MEASNAME, PRICE, RETAILPRICE, AMOUNT,
REMARK, DRUGLIST
</sql>
</mapper>

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glxp.mipsdl.thirddao.hlhyxyy.VA011Mapper">
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.hlhyxyy.VA011">
<mapper namespace="com.glxp.mipsdl.thirddao.hlfyyy.VA011Mapper">
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.hlfyyy.VA011">
<!--@mbg.generated-->
<!--@Table v_a011-->
<result column="CODEFK" jdbcType="VARCHAR" property="CODEFK" />
@ -20,7 +20,7 @@
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
CODEFK, CODE, SICKCODE, SICKNAME, PRESCRIBEDATE, CREATEDR, AMOUNT, DEPTCODE, DEPTNAME,
CODEFK, CODE, SICKCODE, SICKNAME, PRESCRIBEDATE, CREATEDR, AMOUNT, DEPTCODE, DEPTNAME,
INVCODE, SETTLENO, DIAGNOSIS, REMARK
</sql>
</mapper>
</mapper>

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glxp.mipsdl.thirddao.hlhyxyy.VA011MxMapper">
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.hlhyxyy.VA011Mx">
<mapper namespace="com.glxp.mipsdl.thirddao.hlfyyy.VA011MxMapper">
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.hlfyyy.VA011Mx">
<!--@mbg.generated-->
<!--@Table v_a011_mx-->
<result column="CODEFK" jdbcType="VARCHAR" property="CODEFK" />
@ -26,8 +26,8 @@
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
CODEFK, THRID, ITEMNAME, ITEMCODE, MEASURECOUNT, MEASUREUNIT, CATEGORY, FREQUENCY,
`COUNT`, BZGG, PACKUNIT, PREPNSPEC, PREPNUNIT, MEASNAME, PRICE, RETAILPRICE, AMOUNT,
CODEFK, THRID, ITEMNAME, ITEMCODE, MEASURECOUNT, MEASUREUNIT, CATEGORY, FREQUENCY,
`COUNT`, BZGG, PACKUNIT, PREPNSPEC, PREPNUNIT, MEASNAME, PRICE, RETAILPRICE, AMOUNT,
REMARK, DRUGLIST
</sql>
</mapper>
</mapper>

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glxp.mipsdl.thirddao.hlhyxyy.VA015Mapper">
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.hlhyxyy.VA015">
<mapper namespace="com.glxp.mipsdl.thirddao.hlfyyy.VA015Mapper">
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.hlfyyy.VA015">
<!--@mbg.generated-->
<!--@Table v_a015-->
<result column="CODE" jdbcType="VARCHAR" property="CODE" />
@ -17,7 +17,7 @@
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
CODE, SICKCODE, SICKNAME, PRESCRIBEDATE, CREATEDR, AMOUNT, DEPTCODE, DEPTNAME, DIAGNOSIS,
CODE, SICKCODE, SICKNAME, PRESCRIBEDATE, CREATEDR, AMOUNT, DEPTCODE, DEPTNAME, DIAGNOSIS,
REMARK
</sql>
</mapper>
</mapper>

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glxp.mipsdl.thirddao.hlhyxyy.VA015MxMapper">
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.hlhyxyy.VA015Mx">
<mapper namespace="com.glxp.mipsdl.thirddao.hlfyyy.VA015MxMapper">
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.hlfyyy.VA015Mx">
<!--@mbg.generated-->
<!--@Table v_a015_mx-->
<result column="CODEFK" jdbcType="VARCHAR" property="CODEFK" />
@ -21,7 +21,7 @@
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
CODEFK, THRID, ITEMNAME, ITEMCODE, MEASURECOUNT, MEASUREUNIT, CATEGORY, FREQUENCY,
CODEFK, THRID, ITEMNAME, ITEMCODE, MEASURECOUNT, MEASUREUNIT, CATEGORY, FREQUENCY,
GGXH, `COUNT`, PRICE, RETAILPRICE, AMOUNT, REMARK
</sql>
</mapper>
</mapper>

@ -1,23 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glxp.mipsdl.thirddao.hlhyxyy.VA010Mapper">
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.hlhyxyy.VA010">
<!--@mbg.generated-->
<!--@Table v_a010-->
<result column="CODE" jdbcType="VARCHAR" property="CODE" />
<result column="SICKCODE" jdbcType="VARCHAR" property="SICKCODE" />
<result column="SICKNAME" jdbcType="VARCHAR" property="SICKNAME" />
<result column="PRESCRIBEDATE" jdbcType="VARCHAR" property="PRESCRIBEDATE" />
<result column="CREATEDR" jdbcType="VARCHAR" property="CREATEDR" />
<result column="AMOUNT" jdbcType="VARCHAR" property="AMOUNT" />
<result column="DEPTCODE" jdbcType="VARCHAR" property="DEPTCODE" />
<result column="DEPTNAME" jdbcType="VARCHAR" property="DEPTNAME" />
<result column="DIAGNOSIS" jdbcType="VARCHAR" property="DIAGNOSIS" />
<result column="REMARK" jdbcType="VARCHAR" property="REMARK" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
CODE, SICKCODE, SICKNAME, PRESCRIBEDATE, CREATEDR, AMOUNT, DEPTCODE, DEPTNAME, DIAGNOSIS,
REMARK
</sql>
</mapper>
Loading…
Cancel
Save