Commit 978bd97f authored by 徐俊's avatar 徐俊

xujun

parent ea1a1d4c
...@@ -169,6 +169,7 @@ public class ComUnitController extends BaseController<ComUnitService, ComUnitQue ...@@ -169,6 +169,7 @@ public class ComUnitController extends BaseController<ComUnitService, ComUnitQue
@ApiOperation(value = "获取单位信息", httpMethod = "GET", notes = "获取单位信息") @ApiOperation(value = "获取单位信息", httpMethod = "GET", notes = "获取单位信息")
@GetMapping @GetMapping
@RequestMapping("/getListByUnitName") @RequestMapping("/getListByUnitName")
@Anonymous
public ResponseDataModel<List<SelectListItem>> getListByUnitName(String UnitName) { public ResponseDataModel<List<SelectListItem>> getListByUnitName(String UnitName) {
List<SelectListItem> list = new ArrayList<>(); List<SelectListItem> list = new ArrayList<>();
List<ComUnitDTO> dtoList = comUnitService.getListByUnitName(UnitName); List<ComUnitDTO> dtoList = comUnitService.getListByUnitName(UnitName);
......
...@@ -34,10 +34,9 @@ ...@@ -34,10 +34,9 @@
<select id="getListByUnitName" parameterType="java.lang.String" resultType="com.yiboshi.science.param.dto.ComUnitDTO"> <select id="getListByUnitName" parameterType="java.lang.String" resultType="com.yiboshi.science.param.dto.ComUnitDTO">
select a.* select a.*
from com_unit a from com_unit a
where a.unit_name like concat('%', #{UnitName}, '%') where a.unit_name = #{UnitName}
</select> </select>
<select id="getListByPage" resultType="com.yiboshi.science.param.dto.ComUnitDTO"> <select id="getListByPage" resultType="com.yiboshi.science.param.dto.ComUnitDTO">
select a.*, b.username, b.password, c.unit_name as upUnitName,d.name natureName select a.*, b.username, b.password, c.unit_name as upUnitName,d.name natureName
from com_unit a from com_unit a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment