|
@@ -8,6 +8,7 @@ import java.util.Map;
|
|
|
import java.util.UUID;
|
|
import java.util.UUID;
|
|
|
|
|
|
|
|
import org.apache.poi.poifs.property.Child;
|
|
import org.apache.poi.poifs.property.Child;
|
|
|
|
|
+import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
@@ -29,6 +30,7 @@ import com.goafanti.common.enums.ProjectAuditStatus;
|
|
|
import com.goafanti.common.enums.UserAuthentication;
|
|
import com.goafanti.common.enums.UserAuthentication;
|
|
|
import com.goafanti.common.enums.collectType;
|
|
import com.goafanti.common.enums.collectType;
|
|
|
import com.goafanti.common.model.JtBusinessCategory;
|
|
import com.goafanti.common.model.JtBusinessCategory;
|
|
|
|
|
+import com.goafanti.common.model.JtBusinessCategoryExample;
|
|
|
import com.goafanti.common.model.JtBusinessProject;
|
|
import com.goafanti.common.model.JtBusinessProject;
|
|
|
import com.goafanti.common.model.JtCollectSearch;
|
|
import com.goafanti.common.model.JtCollectSearch;
|
|
|
import com.goafanti.common.model.JtTag;
|
|
import com.goafanti.common.model.JtTag;
|
|
@@ -159,6 +161,9 @@ public class JtBusinessServiceImpl extends BaseMybatisDao<JtBusinessProjectMapp
|
|
|
// TODO Auto-generated method stub
|
|
// TODO Auto-generated method stub
|
|
|
// jtBusinessCategoryMapper.autoIncreaseSort(jtBusinessCategory.getLayer(),jtBusinessCategory.getSort());
|
|
// jtBusinessCategoryMapper.autoIncreaseSort(jtBusinessCategory.getLayer(),jtBusinessCategory.getSort());
|
|
|
if(jtBusinessCategory.getSuperId()!=null && jtBusinessCategory.getLayer().intValue()==1 && jtBusinessCategory.getSuperId().length()>0)return -2;
|
|
if(jtBusinessCategory.getSuperId()!=null && jtBusinessCategory.getLayer().intValue()==1 && jtBusinessCategory.getSuperId().length()>0)return -2;
|
|
|
|
|
+ //查看是否重名
|
|
|
|
|
+ int n = jtBusinessCategoryMapper.getCountBySome(jtBusinessCategory);
|
|
|
|
|
+ if(n>0)return -3;
|
|
|
//String number="BC";
|
|
//String number="BC";
|
|
|
String number=BusinessCategoryModule.getStatus(jtBusinessCategory.getModule()).toString();
|
|
String number=BusinessCategoryModule.getStatus(jtBusinessCategory.getModule()).toString();
|
|
|
if(jtBusinessCategory.getLayer().intValue()==2) {
|
|
if(jtBusinessCategory.getLayer().intValue()==2) {
|