File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
base/src/main/java/com/tinyengine/it/service/app/impl Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -196,14 +196,16 @@ public Result<App> updateAppById(App app) {
196196 @ Override
197197 @ SystemServiceLog (description = "应用创建实现方法" )
198198 public Result <App > createApp (App app ) {
199- if (app .getTenantId () == null || app . getTenantId (). isEmpty () ) {
200- return Result .failed (ExceptionEnum .CM002 );
199+ if (loginUserContext .getTenantId () == null ) {
200+ return Result .failed (ExceptionEnum .CM337 );
201201 }
202+ app .setTenantId (loginUserContext .getTenantId ());
202203 List <App > appResult = baseMapper .queryAppByCondition (app );
203204 if (!appResult .isEmpty ()) {
204205 return Result .failed (ExceptionEnum .CM003 );
205206 }
206207 app .setIsPublish (false );
208+ app .setPlatformHistoryId ("1" );
207209 int result = baseMapper .createApp (app );
208210 if (result < 1 ) {
209211 return Result .failed (ExceptionEnum .CM001 );
You can’t perform that action at this time.
0 commit comments