代码提交
This commit is contained in:
parent
0a90715b60
commit
915372b4e3
|
|
@ -33,6 +33,14 @@ public class SystemConfigController extends BaseController {
|
|||
List<SystemConfig> list = configService.list(config);
|
||||
return getDataTable(list);
|
||||
}
|
||||
/**
|
||||
* 获取参数配置单个列表
|
||||
*/
|
||||
@GetMapping("/getConfigById")
|
||||
public AjaxResult getConfigById(SystemConfig config) {
|
||||
SystemConfig systemConfig = configService.getConfigById(config);
|
||||
return AjaxResult.success(systemConfig);
|
||||
}
|
||||
@RequiresPermissions("sys:config:add")
|
||||
@PostMapping("/add")
|
||||
public AjaxResult add(@RequestBody SystemConfig config) {
|
||||
|
|
|
|||
|
|
@ -364,7 +364,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
SELECT
|
||||
dkp.pro_name AS proName,
|
||||
dkp.single_pro_name AS singleProName,
|
||||
dktf.file_name AS fileName
|
||||
dktf.file_name AS fileName,
|
||||
dktf.receive_status AS receiveStatus
|
||||
FROM da_ky_transfer_file dktf
|
||||
left join da_ky_project dkp on dkp.id = dktf.pro_id
|
||||
where dktf.transfer_apply_id = #{id}
|
||||
|
|
|
|||
|
|
@ -19,4 +19,6 @@ public interface ISystemConfigMapper {
|
|||
Integer update(SystemConfig config);
|
||||
|
||||
Integer del(SystemConfig config);
|
||||
|
||||
SystemConfig getConfigById(SystemConfig config);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,4 +20,6 @@ public interface ISystemConfigService {
|
|||
AjaxResult update(SystemConfig config);
|
||||
|
||||
AjaxResult del(SystemConfig config);
|
||||
|
||||
SystemConfig getConfigById(SystemConfig config);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,4 +53,9 @@ public class SystemConfigServiceImpl implements ISystemConfigService {
|
|||
return AjaxResult.error("删除失败");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public SystemConfig getConfigById(SystemConfig config) {
|
||||
return systemConfigMapper.getConfigById(config);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,4 +34,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
use_status as useStatus
|
||||
from da_ky_system_config
|
||||
</select>
|
||||
<select id="getConfigById" resultType="com.bonus.system.domain.SystemConfig">
|
||||
select id,
|
||||
config_name as configName,
|
||||
config_code as configCode,
|
||||
use_status as useStatus
|
||||
from da_ky_system_config
|
||||
where id = #{id}
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
|
|||
Loading…
Reference in New Issue