|
@@ -9,15 +9,15 @@ import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* 参数配置Mapper接口
|
|
|
- *
|
|
|
+ *
|
|
|
* @author fs
|
|
|
* @date 2021-05-25
|
|
|
*/
|
|
|
-public interface CompanyConfigMapper
|
|
|
+public interface CompanyConfigMapper
|
|
|
{
|
|
|
/**
|
|
|
* 查询参数配置
|
|
|
- *
|
|
|
+ *
|
|
|
* @param configId 参数配置ID
|
|
|
* @return 参数配置
|
|
|
*/
|
|
@@ -25,7 +25,7 @@ public interface CompanyConfigMapper
|
|
|
|
|
|
/**
|
|
|
* 查询参数配置列表
|
|
|
- *
|
|
|
+ *
|
|
|
* @param companyConfig 参数配置
|
|
|
* @return 参数配置集合
|
|
|
*/
|
|
@@ -33,7 +33,7 @@ public interface CompanyConfigMapper
|
|
|
|
|
|
/**
|
|
|
* 新增参数配置
|
|
|
- *
|
|
|
+ *
|
|
|
* @param companyConfig 参数配置
|
|
|
* @return 结果
|
|
|
*/
|
|
@@ -41,7 +41,7 @@ public interface CompanyConfigMapper
|
|
|
|
|
|
/**
|
|
|
* 修改参数配置
|
|
|
- *
|
|
|
+ *
|
|
|
* @param companyConfig 参数配置
|
|
|
* @return 结果
|
|
|
*/
|
|
@@ -49,7 +49,7 @@ public interface CompanyConfigMapper
|
|
|
|
|
|
/**
|
|
|
* 删除参数配置
|
|
|
- *
|
|
|
+ *
|
|
|
* @param configId 参数配置ID
|
|
|
* @return 结果
|
|
|
*/
|
|
@@ -57,7 +57,7 @@ public interface CompanyConfigMapper
|
|
|
|
|
|
/**
|
|
|
* 批量删除参数配置
|
|
|
- *
|
|
|
+ *
|
|
|
* @param configIds 需要删除的数据ID
|
|
|
* @return 结果
|
|
|
*/
|
|
@@ -68,4 +68,8 @@ public interface CompanyConfigMapper
|
|
|
String selectConfigByKey(String key);
|
|
|
@Select("select * from company_config where config_key=#{key} limit 1")
|
|
|
SysConfig selectConfig(String key);
|
|
|
+
|
|
|
+
|
|
|
+ @Select("select config_value from company_config where company_id=#{companyId} and config_key='redPacket:config' ")
|
|
|
+ String selectRedPacketConfigByKey(Long companyId);
|
|
|
}
|