Commit f13f92f4c2b996e331fa9c35ee2dd44afd55dd56

Authored by 陈威
1 parent 54c374ed
Exists in dev

拜访报表,收费报表

zr-cloud/zr-modules/zr-schsf/src/main/java/com/chinagas/modules/schsf/controller/McVisitController.java
1 1 package com.chinagas.modules.schsf.controller;
2 2  
3 3 import cn.hutool.core.bean.BeanUtil;
  4 +import com.alibaba.excel.EasyExcel;
  5 +import com.alibaba.excel.util.MapUtils;
4 6 import com.alibaba.excel.util.StringUtils;
  7 +import com.alibaba.fastjson2.JSON;
5 8 import com.chinagas.common.core.domain.AjaxResult;
6 9 import com.chinagas.common.core.web.controller.BaseController;
7 10 import com.chinagas.common.core.web.page.TableDataInfo;
... ... @@ -10,7 +13,10 @@ import com.chinagas.common.log.enums.BusinessType;
10 13 import com.chinagas.common.security.annotation.RequirePermission;
11 14 import com.chinagas.common.security.enums.Logical;
12 15 import com.chinagas.modules.schsf.domain.McVisit;
  16 +import com.chinagas.modules.schsf.domain.McVisitAndIgnition;
  17 +import com.chinagas.modules.schsf.domain.dto.ChargedListDto;
13 18 import com.chinagas.modules.schsf.domain.dto.NodeUsersDto;
  19 +import com.chinagas.modules.schsf.domain.dto.VisitListDto;
14 20 import com.chinagas.modules.schsf.domain.vo.McVisitAuditVo;
15 21 import com.chinagas.modules.schsf.domain.vo.McVisitModificationVo;
16 22 import com.chinagas.modules.schsf.domain.vo.McVisitVo;
... ... @@ -21,7 +27,12 @@ import org.springframework.beans.factory.annotation.Autowired;
21 27 import org.springframework.validation.annotation.Validated;
22 28 import org.springframework.web.bind.annotation.*;
23 29  
  30 +import javax.servlet.http.HttpServletResponse;
  31 +import java.io.IOException;
  32 +import java.net.URLEncoder;
  33 +import java.util.ArrayList;
24 34 import java.util.List;
  35 +import java.util.Map;
25 36  
26 37  
27 38 /**
... ... @@ -86,14 +97,14 @@ public class McVisitController extends BaseController {
86 97 }
87 98  
88 99 private AjaxResult getMcVisitValidate(McVisit mcVisit) {
89   - if (StringUtils.isEmpty(mcVisit.getHasDm()) || !mcVisit.getHasDm().equals(YesNoEnums.Y.getName()) ){
  100 + if (StringUtils.isEmpty(mcVisit.getHasDm()) || !mcVisit.getHasDm().equals(YesNoEnums.Y.getName())) {
90 101 //非决策人信息
91 102 mcVisit.setHasDm("N");
92 103 mcVisit.setDmAge(null);
93 104 mcVisit.setDmIncomeSrc(null);
94 105 mcVisit.setDmPhone(null);
95 106 }
96   - if (StringUtils.isEmpty(mcVisit.getIsCharged()) || !mcVisit.getIsCharged().equals(YesNoEnums.Y.getName()) ){
  107 + if (StringUtils.isEmpty(mcVisit.getIsCharged()) || !mcVisit.getIsCharged().equals(YesNoEnums.Y.getName())) {
97 108 //不是收费
98 109 mcVisit.setUserCode(null);
99 110 mcVisit.setUserIdCard(null);
... ... @@ -102,7 +113,7 @@ public class McVisitController extends BaseController {
102 113 mcVisit.setPaymentMeth(null);
103 114 mcVisit.setChargeType(null);
104 115 }
105   - if (StringUtils.isEmpty(mcVisit.getIsVisited()) || !mcVisit.getIsVisited().equals(YesNoEnums.Y.getName()) ){
  116 + if (StringUtils.isEmpty(mcVisit.getIsVisited()) || !mcVisit.getIsVisited().equals(YesNoEnums.Y.getName())) {
106 117 //不是拜访
107 118 mcVisit.setIsIntent(null);
108 119 mcVisit.setHouseCondition(null);
... ... @@ -116,7 +127,7 @@ public class McVisitController extends BaseController {
116 127 mcVisit.setWaterHeaterStatus(null);
117 128 mcVisit.setPvSystemStatus(null);
118 129 }
119   - if (StringUtils.isEmpty(mcVisit.getIsCharged()) && StringUtils.isEmpty(mcVisit.getIsVisited()) ) {
  130 + if (StringUtils.isEmpty(mcVisit.getIsCharged()) && StringUtils.isEmpty(mcVisit.getIsVisited())) {
120 131 return AjaxResult.error("是否拜访 与 是否收费 不可同时为空");
121 132 }
122 133 if (BeanUtil.isEmpty(mcVisit)) {
... ... @@ -237,8 +248,8 @@ public class McVisitController extends BaseController {
237 248 }
238 249  
239 250 /**
240   - *
241 251 * 作废工作单
  252 + *
242 253 * @param mcVisit
243 254 * @return
244 255 * @throws CloneNotSupportedException
... ... @@ -256,11 +267,203 @@ public class McVisitController extends BaseController {
256 267 *
257 268 * @return
258 269 */
259   -// @RequirePermission("schsf:mcVisit:currentFiscalYear")
260 270 @GetMapping(value = "getCurrentFiscalYear")
261 271 public AjaxResult getCurrentFiscalYear() {
262 272 return AjaxResult.success(mcVisitService.getCurrentFiscalYear());
263 273 }
264 274  
265 275  
  276 + /**
  277 + * 拜访报表
  278 + *
  279 + * @param mcVisitVo
  280 + * @return
  281 + */
  282 + @GetMapping("/visitList")
  283 + public TableDataInfo visitList(McVisitVo mcVisitVo) {
  284 + startPage();
  285 + List<String> ticketTypeList = new ArrayList<String>();
  286 + ticketTypeList.add("1");
  287 + ticketTypeList.add("3");
  288 + mcVisitVo.setTicketTypeList(ticketTypeList);
  289 + mcVisitVo.setDefFlag("0");
  290 + mcVisitVo.setStatusCode("APPROVED");
  291 + List<McVisitAndIgnition> list = mcVisitService.selectMcVisitAndIgnitionList(mcVisitVo);
  292 + return getDataTable(list);
  293 + }
  294 +
  295 +
  296 + /**
  297 + * 收费报表
  298 + *
  299 + * @param mcVisitVo
  300 + * @return
  301 + */
  302 + @GetMapping("/chargedList")
  303 + public TableDataInfo chargedList(McVisitVo mcVisitVo) {
  304 + startPage();
  305 + List<String> ticketTypeList = new ArrayList<String>();
  306 + ticketTypeList.add("2");
  307 + ticketTypeList.add("3");
  308 + mcVisitVo.setTicketTypeList(ticketTypeList);
  309 + mcVisitVo.setDefFlag("0");
  310 + mcVisitVo.setStatusCode("APPROVED");
  311 + List<McVisitAndIgnition> list = mcVisitService.selectMcVisitAndIgnitionList(mcVisitVo);
  312 + return getDataTable(list);
  313 + }
  314 +
  315 + /**
  316 + * 拜访报表-导出
  317 + *
  318 + * @param mcVisitVo
  319 + * @return
  320 + */
  321 + @PostMapping("/visitListExport")
  322 + public void visitListExport(McVisitVo mcVisitVo, HttpServletResponse response) throws IOException {
  323 + List<String> ticketTypeList = new ArrayList<String>();
  324 + ticketTypeList.add("1");
  325 + ticketTypeList.add("3");
  326 + mcVisitVo.setTicketTypeList(ticketTypeList);
  327 + mcVisitVo.setDefFlag("0");
  328 + mcVisitVo.setStatusCode("APPROVED");
  329 + List<McVisitAndIgnition> data = mcVisitService.selectMcVisitAndIgnitionList(mcVisitVo);
  330 + List<VisitListDto> list = new ArrayList<VisitListDto>();
  331 + for (McVisitAndIgnition datum : data) {
  332 + VisitListDto visitListDto = new VisitListDto(
  333 + datum.getEntryTime(),
  334 + datum.getBillingPersonName(),
  335 + datum.getJobNature(),
  336 + datum.getCompanyName(),
  337 + datum.getUserProvince(),
  338 + datum.getUserCity(),
  339 + datum.getUserDistrict(),
  340 + datum.getUserStreet(),
  341 + datum.getVlgOrCmty(),
  342 + datum.getUserDetailedAddress(),
  343 + datum.getUserName(),
  344 + datum.getUserPhone(),
  345 + datum.getIsIntent(),
  346 + datum.getHouseCondition(),
  347 + datum.getCurrentCookingEnergy(),
  348 + datum.getCurrentHeatingEnergy(),
  349 + datum.getFamilyMembers(),
  350 + datum.getFridgeStatus(),
  351 + datum.getAcStatus(),
  352 + datum.getTvStatus(),
  353 + datum.getWasherStatus(),
  354 + datum.getWaterHeaterStatus(),
  355 + datum.getPvSystemStatus(),
  356 + StringUtils.isNotBlank(datum.getHasDm()) && datum.getHasDm().equals("Y") ? "是" : "否",
  357 + datum.getDmAge(),
  358 + datum.getDmIncomeSrc(),
  359 + datum.getDmPhone(),
  360 + datum.getRemark(),
  361 + datum.getUpdateTime()
  362 + );
  363 + list.add(visitListDto);
  364 + }
  365 + try {
  366 + response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
  367 + response.setCharacterEncoding("utf-8");
  368 + // 这里URLEncoder.encode可以防止中文乱码 当然和easyexcel没有关系
  369 + String fileName = URLEncoder.encode("拜访报表", "UTF-8").replaceAll("\\+", "%20");
  370 + response.setHeader("Content-disposition", "attachment;filename*=utf-8''" + fileName + ".xlsx");
  371 + // 这里需要设置不关闭流
  372 + EasyExcel.write(response.getOutputStream(), VisitListDto.class).autoCloseStream(Boolean.FALSE).sheet("客户信息列表").doWrite(list);
  373 + } catch (Exception e) {
  374 + // 重置response
  375 + e.printStackTrace();
  376 + response.reset();
  377 + response.setContentType("application/json");
  378 + response.setCharacterEncoding("utf-8");
  379 + Map<String, String> map = MapUtils.newHashMap();
  380 + map.put("status", "failure");
  381 + map.put("message", "下载文件失败" + e.getMessage());
  382 + response.getWriter().println(JSON.toJSONString(map));
  383 + }
  384 + }
  385 +
  386 +
  387 + /**
  388 + * 收费报表-导出
  389 + *
  390 + * @param mcVisitVo
  391 + * @return
  392 + */
  393 + @PostMapping("/chargedListExport")
  394 + public void chargedListExport(McVisitVo mcVisitVo, HttpServletResponse response) throws IOException {
  395 +
  396 +
  397 +
  398 +
  399 +
  400 + List<String> ticketTypeList = new ArrayList<String>();
  401 + ticketTypeList.add("2");
  402 + ticketTypeList.add("3");
  403 + mcVisitVo.setTicketTypeList(ticketTypeList);
  404 + mcVisitVo.setDefFlag("0");
  405 + mcVisitVo.setStatusCode("APPROVED");
  406 + List<McVisitAndIgnition> data = mcVisitService.selectMcVisitAndIgnitionList(mcVisitVo);
  407 + List<ChargedListDto> list = new ArrayList<ChargedListDto>();
  408 + for (McVisitAndIgnition datum : data) {
  409 + String chargeType="其他";
  410 + if (StringUtils.isEmpty(datum.getChargeType())){
  411 + chargeType="其他";
  412 + }else if (datum.getChargeType().equals("1")){
  413 + chargeType="定金";
  414 + }else if (datum.getChargeType().equals("2")){
  415 + chargeType="全款";
  416 + }else if (datum.getChargeType().equals("4")){
  417 + chargeType="分期";
  418 + }
  419 +
  420 +
  421 +
  422 +
  423 + ChargedListDto chargedListDto = new ChargedListDto(
  424 + datum.getEntryTime(),
  425 + datum.getBillingPersonName(),
  426 + datum.getJobNature(),
  427 + datum.getCompanyName(),
  428 + datum.getUserProvince(),
  429 + datum.getUserCity(),
  430 + datum.getUserDistrict(),
  431 + datum.getUserStreet(),
  432 + datum.getVlgOrCmty(),
  433 + datum.getUserDetailedAddress(),
  434 + datum.getUserName(),
  435 + datum.getUserPhone(),
  436 + datum.getUserIdCard(),
  437 + datum.getInvoiceNo(),
  438 + datum.getChargeAmt(),
  439 + datum.getPaymentMeth(),
  440 + chargeType,
  441 + StringUtils.isEmpty(datum.getIgnCnfStatusCode())?"-":datum.getIgnCnfStatusCode().equals("Y")?"是":"否",
  442 + datum.getIgnTime(),
  443 + datum.getnIgnRsn(),
  444 + datum.getUpdateTime()
  445 + );
  446 + list.add(chargedListDto);
  447 + }
  448 + try {
  449 + response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
  450 + response.setCharacterEncoding("utf-8");
  451 + // 这里URLEncoder.encode可以防止中文乱码 当然和easyexcel没有关系
  452 + String fileName = URLEncoder.encode("拜访报表", "UTF-8").replaceAll("\\+", "%20");
  453 + response.setHeader("Content-disposition", "attachment;filename*=utf-8''" + fileName + ".xlsx");
  454 + // 这里需要设置不关闭流
  455 + EasyExcel.write(response.getOutputStream(), ChargedListDto.class).autoCloseStream(Boolean.FALSE).sheet("客户信息列表").doWrite(list);
  456 + } catch (Exception e) {
  457 + // 重置response
  458 + e.printStackTrace();
  459 + response.reset();
  460 + response.setContentType("application/json");
  461 + response.setCharacterEncoding("utf-8");
  462 + Map<String, String> map = MapUtils.newHashMap();
  463 + map.put("status", "failure");
  464 + map.put("message", "下载文件失败" + e.getMessage());
  465 + response.getWriter().println(JSON.toJSONString(map));
  466 + }
  467 + }
  468 +
266 469 }
... ...
zr-cloud/zr-modules/zr-schsf/src/main/java/com/chinagas/modules/schsf/domain/McVisitAndIgnition.java 0 → 100644
... ... @@ -0,0 +1,803 @@
  1 +package com.chinagas.modules.schsf.domain;
  2 +
  3 +import com.alibaba.excel.annotation.ExcelProperty;
  4 +import com.chinagas.common.core.web.domain.BaseEntity;
  5 +import com.fasterxml.jackson.annotation.JsonFormat;
  6 +
  7 +import java.math.BigDecimal;
  8 +import java.time.LocalDateTime;
  9 +
  10 +/**
  11 + * 拜访工单对象 mc_visit
  12 + *
  13 + * @author cw
  14 + * @date 2024-05-30
  15 + */
  16 +public class McVisitAndIgnition extends BaseEntity implements Cloneable
  17 +{
  18 +
  19 + /** 主键id */
  20 + private Long id;
  21 +
  22 + /** 工单单号 */
  23 + @ExcelProperty(value = "工单单号")
  24 + private String ticketNumber;
  25 +
  26 + /** 财年 */
  27 + @ExcelProperty(value = "财年")
  28 + private Long fiscalYear;
  29 +
  30 + /** 区域名称 */
  31 + @ExcelProperty(value = "区域名称")
  32 + private String regionName;
  33 +
  34 + /** 集团名称 */
  35 + @ExcelProperty(value = "集团名称")
  36 + private String groupName;
  37 +
  38 + /** 公司名称 */
  39 + @ExcelProperty(value = "公司名称")
  40 + private String companyName;
  41 +
  42 + /** 公司代码 */
  43 + @ExcelProperty(value = "公司代码")
  44 + private String companyCode;
  45 +
  46 + /** 收费人ID */
  47 + @ExcelProperty(value = "收费人ID")
  48 + private Long billingPersonId;
  49 +
  50 + /** 收费人名称 */
  51 + @ExcelProperty(value = "收费人名称")
  52 + private String billingPersonName;
  53 +
  54 + /** 收费人账号 */
  55 + @ExcelProperty(value = "收费人账号")
  56 + private String billingPersonAccount;
  57 +
  58 + /** 工作性质(兼职/全职) */
  59 + @ExcelProperty(value = "工作性质(兼职/全职)")
  60 + private String jobNature;
  61 +
  62 + /** 入户时间 */
  63 + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  64 + @ExcelProperty(value = "入户时间")
  65 + private LocalDateTime entryTime;
  66 +
  67 + /** 村(小区) */
  68 + @ExcelProperty(value = "村(小区)")
  69 + private String vlgOrCmty;
  70 +
  71 + /** 城乡分类 */
  72 + @ExcelProperty(value = "城乡分类")
  73 + private String urbRurCls;
  74 +
  75 + /** 客户-户名 */
  76 + @ExcelProperty(value = "客户-户名")
  77 + private String userName;
  78 +
  79 + /** 客户-电话 */
  80 + @ExcelProperty(value = "客户-电话")
  81 + private String userPhone;
  82 +
  83 + /** 客户-省 */
  84 + @ExcelProperty(value = "客户-省")
  85 + private String userProvince;
  86 +
  87 + /** 客户-市 */
  88 + @ExcelProperty(value = "客户-市")
  89 + private String userCity;
  90 +
  91 + /** 客户-区 */
  92 + @ExcelProperty(value = "客户-区")
  93 + private String userDistrict;
  94 +
  95 + /** 客户-街道 */
  96 + @ExcelProperty(value = "客户-街道")
  97 + private String userStreet;
  98 +
  99 + /** 客户-详细地址 */
  100 + @ExcelProperty(value = "客户-详细地址")
  101 + private String userDetailedAddress;
  102 +
  103 +
  104 +
  105 +
  106 +
  107 +
  108 +
  109 + /** 是否获取决策人信息 */
  110 + @ExcelProperty(value = "是否获取决策人信息")
  111 + private String hasDm;
  112 +
  113 + /** 决策人年龄 */
  114 + @ExcelProperty(value = "决策人年龄")
  115 + private String dmAge;
  116 +
  117 + /** 决策人收入来源 */
  118 + @ExcelProperty(value = "决策人收入来源")
  119 + private String dmIncomeSrc;
  120 +
  121 + /** 决策人联系方式 */
  122 + @ExcelProperty(value = "决策人联系方式")
  123 + private String dmPhone;
  124 +
  125 +
  126 +
  127 +
  128 +
  129 +
  130 + /** 是否收费 */
  131 + @ExcelProperty(value = "是否收费")
  132 + private String isCharged;
  133 +
  134 + /** 客户-用户编号 */
  135 + @ExcelProperty(value = "客户-用户编号")
  136 + private String userCode;
  137 +
  138 + /** 身份证号 */
  139 + @ExcelProperty(value = "身份证号")
  140 + private String userIdCard;
  141 +
  142 + /** 票据单号 */
  143 + @ExcelProperty(value = "票据单号")
  144 + private String invoiceNo;
  145 +
  146 + /** 收费金额(元) */
  147 + @ExcelProperty(value = "收费金额(元)")
  148 + private BigDecimal chargeAmt;
  149 +
  150 + /** 缴费方式 */
  151 + @ExcelProperty(value = "缴费方式")
  152 + private String paymentMeth;
  153 +
  154 + /** 收费类型 */
  155 + @ExcelProperty(value = "收费类型")
  156 + private String chargeType;
  157 +
  158 +
  159 +
  160 +
  161 + /** 是否拜访 */
  162 + @ExcelProperty(value = "是否拜访")
  163 + private String isVisited;
  164 +
  165 + /** 是否有意向 */
  166 + @ExcelProperty(value = "是否有意向")
  167 + private String isIntent;
  168 +
  169 + /** 房屋情况 */
  170 + @ExcelProperty(value = "房屋情况")
  171 + private String houseCondition;
  172 +
  173 + /** 现用做饭能源 */
  174 + @ExcelProperty(value = "现用做饭能源")
  175 + private String currentCookingEnergy;
  176 +
  177 + /** 现用取暖能源 */
  178 + @ExcelProperty(value = "现用取暖能源")
  179 + private String currentHeatingEnergy;
  180 +
  181 + /** 家庭人口情况 */
  182 + @ExcelProperty(value = "家庭人口情况")
  183 + private String familyMembers;
  184 +
  185 + /** 电冰箱 */
  186 + @ExcelProperty(value = "电冰箱")
  187 + private String fridgeStatus;
  188 +
  189 + /** 空调 */
  190 + @ExcelProperty(value = "空调")
  191 + private String acStatus;
  192 +
  193 + /** 电视 */
  194 + @ExcelProperty(value = "电视")
  195 + private String tvStatus;
  196 +
  197 + /** 洗衣机 */
  198 + @ExcelProperty(value = "洗衣机")
  199 + private String washerStatus;
  200 +
  201 + /** 热水器 */
  202 + @ExcelProperty(value = "热水器")
  203 + private String waterHeaterStatus;
  204 +
  205 + /** 光伏 */
  206 + @ExcelProperty(value = "光伏")
  207 + private String pvSystemStatus;
  208 +
  209 + /** 拜访_省 */
  210 + @ExcelProperty(value = "拜访_省")
  211 + private String visitProvince;
  212 +
  213 + /** 拜访_市 */
  214 + @ExcelProperty(value = "拜访_市")
  215 + private String visitCity;
  216 +
  217 + /** 拜访_区 */
  218 + @ExcelProperty(value = "拜访_区")
  219 + private String visitDistrict;
  220 +
  221 + /** 拜访_街道 */
  222 + @ExcelProperty(value = "拜访_街道")
  223 + private String visitStreet;
  224 +
  225 + /** 拜访_详细地址 */
  226 + @ExcelProperty(value = "拜访_详细地址")
  227 + private String visitDetailedAddress;
  228 +
  229 + /** 拜访_经度 */
  230 + @ExcelProperty(value = "拜访_经度")
  231 + private BigDecimal visitLongitude;
  232 +
  233 + /** 拜访_纬度 */
  234 + @ExcelProperty(value = "拜访_纬度")
  235 + private BigDecimal visitLatitude;
  236 +
  237 + /** 拜访现场照片(文件id,逗号分隔) */
  238 + @ExcelProperty(value = "拜访现场照片(文件id,逗号分隔)")
  239 + private String fieldPhotoFile;
  240 +
  241 + /** 附件(文件id,逗号分隔) */
  242 + @ExcelProperty(value = "附件(文件id,逗号分隔)")
  243 + private String attachmentFile;
  244 +
  245 +
  246 + /** 删除标志(0:未删除,1:已删除) */
  247 + @ExcelProperty(value = "删除标志")
  248 + private String defFlag;
  249 +
  250 + /** 工单类型 */
  251 + @ExcelProperty(value = "工单类型")
  252 + private String ticketType;
  253 +
  254 + /** 发布状态 */
  255 + private String publishStatus;
  256 + /** 修改状态 */
  257 + private String modificationStatus;
  258 + /** 状态节点名称 */
  259 + private String statusNodeName;
  260 +
  261 + /** 状态名称 */
  262 + private String statusName;
  263 + /** 状态名称 */
  264 + private String statusCode;
  265 +
  266 + /**
  267 + * 应收年份类型(往年应收/本年新增)
  268 + */
  269 + private String invoiceYearType;
  270 +
  271 +
  272 + /**
  273 + * 点火确认状态代码(NULL:未确认,Y:是,N:否)
  274 + */
  275 + @ExcelProperty(value = "点火确认状态代码(NULL:未确认,Y:是,N:否)")
  276 + private String ignCnfStatusCode;
  277 +
  278 + /**
  279 + * 点火时间
  280 + */
  281 + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  282 + @ExcelProperty(value = "点火时间")
  283 + private LocalDateTime ignTime;
  284 +
  285 + /**
  286 + * 未点火原因
  287 + */
  288 + @ExcelProperty(value = "未点火原因")
  289 + private String nIgnRsn;
  290 +
  291 +
  292 + public Long getId() {
  293 + return id;
  294 + }
  295 +
  296 + public void setId(Long id) {
  297 + this.id = id;
  298 + }
  299 +
  300 + public String getTicketNumber() {
  301 + return ticketNumber;
  302 + }
  303 +
  304 + public void setTicketNumber(String ticketNumber) {
  305 + this.ticketNumber = ticketNumber;
  306 + }
  307 +
  308 + public Long getFiscalYear() {
  309 + return fiscalYear;
  310 + }
  311 +
  312 + public void setFiscalYear(Long fiscalYear) {
  313 + this.fiscalYear = fiscalYear;
  314 + }
  315 +
  316 + public String getRegionName() {
  317 + return regionName;
  318 + }
  319 +
  320 + public void setRegionName(String regionName) {
  321 + this.regionName = regionName;
  322 + }
  323 +
  324 + public String getGroupName() {
  325 + return groupName;
  326 + }
  327 +
  328 + public void setGroupName(String groupName) {
  329 + this.groupName = groupName;
  330 + }
  331 +
  332 + public String getCompanyName() {
  333 + return companyName;
  334 + }
  335 +
  336 + public void setCompanyName(String companyName) {
  337 + this.companyName = companyName;
  338 + }
  339 +
  340 + public String getCompanyCode() {
  341 + return companyCode;
  342 + }
  343 +
  344 + public void setCompanyCode(String companyCode) {
  345 + this.companyCode = companyCode;
  346 + }
  347 +
  348 + public Long getBillingPersonId() {
  349 + return billingPersonId;
  350 + }
  351 +
  352 + public void setBillingPersonId(Long billingPersonId) {
  353 + this.billingPersonId = billingPersonId;
  354 + }
  355 +
  356 + public String getBillingPersonName() {
  357 + return billingPersonName;
  358 + }
  359 +
  360 + public void setBillingPersonName(String billingPersonName) {
  361 + this.billingPersonName = billingPersonName;
  362 + }
  363 +
  364 + public String getBillingPersonAccount() {
  365 + return billingPersonAccount;
  366 + }
  367 +
  368 + public void setBillingPersonAccount(String billingPersonAccount) {
  369 + this.billingPersonAccount = billingPersonAccount;
  370 + }
  371 +
  372 + public String getJobNature() {
  373 + return jobNature;
  374 + }
  375 +
  376 + public void setJobNature(String jobNature) {
  377 + this.jobNature = jobNature;
  378 + }
  379 +
  380 + public LocalDateTime getEntryTime() {
  381 + return entryTime;
  382 + }
  383 +
  384 + public void setEntryTime(LocalDateTime entryTime) {
  385 + this.entryTime = entryTime;
  386 + }
  387 +
  388 + public String getVlgOrCmty() {
  389 + return vlgOrCmty;
  390 + }
  391 +
  392 + public void setVlgOrCmty(String vlgOrCmty) {
  393 + this.vlgOrCmty = vlgOrCmty;
  394 + }
  395 +
  396 + public String getUrbRurCls() {
  397 + return urbRurCls;
  398 + }
  399 +
  400 + public void setUrbRurCls(String urbRurCls) {
  401 + this.urbRurCls = urbRurCls;
  402 + }
  403 +
  404 + public String getUserName() {
  405 + return userName;
  406 + }
  407 +
  408 + public void setUserName(String userName) {
  409 + this.userName = userName;
  410 + }
  411 +
  412 + public String getUserPhone() {
  413 + return userPhone;
  414 + }
  415 +
  416 + public void setUserPhone(String userPhone) {
  417 + this.userPhone = userPhone;
  418 + }
  419 +
  420 + public String getUserProvince() {
  421 + return userProvince;
  422 + }
  423 +
  424 + public void setUserProvince(String userProvince) {
  425 + this.userProvince = userProvince;
  426 + }
  427 +
  428 + public String getUserCity() {
  429 + return userCity;
  430 + }
  431 +
  432 + public void setUserCity(String userCity) {
  433 + this.userCity = userCity;
  434 + }
  435 +
  436 + public String getUserDistrict() {
  437 + return userDistrict;
  438 + }
  439 +
  440 + public void setUserDistrict(String userDistrict) {
  441 + this.userDistrict = userDistrict;
  442 + }
  443 +
  444 + public String getUserStreet() {
  445 + return userStreet;
  446 + }
  447 +
  448 + public void setUserStreet(String userStreet) {
  449 + this.userStreet = userStreet;
  450 + }
  451 +
  452 + public String getUserDetailedAddress() {
  453 + return userDetailedAddress;
  454 + }
  455 +
  456 + public void setUserDetailedAddress(String userDetailedAddress) {
  457 + this.userDetailedAddress = userDetailedAddress;
  458 + }
  459 +
  460 + public String getHasDm() {
  461 + return hasDm;
  462 + }
  463 +
  464 + public void setHasDm(String hasDm) {
  465 + this.hasDm = hasDm;
  466 + }
  467 +
  468 + public String getDmAge() {
  469 + return dmAge;
  470 + }
  471 +
  472 + public void setDmAge(String dmAge) {
  473 + this.dmAge = dmAge;
  474 + }
  475 +
  476 + public String getDmIncomeSrc() {
  477 + return dmIncomeSrc;
  478 + }
  479 +
  480 + public void setDmIncomeSrc(String dmIncomeSrc) {
  481 + this.dmIncomeSrc = dmIncomeSrc;
  482 + }
  483 +
  484 + public String getDmPhone() {
  485 + return dmPhone;
  486 + }
  487 +
  488 + public void setDmPhone(String dmPhone) {
  489 + this.dmPhone = dmPhone;
  490 + }
  491 +
  492 + public String getIsCharged() {
  493 + return isCharged;
  494 + }
  495 +
  496 + public void setIsCharged(String isCharged) {
  497 + this.isCharged = isCharged;
  498 + }
  499 +
  500 + public String getUserCode() {
  501 + return userCode;
  502 + }
  503 +
  504 + public void setUserCode(String userCode) {
  505 + this.userCode = userCode;
  506 + }
  507 +
  508 + public String getUserIdCard() {
  509 + return userIdCard;
  510 + }
  511 +
  512 + public void setUserIdCard(String userIdCard) {
  513 + this.userIdCard = userIdCard;
  514 + }
  515 +
  516 + public String getInvoiceNo() {
  517 + return invoiceNo;
  518 + }
  519 +
  520 + public void setInvoiceNo(String invoiceNo) {
  521 + this.invoiceNo = invoiceNo;
  522 + }
  523 +
  524 + public BigDecimal getChargeAmt() {
  525 + return chargeAmt;
  526 + }
  527 +
  528 + public void setChargeAmt(BigDecimal chargeAmt) {
  529 + this.chargeAmt = chargeAmt;
  530 + }
  531 +
  532 + public String getPaymentMeth() {
  533 + return paymentMeth;
  534 + }
  535 +
  536 + public void setPaymentMeth(String paymentMeth) {
  537 + this.paymentMeth = paymentMeth;
  538 + }
  539 +
  540 + public String getChargeType() {
  541 + return chargeType;
  542 + }
  543 +
  544 + public void setChargeType(String chargeType) {
  545 + this.chargeType = chargeType;
  546 + }
  547 +
  548 + public String getIsVisited() {
  549 + return isVisited;
  550 + }
  551 +
  552 + public void setIsVisited(String isVisited) {
  553 + this.isVisited = isVisited;
  554 + }
  555 +
  556 + public String getIsIntent() {
  557 + return isIntent;
  558 + }
  559 +
  560 + public void setIsIntent(String isIntent) {
  561 + this.isIntent = isIntent;
  562 + }
  563 +
  564 + public String getHouseCondition() {
  565 + return houseCondition;
  566 + }
  567 +
  568 + public void setHouseCondition(String houseCondition) {
  569 + this.houseCondition = houseCondition;
  570 + }
  571 +
  572 + public String getCurrentCookingEnergy() {
  573 + return currentCookingEnergy;
  574 + }
  575 +
  576 + public void setCurrentCookingEnergy(String currentCookingEnergy) {
  577 + this.currentCookingEnergy = currentCookingEnergy;
  578 + }
  579 +
  580 + public String getCurrentHeatingEnergy() {
  581 + return currentHeatingEnergy;
  582 + }
  583 +
  584 + public void setCurrentHeatingEnergy(String currentHeatingEnergy) {
  585 + this.currentHeatingEnergy = currentHeatingEnergy;
  586 + }
  587 +
  588 + public String getFamilyMembers() {
  589 + return familyMembers;
  590 + }
  591 +
  592 + public void setFamilyMembers(String familyMembers) {
  593 + this.familyMembers = familyMembers;
  594 + }
  595 +
  596 + public String getFridgeStatus() {
  597 + return fridgeStatus;
  598 + }
  599 +
  600 + public void setFridgeStatus(String fridgeStatus) {
  601 + this.fridgeStatus = fridgeStatus;
  602 + }
  603 +
  604 + public String getAcStatus() {
  605 + return acStatus;
  606 + }
  607 +
  608 + public void setAcStatus(String acStatus) {
  609 + this.acStatus = acStatus;
  610 + }
  611 +
  612 + public String getTvStatus() {
  613 + return tvStatus;
  614 + }
  615 +
  616 + public void setTvStatus(String tvStatus) {
  617 + this.tvStatus = tvStatus;
  618 + }
  619 +
  620 + public String getWasherStatus() {
  621 + return washerStatus;
  622 + }
  623 +
  624 + public void setWasherStatus(String washerStatus) {
  625 + this.washerStatus = washerStatus;
  626 + }
  627 +
  628 + public String getWaterHeaterStatus() {
  629 + return waterHeaterStatus;
  630 + }
  631 +
  632 + public void setWaterHeaterStatus(String waterHeaterStatus) {
  633 + this.waterHeaterStatus = waterHeaterStatus;
  634 + }
  635 +
  636 + public String getPvSystemStatus() {
  637 + return pvSystemStatus;
  638 + }
  639 +
  640 + public void setPvSystemStatus(String pvSystemStatus) {
  641 + this.pvSystemStatus = pvSystemStatus;
  642 + }
  643 +
  644 + public String getVisitProvince() {
  645 + return visitProvince;
  646 + }
  647 +
  648 + public void setVisitProvince(String visitProvince) {
  649 + this.visitProvince = visitProvince;
  650 + }
  651 +
  652 + public String getVisitCity() {
  653 + return visitCity;
  654 + }
  655 +
  656 + public void setVisitCity(String visitCity) {
  657 + this.visitCity = visitCity;
  658 + }
  659 +
  660 + public String getVisitDistrict() {
  661 + return visitDistrict;
  662 + }
  663 +
  664 + public void setVisitDistrict(String visitDistrict) {
  665 + this.visitDistrict = visitDistrict;
  666 + }
  667 +
  668 + public String getVisitStreet() {
  669 + return visitStreet;
  670 + }
  671 +
  672 + public void setVisitStreet(String visitStreet) {
  673 + this.visitStreet = visitStreet;
  674 + }
  675 +
  676 + public String getVisitDetailedAddress() {
  677 + return visitDetailedAddress;
  678 + }
  679 +
  680 + public void setVisitDetailedAddress(String visitDetailedAddress) {
  681 + this.visitDetailedAddress = visitDetailedAddress;
  682 + }
  683 +
  684 + public BigDecimal getVisitLongitude() {
  685 + return visitLongitude;
  686 + }
  687 +
  688 + public void setVisitLongitude(BigDecimal visitLongitude) {
  689 + this.visitLongitude = visitLongitude;
  690 + }
  691 +
  692 + public BigDecimal getVisitLatitude() {
  693 + return visitLatitude;
  694 + }
  695 +
  696 + public void setVisitLatitude(BigDecimal visitLatitude) {
  697 + this.visitLatitude = visitLatitude;
  698 + }
  699 +
  700 + public String getFieldPhotoFile() {
  701 + return fieldPhotoFile;
  702 + }
  703 +
  704 + public void setFieldPhotoFile(String fieldPhotoFile) {
  705 + this.fieldPhotoFile = fieldPhotoFile;
  706 + }
  707 +
  708 + public String getAttachmentFile() {
  709 + return attachmentFile;
  710 + }
  711 +
  712 + public void setAttachmentFile(String attachmentFile) {
  713 + this.attachmentFile = attachmentFile;
  714 + }
  715 +
  716 + public String getDefFlag() {
  717 + return defFlag;
  718 + }
  719 +
  720 + public void setDefFlag(String defFlag) {
  721 + this.defFlag = defFlag;
  722 + }
  723 +
  724 + public String getTicketType() {
  725 + return ticketType;
  726 + }
  727 +
  728 + public void setTicketType(String ticketType) {
  729 + this.ticketType = ticketType;
  730 + }
  731 +
  732 + public String getPublishStatus() {
  733 + return publishStatus;
  734 + }
  735 +
  736 + public void setPublishStatus(String publishStatus) {
  737 + this.publishStatus = publishStatus;
  738 + }
  739 +
  740 + public String getModificationStatus() {
  741 + return modificationStatus;
  742 + }
  743 +
  744 + public void setModificationStatus(String modificationStatus) {
  745 + this.modificationStatus = modificationStatus;
  746 + }
  747 +
  748 + public String getStatusNodeName() {
  749 + return statusNodeName;
  750 + }
  751 +
  752 + public void setStatusNodeName(String statusNodeName) {
  753 + this.statusNodeName = statusNodeName;
  754 + }
  755 +
  756 + public String getStatusName() {
  757 + return statusName;
  758 + }
  759 +
  760 + public void setStatusName(String statusName) {
  761 + this.statusName = statusName;
  762 + }
  763 +
  764 + public String getStatusCode() {
  765 + return statusCode;
  766 + }
  767 +
  768 + public void setStatusCode(String statusCode) {
  769 + this.statusCode = statusCode;
  770 + }
  771 +
  772 + public String getInvoiceYearType() {
  773 + return invoiceYearType;
  774 + }
  775 +
  776 + public void setInvoiceYearType(String invoiceYearType) {
  777 + this.invoiceYearType = invoiceYearType;
  778 + }
  779 +
  780 + public String getIgnCnfStatusCode() {
  781 + return ignCnfStatusCode;
  782 + }
  783 +
  784 + public void setIgnCnfStatusCode(String ignCnfStatusCode) {
  785 + this.ignCnfStatusCode = ignCnfStatusCode;
  786 + }
  787 +
  788 + public LocalDateTime getIgnTime() {
  789 + return ignTime;
  790 + }
  791 +
  792 + public void setIgnTime(LocalDateTime ignTime) {
  793 + this.ignTime = ignTime;
  794 + }
  795 +
  796 + public String getnIgnRsn() {
  797 + return nIgnRsn;
  798 + }
  799 +
  800 + public void setnIgnRsn(String nIgnRsn) {
  801 + this.nIgnRsn = nIgnRsn;
  802 + }
  803 +}
... ...
zr-cloud/zr-modules/zr-schsf/src/main/java/com/chinagas/modules/schsf/domain/dto/ChargedListDto.java 0 → 100644
... ... @@ -0,0 +1,354 @@
  1 +package com.chinagas.modules.schsf.domain.dto;
  2 +
  3 +import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
  4 +import com.alibaba.excel.annotation.ExcelProperty;
  5 +import com.alibaba.excel.annotation.format.DateTimeFormat;
  6 +import com.alibaba.excel.annotation.write.style.ColumnWidth;
  7 +import com.fasterxml.jackson.annotation.JsonFormat;
  8 +
  9 +import java.math.BigDecimal;
  10 +import java.time.LocalDateTime;
  11 +
  12 +@ExcelIgnoreUnannotated
  13 +public class ChargedListDto {
  14 + /**
  15 + * 入户时间
  16 + */
  17 + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  18 + @ExcelProperty(value = "入户时间")
  19 + @ColumnWidth(26)
  20 + @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
  21 + private LocalDateTime entryTime;
  22 +
  23 + /**
  24 + * 收费人名称
  25 + */
  26 + @ColumnWidth(20)
  27 + @ExcelProperty(value = "收费人员")
  28 + private String billingPersonName;
  29 +
  30 +
  31 + /**
  32 + * 工作性质(兼职/全职)
  33 + */
  34 + @ColumnWidth(20)
  35 + @ExcelProperty(value = "兼职/全职")
  36 + private String jobNature;
  37 +
  38 + /**
  39 + * 公司名称
  40 + */
  41 + @ColumnWidth(20)
  42 + @ExcelProperty(value = "项目公司")
  43 + private String companyName;
  44 +
  45 +
  46 + /**
  47 + * 客户-省
  48 + */
  49 + @ColumnWidth(20)
  50 + @ExcelProperty(value = "省")
  51 + private String userProvince;
  52 +
  53 + /**
  54 + * 客户-市
  55 + */
  56 + @ColumnWidth(20)
  57 + @ExcelProperty(value = "市")
  58 + private String userCity;
  59 +
  60 + /**
  61 + * 客户-区
  62 + */
  63 + @ColumnWidth(20)
  64 + @ExcelProperty(value = "县/区")
  65 + private String userDistrict;
  66 +
  67 + /**
  68 + * 客户-街道
  69 + */
  70 + @ColumnWidth(20)
  71 + @ExcelProperty(value = "乡镇/街道")
  72 + private String userStreet;
  73 +
  74 + /**
  75 + * 村(小区)
  76 + */
  77 + @ColumnWidth(20)
  78 + @ExcelProperty(value = "村/小区")
  79 + private String vlgOrCmty;
  80 +
  81 + /**
  82 + * 客户-详细地址
  83 + */
  84 + @ColumnWidth(20)
  85 + @ExcelProperty(value = "详细地址")
  86 + private String userDetailedAddress;
  87 +
  88 +
  89 + /**
  90 + * 客户-户名
  91 + */
  92 + @ColumnWidth(20)
  93 + @ExcelProperty(value = "户名")
  94 + private String userName;
  95 +
  96 + /**
  97 + * 客户-电话
  98 + */
  99 + @ColumnWidth(20)
  100 + @ExcelProperty(value = "联系电话")
  101 + private String userPhone;
  102 +
  103 + /** 身份证号 */
  104 + @ColumnWidth(20)
  105 + @ExcelProperty(value = "身份证号")
  106 + private String userIdCard;
  107 +
  108 + /** 票据单号 */
  109 + @ColumnWidth(20)
  110 + @ExcelProperty(value = {"收费阶段","票据单号"})
  111 + private String invoiceNo;
  112 +
  113 + /** 收费金额(元) */
  114 + @ColumnWidth(20)
  115 + @ExcelProperty(value = {"收费阶段","收费金额(元)"})
  116 + private BigDecimal chargeAmt;
  117 +
  118 + /** 缴费方式 */
  119 + @ColumnWidth(20)
  120 + @ExcelProperty(value = {"收费阶段","缴费方式"})
  121 + private String paymentMeth;
  122 +
  123 + /** 收费类型 */
  124 + @ColumnWidth(20)
  125 + @ExcelProperty(value = {"收费阶段","收费类型"})
  126 + private String chargeType;
  127 +
  128 +
  129 +
  130 + /**
  131 + * 点火确认状态代码(NULL:未确认,Y:是,N:否)
  132 + */
  133 + @ColumnWidth(20)
  134 + @ExcelProperty(value = "点火确认")
  135 + private String ignCnfStatusCode;
  136 +
  137 + /**
  138 + * 点火时间
  139 + */
  140 + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  141 + @ExcelProperty(value = "点火时间")
  142 + @ColumnWidth(26)
  143 + @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
  144 + private LocalDateTime ignTime;
  145 +
  146 + /**
  147 + * 未点火原因
  148 + */
  149 + @ColumnWidth(20)
  150 + @ExcelProperty(value = "未点火原因")
  151 + private String nIgnRsn;
  152 +
  153 +
  154 + @ExcelProperty(value = "更新时间")
  155 + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  156 + @ColumnWidth(26)
  157 + @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
  158 + private LocalDateTime updateTime;
  159 +
  160 + public LocalDateTime getEntryTime() {
  161 + return entryTime;
  162 + }
  163 +
  164 + public void setEntryTime(LocalDateTime entryTime) {
  165 + this.entryTime = entryTime;
  166 + }
  167 +
  168 + public String getBillingPersonName() {
  169 + return billingPersonName;
  170 + }
  171 +
  172 + public void setBillingPersonName(String billingPersonName) {
  173 + this.billingPersonName = billingPersonName;
  174 + }
  175 +
  176 + public String getJobNature() {
  177 + return jobNature;
  178 + }
  179 +
  180 + public void setJobNature(String jobNature) {
  181 + this.jobNature = jobNature;
  182 + }
  183 +
  184 + public String getCompanyName() {
  185 + return companyName;
  186 + }
  187 +
  188 + public void setCompanyName(String companyName) {
  189 + this.companyName = companyName;
  190 + }
  191 +
  192 + public String getUserProvince() {
  193 + return userProvince;
  194 + }
  195 +
  196 + public void setUserProvince(String userProvince) {
  197 + this.userProvince = userProvince;
  198 + }
  199 +
  200 + public String getUserCity() {
  201 + return userCity;
  202 + }
  203 +
  204 + public void setUserCity(String userCity) {
  205 + this.userCity = userCity;
  206 + }
  207 +
  208 + public String getUserDistrict() {
  209 + return userDistrict;
  210 + }
  211 +
  212 + public void setUserDistrict(String userDistrict) {
  213 + this.userDistrict = userDistrict;
  214 + }
  215 +
  216 + public String getUserStreet() {
  217 + return userStreet;
  218 + }
  219 +
  220 + public void setUserStreet(String userStreet) {
  221 + this.userStreet = userStreet;
  222 + }
  223 +
  224 + public String getVlgOrCmty() {
  225 + return vlgOrCmty;
  226 + }
  227 +
  228 + public void setVlgOrCmty(String vlgOrCmty) {
  229 + this.vlgOrCmty = vlgOrCmty;
  230 + }
  231 +
  232 + public String getUserDetailedAddress() {
  233 + return userDetailedAddress;
  234 + }
  235 +
  236 + public void setUserDetailedAddress(String userDetailedAddress) {
  237 + this.userDetailedAddress = userDetailedAddress;
  238 + }
  239 +
  240 + public String getUserName() {
  241 + return userName;
  242 + }
  243 +
  244 + public void setUserName(String userName) {
  245 + this.userName = userName;
  246 + }
  247 +
  248 + public String getUserPhone() {
  249 + return userPhone;
  250 + }
  251 +
  252 + public void setUserPhone(String userPhone) {
  253 + this.userPhone = userPhone;
  254 + }
  255 +
  256 + public String getUserIdCard() {
  257 + return userIdCard;
  258 + }
  259 +
  260 + public void setUserIdCard(String userIdCard) {
  261 + this.userIdCard = userIdCard;
  262 + }
  263 +
  264 + public String getInvoiceNo() {
  265 + return invoiceNo;
  266 + }
  267 +
  268 + public void setInvoiceNo(String invoiceNo) {
  269 + this.invoiceNo = invoiceNo;
  270 + }
  271 +
  272 + public BigDecimal getChargeAmt() {
  273 + return chargeAmt;
  274 + }
  275 +
  276 + public void setChargeAmt(BigDecimal chargeAmt) {
  277 + this.chargeAmt = chargeAmt;
  278 + }
  279 +
  280 + public String getPaymentMeth() {
  281 + return paymentMeth;
  282 + }
  283 +
  284 + public void setPaymentMeth(String paymentMeth) {
  285 + this.paymentMeth = paymentMeth;
  286 + }
  287 +
  288 + public String getChargeType() {
  289 + return chargeType;
  290 + }
  291 +
  292 + public void setChargeType(String chargeType) {
  293 + this.chargeType = chargeType;
  294 + }
  295 +
  296 + public String getIgnCnfStatusCode() {
  297 + return ignCnfStatusCode;
  298 + }
  299 +
  300 + public void setIgnCnfStatusCode(String ignCnfStatusCode) {
  301 + this.ignCnfStatusCode = ignCnfStatusCode;
  302 + }
  303 +
  304 + public LocalDateTime getIgnTime() {
  305 + return ignTime;
  306 + }
  307 +
  308 + public void setIgnTime(LocalDateTime ignTime) {
  309 + this.ignTime = ignTime;
  310 + }
  311 +
  312 + public String getnIgnRsn() {
  313 + return nIgnRsn;
  314 + }
  315 +
  316 + public void setnIgnRsn(String nIgnRsn) {
  317 + this.nIgnRsn = nIgnRsn;
  318 + }
  319 +
  320 + public LocalDateTime getUpdateTime() {
  321 + return updateTime;
  322 + }
  323 +
  324 + public void setUpdateTime(LocalDateTime updateTime) {
  325 + this.updateTime = updateTime;
  326 + }
  327 +
  328 + public ChargedListDto() {
  329 + }
  330 +
  331 + public ChargedListDto(LocalDateTime entryTime, String billingPersonName, String jobNature, String companyName, String userProvince, String userCity, String userDistrict, String userStreet, String vlgOrCmty, String userDetailedAddress, String userName, String userPhone, String userIdCard, String invoiceNo, BigDecimal chargeAmt, String paymentMeth, String chargeType, String ignCnfStatusCode, LocalDateTime ignTime, String nIgnRsn, LocalDateTime updateTime) {
  332 + this.entryTime = entryTime;
  333 + this.billingPersonName = billingPersonName;
  334 + this.jobNature = jobNature;
  335 + this.companyName = companyName;
  336 + this.userProvince = userProvince;
  337 + this.userCity = userCity;
  338 + this.userDistrict = userDistrict;
  339 + this.userStreet = userStreet;
  340 + this.vlgOrCmty = vlgOrCmty;
  341 + this.userDetailedAddress = userDetailedAddress;
  342 + this.userName = userName;
  343 + this.userPhone = userPhone;
  344 + this.userIdCard = userIdCard;
  345 + this.invoiceNo = invoiceNo;
  346 + this.chargeAmt = chargeAmt;
  347 + this.paymentMeth = paymentMeth;
  348 + this.chargeType = chargeType;
  349 + this.ignCnfStatusCode = ignCnfStatusCode;
  350 + this.ignTime = ignTime;
  351 + this.nIgnRsn = nIgnRsn;
  352 + this.updateTime = updateTime;
  353 + }
  354 +}
... ...
zr-cloud/zr-modules/zr-schsf/src/main/java/com/chinagas/modules/schsf/domain/dto/VisitListDto.java 0 → 100644
... ... @@ -0,0 +1,544 @@
  1 +package com.chinagas.modules.schsf.domain.dto;
  2 +
  3 +import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
  4 +import com.alibaba.excel.annotation.ExcelProperty;
  5 +import com.alibaba.excel.annotation.format.DateTimeFormat;
  6 +import com.alibaba.excel.annotation.write.style.ColumnWidth;
  7 +import com.fasterxml.jackson.annotation.JsonFormat;
  8 +
  9 +import java.time.LocalDateTime;
  10 +
  11 +@ExcelIgnoreUnannotated
  12 +public class VisitListDto {
  13 + /**
  14 + * 入户时间
  15 + */
  16 + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  17 + @ExcelProperty(value = "入户时间")
  18 + @ColumnWidth(26)
  19 + @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
  20 + private LocalDateTime entryTime;
  21 +
  22 + /**
  23 + * 收费人名称
  24 + */
  25 + @ColumnWidth(20)
  26 + @ExcelProperty(value = "收费人员")
  27 + private String billingPersonName;
  28 +
  29 +
  30 + /**
  31 + * 工作性质(兼职/全职)
  32 + */
  33 + @ColumnWidth(20)
  34 + @ExcelProperty(value = "兼职/全职")
  35 + private String jobNature;
  36 +
  37 + /**
  38 + * 公司名称
  39 + */
  40 + @ColumnWidth(20)
  41 + @ExcelProperty(value = "项目公司")
  42 + private String companyName;
  43 +
  44 +
  45 + /**
  46 + * 客户-省
  47 + */
  48 + @ColumnWidth(20)
  49 + @ExcelProperty(value = "省")
  50 + private String userProvince;
  51 +
  52 + /**
  53 + * 客户-市
  54 + */
  55 + @ColumnWidth(20)
  56 + @ExcelProperty(value = "市")
  57 + private String userCity;
  58 +
  59 + /**
  60 + * 客户-区
  61 + */
  62 + @ColumnWidth(20)
  63 + @ExcelProperty(value = "县/区")
  64 + private String userDistrict;
  65 +
  66 + /**
  67 + * 客户-街道
  68 + */
  69 + @ColumnWidth(20)
  70 + @ExcelProperty(value = "乡镇/街道")
  71 + private String userStreet;
  72 +
  73 + /**
  74 + * 村(小区)
  75 + */
  76 + @ColumnWidth(20)
  77 + @ExcelProperty(value = "村/小区")
  78 + private String vlgOrCmty;
  79 +
  80 + /**
  81 + * 客户-详细地址
  82 + */
  83 + @ColumnWidth(20)
  84 + @ExcelProperty(value = "详细地址")
  85 + private String userDetailedAddress;
  86 +
  87 +
  88 + /**
  89 + * 客户-户名
  90 + */
  91 + @ColumnWidth(20)
  92 + @ExcelProperty(value = "户名")
  93 + private String userName;
  94 +
  95 + /**
  96 + * 客户-电话
  97 + */
  98 + @ColumnWidth(20)
  99 + @ExcelProperty(value = "联系电话")
  100 + private String userPhone;
  101 +
  102 + /**
  103 + * 是否有意向
  104 + */
  105 + @ColumnWidth(20)
  106 + @ExcelProperty(value = "是否有意向")
  107 + private String isIntent;
  108 +
  109 +
  110 + /**
  111 + * 房屋情况
  112 + */
  113 + @ColumnWidth(20)
  114 + @ExcelProperty(value = "房屋情况")
  115 + private String houseCondition;
  116 +
  117 + /**
  118 + * 现用做饭能源
  119 + */
  120 + @ColumnWidth(20)
  121 + @ExcelProperty(value = "现用做饭能源")
  122 + private String currentCookingEnergy;
  123 +
  124 + /**
  125 + * 现用取暖能源
  126 + */
  127 + @ColumnWidth(20)
  128 + @ExcelProperty(value = "现用取暖能源")
  129 + private String currentHeatingEnergy;
  130 +
  131 + /**
  132 + * 家庭人口情况
  133 + */
  134 + @ColumnWidth(20)
  135 + @ExcelProperty(value = "家庭人口情况")
  136 + private String familyMembers;
  137 +
  138 + /**
  139 + * 电冰箱
  140 + */
  141 + @ColumnWidth(20)
  142 + @ExcelProperty(value = {"家电配置", "电冰箱"})
  143 + private String fridgeStatus;
  144 +
  145 + /**
  146 + * 空调
  147 + */
  148 + @ColumnWidth(20)
  149 + @ExcelProperty(value = {"家电配置", "空调"})
  150 + private String acStatus;
  151 +
  152 + /**
  153 + * 电视
  154 + */
  155 + @ColumnWidth(20)
  156 + @ExcelProperty(value = {"家电配置", "电视"})
  157 + private String tvStatus;
  158 +
  159 + /**
  160 + * 洗衣机
  161 + */
  162 + @ColumnWidth(20)
  163 + @ExcelProperty(value = {"家电配置", "洗衣机"})
  164 + private String washerStatus;
  165 +
  166 + /**
  167 + * 热水器
  168 + */
  169 + @ColumnWidth(20)
  170 + @ExcelProperty(value = {"家电配置", "热水器"})
  171 + private String waterHeaterStatus;
  172 +
  173 + /**
  174 + * 光伏
  175 + */
  176 + @ExcelProperty(value = {"家电配置", "光伏"})
  177 + private String pvSystemStatus;
  178 +
  179 + /**
  180 + * 是否获取决策人信息
  181 + */
  182 + @ExcelProperty(value = "是否获取决策人信息")
  183 + private String hasDm;
  184 +
  185 + /**
  186 + * 决策人年龄
  187 + */
  188 + @ExcelProperty(value = "决策人年龄")
  189 + private String dmAge;
  190 +
  191 + /**
  192 + * 决策人收入来源
  193 + */
  194 + @ExcelProperty(value = "决策人收入来源")
  195 + private String dmIncomeSrc;
  196 +
  197 + /**
  198 + * 决策人联系方式
  199 + */
  200 + @ExcelProperty(value = "决策人联系方式")
  201 + private String dmPhone;
  202 +
  203 + @ExcelProperty(value = "备注")
  204 + private String remark;
  205 +
  206 + @ExcelProperty(value = "更新时间")
  207 + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  208 + @ColumnWidth(26)
  209 + @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
  210 + private LocalDateTime updateTime;
  211 +
  212 +
  213 + public LocalDateTime getEntryTime() {
  214 + return entryTime;
  215 + }
  216 +
  217 + public void setEntryTime(LocalDateTime entryTime) {
  218 + this.entryTime = entryTime;
  219 + }
  220 +
  221 + public String getBillingPersonName() {
  222 + return billingPersonName;
  223 + }
  224 +
  225 + public void setBillingPersonName(String billingPersonName) {
  226 + this.billingPersonName = billingPersonName;
  227 + }
  228 +
  229 + public String getJobNature() {
  230 + return jobNature;
  231 + }
  232 +
  233 + public void setJobNature(String jobNature) {
  234 + this.jobNature = jobNature;
  235 + }
  236 +
  237 + public String getCompanyName() {
  238 + return companyName;
  239 + }
  240 +
  241 + public void setCompanyName(String companyName) {
  242 + this.companyName = companyName;
  243 + }
  244 +
  245 + public String getUserProvince() {
  246 + return userProvince;
  247 + }
  248 +
  249 + public void setUserProvince(String userProvince) {
  250 + this.userProvince = userProvince;
  251 + }
  252 +
  253 + public String getUserCity() {
  254 + return userCity;
  255 + }
  256 +
  257 + public void setUserCity(String userCity) {
  258 + this.userCity = userCity;
  259 + }
  260 +
  261 + public String getUserDistrict() {
  262 + return userDistrict;
  263 + }
  264 +
  265 + public void setUserDistrict(String userDistrict) {
  266 + this.userDistrict = userDistrict;
  267 + }
  268 +
  269 + public String getUserStreet() {
  270 + return userStreet;
  271 + }
  272 +
  273 + public void setUserStreet(String userStreet) {
  274 + this.userStreet = userStreet;
  275 + }
  276 +
  277 +
  278 + public String getVlgOrCmty() {
  279 + return vlgOrCmty;
  280 + }
  281 +
  282 + public void setVlgOrCmty(String vlgOrCmty) {
  283 + this.vlgOrCmty = vlgOrCmty;
  284 + }
  285 +
  286 + public String getUserDetailedAddress() {
  287 + return userDetailedAddress;
  288 + }
  289 +
  290 + public void setUserDetailedAddress(String userDetailedAddress) {
  291 + this.userDetailedAddress = userDetailedAddress;
  292 + }
  293 +
  294 + public String getUserName() {
  295 + return userName;
  296 + }
  297 +
  298 + public void setUserName(String userName) {
  299 + this.userName = userName;
  300 + }
  301 +
  302 + public String getUserPhone() {
  303 + return userPhone;
  304 + }
  305 +
  306 + public void setUserPhone(String userPhone) {
  307 + this.userPhone = userPhone;
  308 + }
  309 +
  310 + public String getIsIntent() {
  311 + return isIntent;
  312 + }
  313 +
  314 + public void setIsIntent(String isIntent) {
  315 + this.isIntent = isIntent;
  316 + }
  317 +
  318 + public String getHouseCondition() {
  319 + return houseCondition;
  320 + }
  321 +
  322 + public void setHouseCondition(String houseCondition) {
  323 + this.houseCondition = houseCondition;
  324 + }
  325 +
  326 + public String getCurrentCookingEnergy() {
  327 + return currentCookingEnergy;
  328 + }
  329 +
  330 + public void setCurrentCookingEnergy(String currentCookingEnergy) {
  331 + this.currentCookingEnergy = currentCookingEnergy;
  332 + }
  333 +
  334 + public String getCurrentHeatingEnergy() {
  335 + return currentHeatingEnergy;
  336 + }
  337 +
  338 + public void setCurrentHeatingEnergy(String currentHeatingEnergy) {
  339 + this.currentHeatingEnergy = currentHeatingEnergy;
  340 + }
  341 +
  342 + public String getFamilyMembers() {
  343 + return familyMembers;
  344 + }
  345 +
  346 + public void setFamilyMembers(String familyMembers) {
  347 + this.familyMembers = familyMembers;
  348 + }
  349 +
  350 + public String getFridgeStatus() {
  351 + return fridgeStatus;
  352 + }
  353 +
  354 + public void setFridgeStatus(String fridgeStatus) {
  355 + this.fridgeStatus = fridgeStatus;
  356 + }
  357 +
  358 + public String getAcStatus() {
  359 + return acStatus;
  360 + }
  361 +
  362 + public void setAcStatus(String acStatus) {
  363 + this.acStatus = acStatus;
  364 + }
  365 +
  366 + public String getTvStatus() {
  367 + return tvStatus;
  368 + }
  369 +
  370 + public void setTvStatus(String tvStatus) {
  371 + this.tvStatus = tvStatus;
  372 + }
  373 +
  374 + public String getWasherStatus() {
  375 + return washerStatus;
  376 + }
  377 +
  378 + public void setWasherStatus(String washerStatus) {
  379 + this.washerStatus = washerStatus;
  380 + }
  381 +
  382 + public String getWaterHeaterStatus() {
  383 + return waterHeaterStatus;
  384 + }
  385 +
  386 + public void setWaterHeaterStatus(String waterHeaterStatus) {
  387 + this.waterHeaterStatus = waterHeaterStatus;
  388 + }
  389 +
  390 + public String getPvSystemStatus() {
  391 + return pvSystemStatus;
  392 + }
  393 +
  394 + public void setPvSystemStatus(String pvSystemStatus) {
  395 + this.pvSystemStatus = pvSystemStatus;
  396 + }
  397 +
  398 + public String getHasDm() {
  399 + return hasDm;
  400 + }
  401 +
  402 + public void setHasDm(String hasDm) {
  403 + this.hasDm = hasDm;
  404 + }
  405 +
  406 + public String getDmAge() {
  407 + return dmAge;
  408 + }
  409 +
  410 + public void setDmAge(String dmAge) {
  411 + this.dmAge = dmAge;
  412 + }
  413 +
  414 + public String getDmIncomeSrc() {
  415 + return dmIncomeSrc;
  416 + }
  417 +
  418 + public void setDmIncomeSrc(String dmIncomeSrc) {
  419 + this.dmIncomeSrc = dmIncomeSrc;
  420 + }
  421 +
  422 + public String getDmPhone() {
  423 + return dmPhone;
  424 + }
  425 +
  426 + public void setDmPhone(String dmPhone) {
  427 + this.dmPhone = dmPhone;
  428 + }
  429 +
  430 + public String getRemark() {
  431 + return remark;
  432 + }
  433 +
  434 + public void setRemark(String remark) {
  435 + this.remark = remark;
  436 + }
  437 +
  438 + public LocalDateTime getUpdateTime() {
  439 + return updateTime;
  440 + }
  441 +
  442 + public void setUpdateTime(LocalDateTime updateTime) {
  443 + this.updateTime = updateTime;
  444 + }
  445 +
  446 + @Override
  447 + public String toString() {
  448 + return "visitListDto{" +
  449 + "entryTime=" + entryTime +
  450 + ", billingPersonName='" + billingPersonName + '\'' +
  451 + ", jobNature='" + jobNature + '\'' +
  452 + ", companyName='" + companyName + '\'' +
  453 + ", userProvince='" + userProvince + '\'' +
  454 + ", userCity='" + userCity + '\'' +
  455 + ", userDistrict='" + userDistrict + '\'' +
  456 + ", userStreet='" + userStreet + '\'' +
  457 + ", vlgOrCmty='" + vlgOrCmty + '\'' +
  458 + ", userDetailedAddress='" + userDetailedAddress + '\'' +
  459 + ", userName='" + userName + '\'' +
  460 + ", userPhone='" + userPhone + '\'' +
  461 + ", isIntent='" + isIntent + '\'' +
  462 + ", houseCondition='" + houseCondition + '\'' +
  463 + ", currentCookingEnergy='" + currentCookingEnergy + '\'' +
  464 + ", currentHeatingEnergy='" + currentHeatingEnergy + '\'' +
  465 + ", familyMembers='" + familyMembers + '\'' +
  466 + ", fridgeStatus='" + fridgeStatus + '\'' +
  467 + ", acStatus='" + acStatus + '\'' +
  468 + ", tvStatus='" + tvStatus + '\'' +
  469 + ", washerStatus='" + washerStatus + '\'' +
  470 + ", waterHeaterStatus='" + waterHeaterStatus + '\'' +
  471 + ", pvSystemStatus='" + pvSystemStatus + '\'' +
  472 + ", hasDm='" + hasDm + '\'' +
  473 + ", dmAge='" + dmAge + '\'' +
  474 + ", dmIncomeSrc='" + dmIncomeSrc + '\'' +
  475 + ", dmPhone='" + dmPhone + '\'' +
  476 + ", remark='" + remark + '\'' +
  477 + ", updateTime=" + updateTime +
  478 + '}';
  479 + }
  480 +
  481 + public VisitListDto() {
  482 + }
  483 +
  484 + public VisitListDto(
  485 + LocalDateTime entryTime,
  486 + String billingPersonName,
  487 + String jobNature,
  488 + String companyName,
  489 + String userProvince,
  490 + String userCity,
  491 + String userDistrict,
  492 + String userStreet,
  493 + String vlgOrCmty,
  494 + String userDetailedAddress,
  495 + String userName,
  496 + String userPhone,
  497 + String isIntent,
  498 + String houseCondition,
  499 + String currentCookingEnergy,
  500 + String currentHeatingEnergy,
  501 + String familyMembers,
  502 + String fridgeStatus,
  503 + String acStatus,
  504 + String tvStatus,
  505 + String washerStatus,
  506 + String waterHeaterStatus,
  507 + String pvSystemStatus,
  508 + String hasDm,
  509 + String dmAge,
  510 + String dmIncomeSrc,
  511 + String dmPhone,
  512 + String remark,
  513 + LocalDateTime updateTime) {
  514 + this.entryTime = entryTime;
  515 + this.billingPersonName = billingPersonName;
  516 + this.jobNature = jobNature;
  517 + this.companyName = companyName;
  518 + this.userProvince = userProvince;
  519 + this.userCity = userCity;
  520 + this.userDistrict = userDistrict;
  521 + this.userStreet = userStreet;
  522 + this.vlgOrCmty = vlgOrCmty;
  523 + this.userDetailedAddress = userDetailedAddress;
  524 + this.userName = userName;
  525 + this.userPhone = userPhone;
  526 + this.isIntent = isIntent;
  527 + this.houseCondition = houseCondition;
  528 + this.currentCookingEnergy = currentCookingEnergy;
  529 + this.currentHeatingEnergy = currentHeatingEnergy;
  530 + this.familyMembers = familyMembers;
  531 + this.fridgeStatus = fridgeStatus;
  532 + this.acStatus = acStatus;
  533 + this.tvStatus = tvStatus;
  534 + this.washerStatus = washerStatus;
  535 + this.waterHeaterStatus = waterHeaterStatus;
  536 + this.pvSystemStatus = pvSystemStatus;
  537 + this.hasDm = hasDm;
  538 + this.dmAge = dmAge;
  539 + this.dmIncomeSrc = dmIncomeSrc;
  540 + this.dmPhone = dmPhone;
  541 + this.remark = remark;
  542 + this.updateTime = updateTime;
  543 + }
  544 +}
... ...
zr-cloud/zr-modules/zr-schsf/src/main/java/com/chinagas/modules/schsf/domain/vo/McVisitVo.java
... ... @@ -17,11 +17,50 @@ public class McVisitVo extends McVisit {
17 17 */
18 18 private Long finishFiscalYear;
19 19  
  20 + /**
  21 + * 是否我的节点(待我审核)
  22 + */
20 23 private String isMyAuditing;
21 24  
  25 + /**
  26 + * 状态
  27 + */
22 28 private List<HashMap> statusMapList = new ArrayList<HashMap>();
23 29  
24 30  
  31 + /**
  32 + * 工单类型
  33 + */
  34 + private List<String> ticketTypeList = new ArrayList<String>();
  35 +
  36 +
  37 + /**
  38 + * 入户时间-起始时间
  39 + */
  40 + private String startEntryTime;
  41 +
  42 +
  43 + /**
  44 + * 入户时间-结束时间
  45 + */
  46 + private String finishEntryTime;
  47 +
  48 + /**
  49 + * 修改时间-起始时间
  50 + */
  51 + private String startUpdateTime;
  52 +
  53 + /**
  54 + * 修改时间-起始时间
  55 + */
  56 + private String finishUpdateTime;
  57 +
  58 + /**
  59 + * 点火确认状态代码(NULL:未确认,Y:是,N:否)
  60 + */
  61 + private String ignCnfStatusCode;
  62 +
  63 +
25 64 public Long getStartFiscalYear() {
26 65 return startFiscalYear;
27 66 }
... ... @@ -38,6 +77,13 @@ public class McVisitVo extends McVisit {
38 77 this.finishFiscalYear = finishFiscalYear;
39 78 }
40 79  
  80 + public String getIsMyAuditing() {
  81 + return isMyAuditing;
  82 + }
  83 +
  84 + public void setIsMyAuditing(String isMyAuditing) {
  85 + this.isMyAuditing = isMyAuditing;
  86 + }
41 87  
42 88 public List<HashMap> getStatusMapList() {
43 89 return statusMapList;
... ... @@ -47,12 +93,52 @@ public class McVisitVo extends McVisit {
47 93 this.statusMapList = statusMapList;
48 94 }
49 95  
50   - public String getIsMyAuditing() {
51   - return isMyAuditing;
  96 + public List<String> getTicketTypeList() {
  97 + return ticketTypeList;
52 98 }
53 99  
54   - public void setIsMyAuditing(String isMyAuditing) {
55   - this.isMyAuditing = isMyAuditing;
  100 + public void setTicketTypeList(List<String> ticketTypeList) {
  101 + this.ticketTypeList = ticketTypeList;
  102 + }
  103 +
  104 + public String getStartEntryTime() {
  105 + return startEntryTime;
  106 + }
  107 +
  108 + public void setStartEntryTime(String startEntryTime) {
  109 + this.startEntryTime = startEntryTime;
  110 + }
  111 +
  112 + public String getFinishEntryTime() {
  113 + return finishEntryTime;
  114 + }
  115 +
  116 + public void setFinishEntryTime(String finishEntryTime) {
  117 + this.finishEntryTime = finishEntryTime;
  118 + }
  119 +
  120 + public String getStartUpdateTime() {
  121 + return startUpdateTime;
  122 + }
  123 +
  124 + public void setStartUpdateTime(String startUpdateTime) {
  125 + this.startUpdateTime = startUpdateTime;
  126 + }
  127 +
  128 + public String getFinishUpdateTime() {
  129 + return finishUpdateTime;
  130 + }
  131 +
  132 + public void setFinishUpdateTime(String finishUpdateTime) {
  133 + this.finishUpdateTime = finishUpdateTime;
  134 + }
  135 +
  136 + public String getIgnCnfStatusCode() {
  137 + return ignCnfStatusCode;
  138 + }
  139 +
  140 + public void setIgnCnfStatusCode(String ignCnfStatusCode) {
  141 + this.ignCnfStatusCode = ignCnfStatusCode;
56 142 }
57 143  
58 144 @Override
... ... @@ -62,6 +148,12 @@ public class McVisitVo extends McVisit {
62 148 ", finishFiscalYear=" + finishFiscalYear +
63 149 ", isMyAuditing='" + isMyAuditing + '\'' +
64 150 ", statusMapList=" + statusMapList +
  151 + ", ticketTypeList=" + ticketTypeList +
  152 + ", startEntryTime='" + startEntryTime + '\'' +
  153 + ", finishEntryTime='" + finishEntryTime + '\'' +
  154 + ", startUpdateTime='" + startUpdateTime + '\'' +
  155 + ", finishUpdateTime='" + finishUpdateTime + '\'' +
  156 + ", ignCnfStatusCode='" + ignCnfStatusCode + '\'' +
65 157 '}';
66 158 }
67 159 }
... ...
zr-cloud/zr-modules/zr-schsf/src/main/java/com/chinagas/modules/schsf/mapper/McVisitMapper.java
1 1 package com.chinagas.modules.schsf.mapper;
2 2  
3 3 import com.chinagas.modules.schsf.domain.McVisit;
  4 +import com.chinagas.modules.schsf.domain.McVisitAndIgnition;
4 5 import com.chinagas.modules.schsf.domain.dto.NodeUsersDto;
5 6 import com.chinagas.modules.schsf.domain.vo.McVisitVo;
6 7 import org.apache.ibatis.annotations.Param;
... ... @@ -81,4 +82,11 @@ public interface McVisitMapper
81 82 */
82 83 List<McVisit> selectMcVisitByData(McVisit mcVisit);
83 84  
  85 + /**
  86 + * 拜访+点火信息
  87 + *
  88 + * @param mcVisitVo
  89 + * @return
  90 + */
  91 + List<McVisitAndIgnition> selectMcVisitAndIgnitionList(McVisitVo mcVisitVo);
84 92 }
... ...
zr-cloud/zr-modules/zr-schsf/src/main/java/com/chinagas/modules/schsf/service/IMcVisitService.java
1 1 package com.chinagas.modules.schsf.service;
2 2  
3 3 import com.chinagas.modules.schsf.domain.McVisit;
  4 +import com.chinagas.modules.schsf.domain.McVisitAndIgnition;
4 5 import com.chinagas.modules.schsf.domain.dto.NodeUsersDto;
5 6 import com.chinagas.modules.schsf.domain.vo.McVisitAuditVo;
6 7 import com.chinagas.modules.schsf.domain.vo.McVisitModificationVo;
... ... @@ -97,4 +98,12 @@ public interface IMcVisitService {
97 98 */
98 99 List<NodeUsersDto> selectStatusNodeUserList(Long id);
99 100  
  101 + /**
  102 + * 查询拜访+点火维护信息
  103 + * @param mcVisitVo
  104 + * @return
  105 + */
  106 + List<McVisitAndIgnition> selectMcVisitAndIgnitionList(McVisitVo mcVisitVo);
  107 +
  108 +
100 109 }
... ...
zr-cloud/zr-modules/zr-schsf/src/main/java/com/chinagas/modules/schsf/service/impl/McVisitServiceImpl.java
... ... @@ -9,10 +9,7 @@ import com.chinagas.common.core.utils.DateUtils;
9 9 import com.chinagas.common.core.utils.StringUtils;
10 10 import com.chinagas.common.datascope.annotation.DataScope;
11 11 import com.chinagas.common.security.utils.SecurityUtils;
12   -import com.chinagas.modules.schsf.domain.McBasicCmty;
13   -import com.chinagas.modules.schsf.domain.McOperationLog;
14   -import com.chinagas.modules.schsf.domain.McVisit;
15   -import com.chinagas.modules.schsf.domain.McVisitStatusNodeInfo;
  12 +import com.chinagas.modules.schsf.domain.*;
16 13 import com.chinagas.modules.schsf.domain.dto.NodeUsersDto;
17 14 import com.chinagas.modules.schsf.domain.notice.McVisitTemplate;
18 15 import com.chinagas.modules.schsf.domain.vo.McVisitAuditVo;
... ... @@ -627,6 +624,11 @@ public class McVisitServiceImpl implements IMcVisitService {
627 624 return Collections.emptyList();
628 625 }
629 626  
  627 + @Override
  628 + public List<McVisitAndIgnition> selectMcVisitAndIgnitionList(McVisitVo mcVisitVo) {
  629 + return mcVisitMapper.selectMcVisitAndIgnitionList(mcVisitVo);
  630 + }
  631 +
630 632 /**
631 633 * 消息通知
632 634 *
... ...
zr-cloud/zr-modules/zr-schsf/src/main/resources/mapper/McVisitMapper.xml
... ... @@ -73,6 +73,83 @@
73 73 <result property="invoiceYearType" column="invoice_year_type"/>
74 74 </resultMap>
75 75  
  76 +
  77 +
  78 + <resultMap type="com.chinagas.modules.schsf.domain.McVisitAndIgnition" id="McVisitAndIgnition">
  79 + <result property="id" column="id" />
  80 + <result property="ticketNumber" column="ticket_number" />
  81 + <result property="fiscalYear" column="fiscal_year" />
  82 + <result property="regionName" column="region_name" />
  83 + <result property="groupName" column="group_name" />
  84 + <result property="companyName" column="company_name" />
  85 + <result property="companyCode" column="company_code" />
  86 + <result property="billingPersonId" column="billing_person_id" />
  87 + <result property="billingPersonName" column="billing_person_name" />
  88 + <result property="billingPersonAccount" column="billing_person_account" />
  89 + <result property="jobNature" column="job_nature" />
  90 + <result property="entryTime" column="entry_time" />
  91 + <result property="vlgOrCmty" column="vlg_or_cmty" />
  92 + <result property="urbRurCls" column="urb_rur_cls" />
  93 + <result property="userName" column="user_name" />
  94 + <result property="userPhone" column="user_phone" />
  95 + <result property="userProvince" column="user_province" />
  96 + <result property="userCity" column="user_city" />
  97 + <result property="userDistrict" column="user_district" />
  98 + <result property="userStreet" column="user_street" />
  99 + <result property="userDetailedAddress" column="user_detailed_address" />
  100 + <result property="hasDm" column="has_dm" />
  101 + <result property="dmAge" column="dm_age" />
  102 + <result property="dmIncomeSrc" column="dm_income_src" />
  103 + <result property="dmPhone" column="dm_phone" />
  104 + <result property="isCharged" column="is_charged" />
  105 + <result property="userCode" column="user_code" />
  106 + <result property="userIdCard" column="user_id_card" />
  107 + <result property="invoiceNo" column="invoice_no" />
  108 + <result property="chargeAmt" column="charge_amt" />
  109 + <result property="paymentMeth" column="payment_meth" />
  110 + <result property="chargeType" column="charge_type" />
  111 + <result property="isVisited" column="is_visited" />
  112 + <result property="isIntent" column="is_intent" />
  113 + <result property="houseCondition" column="house_condition" />
  114 + <result property="currentCookingEnergy" column="current_cooking_energy" />
  115 + <result property="currentHeatingEnergy" column="current_heating_energy" />
  116 + <result property="familyMembers" column="family_members" />
  117 + <result property="fridgeStatus" column="fridge_status" />
  118 + <result property="acStatus" column="ac_status" />
  119 + <result property="tvStatus" column="tv_status" />
  120 + <result property="washerStatus" column="washer_status" />
  121 + <result property="waterHeaterStatus" column="water_heater_status" />
  122 + <result property="pvSystemStatus" column="pv_system_status" />
  123 + <result property="visitProvince" column="visit_province" />
  124 + <result property="visitCity" column="visit_city" />
  125 + <result property="visitDistrict" column="visit_district" />
  126 + <result property="visitStreet" column="visit_street" />
  127 + <result property="visitDetailedAddress" column="visit_detailed_address" />
  128 + <result property="visitLongitude" column="visit_longitude" />
  129 + <result property="visitLatitude" column="visit_latitude" />
  130 + <result property="fieldPhotoFile" column="field_photo_file" />
  131 + <result property="attachmentFile" column="attachment_file" />
  132 + <result property="remark" column="remark" />
  133 + <result property="createTime" column="create_time" />
  134 + <result property="createBy" column="create_by" />
  135 + <result property="updateTime" column="update_time" />
  136 + <result property="updateBy" column="update_by" />
  137 + <result property="defFlag" column="def_flag" />
  138 + <result property="ticketType" column="ticket_type" />
  139 + <result property="publishStatus" column="publish_status" />
  140 + <result property="modificationStatus" column="modification_status" />
  141 + <result property="statusNodeName" column="status_node_name" />
  142 + <result property="statusName" column="status_name" />
  143 + <result property="statusCode" column="status_code" />
  144 + <result property="invoiceYearType" column="invoice_year_type"/>
  145 +
  146 + <result property="ignCnfStatusCode" column="ign_cnf_status_code" />
  147 + <result property="ignTime" column="ign_time" />
  148 + <result property="nIgnRsn" column="n_ign_rsn" />
  149 +
  150 + </resultMap>
  151 +
  152 +
76 153 <sql id="selectMcVisitVo">
77 154 select t.id, t.ticket_number, t.fiscal_year, t.region_name, t.group_name, t.company_name, t.company_code,
78 155 t.billing_person_id, t.billing_person_name, t.billing_person_account, t.job_nature, t.entry_time, t.vlg_or_cmty,
... ... @@ -170,6 +247,13 @@
170 247 </foreach>
171 248 </if>
172 249 </if>
  250 + <if test="ticketTypeList != null and ticketTypeList != ''">
  251 + <foreach collection="ticketTypeList" item="item" index="index" separator="or" open=" and (" close=")">
  252 + t.ticket_type = #{item}
  253 + </foreach>
  254 + </if>
  255 + <if test="startEntryTime != null "> and t.entry_time &gt;= #{startEntryTime} </if>
  256 + <if test="finishEntryTime != null "> and t.entry_time &lt;= #{finishEntryTime} </if>
173 257 <!-- 数据范围过滤 -->
174 258 ${params.dataScope}
175 259 order by t.update_time desc
... ... @@ -490,4 +574,116 @@
490 574 and (t.def_flag !='1' or t.status_code !='CANCEL')
491 575 <if test="id != null ">and t.id != #{id} </if>
492 576 </select>
  577 +
  578 +
  579 + <select id="selectMcVisitAndIgnitionList" parameterType="com.chinagas.modules.schsf.domain.vo.McVisitVo" resultMap="McVisitAndIgnition">
  580 + select t.id, t.ticket_number, t.fiscal_year, t.region_name, t.group_name, t.company_name, t.company_code,
  581 + t.billing_person_id, t.billing_person_name, t.billing_person_account, t.job_nature, t.entry_time, t.vlg_or_cmty,
  582 + t.urb_rur_cls, t.user_name, t.user_phone, t.user_province, t.user_city,
  583 + t.user_district, t.user_street, t.user_detailed_address, t.has_dm, t.dm_age,
  584 + t.dm_income_src, t.dm_phone, t.is_charged, t.user_code, t.user_id_card,
  585 + t.invoice_no, t.charge_amt, t.payment_meth, t.charge_type, t.is_visited,
  586 + t.is_intent, t.house_condition, t.current_cooking_energy, t.current_heating_energy,
  587 + t.family_members, t.fridge_status, t.ac_status, t.tv_status, t.washer_status,
  588 + t.water_heater_status, t.pv_system_status, t.visit_province, t.visit_city,
  589 + t.visit_district, t.visit_street, t.visit_detailed_address,
  590 + t.visit_longitude, t.visit_latitude,
  591 + t.field_photo_file, t.attachment_file, t.remark, t.create_time, t.create_by,
  592 + t.update_by, t.def_flag, t.ticket_type, t.publish_status,
  593 + t.modification_status, t.status_node_name,t.status_name,t.status_code,t.invoice_year_type,
  594 + i.ign_cnf_status_code,i.ign_time,i.n_ign_rsn,
  595 + CASE WHEN i.update_time is null THEN t.update_time
  596 + WHEN t.update_time > i.update_time THEN t.update_time
  597 + ELSE i.update_time END update_time
  598 + from mc_visit t
  599 + left join mc_ignition i on t.id= i.visit_id
  600 + left join sys_user u on u.user_id = t.create_by
  601 + left join sys_dept d on d.dept_id = t.company_code
  602 + where 1=1
  603 + <if test="ticketNumber != null and ticketNumber != ''"> and t.ticket_number like concat('%', #{ticketNumber}, '%')</if>
  604 + <if test="fiscalYear != null "> and t.fiscal_year = #{fiscalYear}</if>
  605 + <if test="regionName != null and regionName != ''"> and t.region_name like concat('%', #{regionName}, '%')</if>
  606 + <if test="groupName != null and groupName != ''"> and t.group_name like concat('%', #{groupName}, '%')</if>
  607 + <if test="companyName != null and companyName != ''"> and t.company_name like concat('%', #{companyName}, '%')</if>
  608 + <if test="companyCode != null and companyCode != ''"> and t.company_code = #{companyCode}</if>
  609 + <if test="billingPersonId != null "> and t.billing_person_id = #{billingPersonId}</if>
  610 + <if test="billingPersonName != null and billingPersonName != ''"> and t.billing_person_name like concat('%', #{billingPersonName}, '%')</if>
  611 + <if test="billingPersonAccount != null and billingPersonAccount != ''"> and t.billing_person_account = #{billingPersonAccount}</if>
  612 + <if test="jobNature != null and jobNature != ''"> and t.job_nature = #{jobNature}</if>
  613 + <if test="entryTime != null "> and t.entry_time = #{entryTime}</if>
  614 + <if test="vlgOrCmty != null and vlgOrCmty != ''"> and t.vlg_or_cmty = #{vlgOrCmty}</if>
  615 + <if test="urbRurCls != null and urbRurCls != ''"> and t.urb_rur_cls = #{urbRurCls}</if>
  616 + <if test="userName != null and userName != ''"> and t.user_name like concat('%', #{userName}, '%')</if>
  617 + <if test="userPhone != null and userPhone != ''"> and t.user_phone = #{userPhone}</if>
  618 + <if test="userProvince != null and userProvince != ''"> and t.user_province = #{userProvince}</if>
  619 + <if test="userCity != null and userCity != ''"> and t.user_city = #{userCity}</if>
  620 + <if test="userDistrict != null and userDistrict != ''"> and t.user_district = #{userDistrict}</if>
  621 + <if test="userStreet != null and userStreet != ''"> and t.user_street = #{userStreet}</if>
  622 + <if test="userDetailedAddress != null and userDetailedAddress != ''"> and t.user_detailed_address = #{userDetailedAddress}</if>
  623 + <if test="hasDm != null and hasDm != ''"> and t.has_dm = #{hasDm}</if>
  624 + <if test="dmAge != null and dmAge != ''"> and t.dm_age = #{dmAge}</if>
  625 + <if test="dmIncomeSrc != null and dmIncomeSrc != ''"> and t.dm_income_src = #{dmIncomeSrc}</if>
  626 + <if test="dmPhone != null and dmPhone != ''"> and t.dm_phone = #{dmPhone}</if>
  627 + <if test="isCharged != null and isCharged != ''"> and t.is_charged = #{isCharged}</if>
  628 + <if test="userCode != null and userCode != ''"> and t.user_code = #{userCode}</if>
  629 + <if test="userIdCard != null and userIdCard != ''"> and t.user_id_card like concat('%', #{userIdCard}, '%')</if>
  630 + <if test="invoiceNo != null and invoiceNo != ''"> and t.invoice_no = #{invoiceNo}</if>
  631 + <if test="chargeAmt != null "> and t.charge_amt = #{chargeAmt}</if>
  632 + <if test="paymentMeth != null and paymentMeth != ''"> and t.payment_meth = #{paymentMeth}</if>
  633 + <if test="chargeType != null and chargeType != ''"> and t.charge_type = #{chargeType}</if>
  634 + <if test="isVisited != null and isVisited != ''"> and t.is_visited = #{isVisited}</if>
  635 + <if test="isIntent != null and isIntent != ''"> and t.is_intent = #{isIntent}</if>
  636 + <if test="houseCondition != null and houseCondition != ''"> and t.house_condition = #{houseCondition}</if>
  637 + <if test="currentCookingEnergy != null and currentCookingEnergy != ''"> and t.current_cooking_energy = #{currentCookingEnergy}</if>
  638 + <if test="currentHeatingEnergy != null and currentHeatingEnergy != ''"> and t.current_heating_energy = #{currentHeatingEnergy}</if>
  639 + <if test="familyMembers != null and familyMembers != ''"> and t.family_members = #{familyMembers}</if>
  640 + <if test="fridgeStatus != null and fridgeStatus != ''"> and t.fridge_status = #{fridgeStatus}</if>
  641 + <if test="acStatus != null and acStatus != ''"> and t.ac_status = #{acStatus}</if>
  642 + <if test="tvStatus != null and tvStatus != ''"> and t.tv_status = #{tvStatus}</if>
  643 + <if test="washerStatus != null and washerStatus != ''"> and t.washer_status = #{washerStatus}</if>
  644 + <if test="waterHeaterStatus != null and waterHeaterStatus != ''"> and t.water_heater_status = #{waterHeaterStatus}</if>
  645 + <if test="pvSystemStatus != null and pvSystemStatus != ''"> and t.pv_system_status = #{pvSystemStatus}</if>
  646 + <if test="visitProvince != null and visitProvince != ''"> and t.visit_province = #{visitProvince}</if>
  647 + <if test="visitCity != null and visitCity != ''"> and t.visit_city = #{visitCity}</if>
  648 + <if test="visitDistrict != null and visitDistrict != ''"> and t.visit_district = #{visitDistrict}</if>
  649 + <if test="visitStreet != null and visitStreet != ''"> and t.visit_street = #{visitStreet}</if>
  650 + <if test="visitDetailedAddress != null and visitDetailedAddress != ''"> and t.visit_detailed_address = #{visitDetailedAddress}</if>
  651 + <if test="visitLongitude != null "> and t.visit_longitude = #{visitLongitude}</if>
  652 + <if test="visitLatitude != null "> and t.visit_latitude = #{visitLatitude}</if>
  653 + <if test="fieldPhotoFile != null and fieldPhotoFile != ''"> and t.field_photo_file = #{fieldPhotoFile}</if>
  654 + <if test="attachmentFile != null and attachmentFile != ''"> and t.attachment_file = #{attachmentFile}</if>
  655 + <if test="defFlag != null and defFlag != ''"> and t.def_flag = #{defFlag}</if>
  656 + <if test="ticketType != null and ticketType != ''"> and t.ticket_type = #{ticketType}</if>
  657 + <if test="publishStatus != null and publishStatus != ''"> and t.publish_status = #{publishStatus}</if>
  658 + <if test="modificationStatus != null and modificationStatus != ''"> and t.modification_status = #{modificationStatus}</if>
  659 + <if test="statusNodeName != null and statusNodeName != ''"> and t.status_node_name = #{statusNodeName} </if>
  660 + <if test="statusName != null and statusName != ''"> and t.status_name = #{statusName} </if>
  661 + <if test="statusCode != null and statusCode != ''"> and t.status_code = #{statusCode} </if>
  662 + <if test="startFiscalYear != null and startFiscalYear != ''"> and t.fiscal_year &gt;= #{startFiscalYear}</if>
  663 + <if test="finishFiscalYear != null and finishFiscalYear != ''"> and t.fiscal_year &lt;= #{finishFiscalYear}</if>
  664 + <if test="invoiceYearType != null and invoiceYearType != ''"> and t.invoice_year_type = #{invoiceYearType}</if>
  665 + <if test="isMyAuditing != null and isMyAuditing != ''">
  666 + <if test="statusMapList != null and statusMapList.size() > 0">
  667 + <foreach collection="statusMapList" item="item" index="index" separator="or" open=" and (" close=")">
  668 + <if test="item.publishStatus != null and item.publishStatus != ''">
  669 + t.publish_status = #{item.publishStatus}
  670 + </if>
  671 + <if test="item.modificationStatus != null and item.modificationStatus != ''">
  672 + t.modification_status = #{item.modificationStatus}
  673 + </if>
  674 + </foreach>
  675 + </if>
  676 + </if>
  677 + <if test="ticketTypeList != null and ticketTypeList != ''">
  678 + <foreach collection="ticketTypeList" item="item" index="index" separator="or" open=" and (" close=")">
  679 + t.ticket_type = #{item}
  680 + </foreach>
  681 + </if>
  682 + <if test="startEntryTime != null "> and t.entry_time &gt;= #{startEntryTime} </if>
  683 + <if test="finishEntryTime != null "> and t.entry_time &lt;= #{finishEntryTime} </if>
  684 + <if test="ignCnfStatusCode != null and ignCnfStatusCode != ''"> and i.ign_cnf_status_code = #{ignCnfStatusCode}</if>
  685 + <!-- 数据范围过滤 -->
  686 + ${params.dataScope}
  687 + order by t.update_time desc
  688 + </select>
493 689 </mapper>
... ...