18 changed files with 1168 additions and 222 deletions
@ -1,37 +0,0 @@ |
|||
package com.epmet.dto.indexcollect.form; |
|||
|
|||
import com.epmet.dto.indexcollect.ScreenProjectCategoryGridDailyDTO; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotEmpty; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description 上传 项目(事件)分类按网格_按天统计 传入参数 |
|||
* @ClassName ColProjectCategoryGridDailyListFormDTO |
|||
* @Auth wangc |
|||
* @Date 2021-01-27 16:29 |
|||
*/ |
|||
@Data |
|||
public class ColProjectCategoryGridDailyListFormDTO implements Serializable { |
|||
private static final long serialVersionUID = -5649120224533894681L; |
|||
|
|||
/** |
|||
* 当为true时后台将先删除当前维度的数据,后新增 |
|||
*/ |
|||
@NotNull(message = "是否首次不可为空") |
|||
private Boolean isFirst; |
|||
|
|||
/** |
|||
* 日期Id, 数据更新至:yyyyMMdd |
|||
*/ |
|||
@NotBlank(message = "日期不可为空") |
|||
private String dateId; |
|||
|
|||
@NotNull(message = "缺少数据列表") |
|||
@NotEmpty(message = "数据列表不能为空") |
|||
private List<ScreenProjectCategoryGridDailyDTO> dataList; |
|||
} |
@ -1,37 +0,0 @@ |
|||
package com.epmet.dto.indexcollect.form; |
|||
|
|||
import com.epmet.dto.indexcollect.ScreenProjectCategoryOrgDailyDTO; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotEmpty; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description 上传 项目(事件)分类按组织_按天统计 传入参数 |
|||
* @ClassName ColProjectCategoryOrgDailyListFromDTO |
|||
* @Auth wangc |
|||
* @Date 2021-01-27 16:29 |
|||
*/ |
|||
@Data |
|||
public class ColProjectCategoryOrgDailyListFromDTO implements Serializable { |
|||
private static final long serialVersionUID = -5606202046322115413L; |
|||
|
|||
/** |
|||
* 当为true时后台将先删除当前维度的数据,后新增 |
|||
*/ |
|||
@NotNull(message = "是否首次不可为空") |
|||
private Boolean isFirst; |
|||
|
|||
/** |
|||
* 日期Id, 数据更新至:yyyyMMdd |
|||
*/ |
|||
@NotBlank(message = "日期不可为空") |
|||
private String dateId; |
|||
|
|||
@NotNull(message = "缺少数据列表") |
|||
@NotEmpty(message = "数据列表不能为空") |
|||
private List<ScreenProjectCategoryOrgDailyDTO> dataList; |
|||
} |
@ -1,37 +0,0 @@ |
|||
package com.epmet.dto.indexcollect.form; |
|||
|
|||
import com.epmet.dto.indexcollect.ScreenProjectGridDailyDTO; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotEmpty; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description 上传 项目(事件)分析按网格_按天统计 传入参数 |
|||
* @ClassName ColProjectGridDailyListFromDTO |
|||
* @Auth wangc |
|||
* @Date 2021-01-27 16:29 |
|||
*/ |
|||
@Data |
|||
public class ColProjectGridDailyListFromDTO implements Serializable { |
|||
private static final long serialVersionUID = -7615867900486598440L; |
|||
|
|||
/** |
|||
* 当为true时后台将先删除当前维度的数据,后新增 |
|||
*/ |
|||
@NotNull(message = "是否首次不可为空") |
|||
private Boolean isFirst; |
|||
|
|||
/** |
|||
* 日期Id, 数据更新至:yyyyMMdd |
|||
*/ |
|||
@NotBlank(message = "日期不可为空") |
|||
private String dateId; |
|||
|
|||
@NotNull(message = "缺少数据列表") |
|||
@NotEmpty(message = "数据列表不能为空") |
|||
private List<ScreenProjectGridDailyDTO> dataList; |
|||
} |
@ -1,37 +0,0 @@ |
|||
package com.epmet.dto.indexcollect.form; |
|||
|
|||
import com.epmet.dto.indexcollect.ScreenProjectOrgDailyDTO; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotEmpty; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description 上传 项目(事件)分析按组织_按天统计 传入参数 |
|||
* @ClassName ColProjectOrgDailyListFromDTO |
|||
* @Auth wangc |
|||
* @Date 2021-01-27 16:30 |
|||
*/ |
|||
@Data |
|||
public class ColProjectOrgDailyListFromDTO implements Serializable { |
|||
private static final long serialVersionUID = -3813434634371460918L; |
|||
|
|||
/** |
|||
* 当为true时后台将先删除当前维度的数据,后新增 |
|||
*/ |
|||
@NotNull(message = "是否首次不可为空") |
|||
private Boolean isFirst; |
|||
|
|||
/** |
|||
* 日期Id, 数据更新至:yyyyMMdd |
|||
*/ |
|||
@NotBlank(message = "日期不可为空") |
|||
private String dateId; |
|||
|
|||
@NotNull(message = "缺少数据列表") |
|||
@NotEmpty(message = "数据列表不能为空") |
|||
private List<ScreenProjectOrgDailyDTO> dataList; |
|||
} |
@ -1,37 +0,0 @@ |
|||
package com.epmet.dto.indexcollect.form; |
|||
|
|||
import com.epmet.dto.indexcollect.ScreenProjectQuantityGridMonthlyDTO; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotEmpty; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description 上传 项目(事件)数量分析按网格_按月统计 传入参数 |
|||
* @ClassName ColProjectQuantityGridMonthlyListFromDTO |
|||
* @Auth wangc |
|||
* @Date 2021-01-27 16:30 |
|||
*/ |
|||
@Data |
|||
public class ColProjectQuantityGridMonthlyListFromDTO implements Serializable { |
|||
private static final long serialVersionUID = -3662662990777826261L; |
|||
|
|||
/** |
|||
* 当为true时后台将先删除当前维度的数据,后新增 |
|||
*/ |
|||
@NotNull(message = "是否首次不可为空") |
|||
private Boolean isFirst; |
|||
|
|||
/** |
|||
* 日期Id, 数据更新至:yyyyMMdd |
|||
*/ |
|||
@NotBlank(message = "日期不可为空") |
|||
private String dateId; |
|||
|
|||
@NotNull(message = "缺少数据列表") |
|||
@NotEmpty(message = "数据列表不能为空") |
|||
private List<ScreenProjectQuantityGridMonthlyDTO> dataList; |
|||
} |
@ -1,37 +0,0 @@ |
|||
package com.epmet.dto.indexcollect.form; |
|||
|
|||
import com.epmet.dto.indexcollect.ScreenProjectQuantityOrgMonthlyDTO; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotEmpty; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description 上传 项目(事件)数量分析按组织_按月统计 传入参数 |
|||
* @ClassName ColProjectQuantityOrgMonthlyListFromDTO |
|||
* @Auth wangc |
|||
* @Date 2021-01-27 16:30 |
|||
*/ |
|||
@Data |
|||
public class ColProjectQuantityOrgMonthlyListFromDTO implements Serializable { |
|||
private static final long serialVersionUID = -8551691254980519285L; |
|||
/** |
|||
* 当为true时后台将先删除当前维度的数据,后新增 |
|||
*/ |
|||
@NotNull(message = "是否首次不可为空") |
|||
private Boolean isFirst; |
|||
|
|||
/** |
|||
* 日期Id, 数据更新至:yyyyMMdd |
|||
*/ |
|||
@NotBlank(message = "日期不可为空") |
|||
private String dateId; |
|||
|
|||
@NotNull(message = "缺少数据列表") |
|||
@NotEmpty(message = "数据列表不能为空") |
|||
private List<ScreenProjectQuantityOrgMonthlyDTO> dataList; |
|||
|
|||
} |
@ -0,0 +1,95 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.service.evaluationindex.indexcoll; |
|||
|
|||
import com.epmet.commons.mybatis.service.BaseService; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.dto.indexcollect.ScreenProjectCategoryGridDailyDTO; |
|||
import com.epmet.entity.evaluationindex.indexcoll.ScreenProjectCategoryGridDailyEntity; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 项目(事件)分类按网格_按天统计 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-01-27 |
|||
*/ |
|||
public interface ScreenProjectCategoryGridDailyService extends BaseService<ScreenProjectCategoryGridDailyEntity> { |
|||
|
|||
/** |
|||
* 默认分页 |
|||
* |
|||
* @param params |
|||
* @return PageData<ScreenProjectCategoryGridDailyDTO> |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
PageData<ScreenProjectCategoryGridDailyDTO> page(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 默认查询 |
|||
* |
|||
* @param params |
|||
* @return java.util.List<ScreenProjectCategoryGridDailyDTO> |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
List<ScreenProjectCategoryGridDailyDTO> list(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 单条查询 |
|||
* |
|||
* @param id |
|||
* @return ScreenProjectCategoryGridDailyDTO |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
ScreenProjectCategoryGridDailyDTO get(String id); |
|||
|
|||
/** |
|||
* 默认保存 |
|||
* |
|||
* @param dto |
|||
* @return void |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
void save(ScreenProjectCategoryGridDailyDTO dto); |
|||
|
|||
/** |
|||
* 默认更新 |
|||
* |
|||
* @param dto |
|||
* @return void |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
void update(ScreenProjectCategoryGridDailyDTO dto); |
|||
|
|||
/** |
|||
* 批量删除 |
|||
* |
|||
* @param ids |
|||
* @return void |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
void delete(String[] ids); |
|||
} |
@ -0,0 +1,95 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.service.evaluationindex.indexcoll; |
|||
|
|||
import com.epmet.commons.mybatis.service.BaseService; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.dto.indexcollect.ScreenProjectCategoryOrgDailyDTO; |
|||
import com.epmet.entity.evaluationindex.indexcoll.ScreenProjectCategoryOrgDailyEntity; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 项目(事件)分类按组织_按天统计 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-01-27 |
|||
*/ |
|||
public interface ScreenProjectCategoryOrgDailyService extends BaseService<ScreenProjectCategoryOrgDailyEntity> { |
|||
|
|||
/** |
|||
* 默认分页 |
|||
* |
|||
* @param params |
|||
* @return PageData<ScreenProjectCategoryOrgDailyDTO> |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
PageData<ScreenProjectCategoryOrgDailyDTO> page(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 默认查询 |
|||
* |
|||
* @param params |
|||
* @return java.util.List<ScreenProjectCategoryOrgDailyDTO> |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
List<ScreenProjectCategoryOrgDailyDTO> list(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 单条查询 |
|||
* |
|||
* @param id |
|||
* @return ScreenProjectCategoryOrgDailyDTO |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
ScreenProjectCategoryOrgDailyDTO get(String id); |
|||
|
|||
/** |
|||
* 默认保存 |
|||
* |
|||
* @param dto |
|||
* @return void |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
void save(ScreenProjectCategoryOrgDailyDTO dto); |
|||
|
|||
/** |
|||
* 默认更新 |
|||
* |
|||
* @param dto |
|||
* @return void |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
void update(ScreenProjectCategoryOrgDailyDTO dto); |
|||
|
|||
/** |
|||
* 批量删除 |
|||
* |
|||
* @param ids |
|||
* @return void |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
void delete(String[] ids); |
|||
} |
@ -0,0 +1,95 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.service.evaluationindex.indexcoll; |
|||
|
|||
import com.epmet.commons.mybatis.service.BaseService; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.dto.indexcollect.ScreenProjectGridDailyDTO; |
|||
import com.epmet.entity.evaluationindex.indexcoll.ScreenProjectGridDailyEntity; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 项目(事件)分析按网格_按天统计 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-01-27 |
|||
*/ |
|||
public interface ScreenProjectGridDailyService extends BaseService<ScreenProjectGridDailyEntity> { |
|||
|
|||
/** |
|||
* 默认分页 |
|||
* |
|||
* @param params |
|||
* @return PageData<ScreenProjectGridDailyDTO> |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
PageData<ScreenProjectGridDailyDTO> page(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 默认查询 |
|||
* |
|||
* @param params |
|||
* @return java.util.List<ScreenProjectGridDailyDTO> |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
List<ScreenProjectGridDailyDTO> list(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 单条查询 |
|||
* |
|||
* @param id |
|||
* @return ScreenProjectGridDailyDTO |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
ScreenProjectGridDailyDTO get(String id); |
|||
|
|||
/** |
|||
* 默认保存 |
|||
* |
|||
* @param dto |
|||
* @return void |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
void save(ScreenProjectGridDailyDTO dto); |
|||
|
|||
/** |
|||
* 默认更新 |
|||
* |
|||
* @param dto |
|||
* @return void |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
void update(ScreenProjectGridDailyDTO dto); |
|||
|
|||
/** |
|||
* 批量删除 |
|||
* |
|||
* @param ids |
|||
* @return void |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
void delete(String[] ids); |
|||
} |
@ -0,0 +1,95 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.service.evaluationindex.indexcoll; |
|||
|
|||
import com.epmet.commons.mybatis.service.BaseService; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.dto.indexcollect.ScreenProjectOrgDailyDTO; |
|||
import com.epmet.entity.evaluationindex.indexcoll.ScreenProjectOrgDailyEntity; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 项目(事件)分析按组织_按天统计 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-01-27 |
|||
*/ |
|||
public interface ScreenProjectOrgDailyService extends BaseService<ScreenProjectOrgDailyEntity> { |
|||
|
|||
/** |
|||
* 默认分页 |
|||
* |
|||
* @param params |
|||
* @return PageData<ScreenProjectOrgDailyDTO> |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
PageData<ScreenProjectOrgDailyDTO> page(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 默认查询 |
|||
* |
|||
* @param params |
|||
* @return java.util.List<ScreenProjectOrgDailyDTO> |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
List<ScreenProjectOrgDailyDTO> list(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 单条查询 |
|||
* |
|||
* @param id |
|||
* @return ScreenProjectOrgDailyDTO |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
ScreenProjectOrgDailyDTO get(String id); |
|||
|
|||
/** |
|||
* 默认保存 |
|||
* |
|||
* @param dto |
|||
* @return void |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
void save(ScreenProjectOrgDailyDTO dto); |
|||
|
|||
/** |
|||
* 默认更新 |
|||
* |
|||
* @param dto |
|||
* @return void |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
void update(ScreenProjectOrgDailyDTO dto); |
|||
|
|||
/** |
|||
* 批量删除 |
|||
* |
|||
* @param ids |
|||
* @return void |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
void delete(String[] ids); |
|||
} |
@ -0,0 +1,95 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.service.evaluationindex.indexcoll; |
|||
|
|||
import com.epmet.commons.mybatis.service.BaseService; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.dto.indexcollect.ScreenProjectQuantityGridMonthlyDTO; |
|||
import com.epmet.entity.evaluationindex.indexcoll.ScreenProjectQuantityGridMonthlyEntity; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 项目(事件)数量分析按网格_按月统计 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-01-27 |
|||
*/ |
|||
public interface ScreenProjectQuantityGridMonthlyService extends BaseService<ScreenProjectQuantityGridMonthlyEntity> { |
|||
|
|||
/** |
|||
* 默认分页 |
|||
* |
|||
* @param params |
|||
* @return PageData<ScreenProjectQuantityGridMonthlyDTO> |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
PageData<ScreenProjectQuantityGridMonthlyDTO> page(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 默认查询 |
|||
* |
|||
* @param params |
|||
* @return java.util.List<ScreenProjectQuantityGridMonthlyDTO> |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
List<ScreenProjectQuantityGridMonthlyDTO> list(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 单条查询 |
|||
* |
|||
* @param id |
|||
* @return ScreenProjectQuantityGridMonthlyDTO |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
ScreenProjectQuantityGridMonthlyDTO get(String id); |
|||
|
|||
/** |
|||
* 默认保存 |
|||
* |
|||
* @param dto |
|||
* @return void |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
void save(ScreenProjectQuantityGridMonthlyDTO dto); |
|||
|
|||
/** |
|||
* 默认更新 |
|||
* |
|||
* @param dto |
|||
* @return void |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
void update(ScreenProjectQuantityGridMonthlyDTO dto); |
|||
|
|||
/** |
|||
* 批量删除 |
|||
* |
|||
* @param ids |
|||
* @return void |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
void delete(String[] ids); |
|||
} |
@ -0,0 +1,95 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.service.evaluationindex.indexcoll; |
|||
|
|||
import com.epmet.commons.mybatis.service.BaseService; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.dto.indexcollect.ScreenProjectQuantityOrgMonthlyDTO; |
|||
import com.epmet.entity.evaluationindex.indexcoll.ScreenProjectQuantityOrgMonthlyEntity; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 项目(事件)数量分析按组织_按月统计 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-01-27 |
|||
*/ |
|||
public interface ScreenProjectQuantityOrgMonthlyService extends BaseService<ScreenProjectQuantityOrgMonthlyEntity> { |
|||
|
|||
/** |
|||
* 默认分页 |
|||
* |
|||
* @param params |
|||
* @return PageData<ScreenProjectQuantityOrgMonthlyDTO> |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
PageData<ScreenProjectQuantityOrgMonthlyDTO> page(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 默认查询 |
|||
* |
|||
* @param params |
|||
* @return java.util.List<ScreenProjectQuantityOrgMonthlyDTO> |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
List<ScreenProjectQuantityOrgMonthlyDTO> list(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 单条查询 |
|||
* |
|||
* @param id |
|||
* @return ScreenProjectQuantityOrgMonthlyDTO |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
ScreenProjectQuantityOrgMonthlyDTO get(String id); |
|||
|
|||
/** |
|||
* 默认保存 |
|||
* |
|||
* @param dto |
|||
* @return void |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
void save(ScreenProjectQuantityOrgMonthlyDTO dto); |
|||
|
|||
/** |
|||
* 默认更新 |
|||
* |
|||
* @param dto |
|||
* @return void |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
void update(ScreenProjectQuantityOrgMonthlyDTO dto); |
|||
|
|||
/** |
|||
* 批量删除 |
|||
* |
|||
* @param ids |
|||
* @return void |
|||
* @author generator |
|||
* @date 2021-01-27 |
|||
*/ |
|||
void delete(String[] ids); |
|||
} |
@ -0,0 +1,100 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.service.evaluationindex.indexcoll.impl; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.commons.tools.utils.ConvertUtils; |
|||
import com.epmet.commons.tools.constant.FieldConstant; |
|||
import com.epmet.dao.evaluationindex.indexcoll.ScreenProjectCategoryGridDailyDao; |
|||
import com.epmet.dto.indexcollect.ScreenProjectCategoryGridDailyDTO; |
|||
import com.epmet.entity.evaluationindex.indexcoll.ScreenProjectCategoryGridDailyEntity; |
|||
import com.epmet.service.evaluationindex.indexcoll.ScreenProjectCategoryGridDailyService; |
|||
import org.apache.commons.lang3.StringUtils; |
|||
import org.springframework.stereotype.Service; |
|||
import org.springframework.transaction.annotation.Transactional; |
|||
|
|||
import java.util.Arrays; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 项目(事件)分类按网格_按天统计 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-01-27 |
|||
*/ |
|||
@Service |
|||
public class ScreenProjectCategoryGridDailyServiceImpl extends BaseServiceImpl<ScreenProjectCategoryGridDailyDao, ScreenProjectCategoryGridDailyEntity> implements ScreenProjectCategoryGridDailyService { |
|||
|
|||
|
|||
@Override |
|||
public PageData<ScreenProjectCategoryGridDailyDTO> page(Map<String, Object> params) { |
|||
IPage<ScreenProjectCategoryGridDailyEntity> page = baseDao.selectPage( |
|||
getPage(params, FieldConstant.CREATED_TIME, false), |
|||
getWrapper(params) |
|||
); |
|||
return getPageData(page, ScreenProjectCategoryGridDailyDTO.class); |
|||
} |
|||
|
|||
@Override |
|||
public List<ScreenProjectCategoryGridDailyDTO> list(Map<String, Object> params) { |
|||
List<ScreenProjectCategoryGridDailyEntity> entityList = baseDao.selectList(getWrapper(params)); |
|||
|
|||
return ConvertUtils.sourceToTarget(entityList, ScreenProjectCategoryGridDailyDTO.class); |
|||
} |
|||
|
|||
private QueryWrapper<ScreenProjectCategoryGridDailyEntity> getWrapper(Map<String, Object> params){ |
|||
String id = (String)params.get(FieldConstant.ID_HUMP); |
|||
|
|||
QueryWrapper<ScreenProjectCategoryGridDailyEntity> wrapper = new QueryWrapper<>(); |
|||
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
|||
|
|||
return wrapper; |
|||
} |
|||
|
|||
@Override |
|||
public ScreenProjectCategoryGridDailyDTO get(String id) { |
|||
ScreenProjectCategoryGridDailyEntity entity = baseDao.selectById(id); |
|||
return ConvertUtils.sourceToTarget(entity, ScreenProjectCategoryGridDailyDTO.class); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void save(ScreenProjectCategoryGridDailyDTO dto) { |
|||
ScreenProjectCategoryGridDailyEntity entity = ConvertUtils.sourceToTarget(dto, ScreenProjectCategoryGridDailyEntity.class); |
|||
insert(entity); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void update(ScreenProjectCategoryGridDailyDTO dto) { |
|||
ScreenProjectCategoryGridDailyEntity entity = ConvertUtils.sourceToTarget(dto, ScreenProjectCategoryGridDailyEntity.class); |
|||
updateById(entity); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void delete(String[] ids) { |
|||
// 逻辑删除(@TableLogic 注解)
|
|||
baseDao.deleteBatchIds(Arrays.asList(ids)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,99 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.service.evaluationindex.indexcoll.impl; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.commons.tools.utils.ConvertUtils; |
|||
import com.epmet.commons.tools.constant.FieldConstant; |
|||
import com.epmet.dao.evaluationindex.indexcoll.ScreenProjectCategoryOrgDailyDao; |
|||
import com.epmet.dto.indexcollect.ScreenProjectCategoryOrgDailyDTO; |
|||
import com.epmet.entity.evaluationindex.indexcoll.ScreenProjectCategoryOrgDailyEntity; |
|||
import com.epmet.service.evaluationindex.indexcoll.ScreenProjectCategoryOrgDailyService; |
|||
import org.apache.commons.lang3.StringUtils; |
|||
import org.springframework.stereotype.Service; |
|||
import org.springframework.transaction.annotation.Transactional; |
|||
|
|||
import java.util.Arrays; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 项目(事件)分类按组织_按天统计 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-01-27 |
|||
*/ |
|||
@Service |
|||
public class ScreenProjectCategoryOrgDailyServiceImpl extends BaseServiceImpl<ScreenProjectCategoryOrgDailyDao, ScreenProjectCategoryOrgDailyEntity> implements ScreenProjectCategoryOrgDailyService { |
|||
|
|||
@Override |
|||
public PageData<ScreenProjectCategoryOrgDailyDTO> page(Map<String, Object> params) { |
|||
IPage<ScreenProjectCategoryOrgDailyEntity> page = baseDao.selectPage( |
|||
getPage(params, FieldConstant.CREATED_TIME, false), |
|||
getWrapper(params) |
|||
); |
|||
return getPageData(page, ScreenProjectCategoryOrgDailyDTO.class); |
|||
} |
|||
|
|||
@Override |
|||
public List<ScreenProjectCategoryOrgDailyDTO> list(Map<String, Object> params) { |
|||
List<ScreenProjectCategoryOrgDailyEntity> entityList = baseDao.selectList(getWrapper(params)); |
|||
|
|||
return ConvertUtils.sourceToTarget(entityList, ScreenProjectCategoryOrgDailyDTO.class); |
|||
} |
|||
|
|||
private QueryWrapper<ScreenProjectCategoryOrgDailyEntity> getWrapper(Map<String, Object> params){ |
|||
String id = (String)params.get(FieldConstant.ID_HUMP); |
|||
|
|||
QueryWrapper<ScreenProjectCategoryOrgDailyEntity> wrapper = new QueryWrapper<>(); |
|||
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
|||
|
|||
return wrapper; |
|||
} |
|||
|
|||
@Override |
|||
public ScreenProjectCategoryOrgDailyDTO get(String id) { |
|||
ScreenProjectCategoryOrgDailyEntity entity = baseDao.selectById(id); |
|||
return ConvertUtils.sourceToTarget(entity, ScreenProjectCategoryOrgDailyDTO.class); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void save(ScreenProjectCategoryOrgDailyDTO dto) { |
|||
ScreenProjectCategoryOrgDailyEntity entity = ConvertUtils.sourceToTarget(dto, ScreenProjectCategoryOrgDailyEntity.class); |
|||
insert(entity); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void update(ScreenProjectCategoryOrgDailyDTO dto) { |
|||
ScreenProjectCategoryOrgDailyEntity entity = ConvertUtils.sourceToTarget(dto, ScreenProjectCategoryOrgDailyEntity.class); |
|||
updateById(entity); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void delete(String[] ids) { |
|||
// 逻辑删除(@TableLogic 注解)
|
|||
baseDao.deleteBatchIds(Arrays.asList(ids)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,100 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.service.evaluationindex.indexcoll.impl; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.commons.tools.utils.ConvertUtils; |
|||
import com.epmet.commons.tools.constant.FieldConstant; |
|||
import com.epmet.dao.evaluationindex.indexcoll.ScreenProjectGridDailyDao; |
|||
import com.epmet.dto.indexcollect.ScreenProjectGridDailyDTO; |
|||
import com.epmet.entity.evaluationindex.indexcoll.ScreenProjectGridDailyEntity; |
|||
import com.epmet.service.evaluationindex.indexcoll.ScreenProjectGridDailyService; |
|||
import org.apache.commons.lang3.StringUtils; |
|||
import org.springframework.stereotype.Service; |
|||
import org.springframework.transaction.annotation.Transactional; |
|||
|
|||
import java.util.Arrays; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 项目(事件)分析按网格_按天统计 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-01-27 |
|||
*/ |
|||
@Service |
|||
public class ScreenProjectGridDailyServiceImpl extends BaseServiceImpl<ScreenProjectGridDailyDao, ScreenProjectGridDailyEntity> implements ScreenProjectGridDailyService { |
|||
|
|||
|
|||
@Override |
|||
public PageData<ScreenProjectGridDailyDTO> page(Map<String, Object> params) { |
|||
IPage<ScreenProjectGridDailyEntity> page = baseDao.selectPage( |
|||
getPage(params, FieldConstant.CREATED_TIME, false), |
|||
getWrapper(params) |
|||
); |
|||
return getPageData(page, ScreenProjectGridDailyDTO.class); |
|||
} |
|||
|
|||
@Override |
|||
public List<ScreenProjectGridDailyDTO> list(Map<String, Object> params) { |
|||
List<ScreenProjectGridDailyEntity> entityList = baseDao.selectList(getWrapper(params)); |
|||
|
|||
return ConvertUtils.sourceToTarget(entityList, ScreenProjectGridDailyDTO.class); |
|||
} |
|||
|
|||
private QueryWrapper<ScreenProjectGridDailyEntity> getWrapper(Map<String, Object> params){ |
|||
String id = (String)params.get(FieldConstant.ID_HUMP); |
|||
|
|||
QueryWrapper<ScreenProjectGridDailyEntity> wrapper = new QueryWrapper<>(); |
|||
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
|||
|
|||
return wrapper; |
|||
} |
|||
|
|||
@Override |
|||
public ScreenProjectGridDailyDTO get(String id) { |
|||
ScreenProjectGridDailyEntity entity = baseDao.selectById(id); |
|||
return ConvertUtils.sourceToTarget(entity, ScreenProjectGridDailyDTO.class); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void save(ScreenProjectGridDailyDTO dto) { |
|||
ScreenProjectGridDailyEntity entity = ConvertUtils.sourceToTarget(dto, ScreenProjectGridDailyEntity.class); |
|||
insert(entity); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void update(ScreenProjectGridDailyDTO dto) { |
|||
ScreenProjectGridDailyEntity entity = ConvertUtils.sourceToTarget(dto, ScreenProjectGridDailyEntity.class); |
|||
updateById(entity); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void delete(String[] ids) { |
|||
// 逻辑删除(@TableLogic 注解)
|
|||
baseDao.deleteBatchIds(Arrays.asList(ids)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,100 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.service.evaluationindex.indexcoll.impl; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.commons.tools.utils.ConvertUtils; |
|||
import com.epmet.commons.tools.constant.FieldConstant; |
|||
import com.epmet.dao.evaluationindex.indexcoll.ScreenProjectOrgDailyDao; |
|||
import com.epmet.dto.indexcollect.ScreenProjectOrgDailyDTO; |
|||
import com.epmet.entity.evaluationindex.indexcoll.ScreenProjectOrgDailyEntity; |
|||
import com.epmet.service.evaluationindex.indexcoll.ScreenProjectOrgDailyService; |
|||
import org.apache.commons.lang3.StringUtils; |
|||
import org.springframework.stereotype.Service; |
|||
import org.springframework.transaction.annotation.Transactional; |
|||
|
|||
import java.util.Arrays; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 项目(事件)分析按组织_按天统计 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-01-27 |
|||
*/ |
|||
@Service |
|||
public class ScreenProjectOrgDailyServiceImpl extends BaseServiceImpl<ScreenProjectOrgDailyDao, ScreenProjectOrgDailyEntity> implements ScreenProjectOrgDailyService { |
|||
|
|||
|
|||
@Override |
|||
public PageData<ScreenProjectOrgDailyDTO> page(Map<String, Object> params) { |
|||
IPage<ScreenProjectOrgDailyEntity> page = baseDao.selectPage( |
|||
getPage(params, FieldConstant.CREATED_TIME, false), |
|||
getWrapper(params) |
|||
); |
|||
return getPageData(page, ScreenProjectOrgDailyDTO.class); |
|||
} |
|||
|
|||
@Override |
|||
public List<ScreenProjectOrgDailyDTO> list(Map<String, Object> params) { |
|||
List<ScreenProjectOrgDailyEntity> entityList = baseDao.selectList(getWrapper(params)); |
|||
|
|||
return ConvertUtils.sourceToTarget(entityList, ScreenProjectOrgDailyDTO.class); |
|||
} |
|||
|
|||
private QueryWrapper<ScreenProjectOrgDailyEntity> getWrapper(Map<String, Object> params){ |
|||
String id = (String)params.get(FieldConstant.ID_HUMP); |
|||
|
|||
QueryWrapper<ScreenProjectOrgDailyEntity> wrapper = new QueryWrapper<>(); |
|||
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
|||
|
|||
return wrapper; |
|||
} |
|||
|
|||
@Override |
|||
public ScreenProjectOrgDailyDTO get(String id) { |
|||
ScreenProjectOrgDailyEntity entity = baseDao.selectById(id); |
|||
return ConvertUtils.sourceToTarget(entity, ScreenProjectOrgDailyDTO.class); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void save(ScreenProjectOrgDailyDTO dto) { |
|||
ScreenProjectOrgDailyEntity entity = ConvertUtils.sourceToTarget(dto, ScreenProjectOrgDailyEntity.class); |
|||
insert(entity); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void update(ScreenProjectOrgDailyDTO dto) { |
|||
ScreenProjectOrgDailyEntity entity = ConvertUtils.sourceToTarget(dto, ScreenProjectOrgDailyEntity.class); |
|||
updateById(entity); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void delete(String[] ids) { |
|||
// 逻辑删除(@TableLogic 注解)
|
|||
baseDao.deleteBatchIds(Arrays.asList(ids)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,100 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.service.evaluationindex.indexcoll.impl; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.commons.tools.utils.ConvertUtils; |
|||
import com.epmet.commons.tools.constant.FieldConstant; |
|||
import com.epmet.dao.evaluationindex.indexcoll.ScreenProjectQuantityGridMonthlyDao; |
|||
import com.epmet.dto.indexcollect.ScreenProjectQuantityGridMonthlyDTO; |
|||
import com.epmet.entity.evaluationindex.indexcoll.ScreenProjectQuantityGridMonthlyEntity; |
|||
import com.epmet.service.evaluationindex.indexcoll.ScreenProjectQuantityGridMonthlyService; |
|||
import org.apache.commons.lang3.StringUtils; |
|||
import org.springframework.stereotype.Service; |
|||
import org.springframework.transaction.annotation.Transactional; |
|||
|
|||
import java.util.Arrays; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 项目(事件)数量分析按网格_按月统计 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-01-27 |
|||
*/ |
|||
@Service |
|||
public class ScreenProjectQuantityGridMonthlyServiceImpl extends BaseServiceImpl<ScreenProjectQuantityGridMonthlyDao, ScreenProjectQuantityGridMonthlyEntity> implements ScreenProjectQuantityGridMonthlyService { |
|||
|
|||
|
|||
@Override |
|||
public PageData<ScreenProjectQuantityGridMonthlyDTO> page(Map<String, Object> params) { |
|||
IPage<ScreenProjectQuantityGridMonthlyEntity> page = baseDao.selectPage( |
|||
getPage(params, FieldConstant.CREATED_TIME, false), |
|||
getWrapper(params) |
|||
); |
|||
return getPageData(page, ScreenProjectQuantityGridMonthlyDTO.class); |
|||
} |
|||
|
|||
@Override |
|||
public List<ScreenProjectQuantityGridMonthlyDTO> list(Map<String, Object> params) { |
|||
List<ScreenProjectQuantityGridMonthlyEntity> entityList = baseDao.selectList(getWrapper(params)); |
|||
|
|||
return ConvertUtils.sourceToTarget(entityList, ScreenProjectQuantityGridMonthlyDTO.class); |
|||
} |
|||
|
|||
private QueryWrapper<ScreenProjectQuantityGridMonthlyEntity> getWrapper(Map<String, Object> params){ |
|||
String id = (String)params.get(FieldConstant.ID_HUMP); |
|||
|
|||
QueryWrapper<ScreenProjectQuantityGridMonthlyEntity> wrapper = new QueryWrapper<>(); |
|||
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
|||
|
|||
return wrapper; |
|||
} |
|||
|
|||
@Override |
|||
public ScreenProjectQuantityGridMonthlyDTO get(String id) { |
|||
ScreenProjectQuantityGridMonthlyEntity entity = baseDao.selectById(id); |
|||
return ConvertUtils.sourceToTarget(entity, ScreenProjectQuantityGridMonthlyDTO.class); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void save(ScreenProjectQuantityGridMonthlyDTO dto) { |
|||
ScreenProjectQuantityGridMonthlyEntity entity = ConvertUtils.sourceToTarget(dto, ScreenProjectQuantityGridMonthlyEntity.class); |
|||
insert(entity); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void update(ScreenProjectQuantityGridMonthlyDTO dto) { |
|||
ScreenProjectQuantityGridMonthlyEntity entity = ConvertUtils.sourceToTarget(dto, ScreenProjectQuantityGridMonthlyEntity.class); |
|||
updateById(entity); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void delete(String[] ids) { |
|||
// 逻辑删除(@TableLogic 注解)
|
|||
baseDao.deleteBatchIds(Arrays.asList(ids)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,99 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.service.evaluationindex.indexcoll.impl; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.commons.tools.utils.ConvertUtils; |
|||
import com.epmet.commons.tools.constant.FieldConstant; |
|||
import com.epmet.dao.evaluationindex.indexcoll.ScreenProjectQuantityOrgMonthlyDao; |
|||
import com.epmet.dto.indexcollect.ScreenProjectQuantityOrgMonthlyDTO; |
|||
import com.epmet.entity.evaluationindex.indexcoll.ScreenProjectQuantityOrgMonthlyEntity; |
|||
import com.epmet.service.evaluationindex.indexcoll.ScreenProjectQuantityOrgMonthlyService; |
|||
import org.apache.commons.lang3.StringUtils; |
|||
import org.springframework.stereotype.Service; |
|||
import org.springframework.transaction.annotation.Transactional; |
|||
|
|||
import java.util.Arrays; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 项目(事件)数量分析按组织_按月统计 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-01-27 |
|||
*/ |
|||
@Service |
|||
public class ScreenProjectQuantityOrgMonthlyServiceImpl extends BaseServiceImpl<ScreenProjectQuantityOrgMonthlyDao, ScreenProjectQuantityOrgMonthlyEntity> implements ScreenProjectQuantityOrgMonthlyService { |
|||
|
|||
@Override |
|||
public PageData<ScreenProjectQuantityOrgMonthlyDTO> page(Map<String, Object> params) { |
|||
IPage<ScreenProjectQuantityOrgMonthlyEntity> page = baseDao.selectPage( |
|||
getPage(params, FieldConstant.CREATED_TIME, false), |
|||
getWrapper(params) |
|||
); |
|||
return getPageData(page, ScreenProjectQuantityOrgMonthlyDTO.class); |
|||
} |
|||
|
|||
@Override |
|||
public List<ScreenProjectQuantityOrgMonthlyDTO> list(Map<String, Object> params) { |
|||
List<ScreenProjectQuantityOrgMonthlyEntity> entityList = baseDao.selectList(getWrapper(params)); |
|||
|
|||
return ConvertUtils.sourceToTarget(entityList, ScreenProjectQuantityOrgMonthlyDTO.class); |
|||
} |
|||
|
|||
private QueryWrapper<ScreenProjectQuantityOrgMonthlyEntity> getWrapper(Map<String, Object> params){ |
|||
String id = (String)params.get(FieldConstant.ID_HUMP); |
|||
|
|||
QueryWrapper<ScreenProjectQuantityOrgMonthlyEntity> wrapper = new QueryWrapper<>(); |
|||
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
|||
|
|||
return wrapper; |
|||
} |
|||
|
|||
@Override |
|||
public ScreenProjectQuantityOrgMonthlyDTO get(String id) { |
|||
ScreenProjectQuantityOrgMonthlyEntity entity = baseDao.selectById(id); |
|||
return ConvertUtils.sourceToTarget(entity, ScreenProjectQuantityOrgMonthlyDTO.class); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void save(ScreenProjectQuantityOrgMonthlyDTO dto) { |
|||
ScreenProjectQuantityOrgMonthlyEntity entity = ConvertUtils.sourceToTarget(dto, ScreenProjectQuantityOrgMonthlyEntity.class); |
|||
insert(entity); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void update(ScreenProjectQuantityOrgMonthlyDTO dto) { |
|||
ScreenProjectQuantityOrgMonthlyEntity entity = ConvertUtils.sourceToTarget(dto, ScreenProjectQuantityOrgMonthlyEntity.class); |
|||
updateById(entity); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void delete(String[] ids) { |
|||
// 逻辑删除(@TableLogic 注解)
|
|||
baseDao.deleteBatchIds(Arrays.asList(ids)); |
|||
} |
|||
|
|||
} |
Loading…
Reference in new issue