Merge remote-tracking branch 'origin/master'
commit
0ec54ddd64
@ -0,0 +1,52 @@
|
||||
package com.glxp.api.controller.inv;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.glxp.api.annotation.AuthRuleAnnotation;
|
||||
import com.glxp.api.common.res.BaseResponse;
|
||||
import com.glxp.api.common.util.ResultVOUtils;
|
||||
import com.glxp.api.entity.basic.BasicCorpEntity;
|
||||
import com.glxp.api.req.inout.FilterOrderRequest;
|
||||
import com.glxp.api.req.inv.FilterSickTraceRequest;
|
||||
import com.glxp.api.res.PageSimpleResponse;
|
||||
import com.glxp.api.res.inout.IoOrderResponse;
|
||||
import com.glxp.api.service.basic.BasicCorpService;
|
||||
import com.glxp.api.service.inout.IoOrderService;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
public class InvSickTraceController {
|
||||
|
||||
@Resource
|
||||
IoOrderService orderService;
|
||||
@Resource
|
||||
BasicCorpService basicCorpService;
|
||||
|
||||
|
||||
@AuthRuleAnnotation("")
|
||||
@GetMapping("spms/inv/sick/order/trace")
|
||||
public BaseResponse filterSickTrace(FilterSickTraceRequest filterSickTraceRequest) {
|
||||
|
||||
if (StrUtil.isEmpty(filterSickTraceRequest.getSickAd())) {
|
||||
return ResultVOUtils.error(500, "病人住院号不能为空!");
|
||||
}
|
||||
BasicCorpEntity basicCorpEntity = basicCorpService.selectByName(filterSickTraceRequest.getSickAd());
|
||||
if (basicCorpEntity == null) {
|
||||
return ResultVOUtils.error(500, "未查询到病人信息");
|
||||
}
|
||||
|
||||
FilterOrderRequest orderFilterRequest = new FilterOrderRequest();
|
||||
orderFilterRequest.setFromCorp(basicCorpEntity.getErpId());
|
||||
List<IoOrderResponse> orderEntityList = orderService.filterList(orderFilterRequest);
|
||||
PageInfo<IoOrderResponse> pageInfo;
|
||||
pageInfo = new PageInfo<>(orderEntityList);
|
||||
PageSimpleResponse<IoOrderResponse> pageSimpleResponse = new PageSimpleResponse<>();
|
||||
pageSimpleResponse.setTotal(pageInfo.getTotal());
|
||||
pageSimpleResponse.setList(orderEntityList);
|
||||
return ResultVOUtils.success(pageSimpleResponse);
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.glxp.api.req.inv;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class FilterSickTraceRequest {
|
||||
|
||||
private String sickAd; //病人住院号
|
||||
}
|
@ -0,0 +1,171 @@
|
||||
package com.glxp.api.res.inout;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Data
|
||||
public class IoOrderCheckResultResponse {
|
||||
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 订单号外键
|
||||
*/
|
||||
private String orderIdFk;
|
||||
|
||||
/**
|
||||
* 耗材字典ID外键
|
||||
*/
|
||||
private Long bindRlFk;
|
||||
|
||||
/**
|
||||
* DI信息UUID外键
|
||||
*/
|
||||
private String uuidFk;
|
||||
|
||||
/**
|
||||
* DI
|
||||
*/
|
||||
private String nameCode;
|
||||
|
||||
/**
|
||||
* 批次号
|
||||
*/
|
||||
private String bBatchNo;
|
||||
|
||||
/**
|
||||
* 生产日期
|
||||
*/
|
||||
private String bProductDate;
|
||||
|
||||
/**
|
||||
* 失效日期
|
||||
*/
|
||||
private String bExpireDate;
|
||||
|
||||
|
||||
/**
|
||||
* 批次号
|
||||
*/
|
||||
private String sBatchNo;
|
||||
|
||||
/**
|
||||
* 生产日期
|
||||
*/
|
||||
private String sProductDate;
|
||||
|
||||
/**
|
||||
* 失效日期
|
||||
*/
|
||||
private String sExpireDate;
|
||||
|
||||
/**
|
||||
* 产品通用名称
|
||||
*/
|
||||
private String coName;
|
||||
|
||||
/**
|
||||
* 注册证号
|
||||
*/
|
||||
private String certCode;
|
||||
|
||||
/**
|
||||
* 医疗器械注册备案证号
|
||||
*/
|
||||
private String ylqxzcrbarmc;
|
||||
|
||||
/**
|
||||
* 生产企业
|
||||
*/
|
||||
private String manufacturer;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
private String measname;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
private String spec;
|
||||
|
||||
/**
|
||||
* 价格
|
||||
*/
|
||||
private BigDecimal price;
|
||||
|
||||
/**
|
||||
* 销售清单号
|
||||
*/
|
||||
private String secSalesListNo;
|
||||
|
||||
/**
|
||||
* 发票第一票
|
||||
*/
|
||||
private String firstSalesInvNo;
|
||||
|
||||
/**
|
||||
* 发票第二票
|
||||
*/
|
||||
private String secSalesInvNo;
|
||||
|
||||
/**
|
||||
* 发票有效期
|
||||
*/
|
||||
private String invoiceDate;
|
||||
|
||||
/**
|
||||
* 供应商ID外键
|
||||
*/
|
||||
private String supId;
|
||||
|
||||
/**
|
||||
* 绑定供应商状态
|
||||
*/
|
||||
private String bindSupStatus;
|
||||
|
||||
/**
|
||||
* 单据数量
|
||||
*/
|
||||
private int count;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 扩展字段1
|
||||
*/
|
||||
private String remark1;
|
||||
|
||||
/**
|
||||
* 扩展字段2
|
||||
*/
|
||||
private String remark2;
|
||||
|
||||
/**
|
||||
* 扩展字段3
|
||||
*/
|
||||
private String remark3;
|
||||
|
||||
/**
|
||||
* 扩展字段4
|
||||
*/
|
||||
private String remark4;
|
||||
|
||||
/**
|
||||
* 扩展字段5
|
||||
*/
|
||||
private String remark5;
|
||||
|
||||
private String bindRlIds;
|
||||
|
||||
|
||||
private boolean checkSuccess;
|
||||
|
||||
private int scanCount;
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue