diff --git a/src/main/java/com/glxp/api/res/inv/InvPreinOrderResponse.java b/src/main/java/com/glxp/api/res/inv/InvPreinOrderResponse.java index 8d600f673..8b8168e15 100644 --- a/src/main/java/com/glxp/api/res/inv/InvPreinOrderResponse.java +++ b/src/main/java/com/glxp/api/res/inv/InvPreinOrderResponse.java @@ -77,5 +77,6 @@ public class InvPreinOrderResponse { private String deptName; private String invName; + private Integer orderFromType; } diff --git a/src/main/resources/mybatis/mapper/inv/InvPreinOrderDao.xml b/src/main/resources/mybatis/mapper/inv/InvPreinOrderDao.xml index b5b7dda7d..4bd97c9da 100644 --- a/src/main/resources/mybatis/mapper/inv/InvPreinOrderDao.xml +++ b/src/main/resources/mybatis/mapper/inv/InvPreinOrderDao.xml @@ -7,6 +7,7 @@ (select name from basic_bussiness_type bus where bus.action = io.action) billTypeName, (select name from auth_dept ad where ad.code = io.deptCode) deptName, (select name from auth_warehouse aw where aw.code = io.invCode) invName, + ( SELECT fromType FROM io_order ior WHERE ior.billNo = io.billNo ) orderFromType, (select employeeName from auth_user au where au.id = io.createUser) createUserName, (select employeeName from auth_user au2 where au2.id = io.updateUser) updateUserName, (select employeeName from auth_user au3 where au3.id = io.reviewUser) reviewUserName,