|
|
|
@ -17,9 +17,7 @@ import com.ruoyi.tc.entity.request.Acomma;
|
|
|
|
|
import com.ruoyi.tc.entity.request.AssetAppPageRequest;
|
|
|
|
|
import com.ruoyi.tc.entity.request.AssetAuditPageRequest;
|
|
|
|
|
import com.ruoyi.tc.entity.request.AssetAuditRequest;
|
|
|
|
|
import com.ruoyi.tc.service.AssetAppCpService;
|
|
|
|
|
import com.ruoyi.tc.service.AssetAppJyService;
|
|
|
|
|
import com.ruoyi.tc.service.AssetAppService;
|
|
|
|
|
import com.ruoyi.tc.service.*;
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
@ -96,12 +94,6 @@ public class AssetAppController extends BaseController {
|
|
|
|
|
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())
|
|
|
|
|
.eq(AssetAppJyPo::getSsdw,assetAppJyPo.getSsdw()).isNull(AssetAppJyPo::getTaskId).one();
|
|
|
|
|