| | |
| | | <result property="number" column="number" /> |
| | | <result property="unit" column="unit" /> |
| | | <result property="createDate" column="create_date" /> |
| | | <result property="fileUrl" column="file_url" /> |
| | | <result property="remark" column="remark" /> |
| | | <result property="outboundNumber" column="outbound_number" /> |
| | | <result property="inboundNumber" column="inbound_number" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectTubLogVo"> |
| | | select id, code, project_id, tub_name, type, outbound_date, inbound_date, opt_user, apply_user, number, unit, create_date, remark from js_tub_log |
| | | select id, code, project_id, tub_name, type, outbound_date, inbound_date, opt_user, apply_user, number, unit, create_date, file_url, remark from js_tub_log |
| | | </sql> |
| | | |
| | | <select id="selectTubLogList" parameterType="TubLog" resultMap="TubLogResult"> |
| | |
| | | <if test="number != null ">number,</if> |
| | | <if test="unit != null and unit != ''">unit,</if> |
| | | <if test="createDate != null ">create_date,</if> |
| | | <if test="fileUrl != null and fileUrl != ''">file_url,</if> |
| | | <if test="remark != null and remark != ''">remark,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | |
| | | <if test="number != null ">#{number},</if> |
| | | <if test="unit != null and unit != ''">#{unit},</if> |
| | | <if test="createDate != null ">#{createDate},</if> |
| | | <if test="fileUrl != null and fileUrl != ''">#{fileUrl},</if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |
| | | </trim> |
| | | </insert> |
| | |
| | | <if test="number != null ">number = #{number},</if> |
| | | <if test="unit != null and unit != ''">unit = #{unit},</if> |
| | | <if test="createDate != null ">create_date = #{createDate},</if> |
| | | <if test="fileUrl != null and fileUrl != ''">file_url = #{fileUrl},</if> |
| | | <if test="remark != null and remark != ''">remark = #{remark},</if> |
| | | </trim> |
| | | where id = #{id} |