|
@@ -4,6 +4,7 @@ import api.common.pojo.param.scene.SceneNaturalParam;
|
|
|
import api.common.pojo.po.scene.SceneNaturalPO;
|
|
|
import org.apache.ibatis.annotations.Delete;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
+import org.apache.ibatis.annotations.Param;
|
|
|
import org.apache.ibatis.annotations.Select;
|
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
|
@@ -45,12 +46,12 @@ public interface SceneNaturalMapper {
|
|
|
@Select("select natural_id\n" +
|
|
|
"from scene_natural\n" +
|
|
|
"where natural_name = #{naturalName}")
|
|
|
- List<String> selectIdByName(String sceneName);
|
|
|
-
|
|
|
+ List<String> selectIdByName(@Param("sceneName") String sceneName);
|
|
|
|
|
|
@Delete("update scene_natural\n" +
|
|
|
"set is_deleted = '1',\n" +
|
|
|
- " modify_time = now()\n" +
|
|
|
+ " modify_time = now(),\n" +
|
|
|
+ " modify_user = #{modifyUserId}) \n" +
|
|
|
"where natural_name = '#{sceneName}'\n")
|
|
|
- void deleteByName(String sceneName);
|
|
|
+ void deleteByName(@Param("sceneName") String sceneName, @Param("modifyUserId") String modifyUserId);
|
|
|
}
|