|
|
@ -17,7 +17,9 @@ import com.ruoyi.tc.entity.request.Acomma;
|
|
|
|
import com.ruoyi.tc.entity.request.AssetAppPageRequest;
|
|
|
|
import com.ruoyi.tc.entity.request.AssetAppPageRequest;
|
|
|
|
import com.ruoyi.tc.entity.request.AssetAuditPageRequest;
|
|
|
|
import com.ruoyi.tc.entity.request.AssetAuditPageRequest;
|
|
|
|
import com.ruoyi.tc.entity.request.AssetAuditRequest;
|
|
|
|
import com.ruoyi.tc.entity.request.AssetAuditRequest;
|
|
|
|
import com.ruoyi.tc.service.*;
|
|
|
|
import com.ruoyi.tc.service.AssetAppCpService;
|
|
|
|
|
|
|
|
import com.ruoyi.tc.service.AssetAppJyService;
|
|
|
|
|
|
|
|
import com.ruoyi.tc.service.AssetAppService;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
@ -94,6 +96,12 @@ public class AssetAppController extends BaseController {
|
|
|
|
throw new ServiceException("请选择已有单位!");
|
|
|
|
throw new ServiceException("请选择已有单位!");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<AssetApp> list1 = assetAppService.lambdaQuery().eq(AssetApp::getSsdw, assetAppJyPo.getSsdw())
|
|
|
|
|
|
|
|
.eq(AssetApp::getAppName, assetAppJyPo.getAppName()).list();
|
|
|
|
|
|
|
|
if (list1 != null&& !list1.isEmpty()){
|
|
|
|
|
|
|
|
throw new ServiceException("不允许新增重复资产!");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AssetAppJyPo one = assetAppJyService.lambdaQuery().eq(AssetAppJyPo::getAppName,assetAppJyPo.getAppName())
|
|
|
|
AssetAppJyPo one = assetAppJyService.lambdaQuery().eq(AssetAppJyPo::getAppName,assetAppJyPo.getAppName())
|
|
|
|
.eq(AssetAppJyPo::getSsdw,assetAppJyPo.getSsdw()).isNull(AssetAppJyPo::getTaskId).one();
|
|
|
|
.eq(AssetAppJyPo::getSsdw,assetAppJyPo.getSsdw()).isNull(AssetAppJyPo::getTaskId).one();
|
|
|
|