| | |
| | | <result property="validFlag" column="valid_flag" typeHandler="com.nanometer.smartlab.entity.handler.ValidFlagHandler"></result> |
| | | <result property="createTime" column="create_time"></result> |
| | | <result property="updateTime" column="update_time"></result> |
| | | <result property="department" column="department"></result> |
| | | </resultMap> |
| | | |
| | | <resultMap id="SysWarehouseDto" type="com.nanometer.smartlab.entity.dto.SysWarehouseDto"> |
| | |
| | | </select> |
| | | |
| | | <insert id="insertSysWarehouse" parameterType="com.nanometer.smartlab.entity.SysWarehouse"> |
| | | insert into sys_warehouse(id, type, name, info_code, bar_code, location1, location2, valid_flag, create_time, update_time) |
| | | values (#{id}, #{type}, #{name}, #{infoCode}, #{barCode}, #{location1}, #{location2}, 1, now(), now()) |
| | | insert into sys_warehouse(id, type, name, info_code, bar_code, location1, location2, valid_flag, create_time, update_time,department) |
| | | values (#{id}, #{type}, #{name}, #{infoCode}, #{barCode}, #{location1}, #{location2}, 1, now(), now(),#{department}) |
| | | </insert> |
| | | |
| | | <update id="updateSysWarehouse" parameterType="com.nanometer.smartlab.entity.SysWarehouse"> |
| | | update sys_warehouse set type=#{type}, name=#{name}, info_code=#{infoCode}, bar_code=#{barCode}, location1=#{location1}, location2=#{location2}, |
| | | update_time=now() |
| | | update_time=now(),department=#{department} |
| | | where id=#{id} |
| | | </update> |
| | | |