通用下拉选

This commit is contained in:
cwchen 2025-11-24 13:49:04 +08:00
parent 328f8b9b39
commit 66226c8168
2 changed files with 4 additions and 1 deletions

View File

@ -6,6 +6,7 @@ import com.bonus.web.service.common.CommonSelectService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
@ -17,6 +18,7 @@ import javax.annotation.Resource;
* @description:通用下拉选/
*/
@RequestMapping("/commonSelect/")
@RestController
public class CommonSelectController {
@Resource(name = "CommonSelectService")

View File

@ -8,9 +8,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="getAnalysisSelects" resultType="com.bonus.common.domain.system.vo.SelectVo">
SELECT tt.template_id AS id,
tt.template_name AS name,
ttc.file_name AS uploadType
GROUP_CONCAT(ttc.file_name) AS uploadType
FROM tb_template tt
LEFT JOIN tb_template_composition ttc ON tt.template_id = ttc.template_id AND ttc.composition_type = '1'
WHERE tt.use_state = '0' AND tt.del_flag = '0'
GROUP BY tt.template_id
</select>
</mapper>