| | |
| | | import com.product.admin.service.UpdateLoginUserInfoService; |
| | | import com.product.common.lang.StringUtils; |
| | | import com.product.core.cache.DataPoolCacheImpl; |
| | | import com.product.core.config.CoreConst; |
| | | import com.product.core.dao.BaseDao; |
| | | import com.product.core.entity.DataTableEntity; |
| | | import com.product.core.entity.FieldSetEntity; |
| | |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.xml.crypto.Data; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.*; |
| | | |
| | | @Component |
| | | public class ReportConfigService extends AbstractBaseService implements IReportConfigService { |
| | |
| | | if (StringUtils.isEmpty(fse.getString(CmnConst.PAGE_SIZE))) { |
| | | fse.setValue(CmnConst.PAGE_SIZE, null); |
| | | } |
| | | |
| | | System.out.println(System.currentTimeMillis()); |
| | | String uuid = baseDao.add(fse); |
| | | System.out.println(System.currentTimeMillis()); |
| | | |
| | | if ("1".equals(fse.getString(CmnConst.RELATE_FLAG))) { |
| | | // 重新设置缓存 |
| | |
| | | String tempUUID; |
| | | for (int i = 0; i < reportAttrDte.getRows(); i++) { |
| | | tempFse = reportAttrDte.getFieldSetEntity(i); |
| | | tempFse.setValue("report_type_attr_show_name", tempFse.getString(CmnConst.REPORT_TYPE_ATTR)); |
| | | tempFse.setValue(CmnConst.REPORT_TYPE_ATTR, reportTypeAttrMap.get(tempFse.getString(CmnConst.REPORT_TYPE_ATTR))); |
| | | tempFse.setValue(CmnConst.CELL_POSITION_X, tempFse.getString(CmnConst.ATTR_X)); |
| | | tempFse.setValue(CmnConst.CELL_POSITION_Y, tempFse.getString(CmnConst.ATTR_Y)); |
| | | |
| | | String x = tempFse.getString(CmnConst.ATTR_X); |
| | | tempObj = new JSONObject(); |
| | | tempObj.put(CmnConst.ATTR_REPORT_AREA, tempFse.getString(CmnConst.ATTR_REPORT_AREA)); |
| | | tempObj.put(CmnConst.CELL_POSITION_X, tempFse.getString(CmnConst.CELL_POSITION_X)); |
| | |
| | | if (!StringUtils.isEmpty(tempUUID)) { |
| | | tempFse.setValue(CmnConst.UUID, tempUUID); |
| | | } |
| | | if (StringUtils.isEmpty(tempFse.getString(CmnConst.REPORT_TYPE_ATTR_VALUE))) { |
| | | //属性值是否为空 |
| | | if (StringUtils.isEmpty(tempFse.getUUID())) { |
| | | //没有保存过的属性 |
| | | reportAttrDte.removeFieldSetEntity(i); |
| | | i--; |
| | | } else { |
| | | //标记为删除 |
| | | tempFse.setValue(CoreConst.SYSTEM_DATA_OPERATE_TYPE, "del"); |
| | | } |
| | | continue; |
| | | } |
| | | } |
| | | } |
| | | } |