feat: 添加 Mapper 接口方法 updateParamValue 和 insertBatch
This commit is contained in:
@@ -37,4 +37,26 @@ public interface CcdiModelParamMapper extends BaseMapper<CcdiModelParam> {
|
||||
* @return 更新数量
|
||||
*/
|
||||
int batchUpdateParamValues(@Param("list") List<CcdiModelParam> list);
|
||||
|
||||
/**
|
||||
* 更新参数值
|
||||
*
|
||||
* @param projectId 项目ID
|
||||
* @param modelCode 模型编码
|
||||
* @param paramCode 参数编码
|
||||
* @param paramValue 参数值
|
||||
* @return 影响行数
|
||||
*/
|
||||
int updateParamValue(@Param("projectId") Long projectId,
|
||||
@Param("modelCode") String modelCode,
|
||||
@Param("paramCode") String paramCode,
|
||||
@Param("paramValue") String paramValue);
|
||||
|
||||
/**
|
||||
* 批量插入参数
|
||||
*
|
||||
* @param params 参数列表
|
||||
* @return 影响行数
|
||||
*/
|
||||
int insertBatch(@Param("list") List<CcdiModelParam> params);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user