zm
2025-03-15 4fb0d902e9eba6986edf2f2d0f37b13744418aba
src/main/java/com/product/contract/service/ProjectBusinessService.java
@@ -2,6 +2,7 @@
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.product.common.lang.StringUtils;
import com.product.contract.config.CmnConst;
import com.product.contract.service.ide.IProjectBusinessService;
import com.product.core.dao.BaseDao;
@@ -66,7 +67,9 @@
      JSONObject json = new JSONObject();
      for (int i = 0; i < projectType.getRows(); i++) {
         FieldSetEntity fs = projectType.getFieldSetEntity(i);
         fs.remove("uuid");
         if (!StringUtils.isEmpty(fse.getString("type")) &&fse.getString("type").equals("view")){
            fs.remove("uuid");
         }
         if (json.getJSONArray(fs.getString("project_task"))==null){
            JSONArray objects = new JSONArray();
            objects.add(BaseUtil.fieldSetEntityToJson(fs));
@@ -108,7 +111,7 @@
   @Transactional
   @Override
   public boolean saveProject(FieldSetEntity fse) {
      if (fse.getString("del").equals("2")){
      if (!StringUtils.isEmpty(fse.getString("del")) &&fse.getString("del").equals("2")){
         baseDao.delete(CmnConst.PRODUCT_PROJECT_BUSINESS_PLAN,"project_uuid=?",new String[]{fse.getUUID()});
      }
      return baseDao.saveFieldSetEntity(BaseUtil.createCreatorAndCreationTime(fse));