更新装备专业统计接口,增加maStatus参数以支持状态过滤
This commit is contained in:
parent
ee4e066046
commit
a36d42bb33
|
|
@ -209,8 +209,8 @@ public class DevInfoController extends BaseController {
|
|||
*/
|
||||
@ApiOperation(value = "装备专业统计")
|
||||
@GetMapping("/sumProfession")
|
||||
public AjaxResult sumProfession() {
|
||||
return success(devInfoService.sumProfession());
|
||||
public AjaxResult sumProfession(Integer maStatus) {
|
||||
return success(devInfoService.sumProfession(maStatus));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ public interface DevInfoService {
|
|||
|
||||
Map<String, Integer> sumType(String brand, String modelName);
|
||||
|
||||
Map<String, Integer> sumProfession();
|
||||
Map<String, Integer> sumProfession(Integer maStatus);
|
||||
|
||||
List<DevInfoVo> selectDevInfoLists(DevInfoVo devInfo);
|
||||
|
||||
|
|
|
|||
|
|
@ -711,8 +711,11 @@ public class DevInfoServiceImpl implements DevInfoService {
|
|||
* 装备专业统计
|
||||
*/
|
||||
@Override
|
||||
public Map<String, Integer> sumProfession() {
|
||||
public Map<String, Integer> sumProfession(Integer maStatus) {
|
||||
DevInfoVo devInfoVo = new DevInfoVo();
|
||||
if (null != maStatus) {
|
||||
devInfoVo.setMaStatus(maStatus);
|
||||
}
|
||||
Map<String, Integer> sumTypeMap = new IdentityHashMap<>();
|
||||
//获取所有的装备信息
|
||||
List<DevInfoVo> devInfoList = devInfoMapper.selectDevInfoList(devInfoVo);
|
||||
|
|
|
|||
Loading…
Reference in New Issue