1098226878@qq.com
2022-01-10 093b73aadb022895a02dbbcd64b87613e19b547b
java110-db/src/main/resources/mapper/common/SmsConfigServiceDaoImplMapper.xml
@@ -5,9 +5,6 @@
<mapper namespace="smsConfigServiceDaoImpl">
    <!-- 保存短信配置信息 add by wuxw 2018-07-03 -->
    <insert id="saveSmsConfigInfo" parameterType="Map">
        insert into sms_config(
@@ -18,10 +15,12 @@
    </insert>
    <!-- 查询短信配置信息 add by wuxw 2018-07-03 -->
    <select id="getSmsConfigInfo" parameterType="Map" resultType="Map">
        select  t.access_key_id,t.access_key_id accessKeyId,t.sms_busi,t.sms_busi smsBusi,t.sign_name,t.sign_name signName,t.status_cd,t.status_cd statusCd,t.template_code,t.template_code templateCode,t.store_id,t.store_id storeId,t.access_secret,t.access_secret accessSecret,t.sms_id,t.sms_id smsId,t.obj_id,t.obj_id objId,t.sms_type,t.sms_type smsType,t.log_switch,t.log_switch logSwitch,t.region,t.remarks
        select t.access_key_id,t.access_key_id accessKeyId,t.sms_busi,t.sms_busi smsBusi,t.sign_name,t.sign_name
        signName,t.status_cd,t.status_cd statusCd,t.template_code,t.template_code templateCode,t.store_id,t.store_id
        storeId,t.access_secret,t.access_secret accessSecret,t.sms_id,t.sms_id smsId,t.obj_id,t.obj_id
        objId,t.sms_type,t.sms_type smsType,t.log_switch,t.log_switch logSwitch,t.region,t.remarks
from sms_config t 
where 1 =1 
<if test="accessKeyId !=null and accessKeyId != ''">
@@ -71,8 +70,6 @@
    </select>
    <!-- 修改短信配置信息 add by wuxw 2018-07-03 -->
    <update id="updateSmsConfigInfo" parameterType="Map">
        update  sms_config t set t.status_cd = #{statusCd}
@@ -112,7 +109,8 @@
<if test="remarks !=null and remarks != ''">
, t.remarks= #{remarks}
</if> 
 where 1=1 <if test="smsId !=null and smsId != ''">
        where 1=1
        <if test="smsId !=null and smsId != ''">
and t.sms_id= #{smsId}
</if>