短信功能及字段回显问题提交
This commit is contained in:
parent
e732dd2a49
commit
fdd93dceab
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增数据字典
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -83,4 +83,6 @@ public interface SysDicMapper
|
|||
* @return
|
||||
*/
|
||||
SysDic selectByName(String name);
|
||||
|
||||
List<String> getBear(Long pid);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -80,4 +80,6 @@ public interface ISysDicService
|
|||
* @return 结果
|
||||
*/
|
||||
public int deleteSysDicById(Long id);
|
||||
|
||||
List<String> getBear(Long pid);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -136,4 +136,10 @@ public class SysDicServiceImpl implements ISysDicService
|
|||
{
|
||||
return sysDicMapper.deleteSysDicById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> getBear(Long pid) {
|
||||
return sysDicMapper.getBear(pid);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue