企业列表出来了

master
法外狂徒张三 2024-09-08 11:34:35 +08:00
parent f6912e938a
commit 42d0f186be
1 changed files with 3 additions and 0 deletions

View File

@ -135,6 +135,9 @@ public class MyApiController extends BaseController
MyApi myApi1 = myApiService.selectMyApiByUserIdAndApiId(userId, myApi.getApiId()); MyApi myApi1 = myApiService.selectMyApiByUserIdAndApiId(userId, myApi.getApiId());
if (myApi1!=null) { if (myApi1!=null) {
myApi.setMyNum(myApi1.getMyNum()+myApi.getMyNum()); myApi.setMyNum(myApi1.getMyNum()+myApi.getMyNum());
if(myApi1.getMyStates().equals("N")){
myApi.setMyStates("Y");
}
return toAjax(myApiService.updateById(myApi)); return toAjax(myApiService.updateById(myApi));
} }
// 获取当前时间(没有时区) // 获取当前时间(没有时区)