|
@@ -1,28 +1,16 @@
|
|
package com.jeeplus.modules.projectmaterialstorage.service;
|
|
package com.jeeplus.modules.projectmaterialstorage.service;
|
|
|
|
|
|
|
|
|
|
-import afu.org.checkerframework.checker.igj.qual.I;
|
|
|
|
-import afu.org.checkerframework.checker.igj.qual.ReadOnly;
|
|
|
|
import com.jeeplus.common.persistence.Page;
|
|
import com.jeeplus.common.persistence.Page;
|
|
import com.jeeplus.common.service.CrudService;
|
|
import com.jeeplus.common.service.CrudService;
|
|
-import com.jeeplus.common.utils.IdGen;
|
|
|
|
-import com.jeeplus.common.utils.MenuStatusEnum;
|
|
|
|
import com.jeeplus.modules.projectmaterialstorage.dao.ProjectMaterialStorageDao;
|
|
import com.jeeplus.modules.projectmaterialstorage.dao.ProjectMaterialStorageDao;
|
|
import com.jeeplus.modules.projectmaterialstorage.entity.ProjectMaterialStorage;
|
|
import com.jeeplus.modules.projectmaterialstorage.entity.ProjectMaterialStorage;
|
|
-import com.jeeplus.modules.projectmaterialstorage.entity.ProjectMaterialStorageExport;
|
|
|
|
import com.jeeplus.modules.ruralprojectrecords.dao.RuralProjectRecordsDao;
|
|
import com.jeeplus.modules.ruralprojectrecords.dao.RuralProjectRecordsDao;
|
|
import com.jeeplus.modules.ruralprojectrecords.entity.RuralProjectRecords;
|
|
import com.jeeplus.modules.ruralprojectrecords.entity.RuralProjectRecords;
|
|
-import com.jeeplus.modules.ruralprojectrecords.entity.RuralProjectRecordsExport;
|
|
|
|
-import com.jeeplus.modules.sys.utils.UserUtils;
|
|
|
|
-import com.sun.org.apache.xpath.internal.operations.Bool;
|
|
|
|
-import org.apache.commons.lang3.StringUtils;
|
|
|
|
-import org.apache.poi.ss.formula.functions.T;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
-import java.util.List;
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 项目表Service
|
|
* 项目表Service
|
|
* @author gx
|
|
* @author gx
|
|
@@ -76,6 +64,11 @@ public class ProjectMaterialStorageService extends CrudService<ProjectMaterialSt
|
|
* 查询同项目名称、价格、材料名称的数量是否只有一个
|
|
* 查询同项目名称、价格、材料名称的数量是否只有一个
|
|
*/
|
|
*/
|
|
public Boolean qureyCountAboutProjectMaterialStorage(ProjectMaterialStorage projectMaterialStorage){
|
|
public Boolean qureyCountAboutProjectMaterialStorage(ProjectMaterialStorage projectMaterialStorage){
|
|
|
|
+ //材料列表自身重复判断
|
|
|
|
+
|
|
|
|
+ //材料列表数据库重复判断
|
|
|
|
+
|
|
|
|
+ //如果重复,重复的材料名称以String形式抛出到前端
|
|
|
|
|
|
if(projectMaterialStorageDao.selectCountAboutProjectMaterialStorage(projectMaterialStorage) != 1){
|
|
if(projectMaterialStorageDao.selectCountAboutProjectMaterialStorage(projectMaterialStorage) != 1){
|
|
return false;
|
|
return false;
|