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

xujun

parent ea1a1d4c
......@@ -169,6 +169,7 @@ public class ComUnitController extends BaseController<ComUnitService, ComUnitQue
@ApiOperation(value = "获取单位信息", httpMethod = "GET", notes = "获取单位信息")
@GetMapping
@RequestMapping("/getListByUnitName")
@Anonymous
public ResponseDataModel<List<SelectListItem>> getListByUnitName(String UnitName) {
List<SelectListItem> list = new ArrayList<>();
List<ComUnitDTO> dtoList = comUnitService.getListByUnitName(UnitName);
......
......@@ -34,10 +34,9 @@
<select id="getListByUnitName" parameterType="java.lang.String" resultType="com.yiboshi.science.param.dto.ComUnitDTO">
select a.*
from com_unit a
where a.unit_name like concat('%', #{UnitName}, '%')
where a.unit_name = #{UnitName}
</select>
<select id="getListByPage" resultType="com.yiboshi.science.param.dto.ComUnitDTO">
select a.*, b.username, b.password, c.unit_name as upUnitName,d.name natureName
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