统计功能更新
This commit is contained in:
parent
4c2b72619f
commit
5aa54f3cf3
@ -43,7 +43,14 @@ public class ComStatsParameterController extends BaseController {
|
||||
ExcelUtil<ComStatsParameter> util = new ExcelUtil<>(ComStatsParameter.class);
|
||||
util.exportExcel(response, list, "统计参数数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据统计参数编号获取详细信息
|
||||
*/
|
||||
@ApiOperation("复制其他统计参数模板")
|
||||
@GetMapping(value = "/copyparameter")
|
||||
public AjaxResult copyparameter(String statsCode,String statsCodeother) {
|
||||
return success(comStatsParameterService.copyparameter(statsCode,statsCodeother));
|
||||
}
|
||||
/**
|
||||
* 根据统计参数编号获取详细信息
|
||||
*/
|
||||
|
||||
@ -5,6 +5,7 @@ import com.czlis.common.core.domain.entity.lis.ComStatsParameter;
|
||||
import java.util.List;
|
||||
|
||||
public interface ComStatsParameterService {
|
||||
List<ComStatsParameter> copyparameter(String statsCode,String statsCodeother);
|
||||
/**
|
||||
* 查询统计参数信息集合
|
||||
*
|
||||
|
||||
@ -26,7 +26,22 @@ public class ComStatsParameterServiceImpl implements ComStatsParameterService {
|
||||
public List<ComStatsParameter> selectComStatsParameterList(ComStatsParameter Param) {
|
||||
return comStatsParameterMapper.selectComStatsParameterList(Param);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ComStatsParameter> copyparameter(String statsCode,String statsCodeother){
|
||||
ComStatsParameter param = new ComStatsParameter();
|
||||
param.setStatsCode(statsCodeother);
|
||||
List<ComStatsParameter> list=comStatsParameterMapper.selectComStatsParameterList(param);
|
||||
if(list==null||list.size()==0)return list;
|
||||
for(ComStatsParameter parameter:list){
|
||||
parameter.setParamId(null);
|
||||
parameter.setStatsCode(statsCode);
|
||||
if(checkParamCodeUnique(parameter)){
|
||||
comStatsParameterMapper.insertComStatsParameter(parameter);
|
||||
}
|
||||
}
|
||||
param.setStatsCode(statsCode);
|
||||
return comStatsParameterMapper.selectComStatsParameterList(param);
|
||||
}
|
||||
/**
|
||||
* 查询所有统计模板
|
||||
*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user