diff --git a/backend/chkpower/src/main/java/com/hotent/chkpower/controller/WCurrentController.java b/backend/chkpower/src/main/java/com/hotent/chkpower/controller/WCurrentController.java index 4c61367..acca452 100644 --- a/backend/chkpower/src/main/java/com/hotent/chkpower/controller/WCurrentController.java +++ b/backend/chkpower/src/main/java/com/hotent/chkpower/controller/WCurrentController.java @@ -71,14 +71,13 @@ public class WCurrentController extends BaseController gslxList = baseService.getCurrentOrgTypeList(); @@ -114,7 +113,7 @@ public class WCurrentController extends BaseController { + @Resource + private WCurrentManager wCurrentManager; + + /** + * 根据id获取运营公司收支数据详情 + * @param id + * @return + * @throws Exception + * ModelAndView + */ + @GetMapping(value="/getDetail") + @ApiOperation(value="根据id获取运营公司收支数据详情",httpMethod = "GET",notes = "根据id获取运营公司收支数据详情") + public CommonResult getDetail(@ApiParam(name="id",value="业务对象主键", required = true)@RequestParam(required=true) String id) throws Exception{ + return CommonResult.ok().value(baseService.getDetail(id)); + } + /** + * 新增,更新运营公司收支 + * @param wFinance + * @throws Exception + * @return + * @exception + */ + @PostMapping(value="/save") + @ApiOperation(value = "新增,更新运营公司收支数据", httpMethod = "POST", notes = "新增,更新运营公司收支数据") + public CommonResult save(@ApiParam(name="WFinance",value="运营公司收支对象", required = true)@RequestBody WFinance wFinance) throws Exception{ + String msg = StringUtil.isEmpty(wFinance.getId()) ? "添加运营公司收支成功" : "更新运营公司收支成功"; + baseService.createOrUpdate(wFinance); + return CommonResult.ok().message(msg); + } + + + /** + * 公司收支明细导出 + * @param response + * @param date + * @throws Exception + */ + @GetMapping("transactionDetailsExport") + public void transactionDetailsExport(HttpServletResponse response, String date) throws Exception { + HashMap map = new HashMap(); + map.put("date", date); + List gslxList = wCurrentManager.getCurrentOrgTypeList(); + List> list = new ArrayList>(); + BigDecimal F_total_income_zh = new BigDecimal(0.00); + BigDecimal F_total_disbursement_zh = new BigDecimal(0.00); + BigDecimal F_total_net_cash_flow_zh = new BigDecimal(0.00); + int Serial_Number=1; + for (String orgType : gslxList) { + List> listData = baseService.getTransactionDetailsList(orgType, date + " 00:00:00"); + if (listData != null && listData.size() > 0) { + for (HashMap datum : listData) { + datum.put("Serial_Number",String.valueOf(Serial_Number++)); + } + BigDecimal F_total_income = listData.stream() + .filter(d -> d.containsKey("F_total_income")) + .map(d -> {Object value = d.get("F_total_income");if (value instanceof Number) {return new BigDecimal(value.toString());}return new BigDecimal(0.00); + }).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add); + + BigDecimal F_total_disbursement = listData.stream() + .filter(d -> d.containsKey("F_total_disbursement")) + .map(d -> {Object value = d.get("F_total_disbursement");if (value instanceof Number) {return new BigDecimal(value.toString());}return new BigDecimal(0.00); + }).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add); + + BigDecimal F_total_net_cash_flow = listData.stream() + .filter(d -> d.containsKey("F_total_net_cash_flow")) + .map(d -> {Object value = d.get("F_total_net_cash_flow");if (value instanceof Number) {return new BigDecimal(value.toString());}return new BigDecimal(0.00); + }).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add); + HashMap hzMap = new HashMap<>(); + hzMap.put("F_org_type", "小计("+orgType+")"); + hzMap.put("F_org_name", ""); + hzMap.put("F_total_income", String.valueOf(F_total_income)); + hzMap.put("F_total_disbursement", String.valueOf(F_total_disbursement)); + hzMap.put("F_total_net_cash_flow", String.valueOf(F_total_net_cash_flow)); + + F_total_income_zh=F_total_income_zh.add(F_total_income); + F_total_disbursement_zh=F_total_disbursement_zh.add(F_total_disbursement); + F_total_net_cash_flow_zh=F_total_net_cash_flow_zh.add(F_total_net_cash_flow); + listData.add(hzMap); + list.addAll(listData); + } + } + HashMap hzMap = new HashMap<>(); + hzMap.put("F_org_type", "汇总"); + hzMap.put("F_org_name", ""); + hzMap.put("F_total_income", String.valueOf(F_total_income_zh)); + hzMap.put("F_total_disbursement", String.valueOf(F_total_disbursement_zh)); + hzMap.put("F_total_net_cash_flow", String.valueOf(F_total_net_cash_flow_zh)); + list.add(hzMap); + map.put("list", list); + TemplateExportParams params = new TemplateExportParams("doc/transactionDetailsExport.xls"); + params.setColForEach(true); + Workbook workbook = ExcelExportUtil.exportExcel(params, map); + String filedisplay = "公司收支明细.xls"; + response.setContentType("APPLICATION/OCTET-STREAM"); + response.setHeader("Access-Control-Expose-Headers", "Content-Disposition"); + response.addHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode(filedisplay, "utf-8")); + OutputStream os = null; + try { + os = response.getOutputStream(); + workbook.write(os); + os.flush(); + os.close(); + } catch (Exception e) { + e.printStackTrace(); + } finally { + if (os != null) + os.close(); + } + } +} diff --git a/backend/chkpower/src/main/java/com/hotent/chkpower/controller/WFinanceDetailController.java b/backend/chkpower/src/main/java/com/hotent/chkpower/controller/WFinanceDetailController.java new file mode 100644 index 0000000..8113e3e --- /dev/null +++ b/backend/chkpower/src/main/java/com/hotent/chkpower/controller/WFinanceDetailController.java @@ -0,0 +1,73 @@ +package com.hotent.chkpower.controller; + + +import cn.afterturn.easypoi.excel.ExcelExportUtil; +import cn.afterturn.easypoi.excel.entity.TemplateExportParams; +import com.hotent.chkpower.manager.WCurrentManager; +import org.apache.poi.ss.usermodel.Workbook; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import com.hotent.base.model.CommonResult; +import com.hotent.base.util.StringUtil; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import org.springframework.web.bind.annotation.RestController; +import com.hotent.base.controller.BaseController; +import com.hotent.chkpower.model.WFinanceDetail; +import com.hotent.chkpower.manager.WFinanceDetailManager; + +import javax.annotation.Resource; +import javax.servlet.http.HttpServletResponse; +import java.io.OutputStream; +import java.math.BigDecimal; +import java.net.URLEncoder; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Objects; + +/** + * 运营公司收支明细 前端控制器 + * + * @company 广州宏天软件股份有限公司 + * @author cw + * @since 2024-07-08 + */ +@RestController +@RequestMapping("/wFinanceDetail/v1/") +public class WFinanceDetailController extends BaseController { + + + /** + * 根据id获取运营公司收支明细数据详情 + * @param id + * @return + * @throws Exception + * ModelAndView + */ + @GetMapping(value="/getDetail") + @ApiOperation(value="根据id获取运营公司收支明细数据详情",httpMethod = "GET",notes = "根据id获取运营公司收支明细数据详情") + public CommonResult getDetail(@ApiParam(name="id",value="业务对象主键", required = true)@RequestParam(required=true) String id) throws Exception{ + return CommonResult.ok().value(baseService.getDetail(id)); + } + /** + * 新增,更新运营公司收支明细 + * @param wFinanceDetail + * @throws Exception + * @return + * @exception + */ + @PostMapping(value="/save") + @ApiOperation(value = "新增,更新运营公司收支明细数据", httpMethod = "POST", notes = "新增,更新运营公司收支明细数据") + public CommonResult save(@ApiParam(name="WFinanceDetail",value="运营公司收支明细对象", required = true)@RequestBody WFinanceDetail wFinanceDetail) throws Exception{ + String msg = StringUtil.isEmpty(wFinanceDetail.getId()) ? "添加运营公司收支明细成功" : "更新运营公司收支明细成功"; + baseService.createOrUpdate(wFinanceDetail); + return CommonResult.ok().message(msg); + } + + + +} diff --git a/backend/chkpower/src/main/java/com/hotent/chkpower/dao/WFinanceDao.java b/backend/chkpower/src/main/java/com/hotent/chkpower/dao/WFinanceDao.java new file mode 100644 index 0000000..0fdf198 --- /dev/null +++ b/backend/chkpower/src/main/java/com/hotent/chkpower/dao/WFinanceDao.java @@ -0,0 +1,21 @@ +package com.hotent.chkpower.dao; + +import com.hotent.chkpower.model.WFinance; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Param; + +import java.util.HashMap; +import java.util.List; + +/** + * 运营公司收支 Mapper 接口 + * + * @company 广州宏天软件股份有限公司 + * @author cw + * @since 2024-07-08 + */ +public interface WFinanceDao extends BaseMapper { + + List> getTransactionDetailsList(@Param("fOrgType") String fOrgType, @Param("fDate") String fDate); + +} diff --git a/backend/chkpower/src/main/java/com/hotent/chkpower/dao/WFinanceDetailDao.java b/backend/chkpower/src/main/java/com/hotent/chkpower/dao/WFinanceDetailDao.java new file mode 100644 index 0000000..8f80ac2 --- /dev/null +++ b/backend/chkpower/src/main/java/com/hotent/chkpower/dao/WFinanceDetailDao.java @@ -0,0 +1,15 @@ +package com.hotent.chkpower.dao; + +import com.hotent.chkpower.model.WFinanceDetail; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * 运营公司收支明细 Mapper 接口 + * + * @company 广州宏天软件股份有限公司 + * @author cw + * @since 2024-07-08 + */ +public interface WFinanceDetailDao extends BaseMapper { + +} diff --git a/backend/chkpower/src/main/java/com/hotent/chkpower/manager/WFinanceDetailManager.java b/backend/chkpower/src/main/java/com/hotent/chkpower/manager/WFinanceDetailManager.java new file mode 100644 index 0000000..b94da3c --- /dev/null +++ b/backend/chkpower/src/main/java/com/hotent/chkpower/manager/WFinanceDetailManager.java @@ -0,0 +1,26 @@ +package com.hotent.chkpower.manager; + +import com.hotent.chkpower.model.WFinanceDetail; +import com.hotent.base.manager.BaseManager; + +/** + * 运营公司收支明细 服务类 + * + * @company 广州宏天软件股份有限公司 + * @author cw + * @since 2024-07-08 + */ +public interface WFinanceDetailManager extends BaseManager { + /** + * 根据主键获取详情 + * @param id + * @return + */ + WFinanceDetail getDetail(String id); + /** + * 新建、更新运营公司收支明细 + * @param wFinanceDetail + * @return + */ + void createOrUpdate(WFinanceDetail wFinanceDetail); +} diff --git a/backend/chkpower/src/main/java/com/hotent/chkpower/manager/WFinanceManager.java b/backend/chkpower/src/main/java/com/hotent/chkpower/manager/WFinanceManager.java new file mode 100644 index 0000000..7602246 --- /dev/null +++ b/backend/chkpower/src/main/java/com/hotent/chkpower/manager/WFinanceManager.java @@ -0,0 +1,31 @@ +package com.hotent.chkpower.manager; + +import com.hotent.chkpower.model.WFinance; +import com.hotent.base.manager.BaseManager; + +import java.util.HashMap; +import java.util.List; + +/** + * 运营公司收支 服务类 + * + * @company 广州宏天软件股份有限公司 + * @author cw + * @since 2024-07-08 + */ +public interface WFinanceManager extends BaseManager { + /** + * 根据主键获取详情 + * @param id + * @return + */ + WFinance getDetail(String id); + /** + * 新建、更新运营公司收支 + * @param wFinance + * @return + */ + void createOrUpdate(WFinance wFinance); + + List> getTransactionDetailsList(String orgType, String date); +} diff --git a/backend/chkpower/src/main/java/com/hotent/chkpower/manager/impl/WFinanceDetailManagerImpl.java b/backend/chkpower/src/main/java/com/hotent/chkpower/manager/impl/WFinanceDetailManagerImpl.java new file mode 100644 index 0000000..190616d --- /dev/null +++ b/backend/chkpower/src/main/java/com/hotent/chkpower/manager/impl/WFinanceDetailManagerImpl.java @@ -0,0 +1,38 @@ +package com.hotent.chkpower.manager.impl; + +import com.hotent.chkpower.model.WFinanceDetail; +import com.hotent.chkpower.dao.WFinanceDetailDao; +import com.hotent.chkpower.manager.WFinanceDetailManager; +import com.hotent.base.manager.impl.BaseManagerImpl; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import java.util.List; +import javax.annotation.Resource; +import com.hotent.base.util.BeanUtils; + + +/** + * 运营公司收支明细 服务实现类 + * + * @company 广州宏天软件股份有限公司 + * @author cw + * @since 2024-07-08 + */ +@Service +public class WFinanceDetailManagerImpl extends BaseManagerImpl implements WFinanceDetailManager { + + @Override + public WFinanceDetail getDetail(String id) { + WFinanceDetail wFinanceDetail = this.get(id); + + + return wFinanceDetail; + } + @Override + @Transactional + public void createOrUpdate(WFinanceDetail wFinanceDetail) { + //新建或更新 + this.saveOrUpdate(wFinanceDetail); + } +} diff --git a/backend/chkpower/src/main/java/com/hotent/chkpower/manager/impl/WFinanceManagerImpl.java b/backend/chkpower/src/main/java/com/hotent/chkpower/manager/impl/WFinanceManagerImpl.java new file mode 100644 index 0000000..362503d --- /dev/null +++ b/backend/chkpower/src/main/java/com/hotent/chkpower/manager/impl/WFinanceManagerImpl.java @@ -0,0 +1,46 @@ +package com.hotent.chkpower.manager.impl; + +import com.hotent.chkpower.model.WFinance; +import com.hotent.chkpower.dao.WFinanceDao; +import com.hotent.chkpower.manager.WFinanceManager; +import com.hotent.base.manager.impl.BaseManagerImpl; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; + +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import javax.annotation.Resource; +import com.hotent.base.util.BeanUtils; + + +/** + * 运营公司收支 服务实现类 + * + * @company 广州宏天软件股份有限公司 + * @author cw + * @since 2024-07-08 + */ +@Service +public class WFinanceManagerImpl extends BaseManagerImpl implements WFinanceManager { + + @Override + public WFinance getDetail(String id) { + WFinance wFinance = this.get(id); + + + return wFinance; + } + @Override + @Transactional + public void createOrUpdate(WFinance wFinance) { + //新建或更新 + this.saveOrUpdate(wFinance); + } + + @Override + public List> getTransactionDetailsList(String orgType, String date) { + return baseMapper.getTransactionDetailsList(orgType,date); + } +} diff --git a/backend/chkpower/src/main/java/com/hotent/chkpower/model/WFinance.java b/backend/chkpower/src/main/java/com/hotent/chkpower/model/WFinance.java new file mode 100644 index 0000000..0592035 --- /dev/null +++ b/backend/chkpower/src/main/java/com/hotent/chkpower/model/WFinance.java @@ -0,0 +1,311 @@ +package com.hotent.chkpower.model; + +import java.math.BigDecimal; +import com.baomidou.mybatisplus.annotation.IdType; +import com.hotent.base.entity.BaseModel; +import com.baomidou.mybatisplus.extension.activerecord.Model; +import com.baomidou.mybatisplus.annotation.TableId; +import java.time.LocalDateTime; +import com.baomidou.mybatisplus.annotation.TableField; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonProperty; +/** + * 运营公司收支 + * + * @company 广州宏天软件股份有限公司 + * @author cw + * @since 2024-07-08 + */ +@ApiModel(value="WFinance对象", description="运营公司收支") +public class WFinance extends BaseModel { + + private static final long serialVersionUID = 1L; + @ApiModelProperty(value = "主键") + @TableId(value = "ID_", type = IdType.ASSIGN_ID) + @JsonProperty("id") + private String id; + + @ApiModelProperty(value = "外键") + @TableField("REF_ID_") + @JsonProperty("refId") + private String refId; + + @ApiModelProperty(value = "公司") + @TableField("F_org_name") + @JsonProperty("fOrgName") + private String fOrgName; + + @ApiModelProperty(value = "公司id") + @TableField("F_org_id") + @JsonProperty("fOrgId") + private String fOrgId; + + @ApiModelProperty(value = "日期") + @TableField("F_date") + @JsonProperty("fDate") + private LocalDateTime fDate; + + @ApiModelProperty(value = "创建人") + @TableField("F_create_by") + @JsonProperty("fCreateBy") + private String fCreateBy; + + @ApiModelProperty(value = "创建人id") + @TableField("F_create_id") + @JsonProperty("fCreateId") + private String fCreateId; + + @ApiModelProperty(value = "创建时间") + @TableField("F_create_time") + @JsonProperty("fCreateTime") + private LocalDateTime fCreateTime; + + @ApiModelProperty(value = "修改人") + @TableField("F_update_by") + @JsonProperty("fUpdateBy") + private String fUpdateBy; + + @ApiModelProperty(value = "修改人id") + @TableField("F_update_id") + @JsonProperty("fUpdateId") + private String fUpdateId; + + @ApiModelProperty(value = "修改时间") + @TableField("F_update_time") + @JsonProperty("fUpdateTime") + private LocalDateTime fUpdateTime; + + @ApiModelProperty(value = "表单数据版本") + @TableField("F_form_data_rev_") + @JsonProperty("fFormDataRev") + private Long fFormDataRev; + + @ApiModelProperty(value = "核对状态") + @TableField("F_insp_status_name") + @JsonProperty("fInspStatusName") + private String fInspStatusName; + + @ApiModelProperty(value = "核对时间") + @TableField("F_insp_time") + @JsonProperty("fInspTime") + private LocalDateTime fInspTime; + + @ApiModelProperty(value = "核对备注") + @TableField("F_insp_notes") + @JsonProperty("fInspNotes") + private String fInspNotes; + + @ApiModelProperty(value = "核对人id") + @TableField("F_insp_id") + @JsonProperty("fInspId") + private String fInspId; + + @ApiModelProperty(value = "核对人") + @TableField("F_insp_by") + @JsonProperty("fInspBy") + private String fInspBy; + + @ApiModelProperty(value = "总收入") + @TableField("F_total_income") + @JsonProperty("fTotalIncome") + private BigDecimal fTotalIncome; + + @ApiModelProperty(value = "总支出") + @TableField("F_total_disbursement") + @JsonProperty("fTotalDisbursement") + private BigDecimal fTotalDisbursement; + + @ApiModelProperty(value = "净现金流") + @TableField("F_total_net_cash_flow") + @JsonProperty("fTotalNetCashFlow") + private BigDecimal fTotalNetCashFlow; + + @ApiModelProperty(value = "公司类型") + @TableField("F_org_type") + @JsonProperty("fOrgType") + private String fOrgType; + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + public String getRefId() { + return refId; + } + + public void setRefId(String refId) { + this.refId = refId; + } + public String getFOrgName() { + return fOrgName; + } + + public void setFOrgName(String fOrgName) { + this.fOrgName = fOrgName; + } + public String getFOrgId() { + return fOrgId; + } + + public void setFOrgId(String fOrgId) { + this.fOrgId = fOrgId; + } + public LocalDateTime getFDate() { + return fDate; + } + + public void setFDate(LocalDateTime fDate) { + this.fDate = fDate; + } + public String getFCreateBy() { + return fCreateBy; + } + + public void setFCreateBy(String fCreateBy) { + this.fCreateBy = fCreateBy; + } + public String getFCreateId() { + return fCreateId; + } + + public void setFCreateId(String fCreateId) { + this.fCreateId = fCreateId; + } + public LocalDateTime getFCreateTime() { + return fCreateTime; + } + + public void setFCreateTime(LocalDateTime fCreateTime) { + this.fCreateTime = fCreateTime; + } + public String getFUpdateBy() { + return fUpdateBy; + } + + public void setFUpdateBy(String fUpdateBy) { + this.fUpdateBy = fUpdateBy; + } + public String getFUpdateId() { + return fUpdateId; + } + + public void setFUpdateId(String fUpdateId) { + this.fUpdateId = fUpdateId; + } + public LocalDateTime getFUpdateTime() { + return fUpdateTime; + } + + public void setFUpdateTime(LocalDateTime fUpdateTime) { + this.fUpdateTime = fUpdateTime; + } + public Long getFFormDataRev() { + return fFormDataRev; + } + + public void setFFormDataRev(Long fFormDataRev) { + this.fFormDataRev = fFormDataRev; + } + public String getFInspStatusName() { + return fInspStatusName; + } + + public void setFInspStatusName(String fInspStatusName) { + this.fInspStatusName = fInspStatusName; + } + public LocalDateTime getFInspTime() { + return fInspTime; + } + + public void setFInspTime(LocalDateTime fInspTime) { + this.fInspTime = fInspTime; + } + public String getFInspNotes() { + return fInspNotes; + } + + public void setFInspNotes(String fInspNotes) { + this.fInspNotes = fInspNotes; + } + public String getFInspId() { + return fInspId; + } + + public void setFInspId(String fInspId) { + this.fInspId = fInspId; + } + public String getFInspBy() { + return fInspBy; + } + + public void setFInspBy(String fInspBy) { + this.fInspBy = fInspBy; + } + public BigDecimal getFTotalIncome() { + return fTotalIncome; + } + + public void setFTotalIncome(BigDecimal fTotalIncome) { + this.fTotalIncome = fTotalIncome; + } + public BigDecimal getFTotalDisbursement() { + return fTotalDisbursement; + } + + public void setFTotalDisbursement(BigDecimal fTotalDisbursement) { + this.fTotalDisbursement = fTotalDisbursement; + } + public BigDecimal getFTotalNetCashFlow() { + return fTotalNetCashFlow; + } + + public void setFTotalNetCashFlow(BigDecimal fTotalNetCashFlow) { + this.fTotalNetCashFlow = fTotalNetCashFlow; + } + public String getFOrgType() { + return fOrgType; + } + + public void setFOrgType(String fOrgType) { + this.fOrgType = fOrgType; + } + + + @Override + protected Serializable pkVal() { + return this.id; + } + + @Override + public String toString() { + return "WFinance{" + + "id=" + id + + ", refId=" + refId + + ", fOrgName=" + fOrgName + + ", fOrgId=" + fOrgId + + ", fDate=" + fDate + + ", fCreateBy=" + fCreateBy + + ", fCreateId=" + fCreateId + + ", fCreateTime=" + fCreateTime + + ", fUpdateBy=" + fUpdateBy + + ", fUpdateId=" + fUpdateId + + ", fUpdateTime=" + fUpdateTime + + ", fFormDataRev=" + fFormDataRev + + ", fInspStatusName=" + fInspStatusName + + ", fInspTime=" + fInspTime + + ", fInspNotes=" + fInspNotes + + ", fInspId=" + fInspId + + ", fInspBy=" + fInspBy + + ", fTotalIncome=" + fTotalIncome + + ", fTotalDisbursement=" + fTotalDisbursement + + ", fTotalNetCashFlow=" + fTotalNetCashFlow + + ", fOrgType=" + fOrgType + + "}"; + } +} diff --git a/backend/chkpower/src/main/java/com/hotent/chkpower/model/WFinanceDetail.java b/backend/chkpower/src/main/java/com/hotent/chkpower/model/WFinanceDetail.java new file mode 100644 index 0000000..84bf993 --- /dev/null +++ b/backend/chkpower/src/main/java/com/hotent/chkpower/model/WFinanceDetail.java @@ -0,0 +1,181 @@ +package com.hotent.chkpower.model; + +import java.math.BigDecimal; +import com.baomidou.mybatisplus.annotation.IdType; +import com.hotent.base.entity.BaseModel; +import com.baomidou.mybatisplus.extension.activerecord.Model; +import com.baomidou.mybatisplus.annotation.TableId; +import java.time.LocalDateTime; +import com.baomidou.mybatisplus.annotation.TableField; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonProperty; +/** + * 运营公司收支明细 + * + * @company 广州宏天软件股份有限公司 + * @author cw + * @since 2024-07-08 + */ +@ApiModel(value="WFinanceDetail对象", description="运营公司收支明细") +public class WFinanceDetail extends BaseModel { + + private static final long serialVersionUID = 1L; + @ApiModelProperty(value = "主键") + @TableId(value = "ID_", type = IdType.ASSIGN_ID) + @JsonProperty("id") + private String id; + + @ApiModelProperty(value = "外键") + @TableField("REF_ID_") + @JsonProperty("refId") + private String refId; + + @ApiModelProperty(value = "公司") + @TableField("F_org_name") + @JsonProperty("fOrgName") + private String fOrgName; + + @ApiModelProperty(value = "公司id") + @TableField("F_org_id") + @JsonProperty("fOrgId") + private String fOrgId; + + @ApiModelProperty(value = "日期") + @TableField("F_date") + @JsonProperty("fDate") + private LocalDateTime fDate; + + @ApiModelProperty(value = "表单数据版本") + @TableField("F_form_data_rev_") + @JsonProperty("fFormDataRev") + private Long fFormDataRev; + + @ApiModelProperty(value = "事项") + @TableField("F_matter") + @JsonProperty("fMatter") + private String fMatter; + + @ApiModelProperty(value = "收入明细") + @TableField("F_income") + @JsonProperty("fIncome") + private BigDecimal fIncome; + + @ApiModelProperty(value = "支出明细") + @TableField("F_disbursement") + @JsonProperty("fDisbursement") + private BigDecimal fDisbursement; + + @ApiModelProperty(value = "净现金流") + @TableField("F_net_cash_flow") + @JsonProperty("fNetCashFlow") + private BigDecimal fNetCashFlow; + + @ApiModelProperty(value = "公司类型") + @TableField("F_org_type") + @JsonProperty("fOrgType") + private String fOrgType; + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + public String getRefId() { + return refId; + } + + public void setRefId(String refId) { + this.refId = refId; + } + public String getFOrgName() { + return fOrgName; + } + + public void setFOrgName(String fOrgName) { + this.fOrgName = fOrgName; + } + public String getFOrgId() { + return fOrgId; + } + + public void setFOrgId(String fOrgId) { + this.fOrgId = fOrgId; + } + public LocalDateTime getFDate() { + return fDate; + } + + public void setFDate(LocalDateTime fDate) { + this.fDate = fDate; + } + public Long getFFormDataRev() { + return fFormDataRev; + } + + public void setFFormDataRev(Long fFormDataRev) { + this.fFormDataRev = fFormDataRev; + } + public String getFMatter() { + return fMatter; + } + + public void setFMatter(String fMatter) { + this.fMatter = fMatter; + } + public BigDecimal getFIncome() { + return fIncome; + } + + public void setFIncome(BigDecimal fIncome) { + this.fIncome = fIncome; + } + public BigDecimal getFDisbursement() { + return fDisbursement; + } + + public void setFDisbursement(BigDecimal fDisbursement) { + this.fDisbursement = fDisbursement; + } + public BigDecimal getFNetCashFlow() { + return fNetCashFlow; + } + + public void setFNetCashFlow(BigDecimal fNetCashFlow) { + this.fNetCashFlow = fNetCashFlow; + } + public String getFOrgType() { + return fOrgType; + } + + public void setFOrgType(String fOrgType) { + this.fOrgType = fOrgType; + } + + + @Override + protected Serializable pkVal() { + return this.id; + } + + @Override + public String toString() { + return "WFinanceDetail{" + + "id=" + id + + ", refId=" + refId + + ", fOrgName=" + fOrgName + + ", fOrgId=" + fOrgId + + ", fDate=" + fDate + + ", fFormDataRev=" + fFormDataRev + + ", fMatter=" + fMatter + + ", fIncome=" + fIncome + + ", fDisbursement=" + fDisbursement + + ", fNetCashFlow=" + fNetCashFlow + + ", fOrgType=" + fOrgType + + "}"; + } +} diff --git a/backend/chkpower/src/main/resources/doc/accountBalanceExport.xls b/backend/chkpower/src/main/resources/doc/accountBalanceExport.xls new file mode 100644 index 0000000..e9325ab Binary files /dev/null and b/backend/chkpower/src/main/resources/doc/accountBalanceExport.xls differ diff --git a/backend/chkpower/src/main/resources/doc/hqzhAll.xls b/backend/chkpower/src/main/resources/doc/hqzhAll.xls deleted file mode 100644 index 040cdf3..0000000 Binary files a/backend/chkpower/src/main/resources/doc/hqzhAll.xls and /dev/null differ diff --git a/backend/chkpower/src/main/resources/doc/transactionDetailsExport.xls b/backend/chkpower/src/main/resources/doc/transactionDetailsExport.xls new file mode 100644 index 0000000..bce5e3b Binary files /dev/null and b/backend/chkpower/src/main/resources/doc/transactionDetailsExport.xls differ diff --git a/backend/chkpower/src/main/resources/mapper/WCurrentMapper.xml b/backend/chkpower/src/main/resources/mapper/WCurrentMapper.xml index 4709a5d..59d6d96 100644 --- a/backend/chkpower/src/main/resources/mapper/WCurrentMapper.xml +++ b/backend/chkpower/src/main/resources/mapper/WCurrentMapper.xml @@ -118,7 +118,7 @@ diff --git a/backend/chkpower/src/main/resources/mapper/WFinanceDetailMapper.xml b/backend/chkpower/src/main/resources/mapper/WFinanceDetailMapper.xml new file mode 100644 index 0000000..6d507d8 --- /dev/null +++ b/backend/chkpower/src/main/resources/mapper/WFinanceDetailMapper.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + ID_, REF_ID_, F_org_name, F_org_id, F_date, F_form_data_rev_, F_matter, F_income, F_disbursement, F_net_cash_flow, F_org_type + + + + + + + + diff --git a/backend/chkpower/src/main/resources/mapper/WFinanceMapper.xml b/backend/chkpower/src/main/resources/mapper/WFinanceMapper.xml new file mode 100644 index 0000000..40f1e72 --- /dev/null +++ b/backend/chkpower/src/main/resources/mapper/WFinanceMapper.xml @@ -0,0 +1,75 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ID_, REF_ID_, F_org_name, F_org_id, F_date, F_create_by, F_create_id, F_create_time, F_update_by, F_update_id, F_update_time, F_form_data_rev_, F_insp_status_name, F_insp_time, F_insp_notes, F_insp_id, F_insp_by, F_total_income, F_total_disbursement, F_total_net_cash_flow, F_org_type + + + + + + + + + + -- libgit2 0.21.2