处方退货判断更改

dev_2.5_ocean
qiuyt 4 months ago
parent ba1944aa30
commit 6575d0bcf1

@ -156,6 +156,7 @@ public class BasicOrderPrintController {
bizData.put("zczbhhzbapzbh", obj.getCertCode() == null ? ' ' : obj.getCertCode()); bizData.put("zczbhhzbapzbh", obj.getCertCode() == null ? ' ' : obj.getCertCode());
bizData.put("ylqxzcrbarmc", udiProductEntity.getYlqxzcrbarmc() == null ? ' ' : udiProductEntity.getYlqxzcrbarmc()); bizData.put("ylqxzcrbarmc", udiProductEntity.getYlqxzcrbarmc() == null ? ' ' : udiProductEntity.getYlqxzcrbarmc());
bizData.put("fromSpmsOrders", ioOrderResponse.getFromSpmsOrders() == null ? ' ' : ioOrderResponse.getFromSpmsOrders()); bizData.put("fromSpmsOrders", ioOrderResponse.getFromSpmsOrders() == null ? ' ' : ioOrderResponse.getFromSpmsOrders());
bizData.put("invoiceCode",ioOrderResponse.getInvoiceCode());
//添加发票号 //添加发票号
String fphm = ""; String fphm = "";

@ -15,6 +15,7 @@ import com.glxp.api.common.util.ResultVOUtils;
import com.glxp.api.constant.*; import com.glxp.api.constant.*;
import com.glxp.api.controller.BaseController; import com.glxp.api.controller.BaseController;
import com.glxp.api.dao.basic.UdiProductDao; import com.glxp.api.dao.basic.UdiProductDao;
import com.glxp.api.dao.inout.IoOrderInvoiceMapper;
import com.glxp.api.entity.auth.AuthAdmin; import com.glxp.api.entity.auth.AuthAdmin;
import com.glxp.api.entity.auth.InvBusUserEntity; import com.glxp.api.entity.auth.InvBusUserEntity;
import com.glxp.api.entity.auth.InvWarehouseEntity; import com.glxp.api.entity.auth.InvWarehouseEntity;
@ -154,7 +155,8 @@ public class IoOrderController extends BaseController {
PageInfo<IoOrderResponse> pageInfo = new PageInfo<>(list); PageInfo<IoOrderResponse> pageInfo = new PageInfo<>(list);
return ResultVOUtils.page(pageInfo); return ResultVOUtils.page(pageInfo);
} }
@Resource
private IoOrderInvoiceMapper ioOrderInvoiceMapper;
@AuthRuleAnnotation("") @AuthRuleAnnotation("")
@GetMapping("/udiwms/inout/order/filterList") @GetMapping("/udiwms/inout/order/filterList")
public BaseResponse filterOrderList(FilterOrderRequest filterOrderRequest) { public BaseResponse filterOrderList(FilterOrderRequest filterOrderRequest) {
@ -194,7 +196,14 @@ public class IoOrderController extends BaseController {
if (ioOrderResponse.getCheckStatus() == null) { if (ioOrderResponse.getCheckStatus() == null) {
ioOrderResponse.setCheckStatus(0 + ""); ioOrderResponse.setCheckStatus(0 + "");
} }
long count = ioOrderInvoiceMapper.selectCount(
new QueryWrapper<IoOrderInvoiceEntity>().eq("orderIdFk",ioOrderResponse.getBillNo())
);
if(count>0){
ioOrderResponse.setInvoiceStatus(2);
} }
}
PageInfo<IoOrderResponse> pageInfo = new PageInfo<>(list); PageInfo<IoOrderResponse> pageInfo = new PageInfo<>(list);
return ResultVOUtils.page(pageInfo); return ResultVOUtils.page(pageInfo);
} }

@ -293,6 +293,7 @@ public class IoOrderResponse {
* *
*/ */
private String workPlaceQueueCode; private String workPlaceQueueCode;
private String invoiceCode;
public String getFromName() { public String getFromName() {

@ -15,7 +15,8 @@
bc1.name AS fromCorpName, bc1.name AS fromCorpName,
bc2.name AS customerName, bc2.name AS customerName,
sw.workplaceName AS workPlaceName, sw.workplaceName AS workPlaceName,
swd.busName AS splitBusTypeName swd.busName AS splitBusTypeName,
inv.invoiceCode AS invoiceCode
FROM FROM
io_order io io_order io
LEFT JOIN LEFT JOIN
@ -46,7 +47,8 @@
sys_workplace sw ON sw.workplaceId = io.workPlaceCode sys_workplace sw ON sw.workplaceId = io.workPlaceCode
LEFT JOIN LEFT JOIN
sys_workplace_document swd ON swd.documentTypeCode = io.splitBusType sys_workplace_document swd ON swd.documentTypeCode = io.splitBusType
LEFT JOIN
io_order_invoice inv ON inv.orderIdFk = io.billNo
<if test="uploadKey != null and uploadKey != ''"> <if test="uploadKey != null and uploadKey != ''">
INNER JOIN io_unit_maintain_platform a2 on io.action = a2.sourceAction AND io.fromCorp = a2.unitId INNER JOIN io_unit_maintain_platform a2 on io.action = a2.sourceAction AND io.fromCorp = a2.unitId
</if> </if>

Loading…
Cancel
Save