单据明细新增制剂规格

dev_2.5_optimize
yewj 4 months ago
parent bd46bf98c0
commit 2b6f1fe39b

@ -1112,7 +1112,7 @@ public class IoOrderDetailBizController extends BaseController {
ioCodeLostService.insertOrUpdate(codeLostEntity);
UdiEntity udiEntityy = FilterUdiUtils.getUdi(addOrderRequest.getCode());
BaseResponse response2 = ioOrderDetailBizService.adddDrugOrder(addOrderRequest,udiEntityy,addOrderRequest.getCode());
BaseResponse response2 = ioOrderDetailBizService.adddDrugOrder(addOrderRequest, udiEntityy, addOrderRequest.getCode());
if (response2.getCode() != 20000) {
return response2;

@ -184,40 +184,44 @@
<select id="orderOutRecordPage" resultType="com.glxp.api.res.inout.IoOrderDetailBizResponse">
select io_order_detail_biz.*,
io.action,
io.updateTime
from io_order_detail_biz
left join io_order io on io.billNo = io_order_detail_biz.orderIdFk
<where>
AND ( io.action = 'SC72197936495755' OR io.action = 'SC72249388338364' )
<if test="batchNo != null and batchNo != ''">
AND batchNo = #{batchNo}
</if>
<if test="action != null and action != ''">
AND io.action = #{action}
</if>
<if test="productName != null and productName != ''">
AND io_order_detail_biz.coName like concat('%', #{productName}, '%')
</if>
<if test="cpmctymc != null and cpmctymc != ''">
AND io_order_detail_biz.coName like concat('%', #{cpmctymc}, '%')
</if>
<if test="nameCode != null and nameCode != ''">
AND io_order_detail_biz.nameCode like concat('%', #{nameCode}, '%')
</if>
<if test="ggxh != null and ggxh != ''">
AND io_order_detail_biz.spec like concat('%', #{ggxh}, '%')
</if>
<if test="keyWords != null and keyWords != ''">
AND (
io_order_detail_biz.coName like concat('%', #{keyWords}, '%')
OR io_order_detail_biz.spec like concat('%', #{keyWords}, '%')
OR io_order_detail_biz.batchNo like concat('%', #{keyWords}, '%')
)
</if>
</where>
order by updateTime desc
</select>
select io_order_detail_biz.*,
io.action,
io.updateTime,
bp.prepnSpec
from io_order_detail_biz
left join basic_udirel bu on bu.id = io_order_detail_biz.bindRlFk
left join basic_products bp on bu.uuid = bp.uuid
left join io_order io on io.billNo = io_order_detail_biz.orderIdFk
<where>
AND (io.action = 'SC72197936495755' OR io.action = 'SC72249388338364')
<if test="batchNo != null and batchNo != ''">
AND batchNo = #{batchNo}
</if>
<if test="action != null and action != ''">
AND io.action = #{action}
</if>
<if test="productName != null and productName != ''">
AND io_order_detail_biz.coName like concat('%', #{productName}, '%')
</if>
<if test="cpmctymc != null and cpmctymc != ''">
AND io_order_detail_biz.coName like concat('%', #{cpmctymc}, '%')
</if>
<if test="nameCode != null and nameCode != ''">
AND io_order_detail_biz.nameCode like concat('%', #{nameCode}, '%')
</if>
<if test="ggxh != null and ggxh != ''">
AND io_order_detail_biz.spec like concat('%', #{ggxh}, '%')
</if>
<if test="keyWords != null and keyWords != ''">
AND (
io_order_detail_biz.coName like concat('%', #{keyWords}, '%')
OR io_order_detail_biz.spec like concat('%', #{keyWords}, '%')
OR io_order_detail_biz.batchNo like concat('%', #{keyWords}, '%')
)
</if>
</where>
GROUP BY io_order_detail_biz.id
order by updateTime desc
</select>
</mapper>

Loading…
Cancel
Save