|
|
@ -13,10 +13,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<result property="locationArea" column="location_area" />
|
|
|
|
<result property="locationArea" column="location_area" />
|
|
|
|
<result property="deleteFlag" column="delete_flag" />
|
|
|
|
<result property="deleteFlag" column="delete_flag" />
|
|
|
|
<result property="recordTime" column="record_time" />
|
|
|
|
<result property="recordTime" column="record_time" />
|
|
|
|
|
|
|
|
<result property="storeCode" column="store_code" />
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectBaseMaterialStoreVo">
|
|
|
|
<sql id="selectBaseMaterialStoreVo">
|
|
|
|
select objid, material_code, material_type, location_code, location_status, location_area, delete_flag, record_time from base_material_store
|
|
|
|
select objid, material_code, material_type, location_code, location_status, location_area, delete_flag, record_time,store_code from base_material_store
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectBaseMaterialStoreList" parameterType="BaseMaterialStore" resultMap="BaseMaterialStoreResult">
|
|
|
|
<select id="selectBaseMaterialStoreList" parameterType="BaseMaterialStore" resultMap="BaseMaterialStoreResult">
|
|
|
@ -27,6 +28,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
|
|
|
<if test="locationStatus != null"> and location_status = #{locationStatus} </if>
|
|
|
|
<if test="locationStatus != null"> and location_status = #{locationStatus} </if>
|
|
|
|
<if test="locationArea != null and locationArea != ''"> and location_area = #{locationArea} </if>
|
|
|
|
<if test="locationArea != null and locationArea != ''"> and location_area = #{locationArea} </if>
|
|
|
|
|
|
|
|
<if test="storeCode != null and storeCode != ''"> and store_code = #{storeCode} </if>
|
|
|
|
|
|
|
|
|
|
|
|
and delete_flag = '1'
|
|
|
|
and delete_flag = '1'
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
@ -50,6 +53,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="locationArea != null">location_area,</if>
|
|
|
|
<if test="locationArea != null">location_area,</if>
|
|
|
|
<if test="deleteFlag != null">delete_flag,</if>
|
|
|
|
<if test="deleteFlag != null">delete_flag,</if>
|
|
|
|
<if test="recordTime != null">record_time,</if>
|
|
|
|
<if test="recordTime != null">record_time,</if>
|
|
|
|
|
|
|
|
<if test="storeCode != null">store_code,</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="objid != null">#{objid},</if>
|
|
|
|
<if test="objid != null">#{objid},</if>
|
|
|
@ -60,6 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="locationArea != null">#{locationArea},</if>
|
|
|
|
<if test="locationArea != null">#{locationArea},</if>
|
|
|
|
<if test="deleteFlag != null">#{deleteFlag},</if>
|
|
|
|
<if test="deleteFlag != null">#{deleteFlag},</if>
|
|
|
|
<if test="recordTime != null">#{recordTime},</if>
|
|
|
|
<if test="recordTime != null">#{recordTime},</if>
|
|
|
|
|
|
|
|
<if test="storeCode != null">#{storeCode},</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
@ -73,6 +78,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="locationArea != null">location_area = #{locationArea},</if>
|
|
|
|
<if test="locationArea != null">location_area = #{locationArea},</if>
|
|
|
|
<if test="deleteFlag != null">delete_flag = #{deleteFlag},</if>
|
|
|
|
<if test="deleteFlag != null">delete_flag = #{deleteFlag},</if>
|
|
|
|
<if test="recordTime != null">record_time = #{recordTime},</if>
|
|
|
|
<if test="recordTime != null">record_time = #{recordTime},</if>
|
|
|
|
|
|
|
|
<if test="storeCode != null">store_code = #{storeCode},</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
where objid = #{objid}
|
|
|
|
where objid = #{objid}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
@ -87,6 +93,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="locationArea != null">location_area = #{locationArea},</if>
|
|
|
|
<if test="locationArea != null">location_area = #{locationArea},</if>
|
|
|
|
<if test="deleteFlag != null">delete_flag = #{deleteFlag},</if>
|
|
|
|
<if test="deleteFlag != null">delete_flag = #{deleteFlag},</if>
|
|
|
|
<if test="recordTime != null">record_time = #{recordTime},</if>
|
|
|
|
<if test="recordTime != null">record_time = #{recordTime},</if>
|
|
|
|
|
|
|
|
<if test="storeCode != null">store_code = #{storeCode},</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
where location_code = #{locationCode}
|
|
|
|
where location_code = #{locationCode}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|