企业列表出来了

master
法外狂徒张三 2024-09-08 11:02:25 +08:00
parent 4b208a6c13
commit dc425a3868
1 changed files with 2 additions and 0 deletions

View File

@ -128,6 +128,8 @@ public class MyApiController extends BaseController
Long userId = SecurityUtils.getUserId();
myApi.setUserId(userId);
if (myApiService.checkIdUnique(myApi)) {
MyApi myApi1 = myApiService.selectMyApiByMyId(myApi.getMyId());
myApi.setMyNum(myApi1.getMyNum()+myApi.getMyNum());
return toAjax(myApiService.updateById(myApi));
}
return toAjax(myApiService.save(myApi));