//package jj.tech.paolu.biz.webadmin.controller;
//
//import jj.tech.paolu.repository.mybatis.dao.SysConfigMapper;
//import jj.tech.paolu.repository.mybatis.dao.support.SysConfigDynamicSqlSupport;
//import jj.tech.paolu.repository.mybatis.entity.SysConfig;
//import jj.tech.paolu.utils.IDHelp;
//import jj.tech.paolu.utils.R;
//import org.mybatis.dynamic.sql.SqlBuilder;
//import org.mybatis.dynamic.sql.render.RenderingStrategies;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
//import static org.mybatis.dynamic.sql.SqlBuilder.*;
//
//@RestController
//@RequestMapping(value = "/op/sysConfig",name = "系统配置字典表")
//public class SysConfigController {
//
//    @Autowired
//    public SysConfigMapper sysConfigMapper;
//
//    /**
//     * 根据分组查找字典配置
//     * @param subgroup
//     * @return
//     */
//    @PostMapping("findById/{subgroup}")
//    public Object findById(@PathVariable("subgroup") String subgroup) {
//        var sql = select(SysConfigMapper.selectList)
//                .from(SysConfigDynamicSqlSupport.sysConfig)
//                .applyWhere(whereFinisher -> whereFinisher.and(SysConfigDynamicSqlSupport.subgroup,isEqualTo(subgroup)))
//                .build().render(RenderingStrategies.MYBATIS3);
//        return R.SUCCESS(sysConfigMapper.selectMany(sql));
//    }
//}