This commit is contained in:
sjm 2023-12-29 01:22:14 +08:00
parent 965dfb6d97
commit a7c59b0b77
6 changed files with 19 additions and 1 deletions

View File

@ -691,4 +691,9 @@ public class UrlAndCateController {
}
return JSONObject.toJSONString(result);
}
@RequestMapping("/selectName")
public String selectName(int id){
return urlCateListService.selectName(id);
}
}

View File

@ -36,4 +36,6 @@ public interface UrlCateListDao {
public List<String> selectChildrenByCateId(Integer id);
public String selectName(int id);
}

View File

@ -28,4 +28,5 @@ public interface UrlCateListService {
public HashMap<String, Object> countAllCateByUser(UrlCateList urlCateList);
public String selectName(int id);
}

View File

@ -1,5 +1,6 @@
package com.lovenav.service.serviceImpl;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson2.JSONArray;
import com.alibaba.fastjson2.JSONObject;
import com.lovenav.dao.UrlCateListDao;
@ -167,4 +168,9 @@ public class UrlCateListServiceImpl implements UrlCateListService {
return map;
}
public String selectName(int id){
String name = urlCateListDao.selectName(id);
return JSON.toJSONString(name);
}
}

View File

@ -196,7 +196,7 @@
where root_comment_id = 0 and comment_status = 0
</select>
<select id="selectByAllReply" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<select id="selectByAllReply" resultMap="BaseResultMap">
select
*
from ln_comment

View File

@ -195,4 +195,8 @@
ico = #{ico,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<select id="selectName" parameterType="java.lang.Integer" resultType="java.lang.String">
select name from ln_url_cate_list where id = #{id,jdbcType=INTEGER}
</select>
</mapper>