Commit 8838e28b authored by Ken you's avatar Ken you

resolve CONFLICT ----Ken

parent 74f01fd9
......@@ -3,10 +3,7 @@ package pwc.taxtech.atms.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.util.CollectionUtils;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import pwc.taxtech.atms.dto.ApiResultDto;
import pwc.taxtech.atms.dto.ebsdto.*;
import pwc.taxtech.atms.service.EbsApiService;
......@@ -25,7 +22,8 @@ public class EbsApiController {
private EbsApiService ebsApiService;
@RequestMapping(value = "/updateJE", method = RequestMethod.POST)
public ApiResultDto updateJE(@RequestBody List<JournalEntryQueryDto> items) {
public @ResponseBody
ApiResultDto updateJE(@RequestBody List<JournalEntryQueryDto> items) {
if (CollectionUtils.isEmpty(items)) {
logger.debug("the updateJE return items is empty");
return ApiResultDto.success(Collections.emptyList());
......@@ -40,7 +38,7 @@ public class EbsApiController {
}
@RequestMapping(value = "/updateTB", method = RequestMethod.POST)
public ApiResultDto updateTB(@RequestBody List<TrialBalanceQueryDto> items) {
public @ResponseBody ApiResultDto updateTB(@RequestBody List<TrialBalanceQueryDto> items) {
if (CollectionUtils.isEmpty(items)) {
logger.debug("the updateTB return items is empty");
return ApiResultDto.success(Collections.emptyList());
......@@ -55,7 +53,7 @@ public class EbsApiController {
}
@RequestMapping(value = "/updateCF", method = RequestMethod.POST)
public ApiResultDto updateCF(@RequestBody List<CashFlowQueryDto> items) {
public @ResponseBody ApiResultDto updateCF(@RequestBody List<CashFlowQueryDto> items) {
if (CollectionUtils.isEmpty(items)) {
logger.debug("the updateCF return items is empty");
return ApiResultDto.success(Collections.emptyList());
......@@ -70,7 +68,7 @@ public class EbsApiController {
}
@RequestMapping(value = "/updateBS", method = RequestMethod.POST)
public ApiResultDto updateBS(@RequestBody List<BalanceSheetQueryDto> items) {
public @ResponseBody ApiResultDto updateBS(@RequestBody List<BalanceSheetQueryDto> items) {
if (CollectionUtils.isEmpty(items)) {
logger.debug("the updateBS return items is empty");
return ApiResultDto.success(Collections.emptyList());
......@@ -85,7 +83,7 @@ public class EbsApiController {
}
@RequestMapping(value = "/updatePL", method = RequestMethod.POST)
public ApiResultDto updatePL(@RequestBody List<ProfitLossStatementQueryDto> items) {
public @ResponseBody ApiResultDto updatePL(@RequestBody List<ProfitLossStatementQueryDto> items) {
if (CollectionUtils.isEmpty(items)) {
logger.debug("the updatePL return items is empty");
return ApiResultDto.success(Collections.emptyList());
......@@ -100,7 +98,7 @@ public class EbsApiController {
}
@RequestMapping(value = "/updateBSprc", method = RequestMethod.POST)
public ApiResultDto updateBSprc(@RequestBody List<BalanceSheetPrcQueryDto> items) {
public @ResponseBody ApiResultDto updateBSprc(@RequestBody List<BalanceSheetPrcQueryDto> items) {
if (CollectionUtils.isEmpty(items)) {
logger.debug("the updateBSprc return items is empty");
return ApiResultDto.success(Collections.emptyList());
......@@ -115,7 +113,7 @@ public class EbsApiController {
}
@RequestMapping(value = "/updatePLprc", method = RequestMethod.POST)
public ApiResultDto updatePLprc(@RequestBody List<ProfitLossStatementPrcQueryDto> items) {
public @ResponseBody ApiResultDto updatePLprc(@RequestBody List<ProfitLossStatementPrcQueryDto> items) {
if (CollectionUtils.isEmpty(items)) {
logger.debug("the updatePLprc return items is empty");
return ApiResultDto.success(Collections.emptyList());
......@@ -130,7 +128,7 @@ public class EbsApiController {
}
@RequestMapping(value = "/updateOAR", method = RequestMethod.POST)
public ApiResultDto updateOAR(@RequestBody List<OrganizationAccountingRateQueryDto> items) {
public @ResponseBody ApiResultDto updateOAR(@RequestBody List<OrganizationAccountingRateQueryDto> items) {
if (CollectionUtils.isEmpty(items)) {
logger.debug("the updateOAR return items is empty");
return ApiResultDto.success(Collections.emptyList());
......@@ -143,7 +141,6 @@ public class EbsApiController {
}
return ApiResultDto.fail();
}
@RequestMapping(value = "/updateOrg", method = RequestMethod.POST)
public ApiResultDto updateOrg(@RequestBody @Valid List<OrganizationQueryDto> items) {
if (CollectionUtils.isEmpty(items)) {
......
package pwc.taxtech.atms.dto.ebsdto;
import java.math.BigDecimal;
import java.util.Date;
public class BalanceSheetPrcQueryDto {
/**
* Database Column Remarks:
* 唯一编号
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column balance_sheet.id
*
* @mbg.generated
*/
private Long id;
/**
* Database Column Remarks:
* 机构编号
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column balance_sheet.organization_id
*
* @mbg.generated
*/
private String organizationId;
/**
* Database Column Remarks:
* 项目ID
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column balance_sheet.project_id
*
* @mbg.generated
*/
private String projectId;
/**
* Database Column Remarks:
......@@ -46,7 +13,7 @@ public class BalanceSheetPrcQueryDto {
*
* @mbg.generated
*/
private Date date;
private String date;
/**
* Database Column Remarks:
......@@ -59,17 +26,6 @@ public class BalanceSheetPrcQueryDto {
*/
private String source;
/**
* Database Column Remarks:
* 税务系统期间yyyymm
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column balance_sheet.tms_period
*
* @mbg.generated
*/
private Integer tmsPeriod;
/**
* Database Column Remarks:
* 期间 yyyymm
......@@ -90,7 +46,7 @@ public class BalanceSheetPrcQueryDto {
*
* @mbg.generated
*/
private String status;
private Boolean status;
/**
* Database Column Remarks:
......@@ -202,507 +158,115 @@ public class BalanceSheetPrcQueryDto {
*/
private BigDecimal begBal;
/**
* Database Column Remarks:
* 是否为国外 0-国内,1-国外
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column balance_sheet.prc_flag
*
* @mbg.generated
*/
private Boolean prcFlag;
/**
* Database Column Remarks:
* 创建时间
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column balance_sheet.create_time
*
* @mbg.generated
*/
private Date createTime;
/**
* Database Column Remarks:
* 更新时间
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column balance_sheet.update_time
*
* @mbg.generated
*/
private Date updateTime;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table balance_sheet
*
* @mbg.generated
*/
private static final long serialVersionUID = 1L;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.id
*
* @return the value of balance_sheet.id
* @mbg.generated
*/
public Long getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.id
*
* @param id the value for balance_sheet.id
* @mbg.generated
*/
public void setId(Long id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.organization_id
*
* @return the value of balance_sheet.organization_id
* @mbg.generated
*/
public String getOrganizationId() {
return organizationId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.organization_id
*
* @param organizationId the value for balance_sheet.organization_id
* @mbg.generated
*/
public void setOrganizationId(String organizationId) {
this.organizationId = organizationId == null ? null : organizationId.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.project_id
*
* @return the value of balance_sheet.project_id
* @mbg.generated
*/
public String getProjectId() {
return projectId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.project_id
*
* @param projectId the value for balance_sheet.project_id
* @mbg.generated
*/
public void setProjectId(String projectId) {
this.projectId = projectId == null ? null : projectId.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.date
*
* @return the value of balance_sheet.date
* @mbg.generated
*/
public Date getDate() {
public String getDate() {
return date;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.date
*
* @param date the value for balance_sheet.date
* @mbg.generated
*/
public void setDate(Date date) {
public void setDate(String date) {
this.date = date;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.source
*
* @return the value of balance_sheet.source
* @mbg.generated
*/
public String getSource() {
return source;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.source
*
* @param source the value for balance_sheet.source
* @mbg.generated
*/
public void setSource(String source) {
this.source = source == null ? null : source.trim();
this.source = source;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.tms_period
*
* @return the value of balance_sheet.tms_period
* @mbg.generated
*/
public Integer getTmsPeriod() {
return tmsPeriod;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.tms_period
*
* @param tmsPeriod the value for balance_sheet.tms_period
* @mbg.generated
*/
public void setTmsPeriod(Integer tmsPeriod) {
this.tmsPeriod = tmsPeriod;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.period
*
* @return the value of balance_sheet.period
* @mbg.generated
*/
public Integer getPeriod() {
return period;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.period
*
* @param period the value for balance_sheet.period
* @mbg.generated
*/
public void setPeriod(Integer period) {
this.period = period;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.status
*
* @return the value of balance_sheet.status
* @mbg.generated
*/
public String getStatus() {
public Boolean getStatus() {
return status;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.status
*
* @param status the value for balance_sheet.status
* @mbg.generated
*/
public void setStatus(String status) {
this.status = status == null ? null : status.trim();
public void setStatus(Boolean status) {
this.status = status;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.ledger_id
*
* @return the value of balance_sheet.ledger_id
* @mbg.generated
*/
public String getLedgerId() {
return ledgerId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.ledger_id
*
* @param ledgerId the value for balance_sheet.ledger_id
* @mbg.generated
*/
public void setLedgerId(String ledgerId) {
this.ledgerId = ledgerId == null ? null : ledgerId.trim();
this.ledgerId = ledgerId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.ledger_name
*
* @return the value of balance_sheet.ledger_name
* @mbg.generated
*/
public String getLedgerName() {
return ledgerName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.ledger_name
*
* @param ledgerName the value for balance_sheet.ledger_name
* @mbg.generated
*/
public void setLedgerName(String ledgerName) {
this.ledgerName = ledgerName == null ? null : ledgerName.trim();
this.ledgerName = ledgerName;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.ledger_currency_code
*
* @return the value of balance_sheet.ledger_currency_code
* @mbg.generated
*/
public String getLedgerCurrencyCode() {
return ledgerCurrencyCode;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.ledger_currency_code
*
* @param ledgerCurrencyCode the value for balance_sheet.ledger_currency_code
* @mbg.generated
*/
public void setLedgerCurrencyCode(String ledgerCurrencyCode) {
this.ledgerCurrencyCode = ledgerCurrencyCode == null ? null : ledgerCurrencyCode.trim();
this.ledgerCurrencyCode = ledgerCurrencyCode;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.entity_code
*
* @return the value of balance_sheet.entity_code
* @mbg.generated
*/
public String getEntityCode() {
return entityCode;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.entity_code
*
* @param entityCode the value for balance_sheet.entity_code
* @mbg.generated
*/
public void setEntityCode(String entityCode) {
this.entityCode = entityCode == null ? null : entityCode.trim();
this.entityCode = entityCode;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.entity_name
*
* @return the value of balance_sheet.entity_name
* @mbg.generated
*/
public String getEntityName() {
return entityName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.entity_name
*
* @param entityName the value for balance_sheet.entity_name
* @mbg.generated
*/
public void setEntityName(String entityName) {
this.entityName = entityName == null ? null : entityName.trim();
this.entityName = entityName;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.category
*
* @return the value of balance_sheet.category
* @mbg.generated
*/
public String getCategory() {
return category;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.category
*
* @param category the value for balance_sheet.category
* @mbg.generated
*/
public void setCategory(String category) {
this.category = category == null ? null : category.trim();
this.category = category;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.frequency
*
* @return the value of balance_sheet.frequency
* @mbg.generated
*/
public String getFrequency() {
return frequency;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.frequency
*
* @param frequency the value for balance_sheet.frequency
* @mbg.generated
*/
public void setFrequency(String frequency) {
this.frequency = frequency == null ? null : frequency.trim();
this.frequency = frequency;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.item_name
*
* @return the value of balance_sheet.item_name
* @mbg.generated
*/
public String getItemName() {
return itemName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.item_name
*
* @param itemName the value for balance_sheet.item_name
* @mbg.generated
*/
public void setItemName(String itemName) {
this.itemName = itemName == null ? null : itemName.trim();
this.itemName = itemName;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.end_bal
*
* @return the value of balance_sheet.end_bal
* @mbg.generated
*/
public BigDecimal getEndBal() {
return endBal;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.end_bal
*
* @param endBal the value for balance_sheet.end_bal
* @mbg.generated
*/
public void setEndBal(BigDecimal endBal) {
this.endBal = endBal;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.beg_bal
*
* @return the value of balance_sheet.beg_bal
* @mbg.generated
*/
public BigDecimal getBegBal() {
return begBal;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.beg_bal
*
* @param begBal the value for balance_sheet.beg_bal
* @mbg.generated
*/
public void setBegBal(BigDecimal begBal) {
this.begBal = begBal;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.prc_flag
*
* @return the value of balance_sheet.prc_flag
* @mbg.generated
*/
public Boolean getPrcFlag() {
return prcFlag;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.prc_flag
*
* @param prcFlag the value for balance_sheet.prc_flag
* @mbg.generated
*/
public void setPrcFlag(Boolean prcFlag) {
this.prcFlag = prcFlag;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.create_time
*
* @return the value of balance_sheet.create_time
* @mbg.generated
*/
public Date getCreateTime() {
return createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.create_time
*
* @param createTime the value for balance_sheet.create_time
* @mbg.generated
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.update_time
*
* @return the value of balance_sheet.update_time
* @mbg.generated
*/
public Date getUpdateTime() {
return updateTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.update_time
*
* @param updateTime the value for balance_sheet.update_time
* @mbg.generated
*/
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
}
}
\ No newline at end of file
package pwc.taxtech.atms.dto.ebsdto;
import java.math.BigDecimal;
import java.util.Date;
public class BalanceSheetQueryDto {
/**
* Database Column Remarks:
* 唯一编号
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column balance_sheet.id
*
* @mbg.generated
*/
private Long id;
/**
* Database Column Remarks:
* 机构编号
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column balance_sheet.organization_id
*
* @mbg.generated
*/
private String organizationId;
/**
* Database Column Remarks:
* 项目ID
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column balance_sheet.project_id
*
* @mbg.generated
*/
private String projectId;
/**
* Database Column Remarks:
* 数据日期
......@@ -46,7 +12,7 @@ public class BalanceSheetQueryDto {
*
* @mbg.generated
*/
private Date date;
private String date;
/**
* Database Column Remarks:
......@@ -59,17 +25,6 @@ public class BalanceSheetQueryDto {
*/
private String source;
/**
* Database Column Remarks:
* 税务系统期间yyyymm
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column balance_sheet.tms_period
*
* @mbg.generated
*/
private Integer tmsPeriod;
/**
* Database Column Remarks:
* 期间 yyyymm
......@@ -90,7 +45,7 @@ public class BalanceSheetQueryDto {
*
* @mbg.generated
*/
private String status;
private Boolean status;
/**
* Database Column Remarks:
......@@ -202,506 +157,115 @@ public class BalanceSheetQueryDto {
*/
private BigDecimal begBal;
/**
* Database Column Remarks:
* 是否为国外 0-国内,1-国外
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column balance_sheet.prc_flag
*
* @mbg.generated
*/
private Boolean prcFlag;
/**
* Database Column Remarks:
* 创建时间
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column balance_sheet.create_time
*
* @mbg.generated
*/
private Date createTime;
/**
* Database Column Remarks:
* 更新时间
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column balance_sheet.update_time
*
* @mbg.generated
*/
private Date updateTime;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table balance_sheet
*
* @mbg.generated
*/
private static final long serialVersionUID = 1L;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.id
*
* @return the value of balance_sheet.id
* @mbg.generated
*/
public Long getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.id
*
* @param id the value for balance_sheet.id
* @mbg.generated
*/
public void setId(Long id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.organization_id
*
* @return the value of balance_sheet.organization_id
* @mbg.generated
*/
public String getOrganizationId() {
return organizationId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.organization_id
*
* @param organizationId the value for balance_sheet.organization_id
* @mbg.generated
*/
public void setOrganizationId(String organizationId) {
this.organizationId = organizationId == null ? null : organizationId.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.project_id
*
* @return the value of balance_sheet.project_id
* @mbg.generated
*/
public String getProjectId() {
return projectId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.project_id
*
* @param projectId the value for balance_sheet.project_id
* @mbg.generated
*/
public void setProjectId(String projectId) {
this.projectId = projectId == null ? null : projectId.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.date
*
* @return the value of balance_sheet.date
* @mbg.generated
*/
public Date getDate() {
public String getDate() {
return date;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.date
*
* @param date the value for balance_sheet.date
* @mbg.generated
*/
public void setDate(Date date) {
public void setDate(String date) {
this.date = date;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.source
*
* @return the value of balance_sheet.source
* @mbg.generated
*/
public String getSource() {
return source;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.source
*
* @param source the value for balance_sheet.source
* @mbg.generated
*/
public void setSource(String source) {
this.source = source == null ? null : source.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.tms_period
*
* @return the value of balance_sheet.tms_period
* @mbg.generated
*/
public Integer getTmsPeriod() {
return tmsPeriod;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.tms_period
*
* @param tmsPeriod the value for balance_sheet.tms_period
* @mbg.generated
*/
public void setTmsPeriod(Integer tmsPeriod) {
this.tmsPeriod = tmsPeriod;
this.source = source;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.period
*
* @return the value of balance_sheet.period
* @mbg.generated
*/
public Integer getPeriod() {
return period;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.period
*
* @param period the value for balance_sheet.period
* @mbg.generated
*/
public void setPeriod(Integer period) {
this.period = period;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.status
*
* @return the value of balance_sheet.status
* @mbg.generated
*/
public String getStatus() {
public Boolean getStatus() {
return status;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.status
*
* @param status the value for balance_sheet.status
* @mbg.generated
*/
public void setStatus(String status) {
this.status = status == null ? null : status.trim();
public void setStatus(Boolean status) {
this.status = status;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.ledger_id
*
* @return the value of balance_sheet.ledger_id
* @mbg.generated
*/
public String getLedgerId() {
return ledgerId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.ledger_id
*
* @param ledgerId the value for balance_sheet.ledger_id
* @mbg.generated
*/
public void setLedgerId(String ledgerId) {
this.ledgerId = ledgerId == null ? null : ledgerId.trim();
this.ledgerId = ledgerId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.ledger_name
*
* @return the value of balance_sheet.ledger_name
* @mbg.generated
*/
public String getLedgerName() {
return ledgerName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.ledger_name
*
* @param ledgerName the value for balance_sheet.ledger_name
* @mbg.generated
*/
public void setLedgerName(String ledgerName) {
this.ledgerName = ledgerName == null ? null : ledgerName.trim();
this.ledgerName = ledgerName;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.ledger_currency_code
*
* @return the value of balance_sheet.ledger_currency_code
* @mbg.generated
*/
public String getLedgerCurrencyCode() {
return ledgerCurrencyCode;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.ledger_currency_code
*
* @param ledgerCurrencyCode the value for balance_sheet.ledger_currency_code
* @mbg.generated
*/
public void setLedgerCurrencyCode(String ledgerCurrencyCode) {
this.ledgerCurrencyCode = ledgerCurrencyCode == null ? null : ledgerCurrencyCode.trim();
this.ledgerCurrencyCode = ledgerCurrencyCode;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.entity_code
*
* @return the value of balance_sheet.entity_code
* @mbg.generated
*/
public String getEntityCode() {
return entityCode;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.entity_code
*
* @param entityCode the value for balance_sheet.entity_code
* @mbg.generated
*/
public void setEntityCode(String entityCode) {
this.entityCode = entityCode == null ? null : entityCode.trim();
this.entityCode = entityCode;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.entity_name
*
* @return the value of balance_sheet.entity_name
* @mbg.generated
*/
public String getEntityName() {
return entityName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.entity_name
*
* @param entityName the value for balance_sheet.entity_name
* @mbg.generated
*/
public void setEntityName(String entityName) {
this.entityName = entityName == null ? null : entityName.trim();
this.entityName = entityName;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.category
*
* @return the value of balance_sheet.category
* @mbg.generated
*/
public String getCategory() {
return category;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.category
*
* @param category the value for balance_sheet.category
* @mbg.generated
*/
public void setCategory(String category) {
this.category = category == null ? null : category.trim();
this.category = category;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.frequency
*
* @return the value of balance_sheet.frequency
* @mbg.generated
*/
public String getFrequency() {
return frequency;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.frequency
*
* @param frequency the value for balance_sheet.frequency
* @mbg.generated
*/
public void setFrequency(String frequency) {
this.frequency = frequency == null ? null : frequency.trim();
this.frequency = frequency;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.item_name
*
* @return the value of balance_sheet.item_name
* @mbg.generated
*/
public String getItemName() {
return itemName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.item_name
*
* @param itemName the value for balance_sheet.item_name
* @mbg.generated
*/
public void setItemName(String itemName) {
this.itemName = itemName == null ? null : itemName.trim();
this.itemName = itemName;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.end_bal
*
* @return the value of balance_sheet.end_bal
* @mbg.generated
*/
public BigDecimal getEndBal() {
return endBal;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.end_bal
*
* @param endBal the value for balance_sheet.end_bal
* @mbg.generated
*/
public void setEndBal(BigDecimal endBal) {
this.endBal = endBal;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.beg_bal
*
* @return the value of balance_sheet.beg_bal
* @mbg.generated
*/
public BigDecimal getBegBal() {
return begBal;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.beg_bal
*
* @param begBal the value for balance_sheet.beg_bal
* @mbg.generated
*/
public void setBegBal(BigDecimal begBal) {
this.begBal = begBal;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.prc_flag
*
* @return the value of balance_sheet.prc_flag
* @mbg.generated
*/
public Boolean getPrcFlag() {
return prcFlag;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.prc_flag
*
* @param prcFlag the value for balance_sheet.prc_flag
* @mbg.generated
*/
public void setPrcFlag(Boolean prcFlag) {
this.prcFlag = prcFlag;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.create_time
*
* @return the value of balance_sheet.create_time
* @mbg.generated
*/
public Date getCreateTime() {
return createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.create_time
*
* @param createTime the value for balance_sheet.create_time
* @mbg.generated
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column balance_sheet.update_time
*
* @return the value of balance_sheet.update_time
* @mbg.generated
*/
public Date getUpdateTime() {
return updateTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column balance_sheet.update_time
*
* @param updateTime the value for balance_sheet.update_time
* @mbg.generated
*/
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
}
}
\ No newline at end of file
package pwc.taxtech.atms.dto.ebsdto;
import java.math.BigDecimal;
import java.util.Date;
public class CashFlowQueryDto {
/**
* Database Column Remarks:
* 唯一编号 系统唯一编号
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.id
*
* @mbg.generated
*/
private Long id;
/**
* Database Column Remarks:
* 机构id
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.organization_id
*
* @mbg.generated
*/
private String organizationId;
/**
* Database Column Remarks:
* 数据日期
......@@ -35,7 +12,7 @@ public class CashFlowQueryDto {
*
* @mbg.generated
*/
private Date date;
private String date;
/**
* Database Column Remarks:
......@@ -48,17 +25,6 @@ public class CashFlowQueryDto {
*/
private String source;
/**
* Database Column Remarks:
* 税务系统期间 yyyyMM
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.tms_period
*
* @mbg.generated
*/
private Integer tmsPeriod;
/**
* Database Column Remarks:
* 期间 YYYY-MM
......@@ -79,7 +45,7 @@ public class CashFlowQueryDto {
*
* @mbg.generated
*/
private String status;
private Boolean status;
/**
* Database Column Remarks:
......@@ -203,468 +169,123 @@ public class CashFlowQueryDto {
*/
private BigDecimal ytdAmt;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.create_time
*
* @mbg.generated
*/
private Date createTime;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.update_time
*
* @mbg.generated
*/
private Date updateTime;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table cash_flow
*
* @mbg.generated
*/
private static final long serialVersionUID = 1L;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cash_flow.id
*
* @return the value of cash_flow.id
* @mbg.generated
*/
public Long getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cash_flow.id
*
* @param id the value for cash_flow.id
* @mbg.generated
*/
public void setId(Long id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cash_flow.organization_id
*
* @return the value of cash_flow.organization_id
* @mbg.generated
*/
public String getOrganizationId() {
return organizationId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cash_flow.organization_id
*
* @param organizationId the value for cash_flow.organization_id
* @mbg.generated
*/
public void setOrganizationId(String organizationId) {
this.organizationId = organizationId == null ? null : organizationId.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cash_flow.date
*
* @return the value of cash_flow.date
* @mbg.generated
*/
public Date getDate() {
public String getDate() {
return date;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cash_flow.date
*
* @param date the value for cash_flow.date
* @mbg.generated
*/
public void setDate(Date date) {
public void setDate(String date) {
this.date = date;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cash_flow.source
*
* @return the value of cash_flow.source
* @mbg.generated
*/
public String getSource() {
return source;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cash_flow.source
*
* @param source the value for cash_flow.source
* @mbg.generated
*/
public void setSource(String source) {
this.source = source == null ? null : source.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cash_flow.tms_period
*
* @return the value of cash_flow.tms_period
* @mbg.generated
*/
public Integer getTmsPeriod() {
return tmsPeriod;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cash_flow.tms_period
*
* @param tmsPeriod the value for cash_flow.tms_period
* @mbg.generated
*/
public void setTmsPeriod(Integer tmsPeriod) {
this.tmsPeriod = tmsPeriod;
this.source = source;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cash_flow.period
*
* @return the value of cash_flow.period
* @mbg.generated
*/
public Integer getPeriod() {
return period;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cash_flow.period
*
* @param period the value for cash_flow.period
* @mbg.generated
*/
public void setPeriod(Integer period) {
this.period = period;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cash_flow.status
*
* @return the value of cash_flow.status
* @mbg.generated
*/
public String getStatus() {
public Boolean getStatus() {
return status;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cash_flow.status
*
* @param status the value for cash_flow.status
* @mbg.generated
*/
public void setStatus(String status) {
this.status = status == null ? null : status.trim();
public void setStatus(Boolean status) {
this.status = status;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cash_flow.ledger_id
*
* @return the value of cash_flow.ledger_id
* @mbg.generated
*/
public String getLedgerId() {
return ledgerId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cash_flow.ledger_id
*
* @param ledgerId the value for cash_flow.ledger_id
* @mbg.generated
*/
public void setLedgerId(String ledgerId) {
this.ledgerId = ledgerId == null ? null : ledgerId.trim();
this.ledgerId = ledgerId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cash_flow.ledger_name
*
* @return the value of cash_flow.ledger_name
* @mbg.generated
*/
public String getLedgerName() {
return ledgerName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cash_flow.ledger_name
*
* @param ledgerName the value for cash_flow.ledger_name
* @mbg.generated
*/
public void setLedgerName(String ledgerName) {
this.ledgerName = ledgerName == null ? null : ledgerName.trim();
this.ledgerName = ledgerName;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cash_flow.ledger_currency_code
*
* @return the value of cash_flow.ledger_currency_code
* @mbg.generated
*/
public String getLedgerCurrencyCode() {
return ledgerCurrencyCode;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cash_flow.ledger_currency_code
*
* @param ledgerCurrencyCode the value for cash_flow.ledger_currency_code
* @mbg.generated
*/
public void setLedgerCurrencyCode(String ledgerCurrencyCode) {
this.ledgerCurrencyCode = ledgerCurrencyCode == null ? null : ledgerCurrencyCode.trim();
this.ledgerCurrencyCode = ledgerCurrencyCode;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cash_flow.entity_code
*
* @return the value of cash_flow.entity_code
* @mbg.generated
*/
public String getEntityCode() {
return entityCode;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cash_flow.entity_code
*
* @param entityCode the value for cash_flow.entity_code
* @mbg.generated
*/
public void setEntityCode(String entityCode) {
this.entityCode = entityCode == null ? null : entityCode.trim();
this.entityCode = entityCode;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cash_flow.entity_name
*
* @return the value of cash_flow.entity_name
* @mbg.generated
*/
public String getEntityName() {
return entityName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cash_flow.entity_name
*
* @param entityName the value for cash_flow.entity_name
* @mbg.generated
*/
public void setEntityName(String entityName) {
this.entityName = entityName == null ? null : entityName.trim();
this.entityName = entityName;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cash_flow.category
*
* @return the value of cash_flow.category
* @mbg.generated
*/
public String getCategory() {
return category;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cash_flow.category
*
* @param category the value for cash_flow.category
* @mbg.generated
*/
public void setCategory(String category) {
this.category = category == null ? null : category.trim();
this.category = category;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cash_flow.frequency
*
* @return the value of cash_flow.frequency
* @mbg.generated
*/
public String getFrequency() {
return frequency;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cash_flow.frequency
*
* @param frequency the value for cash_flow.frequency
* @mbg.generated
*/
public void setFrequency(String frequency) {
this.frequency = frequency == null ? null : frequency.trim();
this.frequency = frequency;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cash_flow.item_name
*
* @return the value of cash_flow.item_name
* @mbg.generated
*/
public String getItemName() {
return itemName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cash_flow.item_name
*
* @param itemName the value for cash_flow.item_name
* @mbg.generated
*/
public void setItemName(String itemName) {
this.itemName = itemName == null ? null : itemName.trim();
this.itemName = itemName;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cash_flow.item_name2
*
* @return the value of cash_flow.item_name2
* @mbg.generated
*/
public String getItemName2() {
return itemName2;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cash_flow.item_name2
*
* @param itemName2 the value for cash_flow.item_name2
* @mbg.generated
*/
public void setItemName2(String itemName2) {
this.itemName2 = itemName2 == null ? null : itemName2.trim();
this.itemName2 = itemName2;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cash_flow.period_amt
*
* @return the value of cash_flow.period_amt
* @mbg.generated
*/
public BigDecimal getPeriodAmt() {
return periodAmt;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cash_flow.period_amt
*
* @param periodAmt the value for cash_flow.period_amt
* @mbg.generated
*/
public void setPeriodAmt(BigDecimal periodAmt) {
this.periodAmt = periodAmt;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cash_flow.ytd_amt
*
* @return the value of cash_flow.ytd_amt
* @mbg.generated
*/
public BigDecimal getYtdAmt() {
return ytdAmt;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cash_flow.ytd_amt
*
* @param ytdAmt the value for cash_flow.ytd_amt
* @mbg.generated
*/
public void setYtdAmt(BigDecimal ytdAmt) {
this.ytdAmt = ytdAmt;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cash_flow.create_time
*
* @return the value of cash_flow.create_time
* @mbg.generated
*/
public Date getCreateTime() {
return createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cash_flow.create_time
*
* @param createTime the value for cash_flow.create_time
* @mbg.generated
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cash_flow.update_time
*
* @return the value of cash_flow.update_time
* @mbg.generated
*/
public Date getUpdateTime() {
return updateTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cash_flow.update_time
*
* @param updateTime the value for cash_flow.update_time
* @mbg.generated
*/
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
}
package pwc.taxtech.atms.dto.ebsdto;
import java.math.BigDecimal;
import java.util.Date;
public class JournalEntryQueryDto {
/**
* Database Column Remarks:
* 唯一编号 系统唯一编号
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column journal_entry.id
*
* @mbg.generated
*/
private Long id;
/**
* Database Column Remarks:
* 机构编号 对应机构编号
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column journal_entry.organization_id
*
* @mbg.generated
*/
private String organizationId;
/**
* Database Column Remarks:
* 项目ID
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column journal_entry.project_id
*
* @mbg.generated
*/
private String projectId;
/**
* Database Column Remarks:
* 数据日期
......@@ -47,7 +13,7 @@ public class JournalEntryQueryDto {
*
* @mbg.generated
*/
private Date date;
private String date;
/**
* Database Column Remarks:
......@@ -102,7 +68,7 @@ public class JournalEntryQueryDto {
*
* @mbg.generated
*/
private String status;
private Boolean status;
/**
* Database Column Remarks:
......@@ -168,7 +134,7 @@ public class JournalEntryQueryDto {
*
* @mbg.generated
*/
private Date accountingDate;
private String accountingDate;
/**
* Database Column Remarks:
......@@ -542,7 +508,7 @@ public class JournalEntryQueryDto {
*
* @mbg.generated
*/
private Date attribute2;
private String attribute2;
/**
* Database Column Remarks:
......@@ -718,7 +684,7 @@ public class JournalEntryQueryDto {
*
* @mbg.generated
*/
private Date createdDate;
private String createdDate;
/**
* Database Column Remarks:
......@@ -740,70 +706,13 @@ public class JournalEntryQueryDto {
*
* @mbg.generated
*/
private Date lateUpdatedDate;
/**
* Database Column Remarks:
* 创建时间
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column journal_entry.create_time
*
* @mbg.generated
*/
private Date createTime;
/**
* Database Column Remarks:
* 更新时间
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column journal_entry.update_time
*
* @mbg.generated
*/
private Date updateTime;
/**
* Database Column Remarks:
* 税务系统期间 yyyyMM
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column journal_entry.tms_period
*
* @mbg.generated
*/
private Integer tmsPeriod;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getOrganizationId() {
return organizationId;
}
private String lateUpdatedDate;
public void setOrganizationId(String organizationId) {
this.organizationId = organizationId;
}
public String getProjectId() {
return projectId;
}
public void setProjectId(String projectId) {
this.projectId = projectId;
}
public Date getDate() {
public String getDate() {
return date;
}
public void setDate(Date date) {
public void setDate(String date) {
this.date = date;
}
......@@ -839,11 +748,11 @@ public class JournalEntryQueryDto {
this.currencyCode = currencyCode;
}
public String getStatus() {
public Boolean getStatus() {
return status;
}
public void setStatus(String status) {
public void setStatus(Boolean status) {
this.status = status;
}
......@@ -887,11 +796,11 @@ public class JournalEntryQueryDto {
this.period = period;
}
public Date getAccountingDate() {
public String getAccountingDate() {
return accountingDate;
}
public void setAccountingDate(Date accountingDate) {
public void setAccountingDate(String accountingDate) {
this.accountingDate = accountingDate;
}
......@@ -1159,11 +1068,11 @@ public class JournalEntryQueryDto {
this.attribute1 = attribute1;
}
public Date getAttribute2() {
public String getAttribute2() {
return attribute2;
}
public void setAttribute2(Date attribute2) {
public void setAttribute2(String attribute2) {
this.attribute2 = attribute2;
}
......@@ -1287,11 +1196,11 @@ public class JournalEntryQueryDto {
this.createdBy = createdBy;
}
public Date getCreatedDate() {
public String getCreatedDate() {
return createdDate;
}
public void setCreatedDate(Date createdDate) {
public void setCreatedDate(String createdDate) {
this.createdDate = createdDate;
}
......@@ -1303,35 +1212,11 @@ public class JournalEntryQueryDto {
this.lateUpdatedBy = lateUpdatedBy;
}
public Date getLateUpdatedDate() {
public String getLateUpdatedDate() {
return lateUpdatedDate;
}
public void setLateUpdatedDate(Date lateUpdatedDate) {
public void setLateUpdatedDate(String lateUpdatedDate) {
this.lateUpdatedDate = lateUpdatedDate;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Integer getTmsPeriod() {
return tmsPeriod;
}
public void setTmsPeriod(Integer tmsPeriod) {
this.tmsPeriod = tmsPeriod;
}
}
package pwc.taxtech.atms.dto.ebsdto;
import java.util.Date;
import java.math.BigDecimal;
public class OrganizationAccountingRateQueryDto {
private String date;
/**
* Database Column Remarks:
* 唯一编号
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column organization_accounting_rate.id
*
* @mbg.generated
*/
private Long id;
/**
* Database Column Remarks:
* 机构编号
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column organization_accounting_rate.organization_id
* 期间
*
* @mbg.generated
*/
private String organizationId;
/**
* Database Column Remarks:
* 期间
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column organization_accounting_rate.period
*
......@@ -38,340 +17,119 @@ public class OrganizationAccountingRateQueryDto {
/**
* Database Column Remarks:
* 汇率类型
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column organization_accounting_rate.convertion_type
* 来源
*
* @mbg.generated
*/
private String convertionType;
/**
* Database Column Remarks:
* 货币自
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column organization_accounting_rate.currency_from
* This field corresponds to the database column organization_accounting_rate.source
*
* @mbg.generated
*/
private String currencyFrom;
private String source;
/**
* Database Column Remarks:
* 货币至
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column organization_accounting_rate.currency_to
* 汇率类型
*
* @mbg.generated
*/
private String currencyTo;
/**
* Database Column Remarks:
* 期间始
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column organization_accounting_rate.start_date
* This field corresponds to the database column organization_accounting_rate.convertion_type
*
* @mbg.generated
*/
private Date startDate;
private String convertionType;
/**
* Database Column Remarks:
* 期间止.2015-05-02
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column organization_accounting_rate.end_date
* 货币自
*
* @mbg.generated
*/
private Date endDate;
/**
* Database Column Remarks:
* 入账汇率.6.66
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column organization_accounting_rate.rate
*
* @mbg.generated
*/
private Float rate;
/**
* Database Column Remarks:
* 创建时间
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column organization_accounting_rate.create_time
* This field corresponds to the database column organization_accounting_rate.currency_from
*
* @mbg.generated
*/
private Date createTime;
private String currencyFrom;
/**
* Database Column Remarks:
* 更新时间
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column organization_accounting_rate.update_time
* 货币至
*
* @mbg.generated
*/
private Date updateTime;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table organization_accounting_rate
* This field corresponds to the database column organization_accounting_rate.currency_to
*
* @mbg.generated
*/
private static final long serialVersionUID = 1L;
private String currencyTo;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column organization_accounting_rate.id
*
* @return the value of organization_accounting_rate.id
* @mbg.generated
* 汇率
*/
public Long getId() {
return id;
}
private BigDecimal rate;
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column organization_accounting_rate.id
*
* @param id the value for organization_accounting_rate.id
* @mbg.generated
* 失效日期
*/
public void setId(Long id) {
this.id = id;
}
private String invalidDate;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column organization_accounting_rate.organization_id
*
* @return the value of organization_accounting_rate.organization_id
* @mbg.generated
*/
public String getOrganizationId() {
return organizationId;
public String getDate() {
return date;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column organization_accounting_rate.organization_id
*
* @param organizationId the value for organization_accounting_rate.organization_id
* @mbg.generated
*/
public void setOrganizationId(String organizationId) {
this.organizationId = organizationId == null ? null : organizationId.trim();
public void setDate(String date) {
this.date = date;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column organization_accounting_rate.period
*
* @return the value of organization_accounting_rate.period
* @mbg.generated
*/
public Integer getPeriod() {
return period;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column organization_accounting_rate.period
*
* @param period the value for organization_accounting_rate.period
* @mbg.generated
*/
public void setPeriod(Integer period) {
this.period = period;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column organization_accounting_rate.convertion_type
*
* @return the value of organization_accounting_rate.convertion_type
* @mbg.generated
*/
public String getSource() {
return source;
}
public void setSource(String source) {
this.source = source;
}
public String getConvertionType() {
return convertionType;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column organization_accounting_rate.convertion_type
*
* @param convertionType the value for organization_accounting_rate.convertion_type
* @mbg.generated
*/
public void setConvertionType(String convertionType) {
this.convertionType = convertionType == null ? null : convertionType.trim();
this.convertionType = convertionType;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column organization_accounting_rate.currency_from
*
* @return the value of organization_accounting_rate.currency_from
* @mbg.generated
*/
public String getCurrencyFrom() {
return currencyFrom;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column organization_accounting_rate.currency_from
*
* @param currencyFrom the value for organization_accounting_rate.currency_from
* @mbg.generated
*/
public void setCurrencyFrom(String currencyFrom) {
this.currencyFrom = currencyFrom == null ? null : currencyFrom.trim();
this.currencyFrom = currencyFrom;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column organization_accounting_rate.currency_to
*
* @return the value of organization_accounting_rate.currency_to
* @mbg.generated
*/
public String getCurrencyTo() {
return currencyTo;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column organization_accounting_rate.currency_to
*
* @param currencyTo the value for organization_accounting_rate.currency_to
* @mbg.generated
*/
public void setCurrencyTo(String currencyTo) {
this.currencyTo = currencyTo == null ? null : currencyTo.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column organization_accounting_rate.start_date
*
* @return the value of organization_accounting_rate.start_date
* @mbg.generated
*/
public Date getStartDate() {
return startDate;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column organization_accounting_rate.start_date
*
* @param startDate the value for organization_accounting_rate.start_date
* @mbg.generated
*/
public void setStartDate(Date startDate) {
this.startDate = startDate;
this.currencyTo = currencyTo;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column organization_accounting_rate.end_date
*
* @return the value of organization_accounting_rate.end_date
* @mbg.generated
*/
public Date getEndDate() {
return endDate;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column organization_accounting_rate.end_date
*
* @param endDate the value for organization_accounting_rate.end_date
* @mbg.generated
*/
public void setEndDate(Date endDate) {
this.endDate = endDate;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column organization_accounting_rate.rate
*
* @return the value of organization_accounting_rate.rate
* @mbg.generated
*/
public Float getRate() {
public BigDecimal getRate() {
return rate;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column organization_accounting_rate.rate
*
* @param rate the value for organization_accounting_rate.rate
* @mbg.generated
*/
public void setRate(Float rate) {
public void setRate(BigDecimal rate) {
this.rate = rate;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column organization_accounting_rate.create_time
*
* @return the value of organization_accounting_rate.create_time
* @mbg.generated
*/
public Date getCreateTime() {
return createTime;
public String getInvalidDate() {
return invalidDate;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column organization_accounting_rate.create_time
*
* @param createTime the value for organization_accounting_rate.create_time
* @mbg.generated
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
public void setInvalidDate(String invalidDate) {
this.invalidDate = invalidDate;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column organization_accounting_rate.update_time
*
* @return the value of organization_accounting_rate.update_time
* @mbg.generated
*/
public Date getUpdateTime() {
return updateTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column organization_accounting_rate.update_time
*
* @param updateTime the value for organization_accounting_rate.update_time
* @mbg.generated
*/
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
}
\ No newline at end of file
package pwc.taxtech.atms.dto.ebsdto;
import java.math.BigDecimal;
import java.util.Date;
public class ProfitLossStatementPrcQueryDto {
/**
* Database Column Remarks:
* 唯一编号
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement.id
*
* @mbg.generated
*/
private Long id;
/**
* Database Column Remarks:
* 机构编号
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement.organization_id
*
* @mbg.generated
*/
private String organizationId;
/**
* Database Column Remarks:
* 项目ID
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement.project_id
*
* @mbg.generated
*/
private String projectId;
/**
* Database Column Remarks:
* 数据日期
......@@ -46,7 +12,7 @@ public class ProfitLossStatementPrcQueryDto {
*
* @mbg.generated
*/
private Date date;
private String date;
/**
* Database Column Remarks:
......@@ -59,17 +25,6 @@ public class ProfitLossStatementPrcQueryDto {
*/
private String source;
/**
* Database Column Remarks:
* 税务系统期间yyyymm
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement.tms_period
*
* @mbg.generated
*/
private Integer tmsPeriod;
/**
* Database Column Remarks:
* 期间 yyyymm
......@@ -90,7 +45,7 @@ public class ProfitLossStatementPrcQueryDto {
*
* @mbg.generated
*/
private String status;
private Boolean status;
/**
* Database Column Remarks:
......@@ -202,506 +157,115 @@ public class ProfitLossStatementPrcQueryDto {
*/
private BigDecimal ytdAmt;
/**
* Database Column Remarks:
* 是否为国外
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement.prc_flag
*
* @mbg.generated
*/
private Boolean prcFlag;
/**
* Database Column Remarks:
* 创建时间
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement.create_time
*
* @mbg.generated
*/
private Date createTime;
/**
* Database Column Remarks:
* 更新时间
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement.update_time
*
* @mbg.generated
*/
private Date updateTime;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table profit_loss_statement
*
* @mbg.generated
*/
private static final long serialVersionUID = 1L;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.id
*
* @return the value of profit_loss_statement.id
* @mbg.generated
*/
public Long getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.id
*
* @param id the value for profit_loss_statement.id
* @mbg.generated
*/
public void setId(Long id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.organization_id
*
* @return the value of profit_loss_statement.organization_id
* @mbg.generated
*/
public String getOrganizationId() {
return organizationId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.organization_id
*
* @param organizationId the value for profit_loss_statement.organization_id
* @mbg.generated
*/
public void setOrganizationId(String organizationId) {
this.organizationId = organizationId == null ? null : organizationId.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.project_id
*
* @return the value of profit_loss_statement.project_id
* @mbg.generated
*/
public String getProjectId() {
return projectId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.project_id
*
* @param projectId the value for profit_loss_statement.project_id
* @mbg.generated
*/
public void setProjectId(String projectId) {
this.projectId = projectId == null ? null : projectId.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.date
*
* @return the value of profit_loss_statement.date
* @mbg.generated
*/
public Date getDate() {
public String getDate() {
return date;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.date
*
* @param date the value for profit_loss_statement.date
* @mbg.generated
*/
public void setDate(Date date) {
public void setDate(String date) {
this.date = date;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.source
*
* @return the value of profit_loss_statement.source
* @mbg.generated
*/
public String getSource() {
return source;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.source
*
* @param source the value for profit_loss_statement.source
* @mbg.generated
*/
public void setSource(String source) {
this.source = source == null ? null : source.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.tms_period
*
* @return the value of profit_loss_statement.tms_period
* @mbg.generated
*/
public Integer getTmsPeriod() {
return tmsPeriod;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.tms_period
*
* @param tmsPeriod the value for profit_loss_statement.tms_period
* @mbg.generated
*/
public void setTmsPeriod(Integer tmsPeriod) {
this.tmsPeriod = tmsPeriod;
this.source = source;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.period
*
* @return the value of profit_loss_statement.period
* @mbg.generated
*/
public Integer getPeriod() {
return period;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.period
*
* @param period the value for profit_loss_statement.period
* @mbg.generated
*/
public void setPeriod(Integer period) {
this.period = period;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.status
*
* @return the value of profit_loss_statement.status
* @mbg.generated
*/
public String getStatus() {
public Boolean getStatus() {
return status;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.status
*
* @param status the value for profit_loss_statement.status
* @mbg.generated
*/
public void setStatus(String status) {
this.status = status == null ? null : status.trim();
public void setStatus(Boolean status) {
this.status = status;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.ledger_id
*
* @return the value of profit_loss_statement.ledger_id
* @mbg.generated
*/
public String getLedgerId() {
return ledgerId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.ledger_id
*
* @param ledgerId the value for profit_loss_statement.ledger_id
* @mbg.generated
*/
public void setLedgerId(String ledgerId) {
this.ledgerId = ledgerId == null ? null : ledgerId.trim();
this.ledgerId = ledgerId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.ledger_name
*
* @return the value of profit_loss_statement.ledger_name
* @mbg.generated
*/
public String getLedgerName() {
return ledgerName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.ledger_name
*
* @param ledgerName the value for profit_loss_statement.ledger_name
* @mbg.generated
*/
public void setLedgerName(String ledgerName) {
this.ledgerName = ledgerName == null ? null : ledgerName.trim();
this.ledgerName = ledgerName;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.ledger_currency_code
*
* @return the value of profit_loss_statement.ledger_currency_code
* @mbg.generated
*/
public String getLedgerCurrencyCode() {
return ledgerCurrencyCode;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.ledger_currency_code
*
* @param ledgerCurrencyCode the value for profit_loss_statement.ledger_currency_code
* @mbg.generated
*/
public void setLedgerCurrencyCode(String ledgerCurrencyCode) {
this.ledgerCurrencyCode = ledgerCurrencyCode == null ? null : ledgerCurrencyCode.trim();
this.ledgerCurrencyCode = ledgerCurrencyCode;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.entity_code
*
* @return the value of profit_loss_statement.entity_code
* @mbg.generated
*/
public String getEntityCode() {
return entityCode;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.entity_code
*
* @param entityCode the value for profit_loss_statement.entity_code
* @mbg.generated
*/
public void setEntityCode(String entityCode) {
this.entityCode = entityCode == null ? null : entityCode.trim();
this.entityCode = entityCode;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.entity_name
*
* @return the value of profit_loss_statement.entity_name
* @mbg.generated
*/
public String getEntityName() {
return entityName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.entity_name
*
* @param entityName the value for profit_loss_statement.entity_name
* @mbg.generated
*/
public void setEntityName(String entityName) {
this.entityName = entityName == null ? null : entityName.trim();
this.entityName = entityName;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.category
*
* @return the value of profit_loss_statement.category
* @mbg.generated
*/
public String getCategory() {
return category;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.category
*
* @param category the value for profit_loss_statement.category
* @mbg.generated
*/
public void setCategory(String category) {
this.category = category == null ? null : category.trim();
this.category = category;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.frequency
*
* @return the value of profit_loss_statement.frequency
* @mbg.generated
*/
public String getFrequency() {
return frequency;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.frequency
*
* @param frequency the value for profit_loss_statement.frequency
* @mbg.generated
*/
public void setFrequency(String frequency) {
this.frequency = frequency == null ? null : frequency.trim();
this.frequency = frequency;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.item_name
*
* @return the value of profit_loss_statement.item_name
* @mbg.generated
*/
public String getItemName() {
return itemName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.item_name
*
* @param itemName the value for profit_loss_statement.item_name
* @mbg.generated
*/
public void setItemName(String itemName) {
this.itemName = itemName == null ? null : itemName.trim();
this.itemName = itemName;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.period_amt
*
* @return the value of profit_loss_statement.period_amt
* @mbg.generated
*/
public BigDecimal getPeriodAmt() {
return periodAmt;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.period_amt
*
* @param periodAmt the value for profit_loss_statement.period_amt
* @mbg.generated
*/
public void setPeriodAmt(BigDecimal periodAmt) {
this.periodAmt = periodAmt;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.ytd_amt
*
* @return the value of profit_loss_statement.ytd_amt
* @mbg.generated
*/
public BigDecimal getYtdAmt() {
return ytdAmt;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.ytd_amt
*
* @param ytdAmt the value for profit_loss_statement.ytd_amt
* @mbg.generated
*/
public void setYtdAmt(BigDecimal ytdAmt) {
this.ytdAmt = ytdAmt;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.prc_flag
*
* @return the value of profit_loss_statement.prc_flag
* @mbg.generated
*/
public Boolean getPrcFlag() {
return prcFlag;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.prc_flag
*
* @param prcFlag the value for profit_loss_statement.prc_flag
* @mbg.generated
*/
public void setPrcFlag(Boolean prcFlag) {
this.prcFlag = prcFlag;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.create_time
*
* @return the value of profit_loss_statement.create_time
* @mbg.generated
*/
public Date getCreateTime() {
return createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.create_time
*
* @param createTime the value for profit_loss_statement.create_time
* @mbg.generated
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.update_time
*
* @return the value of profit_loss_statement.update_time
* @mbg.generated
*/
public Date getUpdateTime() {
return updateTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.update_time
*
* @param updateTime the value for profit_loss_statement.update_time
* @mbg.generated
*/
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
}
}
\ No newline at end of file
package pwc.taxtech.atms.dto.ebsdto;
import java.math.BigDecimal;
import java.util.Date;
public class ProfitLossStatementQueryDto {
/**
* Database Column Remarks:
* 唯一编号
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement.id
*
* @mbg.generated
*/
private Long id;
/**
* Database Column Remarks:
* 机构编号
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement.organization_id
*
* @mbg.generated
*/
private String organizationId;
/**
* Database Column Remarks:
* 项目ID
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement.project_id
*
* @mbg.generated
*/
private String projectId;
/**
* Database Column Remarks:
* 数据日期
......@@ -46,7 +12,7 @@ public class ProfitLossStatementQueryDto {
*
* @mbg.generated
*/
private Date date;
private String date;
/**
* Database Column Remarks:
......@@ -59,17 +25,6 @@ public class ProfitLossStatementQueryDto {
*/
private String source;
/**
* Database Column Remarks:
* 税务系统期间yyyymm
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement.tms_period
*
* @mbg.generated
*/
private Integer tmsPeriod;
/**
* Database Column Remarks:
* 期间 yyyymm
......@@ -90,7 +45,7 @@ public class ProfitLossStatementQueryDto {
*
* @mbg.generated
*/
private String status;
private Boolean status;
/**
* Database Column Remarks:
......@@ -202,506 +157,115 @@ public class ProfitLossStatementQueryDto {
*/
private BigDecimal ytdAmt;
/**
* Database Column Remarks:
* 是否为国外
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement.prc_flag
*
* @mbg.generated
*/
private Boolean prcFlag;
/**
* Database Column Remarks:
* 创建时间
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement.create_time
*
* @mbg.generated
*/
private Date createTime;
/**
* Database Column Remarks:
* 更新时间
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement.update_time
*
* @mbg.generated
*/
private Date updateTime;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table profit_loss_statement
*
* @mbg.generated
*/
private static final long serialVersionUID = 1L;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.id
*
* @return the value of profit_loss_statement.id
* @mbg.generated
*/
public Long getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.id
*
* @param id the value for profit_loss_statement.id
* @mbg.generated
*/
public void setId(Long id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.organization_id
*
* @return the value of profit_loss_statement.organization_id
* @mbg.generated
*/
public String getOrganizationId() {
return organizationId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.organization_id
*
* @param organizationId the value for profit_loss_statement.organization_id
* @mbg.generated
*/
public void setOrganizationId(String organizationId) {
this.organizationId = organizationId == null ? null : organizationId.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.project_id
*
* @return the value of profit_loss_statement.project_id
* @mbg.generated
*/
public String getProjectId() {
return projectId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.project_id
*
* @param projectId the value for profit_loss_statement.project_id
* @mbg.generated
*/
public void setProjectId(String projectId) {
this.projectId = projectId == null ? null : projectId.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.date
*
* @return the value of profit_loss_statement.date
* @mbg.generated
*/
public Date getDate() {
public String getDate() {
return date;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.date
*
* @param date the value for profit_loss_statement.date
* @mbg.generated
*/
public void setDate(Date date) {
public void setDate(String date) {
this.date = date;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.source
*
* @return the value of profit_loss_statement.source
* @mbg.generated
*/
public String getSource() {
return source;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.source
*
* @param source the value for profit_loss_statement.source
* @mbg.generated
*/
public void setSource(String source) {
this.source = source == null ? null : source.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.tms_period
*
* @return the value of profit_loss_statement.tms_period
* @mbg.generated
*/
public Integer getTmsPeriod() {
return tmsPeriod;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.tms_period
*
* @param tmsPeriod the value for profit_loss_statement.tms_period
* @mbg.generated
*/
public void setTmsPeriod(Integer tmsPeriod) {
this.tmsPeriod = tmsPeriod;
this.source = source;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.period
*
* @return the value of profit_loss_statement.period
* @mbg.generated
*/
public Integer getPeriod() {
return period;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.period
*
* @param period the value for profit_loss_statement.period
* @mbg.generated
*/
public void setPeriod(Integer period) {
this.period = period;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.status
*
* @return the value of profit_loss_statement.status
* @mbg.generated
*/
public String getStatus() {
public Boolean getStatus() {
return status;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.status
*
* @param status the value for profit_loss_statement.status
* @mbg.generated
*/
public void setStatus(String status) {
this.status = status == null ? null : status.trim();
public void setStatus(Boolean status) {
this.status = status;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.ledger_id
*
* @return the value of profit_loss_statement.ledger_id
* @mbg.generated
*/
public String getLedgerId() {
return ledgerId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.ledger_id
*
* @param ledgerId the value for profit_loss_statement.ledger_id
* @mbg.generated
*/
public void setLedgerId(String ledgerId) {
this.ledgerId = ledgerId == null ? null : ledgerId.trim();
this.ledgerId = ledgerId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.ledger_name
*
* @return the value of profit_loss_statement.ledger_name
* @mbg.generated
*/
public String getLedgerName() {
return ledgerName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.ledger_name
*
* @param ledgerName the value for profit_loss_statement.ledger_name
* @mbg.generated
*/
public void setLedgerName(String ledgerName) {
this.ledgerName = ledgerName == null ? null : ledgerName.trim();
this.ledgerName = ledgerName;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.ledger_currency_code
*
* @return the value of profit_loss_statement.ledger_currency_code
* @mbg.generated
*/
public String getLedgerCurrencyCode() {
return ledgerCurrencyCode;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.ledger_currency_code
*
* @param ledgerCurrencyCode the value for profit_loss_statement.ledger_currency_code
* @mbg.generated
*/
public void setLedgerCurrencyCode(String ledgerCurrencyCode) {
this.ledgerCurrencyCode = ledgerCurrencyCode == null ? null : ledgerCurrencyCode.trim();
this.ledgerCurrencyCode = ledgerCurrencyCode;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.entity_code
*
* @return the value of profit_loss_statement.entity_code
* @mbg.generated
*/
public String getEntityCode() {
return entityCode;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.entity_code
*
* @param entityCode the value for profit_loss_statement.entity_code
* @mbg.generated
*/
public void setEntityCode(String entityCode) {
this.entityCode = entityCode == null ? null : entityCode.trim();
this.entityCode = entityCode;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.entity_name
*
* @return the value of profit_loss_statement.entity_name
* @mbg.generated
*/
public String getEntityName() {
return entityName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.entity_name
*
* @param entityName the value for profit_loss_statement.entity_name
* @mbg.generated
*/
public void setEntityName(String entityName) {
this.entityName = entityName == null ? null : entityName.trim();
this.entityName = entityName;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.category
*
* @return the value of profit_loss_statement.category
* @mbg.generated
*/
public String getCategory() {
return category;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.category
*
* @param category the value for profit_loss_statement.category
* @mbg.generated
*/
public void setCategory(String category) {
this.category = category == null ? null : category.trim();
this.category = category;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.frequency
*
* @return the value of profit_loss_statement.frequency
* @mbg.generated
*/
public String getFrequency() {
return frequency;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.frequency
*
* @param frequency the value for profit_loss_statement.frequency
* @mbg.generated
*/
public void setFrequency(String frequency) {
this.frequency = frequency == null ? null : frequency.trim();
this.frequency = frequency;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.item_name
*
* @return the value of profit_loss_statement.item_name
* @mbg.generated
*/
public String getItemName() {
return itemName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.item_name
*
* @param itemName the value for profit_loss_statement.item_name
* @mbg.generated
*/
public void setItemName(String itemName) {
this.itemName = itemName == null ? null : itemName.trim();
this.itemName = itemName;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.period_amt
*
* @return the value of profit_loss_statement.period_amt
* @mbg.generated
*/
public BigDecimal getPeriodAmt() {
return periodAmt;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.period_amt
*
* @param periodAmt the value for profit_loss_statement.period_amt
* @mbg.generated
*/
public void setPeriodAmt(BigDecimal periodAmt) {
this.periodAmt = periodAmt;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.ytd_amt
*
* @return the value of profit_loss_statement.ytd_amt
* @mbg.generated
*/
public BigDecimal getYtdAmt() {
return ytdAmt;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.ytd_amt
*
* @param ytdAmt the value for profit_loss_statement.ytd_amt
* @mbg.generated
*/
public void setYtdAmt(BigDecimal ytdAmt) {
this.ytdAmt = ytdAmt;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.prc_flag
*
* @return the value of profit_loss_statement.prc_flag
* @mbg.generated
*/
public Boolean getPrcFlag() {
return prcFlag;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.prc_flag
*
* @param prcFlag the value for profit_loss_statement.prc_flag
* @mbg.generated
*/
public void setPrcFlag(Boolean prcFlag) {
this.prcFlag = prcFlag;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.create_time
*
* @return the value of profit_loss_statement.create_time
* @mbg.generated
*/
public Date getCreateTime() {
return createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.create_time
*
* @param createTime the value for profit_loss_statement.create_time
* @mbg.generated
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement.update_time
*
* @return the value of profit_loss_statement.update_time
* @mbg.generated
*/
public Date getUpdateTime() {
return updateTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement.update_time
*
* @param updateTime the value for profit_loss_statement.update_time
* @mbg.generated
*/
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
}
}
\ No newline at end of file
package pwc.taxtech.atms.dto.ebsdto;
import java.math.BigDecimal;
import java.util.Date;
public class TrialBalanceQueryDto {
/**
* Database Column Remarks:
* 唯一编号
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance.id
*
* @mbg.generated
*/
private Long id;
/**
* Database Column Remarks:
* 机构编号
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance.organization_id
*
* @mbg.generated
*/
private String organizationId;
/**
* Database Column Remarks:
* 项目ID
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance.project_id
*
* @mbg.generated
*/
private String projectId;
/**
* Database Column Remarks:
* 数据日期
......@@ -46,7 +12,7 @@ public class TrialBalanceQueryDto {
*
* @mbg.generated
*/
private Date date;
private String date;
/**
* Database Column Remarks:
......@@ -112,7 +78,7 @@ public class TrialBalanceQueryDto {
*
* @mbg.generated
*/
private String status;
private Boolean status;
/**
* Database Column Remarks:
......@@ -576,1221 +542,395 @@ public class TrialBalanceQueryDto {
*/
private BigDecimal ytdCrBeq;
/**
* Database Column Remarks:
* 创建时间
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance.create_time
*
* @mbg.generated
*/
private Date createTime;
/**
* Database Column Remarks:
* 更新时间
* <p>
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance.update_time
*
* @mbg.generated
*/
private Date updateTime;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table trial_balance
*
* @mbg.generated
*/
private static final long serialVersionUID = 1L;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.id
*
* @return the value of trial_balance.id
* @mbg.generated
*/
public Long getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.id
*
* @param id the value for trial_balance.id
* @mbg.generated
*/
public void setId(Long id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.organization_id
*
* @return the value of trial_balance.organization_id
* @mbg.generated
*/
public String getOrganizationId() {
return organizationId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.organization_id
*
* @param organizationId the value for trial_balance.organization_id
* @mbg.generated
*/
public void setOrganizationId(String organizationId) {
this.organizationId = organizationId == null ? null : organizationId.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.project_id
*
* @return the value of trial_balance.project_id
* @mbg.generated
*/
public String getProjectId() {
return projectId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.project_id
*
* @param projectId the value for trial_balance.project_id
* @mbg.generated
*/
public void setProjectId(String projectId) {
this.projectId = projectId == null ? null : projectId.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.date
*
* @return the value of trial_balance.date
* @mbg.generated
*/
public Date getDate() {
public String getDate() {
return date;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.date
*
* @param date the value for trial_balance.date
* @mbg.generated
*/
public void setDate(Date date) {
public void setDate(String date) {
this.date = date;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.source
*
* @return the value of trial_balance.source
* @mbg.generated
*/
public String getSource() {
return source;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.source
*
* @param source the value for trial_balance.source
* @mbg.generated
*/
public void setSource(String source) {
this.source = source == null ? null : source.trim();
this.source = source;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.period
*
* @return the value of trial_balance.period
* @mbg.generated
*/
public Integer getPeriod() {
return period;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.period
*
* @param period the value for trial_balance.period
* @mbg.generated
*/
public void setPeriod(Integer period) {
this.period = period;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.ledger_id
*
* @return the value of trial_balance.ledger_id
* @mbg.generated
*/
public String getLedgerId() {
return ledgerId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.ledger_id
*
* @param ledgerId the value for trial_balance.ledger_id
* @mbg.generated
*/
public void setLedgerId(String ledgerId) {
this.ledgerId = ledgerId == null ? null : ledgerId.trim();
this.ledgerId = ledgerId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.ledger_name
*
* @return the value of trial_balance.ledger_name
* @mbg.generated
*/
public String getLedgerName() {
return ledgerName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.ledger_name
*
* @param ledgerName the value for trial_balance.ledger_name
* @mbg.generated
*/
public void setLedgerName(String ledgerName) {
this.ledgerName = ledgerName == null ? null : ledgerName.trim();
this.ledgerName = ledgerName;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.currency_code
*
* @return the value of trial_balance.currency_code
* @mbg.generated
*/
public String getCurrencyCode() {
return currencyCode;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.currency_code
*
* @param currencyCode the value for trial_balance.currency_code
* @mbg.generated
*/
public void setCurrencyCode(String currencyCode) {
this.currencyCode = currencyCode == null ? null : currencyCode.trim();
this.currencyCode = currencyCode;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.status
*
* @return the value of trial_balance.status
* @mbg.generated
*/
public String getStatus() {
public Boolean getStatus() {
return status;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.status
*
* @param status the value for trial_balance.status
* @mbg.generated
*/
public void setStatus(String status) {
this.status = status == null ? null : status.trim();
public void setStatus(Boolean status) {
this.status = status;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.category
*
* @return the value of trial_balance.category
* @mbg.generated
*/
public String getCategory() {
return category;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.category
*
* @param category the value for trial_balance.category
* @mbg.generated
*/
public void setCategory(String category) {
this.category = category == null ? null : category.trim();
this.category = category;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.account_category
*
* @return the value of trial_balance.account_category
* @mbg.generated
*/
public String getAccountCategory() {
return accountCategory;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.account_category
*
* @param accountCategory the value for trial_balance.account_category
* @mbg.generated
*/
public void setAccountCategory(String accountCategory) {
this.accountCategory = accountCategory == null ? null : accountCategory.trim();
this.accountCategory = accountCategory;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.acct_code1
*
* @return the value of trial_balance.acct_code1
* @mbg.generated
*/
public String getAcctCode1() {
return acctCode1;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.acct_code1
*
* @param acctCode1 the value for trial_balance.acct_code1
* @mbg.generated
*/
public void setAcctCode1(String acctCode1) {
this.acctCode1 = acctCode1 == null ? null : acctCode1.trim();
this.acctCode1 = acctCode1;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.acct_name1
*
* @return the value of trial_balance.acct_name1
* @mbg.generated
*/
public String getAcctName1() {
return acctName1;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.acct_name1
*
* @param acctName1 the value for trial_balance.acct_name1
* @mbg.generated
*/
public void setAcctName1(String acctName1) {
this.acctName1 = acctName1 == null ? null : acctName1.trim();
this.acctName1 = acctName1;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.acct_name2
*
* @return the value of trial_balance.acct_name2
* @mbg.generated
*/
public String getAcctName2() {
return acctName2;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.acct_name2
*
* @param acctName2 the value for trial_balance.acct_name2
* @mbg.generated
*/
public void setAcctName2(String acctName2) {
this.acctName2 = acctName2 == null ? null : acctName2.trim();
this.acctName2 = acctName2;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.acct_name3
*
* @return the value of trial_balance.acct_name3
* @mbg.generated
*/
public String getAcctName3() {
return acctName3;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.acct_name3
*
* @param acctName3 the value for trial_balance.acct_name3
* @mbg.generated
*/
public void setAcctName3(String acctName3) {
this.acctName3 = acctName3 == null ? null : acctName3.trim();
this.acctName3 = acctName3;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.segment1
*
* @return the value of trial_balance.segment1
* @mbg.generated
*/
public String getSegment1() {
return segment1;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.segment1
*
* @param segment1 the value for trial_balance.segment1
* @mbg.generated
*/
public void setSegment1(String segment1) {
this.segment1 = segment1 == null ? null : segment1.trim();
this.segment1 = segment1;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.segment2
*
* @return the value of trial_balance.segment2
* @mbg.generated
*/
public String getSegment2() {
return segment2;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.segment2
*
* @param segment2 the value for trial_balance.segment2
* @mbg.generated
*/
public void setSegment2(String segment2) {
this.segment2 = segment2 == null ? null : segment2.trim();
this.segment2 = segment2;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.segment3
*
* @return the value of trial_balance.segment3
* @mbg.generated
*/
public String getSegment3() {
return segment3;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.segment3
*
* @param segment3 the value for trial_balance.segment3
* @mbg.generated
*/
public void setSegment3(String segment3) {
this.segment3 = segment3 == null ? null : segment3.trim();
this.segment3 = segment3;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.segment4
*
* @return the value of trial_balance.segment4
* @mbg.generated
*/
public String getSegment4() {
return segment4;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.segment4
*
* @param segment4 the value for trial_balance.segment4
* @mbg.generated
*/
public void setSegment4(String segment4) {
this.segment4 = segment4 == null ? null : segment4.trim();
this.segment4 = segment4;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.segment5
*
* @return the value of trial_balance.segment5
* @mbg.generated
*/
public String getSegment5() {
return segment5;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.segment5
*
* @param segment5 the value for trial_balance.segment5
* @mbg.generated
*/
public void setSegment5(String segment5) {
this.segment5 = segment5 == null ? null : segment5.trim();
this.segment5 = segment5;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.segment6
*
* @return the value of trial_balance.segment6
* @mbg.generated
*/
public String getSegment6() {
return segment6;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.segment6
*
* @param segment6 the value for trial_balance.segment6
* @mbg.generated
*/
public void setSegment6(String segment6) {
this.segment6 = segment6 == null ? null : segment6.trim();
this.segment6 = segment6;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.segment7
*
* @return the value of trial_balance.segment7
* @mbg.generated
*/
public String getSegment7() {
return segment7;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.segment7
*
* @param segment7 the value for trial_balance.segment7
* @mbg.generated
*/
public void setSegment7(String segment7) {
this.segment7 = segment7 == null ? null : segment7.trim();
this.segment7 = segment7;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.segment8
*
* @return the value of trial_balance.segment8
* @mbg.generated
*/
public String getSegment8() {
return segment8;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.segment8
*
* @param segment8 the value for trial_balance.segment8
* @mbg.generated
*/
public void setSegment8(String segment8) {
this.segment8 = segment8 == null ? null : segment8.trim();
this.segment8 = segment8;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.segment9
*
* @return the value of trial_balance.segment9
* @mbg.generated
*/
public String getSegment9() {
return segment9;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.segment9
*
* @param segment9 the value for trial_balance.segment9
* @mbg.generated
*/
public void setSegment9(String segment9) {
this.segment9 = segment9 == null ? null : segment9.trim();
this.segment9 = segment9;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.segment10
*
* @return the value of trial_balance.segment10
* @mbg.generated
*/
public String getSegment10() {
return segment10;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.segment10
*
* @param segment10 the value for trial_balance.segment10
* @mbg.generated
*/
public void setSegment10(String segment10) {
this.segment10 = segment10 == null ? null : segment10.trim();
this.segment10 = segment10;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.segment1_name
*
* @return the value of trial_balance.segment1_name
* @mbg.generated
*/
public String getSegment1Name() {
return segment1Name;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.segment1_name
*
* @param segment1Name the value for trial_balance.segment1_name
* @mbg.generated
*/
public void setSegment1Name(String segment1Name) {
this.segment1Name = segment1Name == null ? null : segment1Name.trim();
this.segment1Name = segment1Name;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.segment2_name
*
* @return the value of trial_balance.segment2_name
* @mbg.generated
*/
public String getSegment2Name() {
return segment2Name;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.segment2_name
*
* @param segment2Name the value for trial_balance.segment2_name
* @mbg.generated
*/
public void setSegment2Name(String segment2Name) {
this.segment2Name = segment2Name == null ? null : segment2Name.trim();
this.segment2Name = segment2Name;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.segment3_name
*
* @return the value of trial_balance.segment3_name
* @mbg.generated
*/
public String getSegment3Name() {
return segment3Name;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.segment3_name
*
* @param segment3Name the value for trial_balance.segment3_name
* @mbg.generated
*/
public void setSegment3Name(String segment3Name) {
this.segment3Name = segment3Name == null ? null : segment3Name.trim();
this.segment3Name = segment3Name;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.segment4_name
*
* @return the value of trial_balance.segment4_name
* @mbg.generated
*/
public String getSegment4Name() {
return segment4Name;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.segment4_name
*
* @param segment4Name the value for trial_balance.segment4_name
* @mbg.generated
*/
public void setSegment4Name(String segment4Name) {
this.segment4Name = segment4Name == null ? null : segment4Name.trim();
this.segment4Name = segment4Name;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.segment5_name
*
* @return the value of trial_balance.segment5_name
* @mbg.generated
*/
public String getSegment5Name() {
return segment5Name;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.segment5_name
*
* @param segment5Name the value for trial_balance.segment5_name
* @mbg.generated
*/
public void setSegment5Name(String segment5Name) {
this.segment5Name = segment5Name == null ? null : segment5Name.trim();
this.segment5Name = segment5Name;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.segment6_name
*
* @return the value of trial_balance.segment6_name
* @mbg.generated
*/
public String getSegment6Name() {
return segment6Name;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.segment6_name
*
* @param segment6Name the value for trial_balance.segment6_name
* @mbg.generated
*/
public void setSegment6Name(String segment6Name) {
this.segment6Name = segment6Name == null ? null : segment6Name.trim();
this.segment6Name = segment6Name;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.segment7_name
*
* @return the value of trial_balance.segment7_name
* @mbg.generated
*/
public String getSegment7Name() {
return segment7Name;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.segment7_name
*
* @param segment7Name the value for trial_balance.segment7_name
* @mbg.generated
*/
public void setSegment7Name(String segment7Name) {
this.segment7Name = segment7Name == null ? null : segment7Name.trim();
this.segment7Name = segment7Name;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.segment8_name
*
* @return the value of trial_balance.segment8_name
* @mbg.generated
*/
public String getSegment8Name() {
return segment8Name;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.segment8_name
*
* @param segment8Name the value for trial_balance.segment8_name
* @mbg.generated
*/
public void setSegment8Name(String segment8Name) {
this.segment8Name = segment8Name == null ? null : segment8Name.trim();
this.segment8Name = segment8Name;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.segment9_name
*
* @return the value of trial_balance.segment9_name
* @mbg.generated
*/
public String getSegment9Name() {
return segment9Name;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.segment9_name
*
* @param segment9Name the value for trial_balance.segment9_name
* @mbg.generated
*/
public void setSegment9Name(String segment9Name) {
this.segment9Name = segment9Name == null ? null : segment9Name.trim();
this.segment9Name = segment9Name;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.segment10_name
*
* @return the value of trial_balance.segment10_name
* @mbg.generated
*/
public String getSegment10Name() {
return segment10Name;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.segment10_name
*
* @param segment10Name the value for trial_balance.segment10_name
* @mbg.generated
*/
public void setSegment10Name(String segment10Name) {
this.segment10Name = segment10Name == null ? null : segment10Name.trim();
this.segment10Name = segment10Name;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.beg_bal
*
* @return the value of trial_balance.beg_bal
* @mbg.generated
*/
public BigDecimal getBegBal() {
return begBal;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.beg_bal
*
* @param begBal the value for trial_balance.beg_bal
* @mbg.generated
*/
public void setBegBal(BigDecimal begBal) {
this.begBal = begBal;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.period_dr
*
* @return the value of trial_balance.period_dr
* @mbg.generated
*/
public BigDecimal getPeriodDr() {
return periodDr;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.period_dr
*
* @param periodDr the value for trial_balance.period_dr
* @mbg.generated
*/
public void setPeriodDr(BigDecimal periodDr) {
this.periodDr = periodDr;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.period_cr
*
* @return the value of trial_balance.period_cr
* @mbg.generated
*/
public BigDecimal getPeriodCr() {
return periodCr;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.period_cr
*
* @param periodCr the value for trial_balance.period_cr
* @mbg.generated
*/
public void setPeriodCr(BigDecimal periodCr) {
this.periodCr = periodCr;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.end_bal
*
* @return the value of trial_balance.end_bal
* @mbg.generated
*/
public BigDecimal getEndBal() {
return endBal;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.end_bal
*
* @param endBal the value for trial_balance.end_bal
* @mbg.generated
*/
public void setEndBal(BigDecimal endBal) {
this.endBal = endBal;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.qtd_dr
*
* @return the value of trial_balance.qtd_dr
* @mbg.generated
*/
public BigDecimal getQtdDr() {
return qtdDr;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.qtd_dr
*
* @param qtdDr the value for trial_balance.qtd_dr
* @mbg.generated
*/
public void setQtdDr(BigDecimal qtdDr) {
this.qtdDr = qtdDr;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.qtd_cr
*
* @return the value of trial_balance.qtd_cr
* @mbg.generated
*/
public BigDecimal getQtdCr() {
return qtdCr;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.qtd_cr
*
* @param qtdCr the value for trial_balance.qtd_cr
* @mbg.generated
*/
public void setQtdCr(BigDecimal qtdCr) {
this.qtdCr = qtdCr;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.ytd_dr
*
* @return the value of trial_balance.ytd_dr
* @mbg.generated
*/
public BigDecimal getYtdDr() {
return ytdDr;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.ytd_dr
*
* @param ytdDr the value for trial_balance.ytd_dr
* @mbg.generated
*/
public void setYtdDr(BigDecimal ytdDr) {
this.ytdDr = ytdDr;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.ytd_cr
*
* @return the value of trial_balance.ytd_cr
* @mbg.generated
*/
public BigDecimal getYtdCr() {
return ytdCr;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.ytd_cr
*
* @param ytdCr the value for trial_balance.ytd_cr
* @mbg.generated
*/
public void setYtdCr(BigDecimal ytdCr) {
this.ytdCr = ytdCr;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.beg_bal_beq
*
* @return the value of trial_balance.beg_bal_beq
* @mbg.generated
*/
public BigDecimal getBegBalBeq() {
return begBalBeq;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.beg_bal_beq
*
* @param begBalBeq the value for trial_balance.beg_bal_beq
* @mbg.generated
*/
public void setBegBalBeq(BigDecimal begBalBeq) {
this.begBalBeq = begBalBeq;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.period_dr_beq
*
* @return the value of trial_balance.period_dr_beq
* @mbg.generated
*/
public BigDecimal getPeriodDrBeq() {
return periodDrBeq;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.period_dr_beq
*
* @param periodDrBeq the value for trial_balance.period_dr_beq
* @mbg.generated
*/
public void setPeriodDrBeq(BigDecimal periodDrBeq) {
this.periodDrBeq = periodDrBeq;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.period_cr_beq
*
* @return the value of trial_balance.period_cr_beq
* @mbg.generated
*/
public BigDecimal getPeriodCrBeq() {
return periodCrBeq;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.period_cr_beq
*
* @param periodCrBeq the value for trial_balance.period_cr_beq
* @mbg.generated
*/
public void setPeriodCrBeq(BigDecimal periodCrBeq) {
this.periodCrBeq = periodCrBeq;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.end_bal_beq
*
* @return the value of trial_balance.end_bal_beq
* @mbg.generated
*/
public BigDecimal getEndBalBeq() {
return endBalBeq;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.end_bal_beq
*
* @param endBalBeq the value for trial_balance.end_bal_beq
* @mbg.generated
*/
public void setEndBalBeq(BigDecimal endBalBeq) {
this.endBalBeq = endBalBeq;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.qtd_dr_beq
*
* @return the value of trial_balance.qtd_dr_beq
* @mbg.generated
*/
public BigDecimal getQtdDrBeq() {
return qtdDrBeq;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.qtd_dr_beq
*
* @param qtdDrBeq the value for trial_balance.qtd_dr_beq
* @mbg.generated
*/
public void setQtdDrBeq(BigDecimal qtdDrBeq) {
this.qtdDrBeq = qtdDrBeq;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.qtd_cr_beq
*
* @return the value of trial_balance.qtd_cr_beq
* @mbg.generated
*/
public BigDecimal getQtdCrBeq() {
return qtdCrBeq;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.qtd_cr_beq
*
* @param qtdCrBeq the value for trial_balance.qtd_cr_beq
* @mbg.generated
*/
public void setQtdCrBeq(BigDecimal qtdCrBeq) {
this.qtdCrBeq = qtdCrBeq;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.ytd_dr_beq
*
* @return the value of trial_balance.ytd_dr_beq
* @mbg.generated
*/
public BigDecimal getYtdDrBeq() {
return ytdDrBeq;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.ytd_dr_beq
*
* @param ytdDrBeq the value for trial_balance.ytd_dr_beq
* @mbg.generated
*/
public void setYtdDrBeq(BigDecimal ytdDrBeq) {
this.ytdDrBeq = ytdDrBeq;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.ytd_cr_beq
*
* @return the value of trial_balance.ytd_cr_beq
* @mbg.generated
*/
public BigDecimal getYtdCrBeq() {
return ytdCrBeq;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.ytd_cr_beq
*
* @param ytdCrBeq the value for trial_balance.ytd_cr_beq
* @mbg.generated
*/
public void setYtdCrBeq(BigDecimal ytdCrBeq) {
this.ytdCrBeq = ytdCrBeq;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.create_time
*
* @return the value of trial_balance.create_time
* @mbg.generated
*/
public Date getCreateTime() {
return createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.create_time
*
* @param createTime the value for trial_balance.create_time
* @mbg.generated
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.update_time
*
* @return the value of trial_balance.update_time
* @mbg.generated
*/
public Date getUpdateTime() {
return updateTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.update_time
*
* @param updateTime the value for trial_balance.update_time
* @mbg.generated
*/
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
}
\ No newline at end of file
......@@ -7,7 +7,6 @@ import org.nutz.lang.Strings;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import pwc.taxtech.atms.common.ServiceException;
import pwc.taxtech.atms.common.util.BeanUtil;
import pwc.taxtech.atms.dao.*;
import pwc.taxtech.atms.dto.ebsdto.*;
......@@ -19,6 +18,8 @@ import pwc.taxtech.atms.vat.entity.*;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.Optional;
......@@ -42,11 +43,12 @@ public class EbsApiServiceImpl implements EbsApiService {
@Resource
private OrganizationMapper organizationMapper;
@Resource
private ProjectMapper projectMapper;
@Resource
private OrganizationEmployeeMapper organizationEmployeeMapper;
@Resource
private OrganizationExtraMapper organizationExtraMapper;
@Resource
private ProjectMapper projectMapper;
@Resource
private DistributedIdService distributedIdService;
@Resource
......@@ -214,76 +216,6 @@ public class EbsApiServiceImpl implements EbsApiService {
logger.debug("end queryRemoteServerThenUpdateOAR 汇率表,took [{}] ms", System.currentTimeMillis() - start);
}
@Override
public void queryRemoteServerThenUpdateOrg(List<OrganizationQueryDto> items) {
long start = System.currentTimeMillis();
logger.debug("start queryRemoteServerThenUpdateOrg 机构表");
//判断数据是否存在
if (items.size() == 0) {
logger.error("empty EBS Organization 机构表 response, skip processing");
return;
}
logger.debug("organization 汇率表:" + JSON.toJSONString(items));
for (OrganizationQueryDto a : items) {
try {
processORG(a);
} catch (Exception e) {
logger.error("break loop as catch:" + e, e);
}
}
logger.debug("end queryRemoteServerThenUpdateOrg 机构表,took [{}] ms", System.currentTimeMillis() - start);
}
private void processORG(OrganizationQueryDto a) {
// 机构信息
OrganizationExample organizationExample = new OrganizationExample();
organizationExample.createCriteria().andTaxPayerNumberEqualTo(a.getTaxPayerNumber());
List<Organization> orgs = organizationMapper.selectByExample(organizationExample);
Organization org = beanUtil.copyProperties(a,new Organization());
OrganizationExample orgExample = new OrganizationExample();
orgExample.createCriteria().andNameEqualTo(a.getParentName());
List<Organization> orgParents = organizationMapper.selectByExample(organizationExample);
String orgId = "";
if(orgParents.size()>0){
org.setParentId(orgParents.get(0).getId());
}
if(orgs.size()<1){
orgId = UUID.randomUUID().toString();
org.setId(orgId);
org.setApiUpdateFlag(true);
organizationMapper.insertSelective(org);
}else{
orgId = orgs.get(0).getId();
org.setId(orgs.get(0).getId());
org.setApiUpdateFlag(true);
org.setUpdateTime(new Date());
organizationMapper.updateByPrimaryKeySelective(org);
}
// 机构其他信息
OrganizationExtraExample organizationExtraExample = new OrganizationExtraExample();
organizationExtraExample.createCriteria().andOrganizationIdEqualTo(org.getId());
List<OrganizationExtra> orgExs = organizationExtraMapper.selectByExample(organizationExtraExample);
OrganizationExtra orgEx = beanUtil.copyProperties(a,new OrganizationExtra());
orgEx.setReportingCurrency(a.getCurrencyCode());
if(orgExs.size()<1){
orgEx.setId(distributedIdService.nextId());
orgEx.setOrganizationId(orgId);
organizationExtraMapper.insertSelective(orgEx);
}else{
orgEx.setId(orgExs.get(0).getId());
orgEx.setOrganizationId(orgId);
orgEx.setUpdateTime(new Date());
organizationExtraMapper.updateByExampleSelective(orgEx,organizationExtraExample);
}
// 雇员信息
OrganizationEmployee oe = new OrganizationEmployee();
oe.setId(distributedIdService.nextId());
oe.setOrganizationId(orgId);
oe.setEmployeesNumEnd(a.getStaffSize());
organizationEmployeeMapper.insertSelective(oe);
}
private void processJE(JournalEntryQueryDto item) {
JournalEntryExample journalEntryExample = new JournalEntryExample();
journalEntryExample.createCriteria().andHeaderIdEqualTo(item.getHeaderId()).andLineNumEqualTo(item.getLineNum());
......@@ -291,13 +223,13 @@ public class EbsApiServiceImpl implements EbsApiService {
//唯一则更新否则插入
JournalEntry journalEntry = new JournalEntry();
if (journalEntryList.size() == 1) {
logger.info("exit and update journalEntry headerId:{},lineNum:{}", item.getHeaderId(), item.getLineNum());
logger.debug("exit and update journalEntry headerId:{},lineNum:{}", item.getHeaderId(), item.getLineNum());
journalEntry = journalEntryList.get(0);
populateFieldsJE(item, journalEntry);
journalEntry.setId(journalEntryList.get(0).getId());
journalEntryMapper.updateByPrimaryKey(journalEntry);
} else {
logger.info("miss and insert journalEntry headerId:{},lineNum:{}", item.getHeaderId(), item.getLineNum());
logger.debug("miss and insert journalEntry headerId:{},lineNum:{}", item.getHeaderId(), item.getLineNum());
populateFieldsJE(item, journalEntry);
journalEntry.setId(distributedIdService.nextId());
journalEntry.setCreatedBy("");
......@@ -316,14 +248,14 @@ public class EbsApiServiceImpl implements EbsApiService {
List<TrialBalance> itemList = trialBalanceMapper.selectByExample(example);
//唯一则更新否则插入
TrialBalance result = new TrialBalance();
if (itemList.size() == 1) {
logger.info("exit and update TrialBalance OrganizationId:{},Period:{}", item.getOrganizationId(), item.getPeriod());
result = itemList.get(0);
populateFieldsTB(item, result);
result.setId(itemList.get(0).getId());
trialBalanceMapper.updateByPrimaryKey(result);
if (itemList.size() >0) {
logger.debug("exit and delete TrialBalance EntityCode:{},Period:{}", item.getSegment1(), item.getPeriod());
// result = itemList.get(0);
// populateFieldsTB(item, result);
// result.setId(itemList.get(0).getId());
trialBalanceMapper.deleteByExample(example);
} else {
logger.info("exit and update TrialBalance OrganizationId:{},Period:{}", item.getOrganizationId(), item.getPeriod());
logger.debug("exit and update TrialBalance EntityCode:{},Period:{}", item.getSegment1(), item.getPeriod());
populateFieldsTB(item, result);
result.setId(distributedIdService.nextId());
result.setCreateBy("");
......@@ -342,14 +274,14 @@ public class EbsApiServiceImpl implements EbsApiService {
List<CashFlow> itemList = cashFlowMapper.selectByExample(example);
//唯一则更新否则插入
CashFlow result = new CashFlow();
if (itemList.size() == 1) {
logger.info("exit and update CashFlow OrganizationId:{},Period:{}", item.getOrganizationId(), item.getPeriod());
result = itemList.get(0);
populateFieldsCF(item, result);
result.setId(itemList.get(0).getId());
cashFlowMapper.updateByPrimaryKey(result);
if (itemList.size() >0) {
logger.debug("exit and delete CashFlow EntityCode:{},Period:{}", item.getEntityCode(), item.getPeriod());
// result = itemList.get(0);
// populateFieldsCF(item, result);
// result.setId(itemList.get(0).getId());
cashFlowMapper.deleteByExample(example);
} else {
logger.info("exit and update CashFlow OrganizationId:{},Period:{}", item.getOrganizationId(), item.getPeriod());
logger.debug("exit and update CashFlow EntityCode:{},Period:{}", item.getEntityCode(), item.getPeriod());
populateFieldsCF(item, result);
result.setId(distributedIdService.nextId());
result.setCreateTime(new Date());
......@@ -367,14 +299,14 @@ public class EbsApiServiceImpl implements EbsApiService {
List<BalanceSheet> itemList = balanceSheetMapper.selectByExample(example);
//唯一则更新否则插入
BalanceSheet result = new BalanceSheet();
if (itemList.size() == 1) {
logger.info("exit and update BalanceSheet OrganizationId:{},Period:{}", item.getOrganizationId(), item.getPeriod());
result = itemList.get(0);
populateFieldsBS(item, result);
result.setId(itemList.get(0).getId());
balanceSheetMapper.updateByPrimaryKey(result);
if (itemList.size() >0) {
logger.debug("exit and delete BalanceSheet EntityCode:{},Period:{}", item.getEntityCode(), item.getPeriod());
// result = itemList.get(0);
// populateFieldsBS(item, result);
// result.setId(itemList.get(0).getId());
balanceSheetMapper.deleteByExample(example);
} else {
logger.info("exit and update BalanceSheet OrganizationId:{},Period:{}", item.getOrganizationId(), item.getPeriod());
logger.debug("exit and update BalanceSheet EntityCode:{},Period:{}", item.getEntityCode(), item.getPeriod());
populateFieldsBS(item, result);
result.setId(distributedIdService.nextId());
result.setCreateBy("");
......@@ -393,14 +325,14 @@ public class EbsApiServiceImpl implements EbsApiService {
List<BalanceSheet> itemList = balanceSheetMapper.selectByExample(example);
//唯一则更新否则插入
BalanceSheet result = new BalanceSheet();
if (itemList.size() == 1) {
logger.info("exit and update BalanceSheetPrc OrganizationId:{},Period:{}", item.getOrganizationId(), item.getPeriod());
result = itemList.get(0);
populateFieldsBSprc(item, result);
result.setId(itemList.get(0).getId());
if (itemList.size() >0) {
logger.debug("exit and delete BalanceSheetPrc EntityCode:{},Period:{}", item.getEntityCode(), item.getPeriod());
// result = itemList.get(0);
// populateFieldsBSprc(item, result);
// result.setId(itemList.get(0).getId());
balanceSheetMapper.updateByPrimaryKey(result);
} else {
logger.info("exit and update BalanceSheetPrc OrganizationId:{},Period:{}", item.getOrganizationId(), item.getPeriod());
logger.debug("exit and update BalanceSheetPrc EntityCode:{},Period:{}", item.getEntityCode(), item.getPeriod());
populateFieldsBSprc(item, result);
result.setId(distributedIdService.nextId());
result.setCreateBy("");
......@@ -418,14 +350,14 @@ public class EbsApiServiceImpl implements EbsApiService {
List<ProfitLossStatement> itemList = profitLossStatementMapper.selectByExample(example);
//唯一则更新否则插入
ProfitLossStatement result = new ProfitLossStatement();
if (itemList.size() == 1) {
logger.info("exit and update ProfitLossStatement OrganizationId:{},Period:{}", item.getOrganizationId(), item.getPeriod());
result = itemList.get(0);
populateFieldsPLS(item, result);
result.setId(itemList.get(0).getId());
profitLossStatementMapper.updateByPrimaryKey(result);
if (itemList.size() >0) {
logger.debug("exit and delete ProfitLossStatement EntityCode:{},Period:{}", item.getEntityCode(), item.getPeriod());
// result = itemList.get(0);
// populateFieldsPLS(item, result);
// result.setId(itemList.get(0).getId());
profitLossStatementMapper.deleteByExample(example);
} else {
logger.info("exit and update ProfitLossStatement OrganizationId:{},Period:{}", item.getOrganizationId(), item.getPeriod());
logger.debug("exit and update ProfitLossStatement EntityCode:{},Period:{}", item.getEntityCode(), item.getPeriod());
populateFieldsPLS(item, result);
result.setId(distributedIdService.nextId());
result.setCreateTime(new Date());
......@@ -443,14 +375,14 @@ public class EbsApiServiceImpl implements EbsApiService {
List<ProfitLossStatement> itemList = profitLossStatementMapper.selectByExample(example);
//唯一则更新否则插入
ProfitLossStatement result = new ProfitLossStatement();
if (itemList.size() == 1) {
logger.info("exit and update ProfitLossStatementPrc OrganizationId:{},Period:{}", item.getOrganizationId(), item.getPeriod());
result = itemList.get(0);
populateFieldsPLSprc(item, result);
result.setId(itemList.get(0).getId());
profitLossStatementMapper.updateByPrimaryKey(result);
if (itemList.size() >0) {
logger.debug("exit and delete ProfitLossStatementPrc EntityCode:{},Period:{}", item.getEntityCode(), item.getPeriod());
// result = itemList.get(0);
// populateFieldsPLSprc(item, result);
// result.setId(itemList.get(0).getId());
profitLossStatementMapper.deleteByExample(example);
} else {
logger.info("exit and update ProfitLossStatementPrc OrganizationId:{},Period:{}", item.getOrganizationId(), item.getPeriod());
logger.debug("exit and update ProfitLossStatementPrc EntityCode:{},Period:{}", item.getEntityCode(), item.getPeriod());
populateFieldsPLSprc(item, result);
result.setId(distributedIdService.nextId());
result.setCreateTime(new Date());
......@@ -469,14 +401,14 @@ public class EbsApiServiceImpl implements EbsApiService {
List<OrganizationAccountingRate> itemList = organizationAccountingRateMapper.selectByExample(example);
//唯一则更新否则插入
OrganizationAccountingRate result = new OrganizationAccountingRate();
if (itemList.size() == 1) {
logger.info("exit and update OrganizationAccountingRate OrganizationId:{},Period:{}", item.getOrganizationId(), item.getPeriod());
result = itemList.get(0);
populateFieldsOAR(item, result);
result.setId(itemList.get(0).getId());
organizationAccountingRateMapper.updateByPrimaryKey(result);
if (itemList.size() >0) {
logger.debug("exit and delete OrganizationAccountingRate Period:{}", item.getPeriod());
// result = itemList.get(0);
// populateFieldsOAR(item, result);
// result.setId(itemList.get(0).getId());
organizationAccountingRateMapper.deleteByExample(example);
} else {
logger.info("exit and update OrganizationAccountingRate OrganizationId:{},Period:{}", item.getOrganizationId(), item.getPeriod());
logger.debug("exit and update OrganizationAccountingRate Period:{}", item.getPeriod());
populateFieldsOAR(item, result);
result.setId(distributedIdService.nextId());
result.setCreateTime(new Date());
......@@ -490,18 +422,18 @@ public class EbsApiServiceImpl implements EbsApiService {
beanUtil.copyProperties(item, result);
result.setOrganizationId(getOrganizationByEbsCode(item.getSegment1()).getId());
result.setProjectId(getProjectByEbsCodeAndPeriod(item.getSegment1(),item.getPeriod()).getId());
result.setDate(item.getDate());
result.setDate(ebsDateFormat(item.getDate()));
result.setSource(trimLimit(item.getSource(), 20));
result.setLedgerId(trimLimit(item.getLedgerId(), 128));
result.setLedgerName(trimLimit(item.getLedgerName(), 300));
result.setCurrencyCode(trimLimit(item.getCurrencyCode(), 20));
result.setStatus(trimLimit(item.getStatus(), 10));
result.setStatus(item.getStatus()?"true":"false");
result.setHeaderId(trimLimit(item.getHeaderId(), 128));
result.setLineNum(trimLimit(item.getLineNum(), 300));
result.setApprovalStatus(trimLimit(item.getApprovalStatus(), 20));
result.setPostedStatus(trimLimit(item.getPostedStatus(), 20));
result.setPeriod(StringUtils.isBlank(item.getPeriod().toString()) ? 0 : item.getPeriod());
result.setAccountingDate(item.getAccountingDate());
result.setAccountingDate(ebsDateFormat(item.getAccountingDate()));
result.setJournalSource(trimLimit(item.getJournalSource(), 20));
result.setCategory(trimLimit(item.getCategory(), 50));
result.setName(trimLimit(item.getName(), 300));
......@@ -543,7 +475,7 @@ public class EbsApiServiceImpl implements EbsApiService {
.orElse(BigDecimal.ZERO));
result.setCfItem(trimLimit(item.getCfItem(), 50));
result.setAttribute1(trimLimit(item.getAttribute1(), 300));
result.setAttribute2(item.getAttribute2());
result.setAttribute2(ebsDateFormat(item.getAttribute2()));
result.setAttribute3(trimLimit(item.getAttribute3(), 300));
result.setAttribute4(trimLimit(item.getAttribute4(), 300));
result.setAttribute5(trimLimit(item.getAttribute5(), 300));
......@@ -567,12 +499,12 @@ public class EbsApiServiceImpl implements EbsApiService {
beanUtil.copyProperties(item, result);
result.setOrganizationId(getOrganizationByEbsCode(item.getSegment1()).getId());
result.setProjectId(getProjectByEbsCodeAndPeriod(item.getSegment1(),item.getPeriod()).getId());
result.setDate(item.getDate());
result.setDate(ebsDateFormat(item.getDate()));
result.setSource(trimLimit(item.getSource(), 20));
result.setLedgerId(trimLimit(item.getLedgerId(), 128));
result.setLedgerName(trimLimit(item.getLedgerName(), 300));
result.setCurrencyCode(trimLimit(item.getCurrencyCode(), 20));
result.setStatus(trimLimit(item.getStatus(), 20));
result.setStatus(item.getStatus()?"true":"false");
result.setCategory(trimLimit(item.getCategory(), 10));
result.setAccountCategory(trimLimit(item.getAccountCategory(), 20));
result.setAcctCode1(trimLimit(item.getAcctCode1(), 300));
......@@ -655,11 +587,10 @@ public class EbsApiServiceImpl implements EbsApiService {
beanUtil.copyProperties(item, result);
result.setOrganizationId(getOrganizationByEbsCode(item.getEntityCode()).getId());
result.setProjectId(getProjectByEbsCodeAndPeriod(item.getEntityCode(),item.getPeriod()).getId());
result.setDate(item.getDate());
result.setDate(ebsDateFormat(item.getDate()));
result.setSource(trimLimit(item.getSource(), 128));
result.setTmsPeriod(item.getTmsPeriod());
result.setPeriod(item.getPeriod());
result.setStatus(trimLimit(item.getStatus(), 10));
result.setStatus(item.getStatus()?"true":"false");
result.setLedgerId(trimLimit(item.getLedgerId(), 128));
result.setLedgerName(trimLimit(item.getLedgerName(), 300));
result.setLedgerCurrencyCode(trimLimit(item.getLedgerCurrencyCode(), 128));
......@@ -683,11 +614,10 @@ public class EbsApiServiceImpl implements EbsApiService {
beanUtil.copyProperties(item, result);
result.setOrganizationId(getOrganizationByEbsCode(item.getEntityCode()).getId());
result.setProjectId(getProjectByEbsCodeAndPeriod(item.getEntityCode(),item.getPeriod()).getId());
result.setDate(item.getDate());
result.setDate(ebsDateFormat(item.getDate()));
result.setSource(trimLimit(item.getSource(), 20));
result.setTmsPeriod(item.getTmsPeriod());
result.setPeriod(item.getPeriod());
result.setStatus(trimLimit(item.getStatus(), 10));
result.setStatus(item.getStatus()?"true":"false");
result.setLedgerId(trimLimit(item.getLedgerId(), 128));
result.setLedgerName(trimLimit(item.getLedgerName(), 300));
result.setLedgerCurrencyCode(trimLimit(item.getLedgerCurrencyCode(), 20));
......@@ -702,7 +632,6 @@ public class EbsApiServiceImpl implements EbsApiService {
result.setBegBal(Optional.ofNullable(item.getBegBal())
.map(x -> x.setScale(4, RoundingMode.HALF_UP))
.orElse(BigDecimal.ZERO));
result.setPrcFlag(item.getPrcFlag());
result.setUpdateBy("");
result.setUpdateTime(new Date());
}
......@@ -711,11 +640,10 @@ public class EbsApiServiceImpl implements EbsApiService {
beanUtil.copyProperties(item, result);
result.setOrganizationId(getOrganizationByEbsCode(item.getEntityCode()).getId());
result.setProjectId(getProjectByEbsCodeAndPeriod(item.getEntityCode(),item.getPeriod()).getId());
result.setDate(item.getDate());
result.setDate(ebsDateFormat(item.getDate()));
result.setSource(trimLimit(item.getSource(), 20));
result.setTmsPeriod(item.getTmsPeriod());
result.setPeriod(item.getPeriod());
result.setStatus(trimLimit(item.getStatus(), 10));
result.setStatus(item.getStatus()?"true":"false");
result.setLedgerId(trimLimit(item.getLedgerId(), 128));
result.setLedgerName(trimLimit(item.getLedgerName(), 300));
result.setLedgerCurrencyCode(trimLimit(item.getLedgerCurrencyCode(), 20));
......@@ -730,7 +658,6 @@ public class EbsApiServiceImpl implements EbsApiService {
result.setBegBal(Optional.ofNullable(item.getBegBal())
.map(x -> x.setScale(4, RoundingMode.HALF_UP))
.orElse(BigDecimal.ZERO));
result.setPrcFlag(item.getPrcFlag());
result.setUpdateBy("");
result.setUpdateTime(new Date());
}
......@@ -739,11 +666,10 @@ public class EbsApiServiceImpl implements EbsApiService {
beanUtil.copyProperties(item, result);
result.setOrganizationId(getOrganizationByEbsCode(item.getEntityCode()).getId());
result.setProjectId(getProjectByEbsCodeAndPeriod(item.getEntityCode(),item.getPeriod()).getId());
result.setDate(item.getDate());
result.setDate(ebsDateFormat(item.getDate()));
result.setSource(trimLimit(item.getSource(), 20));
result.setTmsPeriod(item.getTmsPeriod());
result.setPeriod(item.getPeriod());
result.setStatus(trimLimit(item.getStatus(), 10));
result.setStatus(item.getStatus()?"true":"false");
result.setLedgerId(trimLimit(item.getLedgerId(), 128));
result.setLedgerName(trimLimit(item.getLedgerName(), 300));
result.setLedgerCurrencyCode(trimLimit(item.getLedgerCurrencyCode(), 20));
......@@ -758,7 +684,6 @@ public class EbsApiServiceImpl implements EbsApiService {
result.setYtdAmt(Optional.ofNullable(item.getYtdAmt())
.map(x -> x.setScale(4, RoundingMode.HALF_UP))
.orElse(BigDecimal.ZERO));
result.setPrcFlag(item.getPrcFlag());
result.setUpdateTime(new Date());
result.setUpdateBy("");
}
......@@ -767,11 +692,10 @@ public class EbsApiServiceImpl implements EbsApiService {
beanUtil.copyProperties(item, result);
result.setOrganizationId(getOrganizationByEbsCode(item.getEntityCode()).getId());
result.setProjectId(getProjectByEbsCodeAndPeriod(item.getEntityCode(),item.getPeriod()).getId());
result.setDate(item.getDate());
result.setDate(ebsDateFormat(item.getDate()));
result.setSource(trimLimit(item.getSource(), 20));
result.setTmsPeriod(item.getTmsPeriod());
result.setPeriod(item.getPeriod());
result.setStatus(trimLimit(item.getStatus(), 10));
result.setStatus(item.getStatus()?"true":"false");
result.setLedgerId(trimLimit(item.getLedgerId(), 128));
result.setLedgerName(trimLimit(item.getLedgerName(), 300));
result.setLedgerCurrencyCode(trimLimit(item.getLedgerCurrencyCode(), 20));
......@@ -786,22 +710,108 @@ public class EbsApiServiceImpl implements EbsApiService {
result.setYtdAmt(Optional.ofNullable(item.getYtdAmt())
.map(x -> x.setScale(4, RoundingMode.HALF_UP))
.orElse(BigDecimal.ZERO));
result.setPrcFlag(item.getPrcFlag());
result.setUpdateTime(new Date());
result.setUpdateBy("");
}
private void populateFieldsOAR(OrganizationAccountingRateQueryDto item, OrganizationAccountingRate result) {
beanUtil.copyProperties(item, result);
result.setOrganizationId("");
result.setPeriod(item.getPeriod());
result.setConvertionType(trimLimit(item.getConvertionType(), 100));
result.setCurrencyFrom(trimLimit(item.getCurrencyFrom(), 10));
result.setCurrencyTo(trimLimit(item.getCurrencyTo(), 10));
result.setRate(item.getRate());
result.setEndDate(ebsDateFormat(item.getInvalidDate()));
result.setRate(item.getRate().floatValue());
result.setUpdateBy("");
result.setUpdateTime(new Date());
}
@Override
public void queryRemoteServerThenUpdateOrg(List<OrganizationQueryDto> items) {
long start = System.currentTimeMillis();
logger.debug("start queryRemoteServerThenUpdateOrg 机构表");
//判断数据是否存在
if (items.size() == 0) {
logger.error("empty EBS Organization 机构表 response, skip processing");
return;
}
logger.debug("organization 汇率表:" + JSON.toJSONString(items));
for (OrganizationQueryDto a : items) {
try {
processORG(a);
} catch (Exception e) {
logger.error("break loop as catch:" + e, e);
}
}
logger.debug("end queryRemoteServerThenUpdateOrg 机构表,took [{}] ms", System.currentTimeMillis() - start);
}
private void processORG(OrganizationQueryDto a) {
// 机构信息
OrganizationExample organizationExample = new OrganizationExample();
organizationExample.createCriteria().andTaxPayerNumberEqualTo(a.getTaxPayerNumber());
List<Organization> orgs = organizationMapper.selectByExample(organizationExample);
Organization org = beanUtil.copyProperties(a,new Organization());
OrganizationExample orgExample = new OrganizationExample();
orgExample.createCriteria().andNameEqualTo(a.getParentName());
List<Organization> orgParents = organizationMapper.selectByExample(organizationExample);
String orgId = "";
if(orgParents.size()>0){
org.setParentId(orgParents.get(0).getId());
}
if(orgs.size()<1){
orgId = UUID.randomUUID().toString();
org.setId(orgId);
org.setApiUpdateFlag(true);
organizationMapper.insertSelective(org);
}else{
orgId = orgs.get(0).getId();
org.setId(orgs.get(0).getId());
org.setApiUpdateFlag(true);
org.setUpdateTime(new Date());
organizationMapper.updateByPrimaryKeySelective(org);
}
// 机构其他信息
OrganizationExtraExample organizationExtraExample = new OrganizationExtraExample();
organizationExtraExample.createCriteria().andOrganizationIdEqualTo(org.getId());
List<OrganizationExtra> orgExs = organizationExtraMapper.selectByExample(organizationExtraExample);
OrganizationExtra orgEx = beanUtil.copyProperties(a,new OrganizationExtra());
orgEx.setReportingCurrency(a.getCurrencyCode());
if(orgExs.size()<1){
orgEx.setId(distributedIdService.nextId());
orgEx.setOrganizationId(orgId);
organizationExtraMapper.insertSelective(orgEx);
}else{
orgEx.setId(orgExs.get(0).getId());
orgEx.setOrganizationId(orgId);
orgEx.setUpdateTime(new Date());
organizationExtraMapper.updateByExampleSelective(orgEx,organizationExtraExample);
}
// 雇员信息
OrganizationEmployee oe = new OrganizationEmployee();
oe.setId(distributedIdService.nextId());
oe.setOrganizationId(orgId);
oe.setEmployeesNumEnd(a.getStaffSize());
organizationEmployeeMapper.insertSelective(oe);
}
/**
* 获取格式化时间
* 返回时间类型 yyyy-MM-dd HH:mm:ss
* @param date
* @return
*/
private Date ebsDateFormat(String date){
SimpleDateFormat simpleDateFormat=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
if(date!=null){
try {
Date dateFm=simpleDateFormat.parse(date);
return dateFm;
}catch (ParseException px){
px.printStackTrace();
}
}
return new Date();
}
/**对拓展字段进行查询赋值
* 根据Ebs返回的数据机构编码查询到具体机构
......@@ -827,7 +837,7 @@ public class EbsApiServiceImpl implements EbsApiService {
*/
private Project getProjectByEbsCodeAndPeriod(String code,Integer period){
ProjectExample example=new ProjectExample();
example.createCriteria().andCodeEqualTo(code).andYearEqualTo(period);
example.createCriteria().andCodeEqualTo(code).andYearEqualTo(period/100);
List<Project> list=projectMapper.selectByExample(example);
if(list.size()>0){
return list.get(0);
......@@ -837,6 +847,9 @@ public class EbsApiServiceImpl implements EbsApiService {
/**
* 期间格式转换yyyy13均改为yyyy12
* 返回的数据与用户在税务系统选择的期间需一致,
* 但用户选择12期时请求的数据应为YYYY-12和YYYY-13即12期和13期的数据,
* EBS返回的数据可以包含YYYY-12和YYYY-13
* @param period
* @return
*/
......
package pwc.taxtech.atms.service.impl;
import com.alibaba.fastjson.JSON;
import com.google.common.collect.Lists;
import org.junit.Test;
import pwc.taxtech.atms.CommonIT;
import pwc.taxtech.atms.dto.ebsdto.*;
......@@ -19,26 +18,61 @@ public class EbsApiServiceImplTest extends CommonIT {
@Resource
private DistributedIdService distributedIdService;
@Test
public void testApi(){
queryRemoteServerThenUpdateJE();
queryRemoteServerThenUpdateTB();
queryRemoteServerThenUpdateCF();
queryRemoteServerThenUpdateBS();
queryRemoteServerThenUpdateBSprc();
queryRemoteServerThenUpdatePL();
queryRemoteServerThenUpdatePLprc();
queryRemoteServerThenUpdateOAR();
}
@Test
public void queryRemoteServerThenUpdateOrg(){
List<OrganizationQueryDto> items = Lists.newArrayList();
for(int i=0;i<2;i++){
OrganizationQueryDto dto = new OrganizationQueryDto();
dto.setTaxPayerNumber("sadsafsdf3232");
dto.setCode("ceshi0009");
dto.setName("测试成功");
dto.setEnterpriseAccountCode("test");
dto.setLegalPersonName("周杰伦");
dto.setRegistrationCapital("100万");
dto.setPaidInCapital("200万");
dto.setLegalPersonPhoneNumber("1239512312");
dto.setLegalPersonLandlineNum("1234678");
dto.setLegalPersonEmailAddress("didi@qq.com");
dto.setRegFinancialOfficerName("周杰伦");
dto.setRegFinancialOfficerPhoneNum("123141231");
dto.setRegFinancialOfficerLandlineNum("123213124");
dto.setRegFinancialOfficerEmailAddress("滴滴大厦");
dto.setCurrencyCode("CNY");
dto.setRegisterAddress("滴滴大厦");
dto.setParentName("滴滴测试");
dto.setStaffSize(12345);
items.add(dto);
}
String res=JSON.toJSONString(items);
System.out.println(res);
// ebsApiService.queryRemoteServerThenUpdateOrg(items);
}
@Test
public void queryRemoteServerThenUpdateJE(){
List<JournalEntryQueryDto> items=new ArrayList<>();
for(int i=0;i<10;i++){
JournalEntryQueryDto journalEntryQueryDto =new JournalEntryQueryDto();
journalEntryQueryDto.setId(distributedIdService.nextId());
journalEntryQueryDto.setOrganizationId("44250A49-F3EF-4A1E-89E0-165BB89A94D0");
journalEntryQueryDto.setProjectId("44250A49-F3EF-4A1E-89E0-165BB89A94D0");
journalEntryQueryDto.setDate(new Date());
journalEntryQueryDto.setSource("来源");
journalEntryQueryDto.setLedgerId("账套ID");
journalEntryQueryDto.setLedgerName("账套名称");
journalEntryQueryDto.setCurrencyCode("账套币种");
journalEntryQueryDto.setStatus("关账标识");
journalEntryQueryDto.setHeaderId("日记账头ID");
journalEntryQueryDto.setLineNum("日记账行号");
journalEntryQueryDto.setApprovalStatus("审批状态");
journalEntryQueryDto.setPostedStatus("过账");
journalEntryQueryDto.setPeriod(20180102+i);
journalEntryQueryDto.setAccountingDate(new Date());
journalEntryQueryDto.setJournalSource("日记账来源");
journalEntryQueryDto.setCategory("日记账类别");
journalEntryQueryDto.setName("日记账名称");
......@@ -72,7 +106,6 @@ public class EbsApiServiceImplTest extends CommonIT {
journalEntryQueryDto.setEnteredCr(new BigDecimal("120.122"));
journalEntryQueryDto.setCfItem("现金流量表项");
journalEntryQueryDto.setAttribute1("城市");
journalEntryQueryDto.setAttribute2(new Date());
journalEntryQueryDto.setAttribute3("对方银行账号");
journalEntryQueryDto.setAttribute4("银行流水号");
journalEntryQueryDto.setAttribute5("供应商编号");
......@@ -87,6 +120,8 @@ public class EbsApiServiceImplTest extends CommonIT {
journalEntryQueryDto.setAttribute14("成本中心部门描述4");
journalEntryQueryDto.setAttribute15("成本中心部门描述5");
journalEntryQueryDto.setAttribute16("成本中心部门描述6");
journalEntryQueryDto.setCreatedBy("pwcCreat");
journalEntryQueryDto.setLateUpdatedBy("pwcUpate");
items.add(journalEntryQueryDto);
}
String a=JSON.toJSONString(items);
......@@ -94,48 +129,18 @@ public class EbsApiServiceImplTest extends CommonIT {
//ebsApiService.queryRemoteServerThenUpdateJE(items);
}
@Test
public void queryRemoteServerThenUpdateOrg(){
List<OrganizationQueryDto> items = Lists.newArrayList();
for(int i=0;i<2;i++){
OrganizationQueryDto dto = new OrganizationQueryDto();
dto.setTaxPayerNumber("sadsafsdf3232");
dto.setCode("ceshi0009");
dto.setName("测试成功");
dto.setEnterpriseAccountCode("test");
dto.setLegalPersonName("周杰伦");
dto.setRegistrationCapital("100万");
dto.setPaidInCapital("200万");
dto.setLegalPersonPhoneNumber("1239512312");
dto.setLegalPersonLandlineNum("1234678");
dto.setLegalPersonEmailAddress("didi@qq.com");
dto.setRegFinancialOfficerName("周杰伦");
dto.setRegFinancialOfficerPhoneNum("123141231");
dto.setRegFinancialOfficerLandlineNum("123213124");
dto.setRegFinancialOfficerEmailAddress("滴滴大厦");
dto.setCurrencyCode("CNY");
dto.setRegisterAddress("滴滴大厦");
dto.setParentName("滴滴测试");
dto.setStaffSize(12345);
items.add(dto);
}
String res=JSON.toJSONString(items);
System.out.println(res);
// ebsApiService.queryRemoteServerThenUpdateOrg(items);
}
@Test
public void queryRemoteServerThenUpdateTB() {
List<TrialBalanceQueryDto> items=new ArrayList<>();
for(int i=0;i<2;i++) {
TrialBalanceQueryDto result = new TrialBalanceQueryDto();
result.setDate(new Date());
result.setDate("2019-03-04 19:14:17");
result.setStatus(false);
result.setSource("来源");
result.setPeriod(201803);
result.setLedgerId("账套ID");
result.setLedgerName("账套名称");
result.setCurrencyCode("账套币种");
result.setStatus("关账标识");
result.setCategory("主体性质");
result.setAccountCategory("科目性质");
result.setAcctCode1("一级科目代码");
......@@ -190,10 +195,10 @@ public class EbsApiServiceImplTest extends CommonIT {
List<CashFlowQueryDto> items=new ArrayList<>();
for(int i=0;i<2;i++) {
CashFlowQueryDto result = new CashFlowQueryDto();
result.setDate(new Date());
result.setDate("2019-03-04 19:14:17");
result.setSource("来源");
result.setPeriod(201803);
result.setStatus("关账标识");
result.setStatus(true);
result.setLedgerId("账套ID");
result.setLedgerName("账套名称");
result.setLedgerCurrencyCode("账套币种");
......@@ -217,15 +222,20 @@ public class EbsApiServiceImplTest extends CommonIT {
List<BalanceSheetQueryDto> items=new ArrayList<>();
for(int i=0;i<2;i++) {
BalanceSheetQueryDto result = new BalanceSheetQueryDto();
result.setDate(new Date());
result.setDate("2019-03-04 19:14:17");
result.setPeriod(201812);
result.setStatus("关账标识");
result.setStatus(false);
result.setLedgerCurrencyCode("账套币种");
result.setEntityCode("机构编码");
result.setEntityName("机构名称");
result.setItemName("项目名称");
result.setEndBal(new BigDecimal("1220.2980"));
result.setBegBal(new BigDecimal("1220.2980"));
result.setSource("来源");
result.setLedgerId("账套ID");
result.setLedgerName("账套名称");
result.setCategory("主体性质");
result.setFrequency("频度");
items.add(result);
}
String a=JSON.toJSONString(items);
......@@ -238,10 +248,10 @@ public class EbsApiServiceImplTest extends CommonIT {
List<BalanceSheetPrcQueryDto> items=new ArrayList<>();
for(int i=0;i<2;i++) {
BalanceSheetPrcQueryDto result = new BalanceSheetPrcQueryDto();
result.setDate(new Date());
result.setDate("2019-03-04 19:14:17");
result.setStatus(false);
result.setSource("来源");
result.setPeriod(201804);
result.setStatus("关账标识");
result.setLedgerId("账套ID");
result.setLedgerName("账套名称");
result.setLedgerCurrencyCode("账套币种");
......@@ -263,10 +273,10 @@ public class EbsApiServiceImplTest extends CommonIT {
List<ProfitLossStatementQueryDto> items=new ArrayList<>();
for(int i=0;i<2;i++) {
ProfitLossStatementQueryDto result = new ProfitLossStatementQueryDto();
result.setDate(new Date());
result.setDate("2019-03-04 19:14:17");
result.setStatus(false);
result.setSource("来源");
result.setPeriod(201904);
result.setStatus("关账标识");
result.setLedgerId("账套ID");
result.setLedgerName("账套名称");
result.setLedgerCurrencyCode("账套币种");
......@@ -288,10 +298,10 @@ public class EbsApiServiceImplTest extends CommonIT {
List<ProfitLossStatementPrcQueryDto> items=new ArrayList<>();
for(int i=0;i<2;i++) {
ProfitLossStatementPrcQueryDto result = new ProfitLossStatementPrcQueryDto();
result.setDate(new Date());
result.setDate("2019-03-04 19:14:17");
result.setStatus(false);
result.setSource("来源");
result.setPeriod(201905);
result.setStatus("关账标识");
result.setPeriod(201904);
result.setLedgerId("账套ID");
result.setLedgerName("账套名称");
result.setLedgerCurrencyCode("账套币种");
......@@ -317,9 +327,6 @@ public class EbsApiServiceImplTest extends CommonIT {
result.setConvertionType("汇率类型名称");
result.setCurrencyFrom("原币种");
result.setCurrencyTo("目标币种");
result.setStartDate(new Date());
result.setEndDate(new Date());
result.setRate(3.4f);
items.add(result);
}
String a=JSON.toJSONString(items);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment