通用下拉选
This commit is contained in:
parent
328f8b9b39
commit
66226c8168
|
|
@ -6,6 +6,7 @@ import com.bonus.web.service.common.CommonSelectService;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
|
@ -17,6 +18,7 @@ import javax.annotation.Resource;
|
||||||
* @description:通用下拉选/树
|
* @description:通用下拉选/树
|
||||||
*/
|
*/
|
||||||
@RequestMapping("/commonSelect/")
|
@RequestMapping("/commonSelect/")
|
||||||
|
@RestController
|
||||||
public class CommonSelectController {
|
public class CommonSelectController {
|
||||||
|
|
||||||
@Resource(name = "CommonSelectService")
|
@Resource(name = "CommonSelectService")
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<select id="getAnalysisSelects" resultType="com.bonus.common.domain.system.vo.SelectVo">
|
<select id="getAnalysisSelects" resultType="com.bonus.common.domain.system.vo.SelectVo">
|
||||||
SELECT tt.template_id AS id,
|
SELECT tt.template_id AS id,
|
||||||
tt.template_name AS name,
|
tt.template_name AS name,
|
||||||
ttc.file_name AS uploadType
|
GROUP_CONCAT(ttc.file_name) AS uploadType
|
||||||
FROM tb_template tt
|
FROM tb_template tt
|
||||||
LEFT JOIN tb_template_composition ttc ON tt.template_id = ttc.template_id AND ttc.composition_type = '1'
|
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'
|
WHERE tt.use_state = '0' AND tt.del_flag = '0'
|
||||||
|
GROUP BY tt.template_id
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue