|
@@ -32,7 +32,7 @@ public interface SipConfigMapper {
|
|
|
"enableBind," +
|
|
|
"createTime" +
|
|
|
") VALUES (" +
|
|
|
- "'#{sipDomain}', " +
|
|
|
+ "#{sipDomain}, " +
|
|
|
"#{serverId}, " +
|
|
|
"#{password}, " +
|
|
|
"#{description}, " +
|
|
@@ -53,15 +53,15 @@ public interface SipConfigMapper {
|
|
|
|
|
|
// 更新sip规则
|
|
|
@Update("UPDATE sip_config SET " +
|
|
|
- "sipDomain = '#{sipUserConfig.sipDomain}', " +
|
|
|
- "serverId = #{sipUserConfig.serverId}, " +
|
|
|
- "password = #{sipUserConfig.password}, " +
|
|
|
- "description = #{sipUserConfig.description}, " +
|
|
|
- "enable = #{sipUserConfig.enable}, " +
|
|
|
- "enableBind = #{sipUserConfig.enableBind} " +
|
|
|
+ "sipDomain = #{SipUserConfig.sipDomain}, " +
|
|
|
+ "serverId = #{SipUserConfig.serverId}, " +
|
|
|
+ "password = #{SipUserConfig.password}, " +
|
|
|
+ "description = #{SipUserConfig.description}, " +
|
|
|
+ "enable = #{SipUserConfig.enable}, " +
|
|
|
+ "enableBind = #{SipUserConfig.enableBind} " +
|
|
|
"WHERE id = #{SipId}"
|
|
|
)
|
|
|
- int updateSipConfig(@Param("sipUserConfig") SipUserConfig sipUserConfig, @Param("SipId") String SipId);
|
|
|
+ int updateSipConfig(@Param("SipUserConfig") SipUserConfig sipUserConfig, @Param("SipId") String SipId);
|
|
|
|
|
|
|
|
|
// 查询根据域获取对应的sip配置
|