企业列表出来了
parent
4b208a6c13
commit
dc425a3868
|
@ -128,6 +128,8 @@ public class MyApiController extends BaseController
|
||||||
Long userId = SecurityUtils.getUserId();
|
Long userId = SecurityUtils.getUserId();
|
||||||
myApi.setUserId(userId);
|
myApi.setUserId(userId);
|
||||||
if (myApiService.checkIdUnique(myApi)) {
|
if (myApiService.checkIdUnique(myApi)) {
|
||||||
|
MyApi myApi1 = myApiService.selectMyApiByMyId(myApi.getMyId());
|
||||||
|
myApi.setMyNum(myApi1.getMyNum()+myApi.getMyNum());
|
||||||
return toAjax(myApiService.updateById(myApi));
|
return toAjax(myApiService.updateById(myApi));
|
||||||
}
|
}
|
||||||
return toAjax(myApiService.save(myApi));
|
return toAjax(myApiService.save(myApi));
|
||||||
|
|
Loading…
Reference in New Issue