更新装备专业统计接口,增加maStatus参数以支持状态过滤

This commit is contained in:
syruan 2025-09-27 09:18:51 +08:00
parent ee4e066046
commit a36d42bb33
3 changed files with 7 additions and 4 deletions

View File

@ -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));
}
/**

View File

@ -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);

View File

@ -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);