短信功能及字段回显问题提交

This commit is contained in:
liang.chao 2024-07-15 16:07:10 +08:00
parent e732dd2a49
commit fdd93dceab
5 changed files with 29 additions and 0 deletions

View File

@ -102,6 +102,17 @@ public class SysDicController extends BaseController
return success(sysDicService.selectSysDicById(id));
}
/**
* 获取费用承担方列表
*/
@ApiOperation(value = "获取费用承担方列表")
@GetMapping(value = "/pid")
public AjaxResult getBear(Long pid)
{
List<String> bear = sysDicService.getBear(pid);
return success(bear);
}
/**
* 新增数据字典
*/

View File

@ -83,4 +83,6 @@ public interface SysDicMapper
* @return
*/
SysDic selectByName(String name);
List<String> getBear(Long pid);
}

View File

@ -80,4 +80,6 @@ public interface ISysDicService
* @return 结果
*/
public int deleteSysDicById(Long id);
List<String> getBear(Long pid);
}

View File

@ -136,4 +136,10 @@ public class SysDicServiceImpl implements ISysDicService
{
return sysDicMapper.deleteSysDicById(id);
}
@Override
public List<String> getBear(Long pid) {
return sysDicMapper.getBear(pid);
}
}

View File

@ -69,6 +69,14 @@
status != 2
<if test="name != null and name != ''">and name = #{name}</if>
</select>
<select id="getBear" resultType="java.lang.String">
SELECT name
FROM
sys_dic
WHERE
p_id = 124
</select>
<insert id="insertSysDic" parameterType="com.bonus.sgzb.base.api.domain.SysDic">
insert into sys_dic