| | |
| | | TMPI.WORKCHECKED, |
| | | TDMI.MODULEID, |
| | | TDMI.ITEMORDER, |
| | | TDMI.STATUS, |
| | | TMPI.STATUS, |
| | | TDMI.CATEGORYID, |
| | | TMIO.POINTID, |
| | | TMIO.TAGNAME, |
| | |
| | | LEFT JOIN T_MM_ITEM_OUTPUT TMIO ON TMIO.ITEMID = TMPI.ID |
| | | LEFT JOIN T_MM_RESULT_TABLE TMRT ON TMRT.ID = TMIO.RESULTTABLEID |
| | | WHERE 1 = 1 |
| | | <if test="params.itemno != null and params.itemno != ''"> |
| | | AND TMPI.ITEMNO LIKE CONCAT('%', #{params.itemno},'%') |
| | | <if test="itemno != null and itemno != ''"> |
| | | AND TMPI.ITEMNO LIKE CONCAT('%', #{itemno},'%') |
| | | </if> |
| | | <if test="params.itemname != null and params.itemname != ''"> |
| | | AND TMPI.ITEMNAME LIKE CONCAT('%', #{params.itemname},'%') |
| | | <if test="itemname != null and itemname != ''"> |
| | | AND TMPI.ITEMNAME LIKE CONCAT('%', #{itemname},'%') |
| | | </if> |
| | | <if test="params.itemtypeid != null and params.itemtypeid != ''"> |
| | | AND TMPI.ITEMTYPEID = #{params.itemtypeid} |
| | | <if test="itemtypeid != null and itemtypeid != ''"> |
| | | AND TMPI.ITEMTYPEID = #{itemtypeid} |
| | | </if> |
| | | <if test="params.itemtypename != null and params.itemtypename != ''"> |
| | | AND TMIT.ITEMTYPENAME = #{params.itemtypename} |
| | | <if test="itemtypename != null and itemtypename != ''"> |
| | | AND TMIT.ITEMTYPENAME = #{itemtypename} |
| | | </if> |
| | | <if test="params.status != null and params.status != ''"> |
| | | AND TDMI.STATUS = #{params.status} |
| | | <if test="status != null and status != ''"> |
| | | AND TMPI.STATUS = #{status} |
| | | </if> |
| | | ORDER BY TMPI.CREATE_TIME DESC |
| | | </select> |
| | |
| | | t1.predictphase, |
| | | t1.workchecked |
| | | FROM |
| | | ${TABLESCHEMA}.t_mm_predict_item t1, |
| | | ${TABLESCHEMA}.t_mm_item_type t2 |
| | | 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} |