Commit e6509676 authored by Ken you's avatar Ken you

add vat cash flow table and web ---Ken

parent efa8a3e2
package pwc.taxtech.atms.controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import pwc.taxtech.atms.dpo.PagingDto;
import pwc.taxtech.atms.dto.ApiResultDto;
import pwc.taxtech.atms.dto.PagingResultDto;
......
......@@ -5,14 +5,9 @@ import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import pwc.taxtech.atms.dto.vatdto.BalanceSheetParam;
import pwc.taxtech.atms.dto.vatdto.JournalEntryParam;
import pwc.taxtech.atms.dto.vatdto.ProfitLossStatementParam;
import pwc.taxtech.atms.dto.vatdto.dd.BalanceSheetDto;
import pwc.taxtech.atms.dto.vatdto.dd.JournalEntryDto;
import pwc.taxtech.atms.dto.vatdto.dd.ProfitLossStatementDto;
import pwc.taxtech.atms.dto.vatdto.*;
import pwc.taxtech.atms.dto.vatdto.dd.*;
import pwc.taxtech.atms.dto.vatdto.dd.TrialBalanceDto;
import pwc.taxtech.atms.dto.vatdto.TrialBalanceParam;
import pwc.taxtech.atms.service.impl.DataPreviewSerivceImpl;
import javax.servlet.http.HttpServletResponse;
......@@ -48,6 +43,12 @@ public class DataPreviewController extends BaseController {
return dataPreviewSerivceImpl.getJEDataForDisplay(param);
}
@PostMapping("getCFDataForDisplay")
public PageInfo<CashFlowDto> getCFDataForDisplay(@RequestBody CashFlowParam param) {
logger.debug(String.format("现金流量表查询 Condition:%s", JSON.toJSONString(param)));
return dataPreviewSerivceImpl.getCFDataForDisplay(param);
}
@PostMapping("getBSDataForDisplay")
public PageInfo<BalanceSheetDto> getBSDataForDisplay(@RequestBody BalanceSheetParam param) {
logger.debug(String.format("资产负债表查询 Condition:%s", JSON.toJSONString(param)));
......
package pwc.taxtech.atms.dto.vatdto;
import pwc.taxtech.atms.dpo.PagingDto;
public class CashFlowParam {
private PagingDto pageInfo;
private String orgId;
private Integer periodStart;
private Integer periodEnd;
public PagingDto getPageInfo() {
return pageInfo;
}
public void setPageInfo(PagingDto pageInfo) {
this.pageInfo = pageInfo;
}
public String getOrgId() {
return orgId;
}
public void setOrgId(String orgId) {
this.orgId = orgId;
}
public Integer getPeriodStart() {
return periodStart;
}
public void setPeriodStart(Integer periodStart) {
this.periodStart = periodStart;
}
public Integer getPeriodEnd() {
return periodEnd;
}
public void setPeriodEnd(Integer periodEnd) {
this.periodEnd = periodEnd;
}
}
package pwc.taxtech.atms.dto.vatdto.dd;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
public class CashFlowDto implements Serializable {
/**
* Database Column Remarks:
* 唯一编号 系统唯一编号
*
* 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:
* 数据日期
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.date
*
* @mbg.generated
*/
private Date date;
/**
* Database Column Remarks:
* 数据来源GL
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.source
*
* @mbg.generated
*/
private String source;
/**
* Database Column Remarks:
* 期间 YYYY-MM
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.period
*
* @mbg.generated
*/
private Integer period;
/**
* Database Column Remarks:
* 关账标识 Y/N
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.status
*
* @mbg.generated
*/
private String status;
/**
* Database Column Remarks:
* 账套ID
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.ledger_id
*
* @mbg.generated
*/
private String ledgerId;
/**
* Database Column Remarks:
* 账套名称
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.ledger_name
*
* @mbg.generated
*/
private String ledgerName;
/**
* Database Column Remarks:
* 账套币种
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.edger_currency_code
*
* @mbg.generated
*/
private String ledgerCurrencyCode;
/**
* Database Column Remarks:
* 机构编码
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.entity_code
*
* @mbg.generated
*/
private String entityCode;
/**
* Database Column Remarks:
* 机构名称
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.entity_name
*
* @mbg.generated
*/
private String entityName;
/**
* Database Column Remarks:
* 主体性质(单体/合并)
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.category
*
* @mbg.generated
*/
private String category;
/**
* Database Column Remarks:
* 频度(固定值M,
仅期间(月度含13期)报表数据)
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.frequency
*
* @mbg.generated
*/
private String frequency;
/**
* Database Column Remarks:
* 项目中文名称
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.item_name
*
* @mbg.generated
*/
private String itemName;
/**
* Database Column Remarks:
* 项目英文名称
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.item_name2
*
* @mbg.generated
*/
private String itemName2;
/**
* Database Column Remarks:
* 本期发生
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.period_amt
*
* @mbg.generated
*/
private BigDecimal periodAmt;
/**
* Database Column Remarks:
* 本年累计
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.ytd_amt
*
* @mbg.generated
*/
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.date
*
* @return the value of cash_flow.date
*
* @mbg.generated
*/
public Date 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) {
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.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() {
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();
}
/**
* 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 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 method was generated by MyBatis Generator.
* This method returns the value of the database column cash_flow.edger_currency_code
*
* @return the value of cash_flow.edger_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.edger_currency_code
*
* @param ledgerCurrencyCode the value for cash_flow.edger_currency_code
*
* @mbg.generated
*/
public void setLedgerCurrencyCode(String ledgerCurrencyCode) {
this.ledgerCurrencyCode = ledgerCurrencyCode == null ? null : ledgerCurrencyCode.trim();
}
/**
* 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 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 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 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 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 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 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;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cash_flow
*
* @mbg.generated
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", date=").append(date);
sb.append(", source=").append(source);
sb.append(", period=").append(period);
sb.append(", status=").append(status);
sb.append(", ledgerId=").append(ledgerId);
sb.append(", ledgerName=").append(ledgerName);
sb.append(", ledgerCurrencyCode=").append(ledgerCurrencyCode);
sb.append(", entityCode=").append(entityCode);
sb.append(", entityName=").append(entityName);
sb.append(", category=").append(category);
sb.append(", frequency=").append(frequency);
sb.append(", itemName=").append(itemName);
sb.append(", itemName2=").append(itemName2);
sb.append(", periodAmt=").append(periodAmt);
sb.append(", ytdAmt=").append(ytdAmt);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append("]");
return sb.toString();
}
}
\ No newline at end of file
......@@ -8,13 +8,8 @@ import pwc.taxtech.atms.dto.vatdto.*;
import pwc.taxtech.atms.dto.vatdto.dd.*;
import pwc.taxtech.atms.dto.vatdto.dd.TrialBalanceDto;
import pwc.taxtech.atms.thirdparty.ExcelUtil;
import pwc.taxtech.atms.vat.dao.BalanceSheetMapper;
import pwc.taxtech.atms.vat.dao.JournalEntryMapper;
import pwc.taxtech.atms.vat.dao.ProfitLossStatementMapper;
import pwc.taxtech.atms.vat.dao.TrialBalanceMapper;
import pwc.taxtech.atms.vat.dpo.BalanceSheetCondition;
import pwc.taxtech.atms.vat.dpo.JournalEntryCondition;
import pwc.taxtech.atms.vat.dpo.ProfitLossStatementCondition;
import pwc.taxtech.atms.vat.dao.*;
import pwc.taxtech.atms.vat.dpo.*;
import pwc.taxtech.atms.vat.dpo.TrialBalanceCondition;
import pwc.taxtech.atms.vat.entity.*;
......@@ -45,6 +40,9 @@ public class DataPreviewSerivceImpl extends BaseService {
@Resource
private BalanceSheetMapper balanceSheetMapper;
@Resource
private CashFlowMapper cashFlowMapper;
public PageInfo<TrialBalanceDto> getTBDataForDisplay(TrialBalanceParam param) {
......@@ -86,6 +84,20 @@ public class DataPreviewSerivceImpl extends BaseService {
return new PageInfo<>(profitLossDtos);
}
public PageInfo<CashFlowDto> getCFDataForDisplay(CashFlowParam param) {
CashFlowCondition condition = new CashFlowCondition();
beanUtil.copyProperties(param, condition);
PageHelper.startPage(param.getPageInfo().getPageIndex(), param.getPageInfo().getPageSize());
List<CashFlow> cashFlows = cashFlowMapper.selectByCondition(condition);
List<CashFlowDto> cashFlowDtos = Lists.newArrayList();
cashFlows.forEach(cf -> {
CashFlowDto cashFlowDto = new CashFlowDto();
beanUtil.copyProperties(cf, cashFlowDto);
cashFlowDtos.add(cashFlowDto);
});
return new PageInfo<>(cashFlowDtos);
}
public PageInfo<JournalEntryDto> getJEDataForDisplay(JournalEntryParam param) {
JournalEntryCondition condition = new JournalEntryCondition();
......
......@@ -35,6 +35,7 @@ import pwc.taxtech.atms.entity.ServiceTypeExample;
import pwc.taxtech.atms.entity.StandardAccountExample;
import pwc.taxtech.atms.entity.TemplateGroupExample;
import pwc.taxtech.atms.service.impl.DistributedIdService;
import pwc.taxtech.atms.vat.dao.CashFlowMapper;
import pwc.taxtech.atms.vat.dao.PeriodTemplateMapper;
@WebAppConfiguration
......@@ -153,6 +154,8 @@ public abstract class CommonIT {
protected TaxRuleSettingMapper taxRuleSettingMapper;
@Autowired
protected PeriodTemplateMapper periodTemplateMapper;
@Autowired
protected CashFlowMapper cashFlowMapper;
protected void execSqlFile(String sqlFilePath) {
......
package pwc.taxtech.atms.common;
import java.math.BigDecimal;
import java.util.Date;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.StringUtils;
......@@ -6,12 +8,14 @@ import org.apache.commons.lang3.math.NumberUtils;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.apache.poi.ss.usermodel.*;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import pwc.taxtech.atms.CommonIT;
import pwc.taxtech.atms.entity.StandardAccount;
import pwc.taxtech.atms.invoice.InputInvoiceDetailMapper;
import pwc.taxtech.atms.invoice.InputInvoiceMapper;
import pwc.taxtech.atms.invoice.OutputInvoiceDetailMapper;
import pwc.taxtech.atms.invoice.OutputInvoiceMapper;
import pwc.taxtech.atms.service.impl.DistributedIdService;
import pwc.taxtech.atms.vat.entity.*;
import javax.annotation.Resource;
......@@ -30,6 +34,36 @@ public class DataInitTest extends CommonIT {
private OutputInvoiceMapper outputInvoiceMapper;
@Resource
private OutputInvoiceDetailMapper outputInvoiceDetailMapper;
@Resource
private DistributedIdService distributedIdService;
@Test
public void insertCashFlows() {
for(int i=0;i<100;i++){
CashFlow account = new CashFlow();
account.setId(distributedIdService.nextId());
account.setDate(new Date());
account.setSource("我来自哪"+i);
account.setPeriod(i);
account.setStatus("这都是啥"+i);
account.setLedgerId("账套ID"+i);
account.setLedgerName("账套名称"+i);
account.setLedgerCurrencyCode("账套币种"+i);
account.setEntityCode("机构编码"+i);
account.setEntityName("机构名称"+i);
account.setCategory("主体性质"+i);
account.setFrequency("频度"+i);
account.setItemName("项目中文名称"+i);
account.setItemName2("项目英文名称"+i);
account.setPeriodAmt(BigDecimal.valueOf(i));
account.setYtdAmt(BigDecimal.valueOf(i));
account.setCreateTime(new Date());
account.setUpdateTime(new Date());
account.setCreateBy("系统");
account.setUpdateBy("系统");
cashFlowMapper.insert(account);
}
}
@Test
public void tt() {
......
jdbc_url=jdbc:sqlserver://192.168.1.102:1434;DatabaseName=TaxAdmin8
jdbc_user=sa
jdbc_password=atmsunittestSQL
#jdbc_url=jdbc:sqlserver://192.168.1.102:1434;DatabaseName=TaxAdmin8
#jdbc_user=sa
#jdbc_password=atmsunittestSQL
jdbc_url=jdbc:mysql://10.158.230.16:3306/tax_admin_didi?useUnicode=true&amp;characterEncoding=utf-8&amp;zeroDateTimeBehavior=convertToNull&amp;allowMultiQueries=true&amp;useSSL=false
jdbc_user=root
jdbc_password=taxadmin2018
mail_jdbc_url=jdbc:sqlserver://192.168.1.102:1434;DatabaseName=MAILMaster
mail_jdbc_user=sa
......
package pwc.taxtech.atms.vat.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import pwc.taxtech.atms.MyVatMapper;
import pwc.taxtech.atms.vat.dpo.CashFlowCondition;
import pwc.taxtech.atms.vat.dpo.ProfitLossStatementCondition;
import pwc.taxtech.atms.vat.entity.CashFlow;
import pwc.taxtech.atms.vat.entity.CashFlowExample;
import pwc.taxtech.atms.vat.entity.ProfitLossStatement;
@Mapper
public interface CashFlowMapper extends MyVatMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cash_flow
*
* @mbg.generated
*/
long countByExample(CashFlowExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cash_flow
*
* @mbg.generated
*/
int deleteByExample(CashFlowExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cash_flow
*
* @mbg.generated
*/
int deleteByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cash_flow
*
* @mbg.generated
*/
int insert(CashFlow record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cash_flow
*
* @mbg.generated
*/
int insertSelective(CashFlow record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cash_flow
*
* @mbg.generated
*/
List<CashFlow> selectByExampleWithRowbounds(CashFlowExample example, RowBounds rowBounds);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cash_flow
*
* @mbg.generated
*/
List<CashFlow> selectByExample(CashFlowExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cash_flow
*
* @mbg.generated
*/
CashFlow selectByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cash_flow
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") CashFlow record, @Param("example") CashFlowExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cash_flow
*
* @mbg.generated
*/
int updateByExample(@Param("record") CashFlow record, @Param("example") CashFlowExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cash_flow
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(CashFlow record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cash_flow
*
* @mbg.generated
*/
int updateByPrimaryKey(CashFlow record);
List<CashFlow> selectByCondition(@Param("cfCondition") CashFlowCondition condition);
}
\ No newline at end of file
package pwc.taxtech.atms.vat.dpo;
import pwc.taxtech.atms.dpo.PagingDto;
public class CashFlowCondition {
private PagingDto pageInfo;
private String orgId;
private Integer periodStart;
private Integer periodEnd;
public PagingDto getPageInfo() {
return pageInfo;
}
public void setPageInfo(PagingDto pageInfo) {
this.pageInfo = pageInfo;
}
public String getOrgId() {
return orgId;
}
public void setOrgId(String orgId) {
this.orgId = orgId;
}
public Integer getPeriodStart() {
return periodStart;
}
public void setPeriodStart(Integer periodStart) {
this.periodStart = periodStart;
}
public Integer getPeriodEnd() {
return periodEnd;
}
public void setPeriodEnd(Integer periodEnd) {
this.periodEnd = periodEnd;
}
}
package pwc.taxtech.atms.vat.entity;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import pwc.taxtech.atms.entity.BaseEntity;
/**
*
* This class was generated by MyBatis Generator.
* This class corresponds to the database table cash_flow
*
* @mbg.generated do_not_delete_during_merge
*/
public class CashFlow extends BaseEntity implements Serializable {
/**
* Database Column Remarks:
* 唯一编号 系统唯一编号
*
* 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:
* 数据日期
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.date
*
* @mbg.generated
*/
private Date date;
/**
* Database Column Remarks:
* 数据来源GL
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.source
*
* @mbg.generated
*/
private String source;
/**
* Database Column Remarks:
* 期间 YYYY-MM
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.period
*
* @mbg.generated
*/
private Integer period;
/**
* Database Column Remarks:
* 关账标识 Y/N
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.status
*
* @mbg.generated
*/
private String status;
/**
* Database Column Remarks:
* 账套ID
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.ledger_id
*
* @mbg.generated
*/
private String ledgerId;
/**
* Database Column Remarks:
* 账套名称
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.ledger_name
*
* @mbg.generated
*/
private String ledgerName;
/**
* Database Column Remarks:
* 账套币种
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.edger_currency_code
*
* @mbg.generated
*/
private String ledgerCurrencyCode;
/**
* Database Column Remarks:
* 机构编码
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.entity_code
*
* @mbg.generated
*/
private String entityCode;
/**
* Database Column Remarks:
* 机构名称
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.entity_name
*
* @mbg.generated
*/
private String entityName;
/**
* Database Column Remarks:
* 主体性质(单体/合并)
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.category
*
* @mbg.generated
*/
private String category;
/**
* Database Column Remarks:
* 频度(固定值M,
仅期间(月度含13期)报表数据)
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.frequency
*
* @mbg.generated
*/
private String frequency;
/**
* Database Column Remarks:
* 项目中文名称
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.item_name
*
* @mbg.generated
*/
private String itemName;
/**
* Database Column Remarks:
* 项目英文名称
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.item_name2
*
* @mbg.generated
*/
private String itemName2;
/**
* Database Column Remarks:
* 本期发生
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.period_amt
*
* @mbg.generated
*/
private BigDecimal periodAmt;
/**
* Database Column Remarks:
* 本年累计
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cash_flow.ytd_amt
*
* @mbg.generated
*/
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.date
*
* @return the value of cash_flow.date
*
* @mbg.generated
*/
public Date 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) {
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.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() {
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();
}
/**
* 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 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 method was generated by MyBatis Generator.
* This method returns the value of the database column cash_flow.edger_currency_code
*
* @return the value of cash_flow.edger_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.edger_currency_code
*
* @param ledgerCurrencyCode the value for cash_flow.edger_currency_code
*
* @mbg.generated
*/
public void setLedgerCurrencyCode(String ledgerCurrencyCode) {
this.ledgerCurrencyCode = ledgerCurrencyCode == null ? null : ledgerCurrencyCode.trim();
}
/**
* 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 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 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 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 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 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 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;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cash_flow
*
* @mbg.generated
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", date=").append(date);
sb.append(", source=").append(source);
sb.append(", period=").append(period);
sb.append(", status=").append(status);
sb.append(", ledgerId=").append(ledgerId);
sb.append(", ledgerName=").append(ledgerName);
sb.append(", ledgerCurrencyCode=").append(ledgerCurrencyCode);
sb.append(", entityCode=").append(entityCode);
sb.append(", entityName=").append(entityName);
sb.append(", category=").append(category);
sb.append(", frequency=").append(frequency);
sb.append(", itemName=").append(itemName);
sb.append(", itemName2=").append(itemName2);
sb.append(", periodAmt=").append(periodAmt);
sb.append(", ytdAmt=").append(ytdAmt);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append("]");
return sb.toString();
}
}
\ No newline at end of file
package pwc.taxtech.atms.vat.entity;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class CashFlowExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table cash_flow
*
* @mbg.generated
*/
protected String orderByClause;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table cash_flow
*
* @mbg.generated
*/
protected boolean distinct;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table cash_flow
*
* @mbg.generated
*/
protected List<Criteria> oredCriteria;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cash_flow
*
* @mbg.generated
*/
public CashFlowExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cash_flow
*
* @mbg.generated
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cash_flow
*
* @mbg.generated
*/
public String getOrderByClause() {
return orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cash_flow
*
* @mbg.generated
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cash_flow
*
* @mbg.generated
*/
public boolean isDistinct() {
return distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cash_flow
*
* @mbg.generated
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cash_flow
*
* @mbg.generated
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cash_flow
*
* @mbg.generated
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cash_flow
*
* @mbg.generated
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cash_flow
*
* @mbg.generated
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cash_flow
*
* @mbg.generated
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table cash_flow
*
* @mbg.generated
*/
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andDateIsNull() {
addCriterion("`date` is null");
return (Criteria) this;
}
public Criteria andDateIsNotNull() {
addCriterion("`date` is not null");
return (Criteria) this;
}
public Criteria andDateEqualTo(Date value) {
addCriterion("`date` =", value, "date");
return (Criteria) this;
}
public Criteria andDateNotEqualTo(Date value) {
addCriterion("`date` <>", value, "date");
return (Criteria) this;
}
public Criteria andDateGreaterThan(Date value) {
addCriterion("`date` >", value, "date");
return (Criteria) this;
}
public Criteria andDateGreaterThanOrEqualTo(Date value) {
addCriterion("`date` >=", value, "date");
return (Criteria) this;
}
public Criteria andDateLessThan(Date value) {
addCriterion("`date` <", value, "date");
return (Criteria) this;
}
public Criteria andDateLessThanOrEqualTo(Date value) {
addCriterion("`date` <=", value, "date");
return (Criteria) this;
}
public Criteria andDateIn(List<Date> values) {
addCriterion("`date` in", values, "date");
return (Criteria) this;
}
public Criteria andDateNotIn(List<Date> values) {
addCriterion("`date` not in", values, "date");
return (Criteria) this;
}
public Criteria andDateBetween(Date value1, Date value2) {
addCriterion("`date` between", value1, value2, "date");
return (Criteria) this;
}
public Criteria andDateNotBetween(Date value1, Date value2) {
addCriterion("`date` not between", value1, value2, "date");
return (Criteria) this;
}
public Criteria andSourceIsNull() {
addCriterion("`source` is null");
return (Criteria) this;
}
public Criteria andSourceIsNotNull() {
addCriterion("`source` is not null");
return (Criteria) this;
}
public Criteria andSourceEqualTo(String value) {
addCriterion("`source` =", value, "source");
return (Criteria) this;
}
public Criteria andSourceNotEqualTo(String value) {
addCriterion("`source` <>", value, "source");
return (Criteria) this;
}
public Criteria andSourceGreaterThan(String value) {
addCriterion("`source` >", value, "source");
return (Criteria) this;
}
public Criteria andSourceGreaterThanOrEqualTo(String value) {
addCriterion("`source` >=", value, "source");
return (Criteria) this;
}
public Criteria andSourceLessThan(String value) {
addCriterion("`source` <", value, "source");
return (Criteria) this;
}
public Criteria andSourceLessThanOrEqualTo(String value) {
addCriterion("`source` <=", value, "source");
return (Criteria) this;
}
public Criteria andSourceLike(String value) {
addCriterion("`source` like", value, "source");
return (Criteria) this;
}
public Criteria andSourceNotLike(String value) {
addCriterion("`source` not like", value, "source");
return (Criteria) this;
}
public Criteria andSourceIn(List<String> values) {
addCriterion("`source` in", values, "source");
return (Criteria) this;
}
public Criteria andSourceNotIn(List<String> values) {
addCriterion("`source` not in", values, "source");
return (Criteria) this;
}
public Criteria andSourceBetween(String value1, String value2) {
addCriterion("`source` between", value1, value2, "source");
return (Criteria) this;
}
public Criteria andSourceNotBetween(String value1, String value2) {
addCriterion("`source` not between", value1, value2, "source");
return (Criteria) this;
}
public Criteria andPeriodIsNull() {
addCriterion("period is null");
return (Criteria) this;
}
public Criteria andPeriodIsNotNull() {
addCriterion("period is not null");
return (Criteria) this;
}
public Criteria andPeriodEqualTo(Integer value) {
addCriterion("period =", value, "period");
return (Criteria) this;
}
public Criteria andPeriodNotEqualTo(Integer value) {
addCriterion("period <>", value, "period");
return (Criteria) this;
}
public Criteria andPeriodGreaterThan(Integer value) {
addCriterion("period >", value, "period");
return (Criteria) this;
}
public Criteria andPeriodGreaterThanOrEqualTo(Integer value) {
addCriterion("period >=", value, "period");
return (Criteria) this;
}
public Criteria andPeriodLessThan(Integer value) {
addCriterion("period <", value, "period");
return (Criteria) this;
}
public Criteria andPeriodLessThanOrEqualTo(Integer value) {
addCriterion("period <=", value, "period");
return (Criteria) this;
}
public Criteria andPeriodIn(List<Integer> values) {
addCriterion("period in", values, "period");
return (Criteria) this;
}
public Criteria andPeriodNotIn(List<Integer> values) {
addCriterion("period not in", values, "period");
return (Criteria) this;
}
public Criteria andPeriodBetween(Integer value1, Integer value2) {
addCriterion("period between", value1, value2, "period");
return (Criteria) this;
}
public Criteria andPeriodNotBetween(Integer value1, Integer value2) {
addCriterion("period not between", value1, value2, "period");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("`status` is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("`status` is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(String value) {
addCriterion("`status` =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(String value) {
addCriterion("`status` <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(String value) {
addCriterion("`status` >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(String value) {
addCriterion("`status` >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(String value) {
addCriterion("`status` <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(String value) {
addCriterion("`status` <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLike(String value) {
addCriterion("`status` like", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotLike(String value) {
addCriterion("`status` not like", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<String> values) {
addCriterion("`status` in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<String> values) {
addCriterion("`status` not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(String value1, String value2) {
addCriterion("`status` between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(String value1, String value2) {
addCriterion("`status` not between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andLedgerIdIsNull() {
addCriterion("ledger_id is null");
return (Criteria) this;
}
public Criteria andLedgerIdIsNotNull() {
addCriterion("ledger_id is not null");
return (Criteria) this;
}
public Criteria andLedgerIdEqualTo(String value) {
addCriterion("ledger_id =", value, "ledgerId");
return (Criteria) this;
}
public Criteria andLedgerIdNotEqualTo(String value) {
addCriterion("ledger_id <>", value, "ledgerId");
return (Criteria) this;
}
public Criteria andLedgerIdGreaterThan(String value) {
addCriterion("ledger_id >", value, "ledgerId");
return (Criteria) this;
}
public Criteria andLedgerIdGreaterThanOrEqualTo(String value) {
addCriterion("ledger_id >=", value, "ledgerId");
return (Criteria) this;
}
public Criteria andLedgerIdLessThan(String value) {
addCriterion("ledger_id <", value, "ledgerId");
return (Criteria) this;
}
public Criteria andLedgerIdLessThanOrEqualTo(String value) {
addCriterion("ledger_id <=", value, "ledgerId");
return (Criteria) this;
}
public Criteria andLedgerIdLike(String value) {
addCriterion("ledger_id like", value, "ledgerId");
return (Criteria) this;
}
public Criteria andLedgerIdNotLike(String value) {
addCriterion("ledger_id not like", value, "ledgerId");
return (Criteria) this;
}
public Criteria andLedgerIdIn(List<String> values) {
addCriterion("ledger_id in", values, "ledgerId");
return (Criteria) this;
}
public Criteria andLedgerIdNotIn(List<String> values) {
addCriterion("ledger_id not in", values, "ledgerId");
return (Criteria) this;
}
public Criteria andLedgerIdBetween(String value1, String value2) {
addCriterion("ledger_id between", value1, value2, "ledgerId");
return (Criteria) this;
}
public Criteria andLedgerIdNotBetween(String value1, String value2) {
addCriterion("ledger_id not between", value1, value2, "ledgerId");
return (Criteria) this;
}
public Criteria andLedgerNameIsNull() {
addCriterion("ledger_name is null");
return (Criteria) this;
}
public Criteria andLedgerNameIsNotNull() {
addCriterion("ledger_name is not null");
return (Criteria) this;
}
public Criteria andLedgerNameEqualTo(String value) {
addCriterion("ledger_name =", value, "ledgerName");
return (Criteria) this;
}
public Criteria andLedgerNameNotEqualTo(String value) {
addCriterion("ledger_name <>", value, "ledgerName");
return (Criteria) this;
}
public Criteria andLedgerNameGreaterThan(String value) {
addCriterion("ledger_name >", value, "ledgerName");
return (Criteria) this;
}
public Criteria andLedgerNameGreaterThanOrEqualTo(String value) {
addCriterion("ledger_name >=", value, "ledgerName");
return (Criteria) this;
}
public Criteria andLedgerNameLessThan(String value) {
addCriterion("ledger_name <", value, "ledgerName");
return (Criteria) this;
}
public Criteria andLedgerNameLessThanOrEqualTo(String value) {
addCriterion("ledger_name <=", value, "ledgerName");
return (Criteria) this;
}
public Criteria andLedgerNameLike(String value) {
addCriterion("ledger_name like", value, "ledgerName");
return (Criteria) this;
}
public Criteria andLedgerNameNotLike(String value) {
addCriterion("ledger_name not like", value, "ledgerName");
return (Criteria) this;
}
public Criteria andLedgerNameIn(List<String> values) {
addCriterion("ledger_name in", values, "ledgerName");
return (Criteria) this;
}
public Criteria andLedgerNameNotIn(List<String> values) {
addCriterion("ledger_name not in", values, "ledgerName");
return (Criteria) this;
}
public Criteria andLedgerNameBetween(String value1, String value2) {
addCriterion("ledger_name between", value1, value2, "ledgerName");
return (Criteria) this;
}
public Criteria andLedgerNameNotBetween(String value1, String value2) {
addCriterion("ledger_name not between", value1, value2, "ledgerName");
return (Criteria) this;
}
public Criteria andLedgerCurrencyCodeIsNull() {
addCriterion("edger_currency_code is null");
return (Criteria) this;
}
public Criteria andLedgerCurrencyCodeIsNotNull() {
addCriterion("edger_currency_code is not null");
return (Criteria) this;
}
public Criteria andLedgerCurrencyCodeEqualTo(String value) {
addCriterion("edger_currency_code =", value, "ledgerCurrencyCode");
return (Criteria) this;
}
public Criteria andLedgerCurrencyCodeNotEqualTo(String value) {
addCriterion("edger_currency_code <>", value, "ledgerCurrencyCode");
return (Criteria) this;
}
public Criteria andLedgerCurrencyCodeGreaterThan(String value) {
addCriterion("edger_currency_code >", value, "ledgerCurrencyCode");
return (Criteria) this;
}
public Criteria andLedgerCurrencyCodeGreaterThanOrEqualTo(String value) {
addCriterion("edger_currency_code >=", value, "ledgerCurrencyCode");
return (Criteria) this;
}
public Criteria andLedgerCurrencyCodeLessThan(String value) {
addCriterion("edger_currency_code <", value, "ledgerCurrencyCode");
return (Criteria) this;
}
public Criteria andLedgerCurrencyCodeLessThanOrEqualTo(String value) {
addCriterion("edger_currency_code <=", value, "ledgerCurrencyCode");
return (Criteria) this;
}
public Criteria andLedgerCurrencyCodeLike(String value) {
addCriterion("edger_currency_code like", value, "ledgerCurrencyCode");
return (Criteria) this;
}
public Criteria andLedgerCurrencyCodeNotLike(String value) {
addCriterion("edger_currency_code not like", value, "ledgerCurrencyCode");
return (Criteria) this;
}
public Criteria andLedgerCurrencyCodeIn(List<String> values) {
addCriterion("edger_currency_code in", values, "ledgerCurrencyCode");
return (Criteria) this;
}
public Criteria andLedgerCurrencyCodeNotIn(List<String> values) {
addCriterion("edger_currency_code not in", values, "ledgerCurrencyCode");
return (Criteria) this;
}
public Criteria andLedgerCurrencyCodeBetween(String value1, String value2) {
addCriterion("edger_currency_code between", value1, value2, "ledgerCurrencyCode");
return (Criteria) this;
}
public Criteria andLedgerCurrencyCodeNotBetween(String value1, String value2) {
addCriterion("edger_currency_code not between", value1, value2, "ledgerCurrencyCode");
return (Criteria) this;
}
public Criteria andEntityCodeIsNull() {
addCriterion("entity_code is null");
return (Criteria) this;
}
public Criteria andEntityCodeIsNotNull() {
addCriterion("entity_code is not null");
return (Criteria) this;
}
public Criteria andEntityCodeEqualTo(String value) {
addCriterion("entity_code =", value, "entityCode");
return (Criteria) this;
}
public Criteria andEntityCodeNotEqualTo(String value) {
addCriterion("entity_code <>", value, "entityCode");
return (Criteria) this;
}
public Criteria andEntityCodeGreaterThan(String value) {
addCriterion("entity_code >", value, "entityCode");
return (Criteria) this;
}
public Criteria andEntityCodeGreaterThanOrEqualTo(String value) {
addCriterion("entity_code >=", value, "entityCode");
return (Criteria) this;
}
public Criteria andEntityCodeLessThan(String value) {
addCriterion("entity_code <", value, "entityCode");
return (Criteria) this;
}
public Criteria andEntityCodeLessThanOrEqualTo(String value) {
addCriterion("entity_code <=", value, "entityCode");
return (Criteria) this;
}
public Criteria andEntityCodeLike(String value) {
addCriterion("entity_code like", value, "entityCode");
return (Criteria) this;
}
public Criteria andEntityCodeNotLike(String value) {
addCriterion("entity_code not like", value, "entityCode");
return (Criteria) this;
}
public Criteria andEntityCodeIn(List<String> values) {
addCriterion("entity_code in", values, "entityCode");
return (Criteria) this;
}
public Criteria andEntityCodeNotIn(List<String> values) {
addCriterion("entity_code not in", values, "entityCode");
return (Criteria) this;
}
public Criteria andEntityCodeBetween(String value1, String value2) {
addCriterion("entity_code between", value1, value2, "entityCode");
return (Criteria) this;
}
public Criteria andEntityCodeNotBetween(String value1, String value2) {
addCriterion("entity_code not between", value1, value2, "entityCode");
return (Criteria) this;
}
public Criteria andEntityNameIsNull() {
addCriterion("entity_name is null");
return (Criteria) this;
}
public Criteria andEntityNameIsNotNull() {
addCriterion("entity_name is not null");
return (Criteria) this;
}
public Criteria andEntityNameEqualTo(String value) {
addCriterion("entity_name =", value, "entityName");
return (Criteria) this;
}
public Criteria andEntityNameNotEqualTo(String value) {
addCriterion("entity_name <>", value, "entityName");
return (Criteria) this;
}
public Criteria andEntityNameGreaterThan(String value) {
addCriterion("entity_name >", value, "entityName");
return (Criteria) this;
}
public Criteria andEntityNameGreaterThanOrEqualTo(String value) {
addCriterion("entity_name >=", value, "entityName");
return (Criteria) this;
}
public Criteria andEntityNameLessThan(String value) {
addCriterion("entity_name <", value, "entityName");
return (Criteria) this;
}
public Criteria andEntityNameLessThanOrEqualTo(String value) {
addCriterion("entity_name <=", value, "entityName");
return (Criteria) this;
}
public Criteria andEntityNameLike(String value) {
addCriterion("entity_name like", value, "entityName");
return (Criteria) this;
}
public Criteria andEntityNameNotLike(String value) {
addCriterion("entity_name not like", value, "entityName");
return (Criteria) this;
}
public Criteria andEntityNameIn(List<String> values) {
addCriterion("entity_name in", values, "entityName");
return (Criteria) this;
}
public Criteria andEntityNameNotIn(List<String> values) {
addCriterion("entity_name not in", values, "entityName");
return (Criteria) this;
}
public Criteria andEntityNameBetween(String value1, String value2) {
addCriterion("entity_name between", value1, value2, "entityName");
return (Criteria) this;
}
public Criteria andEntityNameNotBetween(String value1, String value2) {
addCriterion("entity_name not between", value1, value2, "entityName");
return (Criteria) this;
}
public Criteria andCategoryIsNull() {
addCriterion("category is null");
return (Criteria) this;
}
public Criteria andCategoryIsNotNull() {
addCriterion("category is not null");
return (Criteria) this;
}
public Criteria andCategoryEqualTo(String value) {
addCriterion("category =", value, "category");
return (Criteria) this;
}
public Criteria andCategoryNotEqualTo(String value) {
addCriterion("category <>", value, "category");
return (Criteria) this;
}
public Criteria andCategoryGreaterThan(String value) {
addCriterion("category >", value, "category");
return (Criteria) this;
}
public Criteria andCategoryGreaterThanOrEqualTo(String value) {
addCriterion("category >=", value, "category");
return (Criteria) this;
}
public Criteria andCategoryLessThan(String value) {
addCriterion("category <", value, "category");
return (Criteria) this;
}
public Criteria andCategoryLessThanOrEqualTo(String value) {
addCriterion("category <=", value, "category");
return (Criteria) this;
}
public Criteria andCategoryLike(String value) {
addCriterion("category like", value, "category");
return (Criteria) this;
}
public Criteria andCategoryNotLike(String value) {
addCriterion("category not like", value, "category");
return (Criteria) this;
}
public Criteria andCategoryIn(List<String> values) {
addCriterion("category in", values, "category");
return (Criteria) this;
}
public Criteria andCategoryNotIn(List<String> values) {
addCriterion("category not in", values, "category");
return (Criteria) this;
}
public Criteria andCategoryBetween(String value1, String value2) {
addCriterion("category between", value1, value2, "category");
return (Criteria) this;
}
public Criteria andCategoryNotBetween(String value1, String value2) {
addCriterion("category not between", value1, value2, "category");
return (Criteria) this;
}
public Criteria andFrequencyIsNull() {
addCriterion("frequency is null");
return (Criteria) this;
}
public Criteria andFrequencyIsNotNull() {
addCriterion("frequency is not null");
return (Criteria) this;
}
public Criteria andFrequencyEqualTo(String value) {
addCriterion("frequency =", value, "frequency");
return (Criteria) this;
}
public Criteria andFrequencyNotEqualTo(String value) {
addCriterion("frequency <>", value, "frequency");
return (Criteria) this;
}
public Criteria andFrequencyGreaterThan(String value) {
addCriterion("frequency >", value, "frequency");
return (Criteria) this;
}
public Criteria andFrequencyGreaterThanOrEqualTo(String value) {
addCriterion("frequency >=", value, "frequency");
return (Criteria) this;
}
public Criteria andFrequencyLessThan(String value) {
addCriterion("frequency <", value, "frequency");
return (Criteria) this;
}
public Criteria andFrequencyLessThanOrEqualTo(String value) {
addCriterion("frequency <=", value, "frequency");
return (Criteria) this;
}
public Criteria andFrequencyLike(String value) {
addCriterion("frequency like", value, "frequency");
return (Criteria) this;
}
public Criteria andFrequencyNotLike(String value) {
addCriterion("frequency not like", value, "frequency");
return (Criteria) this;
}
public Criteria andFrequencyIn(List<String> values) {
addCriterion("frequency in", values, "frequency");
return (Criteria) this;
}
public Criteria andFrequencyNotIn(List<String> values) {
addCriterion("frequency not in", values, "frequency");
return (Criteria) this;
}
public Criteria andFrequencyBetween(String value1, String value2) {
addCriterion("frequency between", value1, value2, "frequency");
return (Criteria) this;
}
public Criteria andFrequencyNotBetween(String value1, String value2) {
addCriterion("frequency not between", value1, value2, "frequency");
return (Criteria) this;
}
public Criteria andItemNameIsNull() {
addCriterion("item_name is null");
return (Criteria) this;
}
public Criteria andItemNameIsNotNull() {
addCriterion("item_name is not null");
return (Criteria) this;
}
public Criteria andItemNameEqualTo(String value) {
addCriterion("item_name =", value, "itemName");
return (Criteria) this;
}
public Criteria andItemNameNotEqualTo(String value) {
addCriterion("item_name <>", value, "itemName");
return (Criteria) this;
}
public Criteria andItemNameGreaterThan(String value) {
addCriterion("item_name >", value, "itemName");
return (Criteria) this;
}
public Criteria andItemNameGreaterThanOrEqualTo(String value) {
addCriterion("item_name >=", value, "itemName");
return (Criteria) this;
}
public Criteria andItemNameLessThan(String value) {
addCriterion("item_name <", value, "itemName");
return (Criteria) this;
}
public Criteria andItemNameLessThanOrEqualTo(String value) {
addCriterion("item_name <=", value, "itemName");
return (Criteria) this;
}
public Criteria andItemNameLike(String value) {
addCriterion("item_name like", value, "itemName");
return (Criteria) this;
}
public Criteria andItemNameNotLike(String value) {
addCriterion("item_name not like", value, "itemName");
return (Criteria) this;
}
public Criteria andItemNameIn(List<String> values) {
addCriterion("item_name in", values, "itemName");
return (Criteria) this;
}
public Criteria andItemNameNotIn(List<String> values) {
addCriterion("item_name not in", values, "itemName");
return (Criteria) this;
}
public Criteria andItemNameBetween(String value1, String value2) {
addCriterion("item_name between", value1, value2, "itemName");
return (Criteria) this;
}
public Criteria andItemNameNotBetween(String value1, String value2) {
addCriterion("item_name not between", value1, value2, "itemName");
return (Criteria) this;
}
public Criteria andItemName2IsNull() {
addCriterion("item_name2 is null");
return (Criteria) this;
}
public Criteria andItemName2IsNotNull() {
addCriterion("item_name2 is not null");
return (Criteria) this;
}
public Criteria andItemName2EqualTo(String value) {
addCriterion("item_name2 =", value, "itemName2");
return (Criteria) this;
}
public Criteria andItemName2NotEqualTo(String value) {
addCriterion("item_name2 <>", value, "itemName2");
return (Criteria) this;
}
public Criteria andItemName2GreaterThan(String value) {
addCriterion("item_name2 >", value, "itemName2");
return (Criteria) this;
}
public Criteria andItemName2GreaterThanOrEqualTo(String value) {
addCriterion("item_name2 >=", value, "itemName2");
return (Criteria) this;
}
public Criteria andItemName2LessThan(String value) {
addCriterion("item_name2 <", value, "itemName2");
return (Criteria) this;
}
public Criteria andItemName2LessThanOrEqualTo(String value) {
addCriterion("item_name2 <=", value, "itemName2");
return (Criteria) this;
}
public Criteria andItemName2Like(String value) {
addCriterion("item_name2 like", value, "itemName2");
return (Criteria) this;
}
public Criteria andItemName2NotLike(String value) {
addCriterion("item_name2 not like", value, "itemName2");
return (Criteria) this;
}
public Criteria andItemName2In(List<String> values) {
addCriterion("item_name2 in", values, "itemName2");
return (Criteria) this;
}
public Criteria andItemName2NotIn(List<String> values) {
addCriterion("item_name2 not in", values, "itemName2");
return (Criteria) this;
}
public Criteria andItemName2Between(String value1, String value2) {
addCriterion("item_name2 between", value1, value2, "itemName2");
return (Criteria) this;
}
public Criteria andItemName2NotBetween(String value1, String value2) {
addCriterion("item_name2 not between", value1, value2, "itemName2");
return (Criteria) this;
}
public Criteria andPeriodAmtIsNull() {
addCriterion("period_amt is null");
return (Criteria) this;
}
public Criteria andPeriodAmtIsNotNull() {
addCriterion("period_amt is not null");
return (Criteria) this;
}
public Criteria andPeriodAmtEqualTo(BigDecimal value) {
addCriterion("period_amt =", value, "periodAmt");
return (Criteria) this;
}
public Criteria andPeriodAmtNotEqualTo(BigDecimal value) {
addCriterion("period_amt <>", value, "periodAmt");
return (Criteria) this;
}
public Criteria andPeriodAmtGreaterThan(BigDecimal value) {
addCriterion("period_amt >", value, "periodAmt");
return (Criteria) this;
}
public Criteria andPeriodAmtGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("period_amt >=", value, "periodAmt");
return (Criteria) this;
}
public Criteria andPeriodAmtLessThan(BigDecimal value) {
addCriterion("period_amt <", value, "periodAmt");
return (Criteria) this;
}
public Criteria andPeriodAmtLessThanOrEqualTo(BigDecimal value) {
addCriterion("period_amt <=", value, "periodAmt");
return (Criteria) this;
}
public Criteria andPeriodAmtIn(List<BigDecimal> values) {
addCriterion("period_amt in", values, "periodAmt");
return (Criteria) this;
}
public Criteria andPeriodAmtNotIn(List<BigDecimal> values) {
addCriterion("period_amt not in", values, "periodAmt");
return (Criteria) this;
}
public Criteria andPeriodAmtBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("period_amt between", value1, value2, "periodAmt");
return (Criteria) this;
}
public Criteria andPeriodAmtNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("period_amt not between", value1, value2, "periodAmt");
return (Criteria) this;
}
public Criteria andYtdAmtIsNull() {
addCriterion("ytd_amt is null");
return (Criteria) this;
}
public Criteria andYtdAmtIsNotNull() {
addCriterion("ytd_amt is not null");
return (Criteria) this;
}
public Criteria andYtdAmtEqualTo(BigDecimal value) {
addCriterion("ytd_amt =", value, "ytdAmt");
return (Criteria) this;
}
public Criteria andYtdAmtNotEqualTo(BigDecimal value) {
addCriterion("ytd_amt <>", value, "ytdAmt");
return (Criteria) this;
}
public Criteria andYtdAmtGreaterThan(BigDecimal value) {
addCriterion("ytd_amt >", value, "ytdAmt");
return (Criteria) this;
}
public Criteria andYtdAmtGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("ytd_amt >=", value, "ytdAmt");
return (Criteria) this;
}
public Criteria andYtdAmtLessThan(BigDecimal value) {
addCriterion("ytd_amt <", value, "ytdAmt");
return (Criteria) this;
}
public Criteria andYtdAmtLessThanOrEqualTo(BigDecimal value) {
addCriterion("ytd_amt <=", value, "ytdAmt");
return (Criteria) this;
}
public Criteria andYtdAmtIn(List<BigDecimal> values) {
addCriterion("ytd_amt in", values, "ytdAmt");
return (Criteria) this;
}
public Criteria andYtdAmtNotIn(List<BigDecimal> values) {
addCriterion("ytd_amt not in", values, "ytdAmt");
return (Criteria) this;
}
public Criteria andYtdAmtBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("ytd_amt between", value1, value2, "ytdAmt");
return (Criteria) this;
}
public Criteria andYtdAmtNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("ytd_amt not between", value1, value2, "ytdAmt");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNull() {
addCriterion("update_time is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("update_time is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(Date value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Date> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Date> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table cash_flow
*
* @mbg.generated do_not_delete_during_merge
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table cash_flow
*
* @mbg.generated
*/
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="pwc.taxtech.atms.vat.dao.CashFlowMapper">
<resultMap id="BaseResultMap" type="pwc.taxtech.atms.vat.entity.CashFlow">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id column="id" jdbcType="BIGINT" property="id" />
<result column="date" jdbcType="TIMESTAMP" property="date" />
<result column="source" jdbcType="VARCHAR" property="source" />
<result column="period" jdbcType="INTEGER" property="period" />
<result column="status" jdbcType="VARCHAR" property="status" />
<result column="ledger_id" jdbcType="VARCHAR" property="ledgerId" />
<result column="ledger_name" jdbcType="VARCHAR" property="ledgerName" />
<result column="ledger_currency_code" jdbcType="VARCHAR" property="ledgerCurrencyCode" />
<result column="entity_code" jdbcType="VARCHAR" property="entityCode" />
<result column="entity_name" jdbcType="VARCHAR" property="entityName" />
<result column="category" jdbcType="VARCHAR" property="category" />
<result column="frequency" jdbcType="VARCHAR" property="frequency" />
<result column="item_name" jdbcType="VARCHAR" property="itemName" />
<result column="item_name2" jdbcType="VARCHAR" property="itemName2" />
<result column="period_amt" jdbcType="DECIMAL" property="periodAmt" />
<result column="ytd_amt" jdbcType="DECIMAL" property="ytdAmt" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap>
<sql id="Example_Where_Clause">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
id, `date`, `source`, period, `status`, ledger_id, ledger_name, ledger_currency_code,
entity_code, entity_name, category, frequency, item_name, item_name2, period_amt,
ytd_amt, create_time, update_time
</sql>
<select id="selectByExample" parameterType="pwc.taxtech.atms.vat.entity.CashFlowExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cash_flow
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include refid="Base_Column_List" />
from cash_flow
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from cash_flow
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="pwc.taxtech.atms.vat.entity.CashFlowExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from cash_flow
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="pwc.taxtech.atms.vat.entity.CashFlow">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into cash_flow (id, `date`, `source`,
period, `status`, ledger_id,
ledger_name, ledger_currency_code, entity_code,
entity_name, category, frequency,
item_name, item_name2, period_amt,
ytd_amt, create_time, update_time
)
values (#{id,jdbcType=BIGINT}, #{date,jdbcType=TIMESTAMP}, #{source,jdbcType=VARCHAR},
#{period,jdbcType=INTEGER}, #{status,jdbcType=VARCHAR}, #{ledgerId,jdbcType=VARCHAR},
#{ledgerName,jdbcType=VARCHAR}, #{ledgerCurrencyCode,jdbcType=VARCHAR}, #{entityCode,jdbcType=VARCHAR},
#{entityName,jdbcType=VARCHAR}, #{category,jdbcType=VARCHAR}, #{frequency,jdbcType=VARCHAR},
#{itemName,jdbcType=VARCHAR}, #{itemName2,jdbcType=VARCHAR}, #{periodAmt,jdbcType=DECIMAL},
#{ytdAmt,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="pwc.taxtech.atms.vat.entity.CashFlow">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into cash_flow
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="date != null">
`date`,
</if>
<if test="source != null">
`source`,
</if>
<if test="period != null">
period,
</if>
<if test="status != null">
`status`,
</if>
<if test="ledgerId != null">
ledger_id,
</if>
<if test="ledgerName != null">
ledger_name,
</if>
<if test="ledgerCurrencyCode != null">
ledger_currency_code,
</if>
<if test="entityCode != null">
entity_code,
</if>
<if test="entityName != null">
entity_name,
</if>
<if test="category != null">
category,
</if>
<if test="frequency != null">
frequency,
</if>
<if test="itemName != null">
item_name,
</if>
<if test="itemName2 != null">
item_name2,
</if>
<if test="periodAmt != null">
period_amt,
</if>
<if test="ytdAmt != null">
ytd_amt,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="date != null">
#{date,jdbcType=TIMESTAMP},
</if>
<if test="source != null">
#{source,jdbcType=VARCHAR},
</if>
<if test="period != null">
#{period,jdbcType=INTEGER},
</if>
<if test="status != null">
#{status,jdbcType=VARCHAR},
</if>
<if test="ledgerId != null">
#{ledgerId,jdbcType=VARCHAR},
</if>
<if test="ledgerName != null">
#{ledgerName,jdbcType=VARCHAR},
</if>
<if test="ledgerCurrencyCode != null">
#{ledgerCurrencyCode,jdbcType=VARCHAR},
</if>
<if test="entityCode != null">
#{entityCode,jdbcType=VARCHAR},
</if>
<if test="entityName != null">
#{entityName,jdbcType=VARCHAR},
</if>
<if test="category != null">
#{category,jdbcType=VARCHAR},
</if>
<if test="frequency != null">
#{frequency,jdbcType=VARCHAR},
</if>
<if test="itemName != null">
#{itemName,jdbcType=VARCHAR},
</if>
<if test="itemName2 != null">
#{itemName2,jdbcType=VARCHAR},
</if>
<if test="periodAmt != null">
#{periodAmt,jdbcType=DECIMAL},
</if>
<if test="ytdAmt != null">
#{ytdAmt,jdbcType=DECIMAL},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="pwc.taxtech.atms.vat.entity.CashFlowExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from cash_flow
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update cash_flow
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.date != null">
`date` = #{record.date,jdbcType=TIMESTAMP},
</if>
<if test="record.source != null">
`source` = #{record.source,jdbcType=VARCHAR},
</if>
<if test="record.period != null">
period = #{record.period,jdbcType=INTEGER},
</if>
<if test="record.status != null">
`status` = #{record.status,jdbcType=VARCHAR},
</if>
<if test="record.ledgerId != null">
ledger_id = #{record.ledgerId,jdbcType=VARCHAR},
</if>
<if test="record.ledgerName != null">
ledger_name = #{record.ledgerName,jdbcType=VARCHAR},
</if>
<if test="record.ledgerCurrencyCode != null">
ledger_currency_code = #{record.ledgerCurrencyCode,jdbcType=VARCHAR},
</if>
<if test="record.entityCode != null">
entity_code = #{record.entityCode,jdbcType=VARCHAR},
</if>
<if test="record.entityName != null">
entity_name = #{record.entityName,jdbcType=VARCHAR},
</if>
<if test="record.category != null">
category = #{record.category,jdbcType=VARCHAR},
</if>
<if test="record.frequency != null">
frequency = #{record.frequency,jdbcType=VARCHAR},
</if>
<if test="record.itemName != null">
item_name = #{record.itemName,jdbcType=VARCHAR},
</if>
<if test="record.itemName2 != null">
item_name2 = #{record.itemName2,jdbcType=VARCHAR},
</if>
<if test="record.periodAmt != null">
period_amt = #{record.periodAmt,jdbcType=DECIMAL},
</if>
<if test="record.ytdAmt != null">
ytd_amt = #{record.ytdAmt,jdbcType=DECIMAL},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update cash_flow
set id = #{record.id,jdbcType=BIGINT},
`date` = #{record.date,jdbcType=TIMESTAMP},
`source` = #{record.source,jdbcType=VARCHAR},
period = #{record.period,jdbcType=INTEGER},
`status` = #{record.status,jdbcType=VARCHAR},
ledger_id = #{record.ledgerId,jdbcType=VARCHAR},
ledger_name = #{record.ledgerName,jdbcType=VARCHAR},
ledger_currency_code = #{record.ledgerCurrencyCode,jdbcType=VARCHAR},
entity_code = #{record.entityCode,jdbcType=VARCHAR},
entity_name = #{record.entityName,jdbcType=VARCHAR},
category = #{record.category,jdbcType=VARCHAR},
frequency = #{record.frequency,jdbcType=VARCHAR},
item_name = #{record.itemName,jdbcType=VARCHAR},
item_name2 = #{record.itemName2,jdbcType=VARCHAR},
period_amt = #{record.periodAmt,jdbcType=DECIMAL},
ytd_amt = #{record.ytdAmt,jdbcType=DECIMAL},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.vat.entity.CashFlow">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update cash_flow
<set>
<if test="date != null">
`date` = #{date,jdbcType=TIMESTAMP},
</if>
<if test="source != null">
`source` = #{source,jdbcType=VARCHAR},
</if>
<if test="period != null">
period = #{period,jdbcType=INTEGER},
</if>
<if test="status != null">
`status` = #{status,jdbcType=VARCHAR},
</if>
<if test="ledgerId != null">
ledger_id = #{ledgerId,jdbcType=VARCHAR},
</if>
<if test="ledgerName != null">
ledger_name = #{ledgerName,jdbcType=VARCHAR},
</if>
<if test="ledgerCurrencyCode != null">
ledger_currency_code = #{ledgerCurrencyCode,jdbcType=VARCHAR},
</if>
<if test="entityCode != null">
entity_code = #{entityCode,jdbcType=VARCHAR},
</if>
<if test="entityName != null">
entity_name = #{entityName,jdbcType=VARCHAR},
</if>
<if test="category != null">
category = #{category,jdbcType=VARCHAR},
</if>
<if test="frequency != null">
frequency = #{frequency,jdbcType=VARCHAR},
</if>
<if test="itemName != null">
item_name = #{itemName,jdbcType=VARCHAR},
</if>
<if test="itemName2 != null">
item_name2 = #{itemName2,jdbcType=VARCHAR},
</if>
<if test="periodAmt != null">
period_amt = #{periodAmt,jdbcType=DECIMAL},
</if>
<if test="ytdAmt != null">
ytd_amt = #{ytdAmt,jdbcType=DECIMAL},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.vat.entity.CashFlow">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update cash_flow
set `date` = #{date,jdbcType=TIMESTAMP},
`source` = #{source,jdbcType=VARCHAR},
period = #{period,jdbcType=INTEGER},
`status` = #{status,jdbcType=VARCHAR},
ledger_id = #{ledgerId,jdbcType=VARCHAR},
ledger_name = #{ledgerName,jdbcType=VARCHAR},
ledger_currency_code = #{ledgerCurrencyCode,jdbcType=VARCHAR},
entity_code = #{entityCode,jdbcType=VARCHAR},
entity_name = #{entityName,jdbcType=VARCHAR},
category = #{category,jdbcType=VARCHAR},
frequency = #{frequency,jdbcType=VARCHAR},
item_name = #{itemName,jdbcType=VARCHAR},
item_name2 = #{itemName2,jdbcType=VARCHAR},
period_amt = #{periodAmt,jdbcType=DECIMAL},
ytd_amt = #{ytdAmt,jdbcType=DECIMAL},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
</update>
<select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.vat.entity.CashFlowExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cash_flow
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="pwc.taxtech.atms.vat.dao.CashFlowMapper">
<sql id="QueryCondition">
1 = 1
<if test="@com.github.pagehelper.util.StringUtil@isNotEmpty(cfCondition.orgId)">
AND entity_code= #{cfCondition.orgId,jdbcType=INTEGER}
</if>
<if test="cfCondition.periodStart!=null">
AND period &gt;= #{cfCondition.periodStart,jdbcType=INTEGER}
</if>
<if test="cfCondition.periodEnd!=null">
AND period &lt;= #{cfCondition.periodEnd,jdbcType=INTEGER}
</if>
</sql>
<!--<sql id="Base_Column_List">-->
<!--&lt;!&ndash;-->
<!--WARNING - @mbg.generated-->
<!--This element is automatically generated by MyBatis Generator, do not modify.-->
<!--&ndash;&gt;-->
<!--id, `date`, `source`, period, `status`, ledger_id, ledger_name, ledger_currency_code,-->
<!--entity_code, entity_name, category, frequency, item_name, item_name2, period_amt,-->
<!--ytd_amt, create_time, update_time-->
<!--</sql>-->
<select id="selectByCondition" parameterType="pwc.taxtech.atms.vat.dpo.CashFlowCondition" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include refid="Base_Column_List" />
from cash_flow
where
<include refid="QueryCondition"/>
</select>
</mapper>
\ No newline at end of file
......@@ -215,6 +215,7 @@
"BankAccountCN": "银行账号",
"BankAndAccountColon": "Bank and account number:",
"BankName": "Bank Name",
"ITME":"ITME",
"BankNameColon": "Bank Name:",
"BasicDataCheck": "Basic Data Dalidation",
"BdChoseEvidenceTitle": "Please Choose Evidence Document:",
......
......@@ -2022,6 +2022,7 @@
"LocalCurrencyCreditAmount":"本位币贷方金额",
"CashFlowEntry":"现金流量表项",
"City":"城市",
"ITME":"ITME",
"TransactionDate":"交易日期",
"BankAccountNumber":"对方银行账号",
"BankSerialNumber":"银行流水号",
......
......@@ -186,6 +186,12 @@
initExportTBData: function (queryParams) {
return $http.post('/dataPreview/exportTBData/get', queryParams, apiConfig.create({ responseType: 'arraybuffer' }));
},
getCFDataForDisplay: function (queryParams) {
return $http.post('/dataPreview/getCFDataForDisplay', queryParams, apiConfig.createVat());
},
initExportCFData: function (queryParams) {
return $http.post('/dataPreview/exportCFData/get', queryParams, apiConfig.create({ responseType: 'arraybuffer' }));
},
getPLDataForDisplay: function (queryParams) {
return $http.post('/dataPreview/getPLDataForDisplay', queryParams, apiConfig.createVat());
},
......
<div class="popover">
<div class="arrow"></div>
<div class="popover-content">
<div>
<table class="table table-responsive">
<tr>
<td>
<span translate="InvoiceRZRQQuery"></span>
<input class="form-control input-width-small" id="certificationDateStart" ng-model="queryParams.certificationDateStart" />&nbsp;-&nbsp;
<input class="form-control input-width-small" id="certificationDateEnd" ng-model="queryParams.certificationDateEnd" />
</td>
</tr>
<tr>
<td>
<span translate="InvoiceFPDMQuery"></span>
<input class="form-control input-width-middle" type="text" id="invoiceCode" ng-model="queryParams.invoiceCode" />
</td>
</tr>
<tr>
<td>
<span translate="InvoiceFPHMQuery"></span>
<input class="form-control input-width-middle" type="text" id="invoiceNumber" ng-model="queryParams.invoiceNumber" />
</td>
</tr>
<tr>
<td>
<span translate="InvoiceGHFSHQuery"></span>
<input class="form-control input-width-middle" type="text" id="sellerTaxNumber" ng-model="queryParams.sellerTaxNumber" />
</td>
</tr>
<tr>
<td>
<span translate="InvoiceJEQuery"></span>
<input class="form-control input-width-small" type="text" id="amountStart" ng-model="queryParams.amountStart" onkeyup="PWC.inputNumberFormat(this);" />&nbsp;-&nbsp;
<input class="form-control input-width-small" type="text" id="amountEnd" ng-model="queryParams.amountEnd" onkeyup="PWC.inputNumberFormat(this);" />
</td>
</tr>
<tr>
<td>
<span translate="InvoiceSEQuery"></span>
<input class="form-control input-width-small" type="text" id="taxAmountStart" ng-model="queryParams.taxAmountStart" onkeyup="PWC.inputNumberFormat(this);" />&nbsp;-&nbsp;
<input class="form-control input-width-small" type="text" id="taxAmountEnd" ng-model="queryParams.taxAmountEnd" onkeyup="PWC.inputNumberFormat(this);" />
</td>
</tr>
<tr>
<td>
<span translate="InvoiceFPLXQuery"></span>
<div class="ui-select-has-border input-width-middle">
<ui-select ng-model="InvoiceType.selected" search-enabled="false" style="text-align:left;" class="input-width-middle">
<ui-select-match>{{$select.selected.name}}</ui-select-match>
<ui-select-choices repeat="item in invoiceTypeList | propsFilter: {name: $select.search}">
<div title="{{item.name}}" ng-bind-html="item.name"></div>
</ui-select-choices>
</ui-select>
</div>
</td>
</tr>
<tr>
<td>
<span translate="InvoiceRZJGQuery"></span>
<div class="ui-select-has-border input-width-middle">
<ui-select ng-model="CertificationStatus.selected" search-enabled="false" style="text-align: left; " class="input-width-middle">
<ui-select-match>{{$select.selected.name}}</ui-select-match>
<ui-select-choices repeat="item in cetificationResultList | propsFilter: {name: $select.search}">
<div title="{{item.name}}" ng-bind-html="item.name"></div>
</ui-select-choices>
</ui-select>
</div>
</td>
</tr>
</table>
</div>
<div class="row">
<div style="float:right;margin-right:10px;">
<button class="btn btn-default btn-primary" ng-click="doDataFilter('')">
<span class="fa fa-chevron-down" aria-hidden="true"> </span> <span translate="Confirm"></span>
</button>
<button class="btn btn-default margin-right10" ng-click="doDataFilterReset()">
<span class="fa fa-times" aria-hidden="true"> </span> <span translate="Reset"></span>
</button>
</div>
</div>
</div>
</div>
vatModule.controller('VatPreviewCashFlowController', ['$scope', '$log', '$translate', '$timeout', 'SweetAlert', '$q', 'uiGridConstants', '$interval', 'vatPreviewService', 'browserService', 'vatSessionService', 'region', 'enums', 'vatExportService',
function ($scope, $log, $translate, $timeout, SweetAlert, $q, uiGridConstants, $interval, vatPreviewService, browserService, vatSessionService, region, enums, vatExportService) {
'use strict';
$scope.startDate = new Date(vatSessionService.project.year, 0, 1);
$scope.endDate = new Date(vatSessionService.project.year, 11, 31);
$scope.dateFormat = $translate.instant('dateFormat4YearMonthDay');
$scope.startMonth = vatSessionService.month;
$scope.endMonth = vatSessionService.month;
$scope.ledgerNameFirst = '';
$scope.ledgerCurrencyCodeFirst = '';
$scope.ledgerStatusFirst = '';
var minDate = [1, vatSessionService.project.year];
// var minDate = moment().startOf('month').subtract(0, 'months');
var maxDate = [12, vatSessionService.project.year];
var setDate = [
[vatSessionService.month, vatSessionService.project.year],
[vatSessionService.month, vatSessionService.project.year]];
//发票类型
var invoiceTypeEnum = {
VATInvoice: $translate.instant('VATInvoice'),
FreightTransport: $translate.instant('FreightTransport'),
MotorVehicle: $translate.instant('MotorVehicle'),
AgriculturalProduct: $translate.instant('AgriculturalProduct')
};
$scope.monthList = [$translate.instant('Month01'),
$translate.instant('Month02'),
$translate.instant('Month03'),
$translate.instant('Month04'),
$translate.instant('Month05'),
$translate.instant('Month06'),
$translate.instant('Month07'),
$translate.instant('Month08'),
$translate.instant('Month09'),
$translate.instant('Month10'),
$translate.instant('Month11'),
$translate.instant('Month12')
];
//认证结果
$scope.cetificationResultList = [
{ id: 999, name: $translate.instant('AllTheItems') },
{ id: 1, name: $translate.instant('CertificationPass') },
{ id: 2, name: $translate.instant('CertificationNotPass') }
];
//发票类型
$scope.invoiceTypeList = [
{ id: 999, name: $translate.instant('AllTheItems') },
{ id: enums.invoiceType.VATInvoice, name: $translate.instant('VATInvoice') },
{ id: enums.invoiceType.FreightTransport, name: $translate.instant('FreightTransport') },
{ id: enums.invoiceType.MotorVehicle, name: $translate.instant('MotorVehicle') },
{ id: enums.invoiceType.AgriculturalProduct, name: $translate.instant('AgriculturalProduct') }
];
$scope.InvoiceType = {};
$scope.CertificationStatus = {};
//初始化期间
var initPeriods = function () {
var curMonth = new Date().getMonth() + 1;
$scope.queryParams = {
pageInfo: {},
periodStart: '',
periodEnd: '',
orgId:''
};
};
// var countTotal = function(){
// $scope.queryParams.pageInfo = {
// totalCount: -1,
// pageIndex: 1,
// pageSize: -1,
// totalPage: 0,
// };
// // vatPreviewService.queryInputInvoiceAllList($scope.queryParams).success(function (data) {
// // if (data) {
// // var totalMoneyAmount = 0;
// // var totalTaxAmount = 0;
// // _.each(data, function (x) {
// // totalMoneyAmount = totalMoneyAmount + parseFloat(x.hjje.replace(/,/g, ""));
// // totalTaxAmount = totalTaxAmount + parseFloat(x.hjse.replace(/,/g, ""));
// // })
// // $scope.totalMoneyAmount = totalMoneyAmount.toLocaleString();
// // $scope.totalTaxAmount = totalTaxAmount.toLocaleString();
// // }
// // });
// };
//从数据库中load数据
var loadIncomeInvoiceItemDataFromDB = function (pageIndex) {
initIncomeInvoiceItemPagination();
$scope.curIncomeInvoiceItemPage = pageIndex;
//初始化查询信息
$scope.queryParams.pageInfo = {
totalCount: $scope.queryIncomeInvoiceItemResult.pageInfo.totalCount,
pageIndex: pageIndex,
pageSize: $scope.queryIncomeInvoiceItemResult.pageInfo.pageSize,
totalPage: 0,
};
vatPreviewService.getCFDataForDisplay($scope.queryParams).success(function (data) {
if (data) {
if(data.list.length>0){
var itemFirst=data.list[0];
$scope.ledgerNameFirst = itemFirst.ledgerName;
$scope.ledgerCurrencyCodeFirst = itemFirst.ledgerCurrencyCode;
$scope.ledgerStatusFirst = itemFirst.status;
}
$scope.gridOptions.data = data.list;
$scope.queryIncomeInvoiceItemResult.pageInfo = data;
computeIncomeInvoiceItemPage();
}
});
};
//点击任意一页加载数据事件
var loadIncomeInvoiceDataByPage = function (pageIndex) {
loadIncomeInvoiceItemDataFromDB(pageIndex);
};
//计算页数,创建分页栏
var computeIncomeInvoiceItemPage = function () {
if ($scope.queryIncomeInvoiceItemResult.pageInfo && $scope.queryIncomeInvoiceItemResult.pageInfo.total > 0) {
var totalPage = parseInt($scope.queryIncomeInvoiceItemResult.pageInfo.total / $scope.queryIncomeInvoiceItemResult.pageInfo.pageSize);
totalPage = $scope.queryIncomeInvoiceItemResult.pageInfo.totalCount % $scope.queryIncomeInvoiceItemResult.pageInfo.pageSize == 0 ? totalPage : totalPage + 1;
//计算本页记录数
if ($scope.queryIncomeInvoiceItemResult.pageInfo.pageNum === totalPage) {
$scope.curPageItemCount = $scope.queryIncomeInvoiceItemResult.pageInfo.total % $scope.queryIncomeInvoiceItemResult.pageInfo.pageSize;
}
else {
$scope.curPageItemCount = $scope.queryIncomeInvoiceItemResult.pageInfo.pageSize;
}
$scope.queryIncomeInvoiceItemResult.pageInfo.totalPage = totalPage;
var createPage = $("#totalInvoicePage").createPage({
pageCount: totalPage,
current: $scope.curIncomeInvoiceItemPage,
backFn: function (p) {
//单击回调方法,p是当前页码
loadIncomeInvoiceDataByPage(p);
}
});
$('#totalInvoicePage').css('display', 'inline-block');
} else {
//如果查询结果为0,则直接设置本页记录数为0
$scope.curPageItemCount = 0;
var createPage = $("#totalInvoicePage").createPage({
pageCount: 0,
current: $scope.curIncomeInvoiceItemPage,
backFn: function (p) {
//单击回调方法,p是当前页码
loadIncomeInvoiceDataByPage(p);
}
});
$('#totalInvoicePage').css('display', 'inline-block');
}
};
//初始化分页信息
var initIncomeInvoiceItemPagination = function () {
$scope.queryIncomeInvoiceItemResult = {
list: [],
pageInfo: {
totalCount: -1,
pageIndex: 1,
pageSize: constant.pagesize,
totalPage: 0,
}
}
$scope.curIncomeInvoiceItemPage = 1;
};
//将选择了的查询条件显示在grid上方
var doDataFilter = function (removeData) {
if ($scope.queryParams.periodStart > $scope.queryParams.periodEnd) {
$scope.queryParams.periodEnd = $scope.queryParams.periodStart;
}
//设置需要去掉的查询条件的值为空
if (!PWC.isNullOrEmpty(removeData)) {
var removeItem = removeData.split("|");
removeItem.forEach(function (v) {
$scope.queryParams[v] = null;
//如果去掉了发票代码的查询条件,则将查询条件设置为'',因为是字符串,设置为null会导致查询结果错误
if ($scope.queryParams.invoiceCode === null) {
$scope.queryParams.invoiceCode = '';
}
//如果去掉了发票号码的查询条件,则将查询条件设置为'',因为是字符串,设置为null会导致查询结果错误
if ($scope.queryParams.invoiceNumber === null) {
$scope.queryParams.invoiceNumber = '';
}
//如果去掉了供货方税号的查询条件,则将查询条件设置为'',因为是字符串,设置为null会导致查询结果错误
if ($scope.queryParams.sellerTaxNumber === null) {
$scope.queryParams.sellerTaxNumber = '';
}
if ($scope.queryParams.invoiceType === null) {
$scope.InvoiceType.selected = undefined;
}
if ($scope.queryParams.certificationStatus === null) {
$scope.CertificationStatus.selected = undefined;
}
});
}
//设置发票类型和认证结果
if ($scope.InvoiceType.selected !== undefined)
$scope.queryParams.invoiceType = $scope.InvoiceType.selected.id;
else
$scope.queryParams.invoiceType = null;
if ($scope.CertificationStatus.selected !== undefined)
$scope.queryParams.certificationStatus = $scope.CertificationStatus.selected.id;
else
$scope.queryParams.certificationStatus = null;
// 将查询条件加入到grid上方
var crits = $scope.queryParams;
//定义查询条件数组用于存放已选的查询条件
$scope.criteriaList = [];
var crit = [];
//认证日期
if (!PWC.isNullOrEmpty(crits.certificationDateStart) && !PWC.isNullOrEmpty(crits.certificationDateEnd)) {
if (new Date(crits.certificationDateStart.replace(/[\.-]/g, '/')) > new Date(crits.certificationDateEnd.replace(/[\.-]/g, '/'))) {
$scope.criteriaList = [];
SweetAlert.warning($translate.instant('InvoiceDateQueryError'));
return;
}
crit = new Object;
crit.name = $translate.instant('InvoiceRZRQQuery') + crits.certificationDateStart + "-" + crits.certificationDateEnd;;
crit.fullName = $translate.instant('InvoiceRZRQQuery') + crits.certificationDateStart + "-" + crits.certificationDateEnd;
crit.valueFrom = crits.certificationDateStart;
crit.valueTo = crits.certificationDateEnd;
crit.propertyName = "certificationDateStart|certificationDateEnd";
$scope.criteriaList.push(crit);
} else if (!PWC.isNullOrEmpty(crits.certificationDateStart) && PWC.isNullOrEmpty(crits.invoiceDateEnd)) {
crit = new Object;
crit.name = $translate.instant('InvoiceRZRQQuery') + crits.certificationDateStart + $translate.instant('After');
crit.fullName = $translate.instant('InvoiceRZRQQuery') + crits.certificationDateStart + $translate.instant('After');
crit.valueFrom = crits.certificationDateStart;
crit.valueTo = crits.certificationDateEnd;
crit.propertyName = "certificationDateStart|certificationDateEnd";
$scope.criteriaList.push(crit);
}
else if (PWC.isNullOrEmpty(crits.certificationDateStart) && !PWC.isNullOrEmpty(crits.certificationDateEnd)) {
crit = new Object;
crit.name = $translate.instant('InvoiceRZRQQuery') + crits.certificationDateEnd + $translate.instant('Before');
crit.fullName = $translate.instant('InvoiceRZRQQuery') + crits.certificationDateEnd + $translate.instant('Before');
crit.valueFrom = crits.certificationDateStart;
crit.valueTo = crits.certificationDateEnd;
crit.propertyName = "certificationDateStart|certificationDateEnd";
$scope.criteriaList.push(crit);
}
//发票代码
if (!PWC.isNullOrEmpty(crits.invoiceCode)) {
crit = new Object;
crit.name = $translate.instant('InvoiceFPDMQuery') + PWC.limitString(crits.invoiceCode, 10);
crit.fullName = $translate.instant('InvoiceFPDMQuery') + crits.invoiceCode;
crit.valueFrom = crits.invoiceCode;
crit.propertyName = "invoiceCode";
$scope.criteriaList.push(crit);
}
//发票号码
if (!PWC.isNullOrEmpty(crits.invoiceNumber)) {
crit = new Object;
crit.name = $translate.instant('InvoiceFPHMQuery') + PWC.limitString(crits.invoiceNumber, 10);
crit.fullName = $translate.instant('InvoiceFPHMQuery') + crits.invoiceNumber;
crit.valueFrom = crits.invoiceNumber;
crit.propertyName = "invoiceNumber";
$scope.criteriaList.push(crit);
}
//销方识别号
if (!PWC.isNullOrEmpty(crits.sellerTaxNumber)) {
crit = new Object;
crit.name = $translate.instant('InvoiceGHFSHQuery') + PWC.limitString(crits.sellerTaxNumber, 10);
crit.fullName = $translate.instant('InvoiceGHFSHQuery') + crits.sellerTaxNumber;
crit.valueFrom = crits.sellerTaxNumber;
crit.propertyName = "sellerTaxNumber";
$scope.criteriaList.push(crit);
}
//金额
if (!PWC.isNullOrEmpty(crits.amountStart) && !PWC.isNullOrEmpty(crits.amountEnd)) {
if (Number(crits.amountStart) > Number(crits.amountEnd)) {
SweetAlert.warning($translate.instant('AmountQueryError'));
return;
}
crit = new Object;
crit.name = $translate.instant('InvoiceJEQuery') + PWC.limitString(crits.amountStart, 5) + ' - ' + PWC.limitString(crits.amountEnd, 5);
crit.fullName = $translate.instant('InvoiceJEQuery') + crits.amountStart + ' - ' + crits.amountEnd;
crit.valueFrom = crits.amountStart;
crit.valueTo = crits.amountEnd;
crit.propertyName = "amountStart|amountEnd";
$scope.criteriaList.push(crit);
}
else if (!PWC.isNullOrEmpty(crits.amountStart) && PWC.isNullOrEmpty(crits.amountEnd)) {
crit = new Object;
crit.name = $translate.instant('InvoiceJEQuery') + PWC.limitString(crits.amountStart, 5) + $translate.instant('MoreThan');
crit.fullName = $translate.instant('InvoiceJEQuery') + crits.amountStart + $translate.instant('MoreThan');
crit.valueFrom = crits.amountStart;
crit.valueTo = crits.amountEnd;
crit.propertyName = "amountStart|amountEnd";
$scope.criteriaList.push(crit);
}
else if (PWC.isNullOrEmpty(crits.amountStart) && !PWC.isNullOrEmpty(crits.amountEnd)) {
crit = new Object;
crit.name = $translate.instant('InvoiceJEQuery') + PWC.limitString(crits.amountEnd, 5) + $translate.instant('LessThan');
crit.fullName = $translate.instant('InvoiceJEQuery') + crits.amountEnd + $translate.instant('LessThan');
crit.valueFrom = crits.amountStart;
crit.valueTo = crits.amountEnd;
crit.propertyName = "amountStart|amountEnd";
$scope.criteriaList.push(crit);
}
//税额
if (!PWC.isNullOrEmpty(crits.taxAmountStart) && !PWC.isNullOrEmpty(crits.taxAmountEnd)) {
if (Number(crits.taxAmountStart) > Number(crits.taxAmountEnd)) {
SweetAlert.warning($translate.instant('TaxAmountQueryError'));
return;
}
crit = new Object;
crit.name = $translate.instant('InvoiceSEQuery') + PWC.limitString(crits.taxAmountStart, 5) + ' - ' + PWC.limitString(crits.taxAmountEnd, 5);
crit.fullName = $translate.instant('InvoiceSEQuery') + crits.taxAmountStart + ' - ' + crits.taxAmountEnd;
crit.valueFrom = crits.taxAmountStart;
crit.valueTo = crits.taxAmountEnd;
crit.propertyName = "taxAmountStart|taxAmountEnd";
$scope.criteriaList.push(crit);
}
else if (!PWC.isNullOrEmpty(crits.taxAmountStart) && PWC.isNullOrEmpty(crits.taxAmountEnd)) {
crit = new Object;
crit.name = $translate.instant('InvoiceSEQuery') + PWC.limitString(crits.taxAmountStart, 5) + $translate.instant('MoreThan');
crit.fullName = $translate.instant('InvoiceSEQuery') + crits.taxAmountStart + $translate.instant('MoreThan');
crit.valueFrom = crits.taxAmountStart;
crit.valueTo = crits.taxAmountEnd;
crit.propertyName = "taxAmountStart|taxAmountEnd";
$scope.criteriaList.push(crit);
}
else if (PWC.isNullOrEmpty(crits.taxAmountStart) && !PWC.isNullOrEmpty(crits.taxAmountEnd)) {
crit = new Object;
crit.name = $translate.instant('InvoiceSEQuery') + PWC.limitString(crits.taxAmountEnd, 5) + $translate.instant('LessThan');
crit.fullName = $translate.instant('InvoiceSEQuery') + crits.taxAmountEnd + $translate.instant('LessThan');
crit.valueFrom = crits.taxAmountStart;
crit.valueTo = crits.taxAmountEnd;
crit.propertyName = "taxAmountStart|taxAmountEnd";
$scope.criteriaList.push(crit);
}
//发票类型
if (!PWC.isNullOrEmpty(crits.invoiceType)) {
crit = new Object;
crit.valueFrom = _.find($scope.invoiceTypeList, function (v) {
return v.id === crits.invoiceType;
}).name;
crit.name = $translate.instant('InvoiceFPLXQuery') + crit.valueFrom;
crit.fullName = $translate.instant('InvoiceFPLXQuery') + crit.valueFrom;
crit.propertyName = "invoiceType";
$scope.criteriaList.push(crit);
}
//认证结果
if (!PWC.isNullOrEmpty(crits.certificationStatus)) {
crit = new Object;
crit.valueFrom = _.find($scope.cetificationResultList, function (v) {
return v.id === crits.certificationStatus;
}).name;
crit.name = $translate.instant('InvoiceRZJGQuery') + crit.valueFrom;
crit.fullName = $translate.instant('InvoiceRZJGQuery') + crit.valueFrom;
crit.propertyName = "certificationStatus";
$scope.criteriaList.push(crit);
}
// add to Criteria List for display on top of the grid:
//********************************************************************************
var criteria = JSON.stringify($scope.queryParams);
if (browserService.isIE() || browserService.isEdge())
criteria = encodeURIComponent(criteria);
countTotal();
loadIncomeInvoiceItemDataFromDB(1);
if ($scope.criteriaList.length > 6) {
$scope.criteriaListFirstRow = $scope.criteriaList.slice(0, 6);
$scope.criteriaListSecondRow = $scope.criteriaList.slice(6, $scope.criteriaList.length);
}
else {
$scope.criteriaListFirstRow = $scope.criteriaList.slice(0, $scope.criteriaList.length);
}
$('.filter-button').popover("hide");
};
//去掉所有的查询条件,重新load数据
var doDataFilterReset = function () {
$scope.queryParams = {
pageInfo: {},
periodStart: '',
periodEnd: '',
orgId:''
};
$scope.criteriaList = [];
$scope.queryParams.periodStart = $scope.startMonth;
$scope.queryParams.periodEnd = $scope.endMonth;
//countTotal();
loadIncomeInvoiceItemDataFromDB(1);
$('.filter-button').popover("hide");
};
var prepareSummary = function () {
// do something before show popover
};
//在popover打开时执行事件
var showPopover = function () {
$timeout(function () {
initDatePickers();
}, 500);
};
//初始化时间控件
var initDatePickers = function () {
//认证开始时间
var ele1 = $("#certificationDateStart");
ele1.datepicker({
startDate: $scope.startDate,
endDate: $scope.endDate,
language: region,
autoclose: true,//选中之后自动隐藏日期选择框
clearBtn: true,//清除按钮
todayBtn: false,//今日按钮
format: $scope.dateFormat//日期格式,详见 http://bootstrap-datepicker.readthedocs.org/en/release/options.html#format
});
ele1.datepicker("setDate", $scope.queryParams.certificationDateStart);
//认证结束时间
var ele2 = $("#certificationDateEnd");
ele2.datepicker({
startDate: $scope.startDate,
endDate: $scope.endDate,
language: region,
autoclose: true,//选中之后自动隐藏日期选择框
clearBtn: true,//清除按钮
todayBtn: false,//今日按钮
format: $scope.dateFormat//日期格式,详见 http://bootstrap-datepicker.readthedocs.org/en/release/options.html#format
})
ele2.datepicker("setDate", $scope.queryParams.certificationDateEnd);
//初始化已选择的发票类型和认证结果
$scope.InvoiceType.selected = _.find($scope.invoiceTypeList, function (v) {
return v.id == $scope.queryParams.invoiceType;
})
$scope.CertificationStatus.selected = _.find($scope.cetificationResultList, function (v) {
return v.id == $scope.queryParams.certificationStatus;
})
};
//发票类型转换
$scope.typeToString = function (strType) {
var type = invoiceTypeEnum.VATInvoice;
switch (strType) {
case 1:
type = invoiceTypeEnum.VATInvoice;
break;
case 2:
type = invoiceTypeEnum.FreightTransport;
break;
case 3:
type = invoiceTypeEnum.MotorVehicle;
break;
case 4:
type = invoiceTypeEnum.AgriculturalProduct;
break;
default:
type = "";
}
return type;
};
//导出进项发票数据
var downloadInputInvoice = function () {
vatPreviewService.getExportInputInvoiceList($scope.queryParams).success(function (data, status, headers) {
if(status===204){
SweetAlert.warning("没有数据可以下载");
return;
}
vatExportService.exportToExcel(data, status, headers, '进项发票信息.xls');
});
};
(function initialize() {
$log.debug('VatPreviewInputInvoiceController.ctor()...');
$('#input-invoice-period-picker').focus(function () {
$('.filter-button').popover("hide");
});
//初始化month-picker
$('#input-invoice-period-picker').rangePicker({
minDate: minDate,
maxDate: maxDate,
setDate: setDate,
months: $scope.monthList,//['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
ConfirmBtnText: $translate.instant('Confirm'),
CancelBtnText: $translate.instant('ButtonCancel')
})
.on('datePicker.done', function (e, result) {
//开始月份
var startMonth = result[0][0];
//结束月份
var endMonth = result[1][0];
$scope.startMonth = startMonth;
$scope.endMonth = endMonth;
$scope.queryParams.periodStart = startMonth;
$scope.queryParams.periodEnd = endMonth;
countTotal();
loadIncomeInvoiceItemDataFromDB(1);
});
$scope.gridOptions = {
rowHeight: constant.UIGrid.rowHeight,
selectionRowHeaderWidth: constant.UIGrid.rowHeight,
//expandableRowTemplate: '<div ui-grid="row.entity.subGridOptions" style="height:150px;"></div>',
virtualizationThreshold: 50,//默认加载50条数据,避免在数据展示时,只显示前面4条
enableSorting: false,
enableColumnMenus: false,
columnDefs: [
{ name: $translate.instant('CashFlowEntry'), width: '32%', cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.itemName}}<span></div>' },
{ name: $translate.instant('Item'), width: '38%', cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.itemName2}}<span></div>' },
{ name: $translate.instant('CurrentPeriodAmount'), width: '15%', cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.periodAmt}}<span></div>' },
{ name: $translate.instant('ThisYearAccumulatedAmount'), width: '15%', cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.ytdAmt}}<span></div>' }
],
// onRegisterApi: function (gridApi) {
// $scope.gridApi = gridApi;
// //定义子table属性
// gridApi.expandable.on.rowExpandedStateChanged($scope, function (row) {
// if (row.isExpanded) {
// row.entity.subGridOptions = {
// rowHeight: constant.UIGrid.rowHeight,
// selectionRowHeaderWidth: constant.UIGrid.rowHeight,
// virtualizationThreshold: 50,//默认加载50条数据,避免在数据展示时,只显示前面4条
// enableSorting: false,
// enableColumnMenus: false,
// columnDefs: [
// // { name: $translate.instant('ImportErrorPopUpNoCol'), width: '10%', cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.index}}<span></div>' },
// { name: $translate.instant('InvoiceHWMC'), headerCellClass:'right', width: '20%', cellTemplate: '<div class="ui-grid-cell-contents"><span style="float:right" title="{{row.entity.spmc}}">{{row.entity.spmc}}<span></div>' },
// { name: $translate.instant('InvoiceJE'), headerCellClass:'right', width: '13%', cellTemplate: '<div class="ui-grid-cell-contents"><span style="float:right">{{row.entity.je}}<span></div>' },
// { name: $translate.instant('InvoiceSL'), headerCellClass:'right', width: '13%', cellTemplate: '<div class="ui-grid-cell-contents"><span style="float:right">{{row.entity.slv}}%<span></div>' },
// { name: $translate.instant('InvoiceSE'), headerCellClass:'right', width: '13%', cellTemplate: '<div class="ui-grid-cell-contents"><span style="float:right">{{row.entity.se}}<span></div>' }
// ]
// };
// //获取子table数据
// vatPreviewService.queryInputInvoiceItemList(row.entity.id).success(function (data) {
// if (data) {
// var index = 1;
// data.forEach(function (v) {
// v.index = index++;
// v.je = PWC.round(v.je, 2);
// v.se = PWC.round(v.se, 2);
// });
// row.entity.subGridOptions.data = data;
// }
// });
// }
// });
// $interval(function () {
// $scope.gridApi.core.handleWindowResize();
// }, 500, 60 * 60 * 8);
// }
};
//$scope.doDataFilter = doDataFilter;
$scope.doDataFilterReset = doDataFilterReset;
//$scope.prepareSummary = prepareSummary;
$scope.showPopover = showPopover;
$scope.downloadInputInvoice = downloadInputInvoice;
initPeriods();
initIncomeInvoiceItemPagination();
//初始化查询条件-期间范围
$scope.queryParams.periodStart = vatSessionService.month;
$scope.queryParams.periodEnd = vatSessionService.month;
countTotal();
$scope.queryParams.orgId = vatSessionService.project.organizationID;
loadIncomeInvoiceItemDataFromDB(1);
})();
}
]);
<div class="vat-preview-cash-flow" id="mainPreviewDiv">
<div class="top-area-wrapper" style="margin-top: 10px">
<span translate="CashFlowDDTitle" class="text-bold"></span> &nbsp;&nbsp;|&nbsp;&nbsp;<span class="text-bold" translate="InvoiceQJ"></span>
<input type="text" class="form-control input-width-middle" style="position: relative; top: -30px; left: 130px;" id="input-invoice-period-picker" />
<span ng-click="downloadInputInvoice()" style="position: relative; top: -13px; left: 95%;"><i class="fa fa-file-excel-o" aria-hidden="true"></i>{{'ExportBtn' | translate}}</span>
</div>
<div style="margin-bottom: 10px;margin-left: 20px;margin-top: 10px;">
账套名称:<span class="numAmount">{{ledgerNameFirst}}</span>&nbsp;&nbsp;&nbsp;
账套币种:<span class="numAmount">{{ledgerCurrencyCodeFirst}}</span>&nbsp;&nbsp;&nbsp;
是否关账:<span class="numAmount">{{ledgerStatusFirst}}</span>
</div>
<!-- <div id="filterCriteriaDiv" style="max-width:98%;margin-bottom:2px;" ng-show="criteriaList.length>0">
<span class="text-bold margin-left20" translate="FilterCriteriaTags"></span>:
<span class="tag label label-default" ng-repeat="criteria in criteriaListFirstRow">
<span title="{{criteria.fullName}}">
{{criteria.name}}
</span>
<a><i class="remove glyphicon glyphicon-remove-sign glyphicon-white" ng-click="doDataFilter(criteria.propertyName)"></i></a>
</span>
<span ng-if="criteriaList.length>6"><br /></span>
<span ng-if="criteriaList.length>6" style="margin-left: 81px; margin-top: 19px; display: inline-block;"></span>
<span ng-if="criteriaList.length>6" class="tag label label-default" ng-repeat="criteria in criteriaListSecondRow">
<span title="{{criteria.fullName}}">
{{criteria.name}}
</span>
<a><i class="remove glyphicon glyphicon-remove-sign glyphicon-white" ng-click="doDataFilter(criteria.propertyName)"></i></a>
</span>
</div> -->
<div id="mainAreaDiv" class="main-area">
<div class="inputInvoiceGrid" ui-grid-expandable ui-grid="gridOptions">
<div class="watermark" ng-show="!gridOptions.data.length"><span translate="NoDataAvailable"></span></div>
</div>
<div class="pagination-container">
<span>本页{{curPageItemCount}}条记录,共{{queryIncomeInvoiceItemResult.pageInfo.total}}条记录</span>
<div id="totalInvoicePage" class="common-pagination" style="display:none;">
</div>
</div>
</div>
</div>
vatModule.directive('vatPreviewCashFlow', ['$log', 'browserService', '$translate', 'region', '$timeout',
function ($log, browserService, $translate, region, $timeout) {
$log.debug('vatPreviewCashFlow.ctor()...');
return {
restrict: 'E',
templateUrl: '/app/vat/preview/vat-preview-cash-flow/vat-preview-cash-flow.html' + '?_=' + Math.random(),
scope: {},
controller: 'VatPreviewCashFlowController',
link: function ($scope, element) {
}
}
}
]);
\ No newline at end of file
@import "~/app-resources/less/theme.less";
.vat-preview-cash-flow {
background-color: white;
height: 100%;
.numAmount {
padding: 0 3px;
height: 21px;
margin-left: 5px;
/* font-family: 'Arial'; */
font-weight: 600;
border-radius: 2px;
font-style: normal;
outline: none;
border: none;
min-width: 20px;
background-color: #DDDDDD;
color: #AA0000;
}
.top-area-wrapper {
height: 30px;
width: 98%;
margin: 0 20px;
.filter-button {
width: 30px;
margin-top: 16px;
}
.operation-wrapper {
margin: 15px 25px 10px 10px;
span {
cursor: pointer;
}
}
}
.filter-popup-wrapper {
display: none;
}
.margin-left20 {
margin-left: 20px;
}
/*******************************************/
/*Filter Criteria tags:*/
.tag {
font-size: 12px;
padding: .3em .4em .4em;
margin: 0 .1em;
a {
color: #bbb;
cursor: pointer;
opacity: 0.6;
margin: 0 0 0 .3em;
&:hover {
opacity: 1.0;
}
.glyphicon-white {
color: #fff;
margin-bottom: 2px;
}
}
.remove {
vertical-align: bottom;
top: 0;
}
}
/*Filter Criteria tags:*/
/*******************************************/
.main-area {
height: 100%;
margin: 0 20px;
.watermark {
position: absolute;
top: 50%;
transform: translateY(-50%);
opacity: .25;
font-size: 3em;
width: 100%;
text-align: center;
z-index: 1000;
}
.inputInvoiceGrid {
width: 100%;
height: calc(~'100% - 158px');
.ui-grid-header-cell-wrapper .ui-grid-header-cell-row .ui-grid-cell-contents {
height: 40px;
i {
display: none;
}
}
}
}
.form-control {
&:focus {
border-color: transparent;
-webkit-box-shadow: none;
box-shadow: none;
border: 1px solid #ccc;
}
}
.input-width-middle {
width: 217px;
}
}
.popover {
min-width: 370px;
left: 119px !important;
.arrow {
left: 5% !important;
}
}
.popover-content {
td {
text-align: right;
padding: 6px;
span {
float: left;
}
}
.form-control {
display: inline-block;
&:focus {
border-color: transparent;
-webkit-box-shadow: none;
box-shadow: none;
border: 1px solid #ccc;
}
}
.input-width-small {
width: 100px;
}
.input-width-middle {
width: 217px;
}
}
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