<?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="org.jeecg.modules.mes.mapper.MesMaterialLoadingMapper">
|
<select id="queryUnloadingByLoadingId" resultType="org.jeecg.modules.mes.entity.MesMaterialUnloading">
|
select * from mes_material_unloading where loading_id = #{loadingId} and del_flag = 0
|
</select>
|
<select id="queryLoadingByWorkOrderId" resultType="org.jeecg.modules.mes.entity.MesMaterialLoading">
|
select mml.* ,mpwo.work_order_code as workOrderCode
|
from mes_material_loading mml
|
left join mes_production_work_order mpwo on mml.work_order_id = mpwo.id
|
where mml.work_order_id = #{workOrderId}
|
and mml.del_flag = 0
|
</select>
|
</mapper>
|