| | |
| | | <result property="isFuse" column="ISFUSE"/> |
| | | <result property="predictPhase" column="PREDICTPHASE"/> |
| | | <result property="workChecked" column="WORKCHECKED"/> |
| | | <result property="lastTime" column="last_time"/> |
| | | </resultMap> |
| | | |
| | | <resultMap id="MergeItemVO" type="com.iailab.module.model.mdk.vo.MergeItemVO"> |
| | |
| | | t1.status, |
| | | t1.isfuse, |
| | | t1.predictphase, |
| | | t1.workchecked |
| | | t1.workchecked, |
| | | t3.last_time |
| | | FROM |
| | | t_mm_predict_item t1, |
| | | t_mm_item_type t2 |
| | | WHERE t1.itemtypeid=t2.id |
| | | <if test="ITEMID != null and ITEMID != ''"> |
| | | AND t1.id=#{ITEMID} |
| | | </if> |
| | | <if test="ITEMNO != null and ITEMNO != ''"> |
| | | t1.itemno=#{ITEMNO} |
| | | </if> |
| | | t_mm_predict_item t1 |
| | | LEFT JOIN t_mm_item_type t2 on t2.id = t1.itemtypeid |
| | | LEFT JOIN t_mm_item_status t3 on t3.item_id = t1.id |
| | | <where> |
| | | <if test="ITEMID != null and ITEMID != ''"> |
| | | AND t1.id=#{ITEMID} |
| | | </if> |
| | | <if test="ITEMNO != null and ITEMNO != ''"> |
| | | t1.itemno=#{ITEMNO} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | <select id="getMergeItemByItemId" parameterType="map" resultMap="MergeItemVO"> |
| | | SELECT t1.id, |