| | |
| | | <mapper namespace="smsConfigServiceDaoImpl"> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <!-- 保存短信配置信息 add by wuxw 2018-07-03 --> |
| | | <insert id="saveSmsConfigInfo" parameterType="Map"> |
| | | insert into sms_config( |
| | |
| | | </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 != ''"> |
| | |
| | | </select> |
| | | |
| | | |
| | | |
| | | |
| | | <!-- 修改短信配置信息 add by wuxw 2018-07-03 --> |
| | | <update id="updateSmsConfigInfo" parameterType="Map"> |
| | | update sms_config t set t.status_cd = #{statusCd} |
| | |
| | | <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> |
| | | |