Commit fb999bba authored by KeYong's avatar KeYong

Merge remote-tracking branch 'origin/develop_dl' into develop_dl

parents fa31314f f5c11537
...@@ -137,9 +137,10 @@ public class FireFightingSystemController extends AbstractBaseController { ...@@ -137,9 +137,10 @@ public class FireFightingSystemController extends AbstractBaseController {
@RequestMapping(value = "/getEquipCountPageBySystemId", method = RequestMethod.GET) @RequestMapping(value = "/getEquipCountPageBySystemId", method = RequestMethod.GET)
@TycloudOperation(ApiLevel = UserType.AGENCY) @TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation("根据系统id查询分组设备数量") @ApiOperation("根据系统id查询分组设备数量")
public Page<EquipCountBySystemVO> getEquipCountPageBySystemId(@RequestParam("systemId") Long systemId, public Page<EquipCountBySystemVO> getEquipCountPageBySystemId(
@RequestParam(value = "pageNumber", required = false) Integer pageNumber, @RequestParam(value = "systemId", required = false) Long systemId,
@RequestParam(value = "pageSize", required = false) Integer pageSize @RequestParam(value = "pageNumber", required = false) Integer pageNumber,
@RequestParam(value = "pageSize", required = false) Integer pageSize
) { ) {
return fireFightingSystemService.getEquipCountPageBySystemId(systemId, pageNumber, pageSize); return fireFightingSystemService.getEquipCountPageBySystemId(systemId, pageNumber, pageSize);
} }
......
...@@ -125,8 +125,11 @@ ...@@ -125,8 +125,11 @@
LEFT JOIN wl_equipment AS wle ON wle.id = det.equipment_id LEFT JOIN wl_equipment AS wle ON wle.id = det.equipment_id
LEFT JOIN wl_equipment_category cate ON cate.id = wle.category_id LEFT JOIN wl_equipment_category cate ON cate.id = wle.category_id
LEFT JOIN wl_unit as unit ON wle.unit_id = unit.id LEFT JOIN wl_unit as unit ON wle.unit_id = unit.id
where <where>
find_in_set(#{systemId},spe.system_id) and spe.single = true <if test="systemId != null and systemId != ''">
find_in_set(#{systemId},spe.system_id) and spe.single = true
</if>
</where>
group by wle.id group by wle.id
</select> </select>
<insert id="save"> <insert id="save">
......
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