| | |
| | | <result column="create_time" property="createTime"/> |
| | | <result column="update_user" property="updateUser"/> |
| | | <result column="update_time" property="updateTime"/> |
| | | <result column="son_laboratory" property="sonLaboratory"/> |
| | | </resultMap> |
| | | <select id="getFileList" resultType="com.yuanchu.mom.pojo.InsOrderFile"> |
| | | select A.* |
| | | from (select iof.*, name |
| | | from ins_order_file iof |
| | | left join user u on iof.create_user = u.id |
| | | where ins_order_id=#{insOrderId}) A |
| | | from ins_order_file iof |
| | | left join user u on iof.create_user = u.id |
| | | where ins_order_id=#{insOrderId} |
| | | <if test="sonLaboratory!=null and sonLaboratory!=''"> |
| | | and son_laboratory=#{sonLaboratory} |
| | | or son_laboratory is null |
| | | </if> |
| | | ) A |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |