| | |
| | | is_use=2 |
| | | where material_release_id=#{materialReleaseId} |
| | | </update> |
| | | |
| | | <select id="pieceList" resultType="com.thhy.materials.modules.biz.concret.entity.dto.PieceDto"> |
| | | select by_id as byId from t_piece |
| | | where 1=1 |
| | | <if test="byId!=null and byId!='' "> |
| | | and by_id=#{byId} |
| | | </if> |
| | | ORDER BY by_id desc |
| | | </select> |
| | | <select id="materialRew" resultType="com.thhy.materials.modules.biz.concret.entity.TRawMaterial"> |
| | | select Storage as storage, |
| | | Material as material, |
| | | RecAmnt as recamnt, |
| | | PlanAmnt as planamnt, |
| | | FactAmnt as factamnt |
| | | from t_raw_material |
| | | where Piece=#{byId} |
| | | </select> |
| | | </mapper> |