diff --git a/ktg-mes/src/main/resources/mapper/wm/WmStorageLocationMapper.xml b/ktg-mes/src/main/resources/mapper/wm/WmStorageLocationMapper.xml index 3ffd7de..f65a160 100644 --- a/ktg-mes/src/main/resources/mapper/wm/WmStorageLocationMapper.xml +++ b/ktg-mes/src/main/resources/mapper/wm/WmStorageLocationMapper.xml @@ -1,60 +1,85 @@ + PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - select location_id, location_code, location_name, warehouse_id, area, area_flag, frozen_flag, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time from wm_storage_location + select location_id, + location_code, + location_name, + warehouse_id, + area, + area_flag, + frozen_flag, + remark, + attr1, + attr2, + attr3, + attr4, + create_by, + create_time, + update_by, + update_time + from wm_storage_location @@ -62,114 +87,228 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - + - + insert into wm_storage_location - location_code, - location_name, - warehouse_id, - area, - area_flag, - frozen_flag, - remark, - attr1, - attr2, - attr3, - attr4, - create_by, - create_time, - update_by, - update_time, - + + location_code, + + + location_name, + + + warehouse_id, + + + area, + + + area_flag, + + + frozen_flag, + + + remark, + + + attr1, + + + attr2, + + + attr3, + + + attr4, + + + create_by, + + + create_time, + + + update_by, + + + update_time, + + - #{locationCode}, - #{locationName}, - #{warehouseId}, - #{area}, - #{areaFlag}, - #{frozenFlag}, - #{remark}, - #{attr1}, - #{attr2}, - #{attr3}, - #{attr4}, - #{createBy}, - #{createTime}, - #{updateBy}, - #{updateTime}, - + + #{locationCode}, + + + #{locationName}, + + + #{warehouseId}, + + + #{area}, + + + #{areaFlag}, + + + #{frozenFlag}, + + + #{remark}, + + + #{attr1}, + + + #{attr2}, + + + #{attr3}, + + + #{attr4}, + + + #{createBy}, + + + #{createTime}, + + + #{updateBy}, + + + #{updateTime}, + + update wm_storage_location - location_code = #{locationCode}, - location_name = #{locationName}, - warehouse_id = #{warehouseId}, - area = #{area}, - area_flag = #{areaFlag}, - frozen_flag = #{frozenFlag}, - remark = #{remark}, - attr1 = #{attr1}, - attr2 = #{attr2}, - attr3 = #{attr3}, - attr4 = #{attr4}, - create_by = #{createBy}, - create_time = #{createTime}, - update_by = #{updateBy}, - update_time = #{updateTime}, + + location_code = #{locationCode}, + + + location_name = #{locationName}, + + + warehouse_id = #{warehouseId}, + + + area = #{area}, + + + area_flag = #{areaFlag}, + + + frozen_flag = #{frozenFlag}, + + + remark = #{remark}, + + + attr1 = #{attr1}, + + + attr2 = #{attr2}, + + + attr3 = #{attr3}, + + + attr4 = #{attr4}, + + + create_by = #{createBy}, + + + create_time = #{createTime}, + + + update_by = #{updateBy}, + + + update_time = #{updateTime}, + where location_id = #{locationId} - update wm_storage_location set IS_DELETE = 1 where location_id = #{locationId} + update wm_storage_location + set IS_DELETE = 1 + where location_id = #{locationId} - update wm_storage_location set IS_DELETE = 1 where location_id in + update wm_storage_location + set IS_DELETE = 1 where location_id in #{locationId} - update wm_storage_location set IS_DELETE = 1 where warehouse_id = #{warehouseId} + update wm_storage_location + set IS_DELETE = 1 + where warehouse_id = #{warehouseId} \ No newline at end of file