From 12ec47a5fed86e04433ca725caf6068c5000d0af Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期日, 08 十月 2023 17:02:09 +0800 Subject: [PATCH] 后台代码 --- cloud-server-management/src/main/resources/mapper/TStoreMapper.xml | 21 ++++++++++++++++++--- 1 files changed, 18 insertions(+), 3 deletions(-) diff --git a/cloud-server-management/src/main/resources/mapper/TStoreMapper.xml b/cloud-server-management/src/main/resources/mapper/TStoreMapper.xml index 2120241..e8a7951 100644 --- a/cloud-server-management/src/main/resources/mapper/TStoreMapper.xml +++ b/cloud-server-management/src/main/resources/mapper/TStoreMapper.xml @@ -12,6 +12,18 @@ state,pageId,typeId ) value (null ,#{url},#{name},#{s},#{s1},#{turnId},#{sort},1,#{page},#{type}) </insert> + <update id="updateBasicConfig"> + update t_img_config + set content = #{p1} + where `position` =#{position} + </update> + + <update id="updateBasicBenefits"> + update t_img_config + set content = #{p1} + where `position` =#{position} + </update> + <delete id="delete1"> delete from t_store_other_config where id =#{id} </delete> @@ -59,13 +71,13 @@ SELECT `id`, `operatorId`, `province`, `city`, `name`,ids from t_store where 1=1 - <if test="provinceCode != null"> + <if test="provinceCode != null and provinceCode!=''"> and provinceCode = #{provinceCode} </if> - <if test="cityCode != null"> + <if test="cityCode != null and cityCode!=''"> and cityCode = #{cityCode} </if> - <if test="operatorId != null"> + <if test="operatorId != null and operatorId!=''"> and operatorId = #{operatorId} </if> <if test="storeName != null and storeName != ''"> @@ -102,4 +114,7 @@ <select id="pageList" resultType="com.dsh.guns.modular.system.model.TTurn"> select * from t_turn where pid = 0 </select> + <select id="getConfig1" resultType="com.dsh.guns.modular.system.model.TImgConfig"> + select * from t_img_config + </select> </mapper> \ No newline at end of file -- Gitblit v1.7.1