winter 1 рік тому
джерело
коміт
977f7c05a2
2 змінених файлів з 4 додано та 2 видалено
  1. +3
    -0
      suimangAdmin/src/main/java/com/iformall/controller/sm/ServiceInfoController.java
  2. +1
    -2
      suimangService/src/main/java/com/iformall/service/sm/impl/ServiceInfoServiceImpl.java

+ 3
- 0
suimangAdmin/src/main/java/com/iformall/controller/sm/ServiceInfoController.java Переглянути файл

@@ -136,6 +136,9 @@ public class ServiceInfoController extends MallUserInfoBaseController{
if (null == si) {
throw new BizException(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(),"id无效");
}
if (null == times) {
throw new BizException(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(),"times无效");
}
si.setRemainingTimes(times);
serviceInfoService.updateServiceInfo(si);
return R.ok();


+ 1
- 2
suimangService/src/main/java/com/iformall/service/sm/impl/ServiceInfoServiceImpl.java Переглянути файл

@@ -96,8 +96,7 @@ public class ServiceInfoServiceImpl implements ServiceInfoService {
public ServiceInfo getServiceInfo(Long id) {
ServiceInfo serviceInfo = new ServiceInfo();
serviceInfo.setId(id);
List<ServiceInfo> serviceInfos = serviceInfoMapper.listServiceInfo(serviceInfo);
return !CollectionUtils.isEmpty(serviceInfos) ? serviceInfos.get(0) : null;
return serviceInfoMapper.selectById(id);
}

@Override


Завантаження…
Відмінити
Зберегти