Commit f8f0ae8f authored by Memorydoc's avatar Memorydoc

#

parent 3e4f7a27
......@@ -336,25 +336,22 @@ public class ReportController {
}
@RequestMapping(value = "saveAndRefresh", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public OperationResultDto saveAndRefresh(/*@RequestParam(value = "orgId") String orgId,
/* @RequestMapping(value = "saveAndRefresh", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public OperationResultDto saveAndRefresh(*//*@RequestParam(value = "orgId") String orgId,
@RequestParam(value = "period") Integer period,
@RequestParam(value = "specialConsiderations", defaultValue = "0") Integer specialConsiderations,
@RequestParam(value = "ebitRate", defaultValue = "1") String ebitRate,
@RequestParam(value = "reportId") Long reportId,*/ @RequestBody RequestParameterDto requestParameterDto) {
@RequestParam(value = "reportId") Long reportId,*//* @RequestBody RequestParameterDto requestParameterDto) {
OperationResultDto operationResultDto = new OperationResultDto();
String projId = getProjId(requestParameterDto.getOrgId(), requestParameterDto.getPeriod());
try {
operationResultDto.setData(reportService.loadEbitData(requestParameterDto.getOrgId(), requestParameterDto.getPeriod(), requestParameterDto.getSpecialConsiderations(), requestParameterDto.getEbitRate()));
/* new Thread(()->{
reportService.saveDatasource(orgId, period, specialConsiderations, ebitRate, operationResultDto, reportService.getCellData(Long.parseLong(requestParameterDto.getReportId()),projId ).getData().getCellData());
}).start();*/
} catch (Exception e) {
return operationResultDto.error();
}
operationResultDto.setResultMsg("success");
return operationResultDto;
}
}*/
@RequestMapping("getlxbId")
public OperationResultDto getlxbId() {
......
......@@ -12,6 +12,7 @@ import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFCellStyle;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.apache.poi.ss.usermodel.*;
import org.apache.poi.xssf.usermodel.XSSFCell;
import org.apache.poi.xssf.usermodel.XSSFFormulaEvaluator;
......@@ -25,6 +26,7 @@ import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import pwc.taxtech.atms.analysis.entity.AnalysisTax;
import pwc.taxtech.atms.common.CommonUtils;
import pwc.taxtech.atms.common.POIUtil;
import pwc.taxtech.atms.common.message.ErrorMessage;
......@@ -1241,24 +1243,88 @@ public class ReportServiceImpl extends BaseService {
}
public OperationResultDto<ReportDataDto> getCellData(String reportId, String orgId, Integer period) {
ReportDataDto reportDataDto = new ReportDataDto();
EbitDataDto ebitDataDto = loadEbitData(orgId, period, specialConsideration, ebitRate);
reportDataDto.setEbitData(ebitDataDto);
OperationResultDto<ReportDataDto> cellData = new OperationResultDto<>();
ReportDataDto reportDataDto = new ReportDataDto();
cellData.setData(reportDataDto);
EbitCellDataExample example = new EbitCellDataExample();
example.createCriteria().andOrganizationIdEqualTo(orgId).andPeriodEqualTo(period);
List<EbitCellData> ebitCellData = ebitCellDataMapper.selectByExample(example);
if (ebitCellData.size() != 0) {
cellData.getData().setEbitData(_getEbitData(ebitCellData));
}
if (reportId != null) {
cellData = getCellData(Long.parseLong(reportId), getProjId(orgId, period));
}
if(ebitDataDto != null){
if(reportId == null){
reportDataDto.setEbitData(ebitDataDto);
cellData.setData(reportDataDto);
}else{
cellData.getData().setEbitData(ebitDataDto);
List<CellDataDto> cellDataDtoList = cellData.getData().getCellData();
if (cellDataDtoList.size() != 0) {
EbitDataDto ebitDataDto = calculateEbitData(cellDataDtoList, specialConsideration, ebitRate);
if (ebitDataDto != null && cellData.getData().getEbitData() != null)
cellData.getData().setEbitData(ebitDataDto);
}
return cellData;
}
return cellData;
}
private EbitDataDto _getEbitData(List<EbitCellData> ebitCellDataList) {
EbitDataDto ebitDataDto = new EbitDataDto();
for (EbitCellData ebitCellData : ebitCellDataList) {
if (ebitCellData.getCol() == 2 && ebitCellData.getRow() == 37) {
if ("".equals(ebitCellData.getData())) {
ebitDataDto.setEbitSubtraction(new BigDecimal(0));
continue;
}
ebitDataDto.setEbitSubtraction(new BigDecimal(ebitCellData.getData()));
continue;
}
if (ebitCellData.getCol() == 2 && ebitCellData.getRow() == 38) {
if ("".equals(ebitCellData.getData())) {
ebitDataDto.setEbitSubtraction(new BigDecimal(0));
continue;
}
ebitDataDto.setSpecialConsiderations(ebitCellData.getData());
continue;
}
if (ebitCellData.getCol() == 2 && ebitCellData.getRow() == 39) {
if ("".equals(ebitCellData.getData())) {
ebitDataDto.setSpecialFactors(new BigDecimal(0));
continue;
}
ebitDataDto.setSpecialFactors(new BigDecimal(ebitCellData.getData()));
continue;
}
if (ebitCellData.getCol() == 2 && ebitCellData.getRow() == 40) {
ebitDataDto.setEbitRate(ebitCellData.getData());
continue;
}
if (ebitCellData.getCol() == 2 && ebitCellData.getRow() == 41) {
if ("".equals(ebitCellData.getData()))
{
ebitDataDto.setTransactionAmount(new BigDecimal(0));
continue;
}
ebitDataDto.setTransactionAmount(new BigDecimal(ebitCellData.getData()));
continue;
}
if (ebitCellData.getCol() == 2 && ebitCellData.getRow() == 42) {
if ("".equals(ebitCellData.getData())) {
ebitDataDto.setSixAddTax(new BigDecimal(0));
continue;
}
ebitDataDto.setSixAddTax(new BigDecimal(ebitCellData.getData()));
continue;
}
if (ebitCellData.getCol() == 2 && ebitCellData.getRow() == 43) {
if ("".equals(ebitCellData.getData())) {
ebitDataDto.setTotalAmountTax(new BigDecimal(0));
continue;
}
ebitDataDto.setTotalAmountTax(new BigDecimal(ebitCellData.getData()));
continue;
}
}
return ebitDataDto;
}
public OperationResultDto<ReportDataDto> getCellData(Long reportId, String projectId) {
OperationResultDto resultDto = new OperationResultDto();
ReportDataDto dataDto = new ReportDataDto();
......@@ -1483,71 +1549,72 @@ public class ReportServiceImpl extends BaseService {
private String ebitRate = "1%";
//加载Ebit数据
public EbitDataDto loadEbitData(String orgId, Integer period, String specialConsiderations, String ebitRate) {
BigDecimal spec = new BigDecimal(0);
double rate = 0.01; //ebitRate
if ("".equals(specialConsiderations)) {
specialConsiderations = "0";
}
if (!ebitRate.isEmpty()) {
int _index = ebitRate.indexOf("%");
if (_index != -1) {
rate = Double.parseDouble(ebitRate.substring(0, _index)) / 100;
} else {
rate = Double.parseDouble(ebitRate) / 100;
public EbitDataDto calculateEbitData(List<CellDataDto> cellDataDtoList, String specialConsiderations, String ebitRate) {
EbitDataDto ebitDataDto = new EbitDataDto();
try {
BigDecimal spec = new BigDecimal(0);
double rate = 0.01; //ebitRate
if ("".equals(specialConsiderations)) {
specialConsiderations = "0";
}
}
spec = new BigDecimal(specialConsiderations);
ProfitLossStatementExample example = new ProfitLossStatementExample();
ProfitLossStatementExample.Criteria criteria = example.createCriteria();
criteria.andOrganizationIdEqualTo(orgId);
criteria.andPeriodEqualTo(period);
List<ProfitLossStatement> profitLossStatements = profitLossStatementFinalMapper.selectByExample(example);
BigDecimal yysr = new BigDecimal(0);//营业收入
BigDecimal yycb = new BigDecimal(0);//营业成本
BigDecimal yysjfj = new BigDecimal(0);//营业税金附加
BigDecimal xsfy = new BigDecimal(0);//销售费用
BigDecimal glfy = new BigDecimal(0);//管理费用
BigDecimal yffy = new BigDecimal(0);//研发费用
BigDecimal zcjzss = new BigDecimal(0); //资产减值损失
for (ProfitLossStatement profitLossStatement : profitLossStatements) {
BigDecimal value = profitLossStatement.getYtdAmt();
switch (profitLossStatement.getItemName()) {
case "一、营业收入":
yysr = value;
break;
case "减:营业成本":
yycb = value;
case "营业税金及附加":
yysjfj = value;
break;
case "销售费用":
xsfy = value;
case "管理费用":
glfy = value;
break;
case "研发费用 ":
yffy = value;
case "资产减值损失":
zcjzss = value;
if (!ebitRate.isEmpty()) {
int _index = ebitRate.indexOf("%");
if (_index != -1) {
rate = Double.parseDouble(ebitRate.substring(0, _index)) / 100;
} else {
rate = Double.parseDouble(ebitRate) / 100;
}
}
spec = new BigDecimal(specialConsiderations);
BigDecimal yysr = new BigDecimal(0);//营业收入
BigDecimal yycb = new BigDecimal(0);//营业成本
BigDecimal yysjfj = new BigDecimal(0);//营业税金附加
BigDecimal xsfy = new BigDecimal(0);//销售费用
BigDecimal glfy = new BigDecimal(0);//管理费用
BigDecimal yffy = new BigDecimal(0);//研发费用
BigDecimal zcjzss = new BigDecimal(0); //资产减值损失
for (CellDataDto cellDataDto : cellDataDtoList) {
if (cellDataDto.getColumnIndex() == 2 && cellDataDto.getRowIndex() == 11) { //一、营业收入
yysr = new BigDecimal(cellDataDto.getCellValue());
continue;
}
if (cellDataDto.getColumnIndex() == 2 && cellDataDto.getRowIndex() == 12) {//减:营业成本
yycb = new BigDecimal(cellDataDto.getCellValue());
}
if (cellDataDto.getColumnIndex() == 2 && cellDataDto.getRowIndex() == 13) {//营业税金及附加
yysjfj = new BigDecimal(cellDataDto.getCellValue());
}
if (cellDataDto.getColumnIndex() == 2 && cellDataDto.getRowIndex() == 14) {//销售费用
xsfy = new BigDecimal(cellDataDto.getCellValue());
}
if (cellDataDto.getColumnIndex() == 2 && cellDataDto.getRowIndex() == 15) {//管理费用
glfy = new BigDecimal(cellDataDto.getCellValue());
}
if (cellDataDto.getColumnIndex() == 2 && cellDataDto.getRowIndex() == 16) {//研发费用
yffy = new BigDecimal(cellDataDto.getCellValue());
}
if (cellDataDto.getColumnIndex() == 2 && cellDataDto.getRowIndex() == 18) {//资产减值损失
zcjzss = new BigDecimal(cellDataDto.getCellValue());
}
}
EbitDataDto ebitDataDto = new EbitDataDto();
BigDecimal subtract = yysr.subtract(yycb).add(yysjfj).add(xsfy).add(glfy).add(yffy).add(zcjzss);
ebitDataDto.setEbitSubtraction(subtract);
ebitDataDto.setSpecialFactors(subtract.add(spec));
ebitDataDto.setEbitRate(String.valueOf(rate));
ebitDataDto.setTransactionAmount(ebitDataDto.getSpecialFactors().multiply(new BigDecimal(ebitDataDto.getEbitRate())));
if(ebitRate.indexOf("%") != -1){
if (ebitRate.indexOf("%") != -1) {
ebitDataDto.setEbitRate(ebitRate);
}else{
} else {
ebitDataDto.setEbitRate(ebitRate + "%");
}
ebitDataDto.setSixAddTax(ebitDataDto.getTransactionAmount().multiply(new BigDecimal(0.06)));
ebitDataDto.setTotalAmountTax(ebitDataDto.getTransactionAmount().multiply(new BigDecimal(0.16)));
ebitDataDto.setSpecialConsiderations(specialConsiderations);
return ebitDataDto;
} catch (Exception e) {
e.printStackTrace();
return null;
}
return null;
return ebitDataDto;
}
private Integer convertType(Integer dataSourceType) {
......@@ -2262,32 +2329,6 @@ public class ReportServiceImpl extends BaseService {
@Transactional
public synchronized OperationResultDto spreadToDb(HttpServletRequest request, Integer period, String orgId) {
/* try {
EbitSpreadDataExample example = new EbitSpreadDataExample();
EbitSpreadDataExample.Criteria criteria = example.createCriteria();
EbitSpreadDataExample.Criteria criteria1 = criteria.andOrganizationIdEqualTo(ebitParam.getOrgId()).andPeriodEqualTo(ebitParam.getPeriod());
List<EbitSpreadData> ebitSpreadData = ebitSpreadDataMapper.selectByExample(example);
if (ebitSpreadData.size() != 0) {
EbitSpreadData ebitSpreadData1 = new EbitSpreadData();
ebitSpreadData1.setSpreadJsonString(ebitParam.getJsonString().getBytes());
ebitSpreadData1.setOrganizationId(ebitParam.getOrgId());
ebitSpreadData1.setPeriod(ebitParam.getPeriod());
ebitSpreadData1.setUpdateTime(new Date());
ebitSpreadDataMapper.updateByExample(ebitSpreadData1, example);
} else {
EbitSpreadData ebitSpreadData1 = new EbitSpreadData();
ebitSpreadData1.setSpreadJsonString(ebitParam.getJsonString().getBytes());
ebitSpreadData1.setOrganizationId(ebitParam.getOrgId());
ebitSpreadData1.setPeriod(ebitParam.getPeriod());
ebitSpreadData1.setCreateTime(new Date());
ebitSpreadDataMapper.insert(ebitSpreadData1);
}
} catch (Exception e) {
e.printStackTrace();
operationResultDto.error();
operationResultDto.setResultMsg("spread【json序列化字符串】保存失败");
return operationResultDto;
}*/
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
Map<String, MultipartFile> fileMap = multipartRequest.getFileMap();
MultipartFile file = fileMap.get("llb.xlsx");
......@@ -2299,9 +2340,41 @@ public class ReportServiceImpl extends BaseService {
didiFileUploadService.delData(ebitSpreadData1.get(0).getFileKey());
ebitSpreadDataMapper.deleteByExample(example);
}
InputStream inputStream = null;
try {
inputStream = file.getInputStream();
Workbook workbook = WorkbookFactory.create(inputStream);
Sheet sheet = workbook.getSheetAt(0);
List<EbitCellData> ebitCellDataList = new ArrayList<>();
EbitCellDataExample example1 = new EbitCellDataExample();
example1.createCriteria().andPeriodEqualTo(period).andOrganizationIdEqualTo(orgId);
if (ebitCellDataMapper.selectByExample(example1).size() != 0) {
ebitCellDataMapper.deleteByExample(example1);
}
;
for (int j = 1; j <= sheet.getLastRowNum(); j++) {
if (j <= 36)
continue;
;
for (int k = 1; k < sheet.getRow(0).getLastCellNum(); k++) {
EbitCellData ebitCellData1 = new EbitCellData();
ebitCellData1.setId(idService.nextId());
ebitCellData1.setOrganizationId(orgId);
ebitCellData1.setPeriod(period);
ebitCellData1.setCreateTime(new Date());
ebitCellData1.setCol(k);
ebitCellData1.setRow(j);
ebitCellData1.setData(getCellStringValue(sheet.getRow(j).getCell(j)));
ebitCellDataList.add(ebitCellData1);
}
}
ebitCellDataMapper.insertBatch(ebitCellDataList);
} catch (IOException e) {
e.printStackTrace();
} catch (InvalidFormatException e) {
e.printStackTrace();
}
FileUpload fileUpload = didiFileUploadService.uploadFile(file, fileName, "ebit利润表");
EbitSpreadData ebitSpreadData = new EbitSpreadData();
ebitSpreadData.setPeriod(period);
ebitSpreadData.setOrganizationId(orgId);
......@@ -2309,7 +2382,6 @@ public class ReportServiceImpl extends BaseService {
ebitSpreadData.setFileName(fileName);
ebitSpreadData.setId(idService.nextId());
ebitSpreadDataMapper.insert(ebitSpreadData);
return operationResultDto.success();
}
......@@ -2441,19 +2513,21 @@ public class ReportServiceImpl extends BaseService {
example.createCriteria().andIdEqualTo(orgId);
return organizationMapper.selectByExample(example).get(0).getName();
}
@Autowired
private JdbcTemplate jdbcTemplate;
//获取利润表模板Id
public String getlxbId() throws Exception {
try{
String sql = "select * from template t where t.name = '利润表'";
Map<String, Object> stringObjectMap = new HashMap<>();
stringObjectMap = jdbcTemplate.queryForList("select * from template t where t.name = '利润表' ").get(0);
return stringObjectMap.get("id").toString();
}catch (Exception e ){
e.printStackTrace();
throw new Exception("获取EBIT利润表模板失败");
}
try {
String sql = "select * from template t where t.name = '利润表'";
Map<String, Object> stringObjectMap = new HashMap<>();
stringObjectMap = jdbcTemplate.queryForList("select * from template t where t.name = '利润表' ").get(0);
return stringObjectMap.get("id").toString();
} catch (Exception e) {
e.printStackTrace();
throw new Exception("获取EBIT利润表模板失败");
}
}
/* private String getCellStringValue(Cell cell) {
......
......@@ -40,7 +40,7 @@
<javaClientGenerator type="XMLMAPPER" targetPackage="pwc.taxtech.atms.vat.dao" targetProject="../../src/main/java">
<property name="rootInterface" value="pwc.taxtech.atms.MyVatMapper" />
</javaClientGenerator>
<table tableName="ebit_spread_data" domainObjectName="EbitSpreadData">
<table tableName="profit_loss_statement_ebit" domainObjectName="ProfitLossStatementEbit">
<property name="useActualColumnNames" value="false"/>
<property name="ignoreQualifiersAtRuntime" value="true"/>
</table>
......
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.entity.ProfitLossStatementEbit;
import pwc.taxtech.atms.vat.entity.ProfitLossStatementEbitExample;
@Mapper
public interface ProfitLossStatementEbitMapper extends MyVatMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_ebit
*
* @mbg.generated
*/
long countByExample(ProfitLossStatementEbitExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_ebit
*
* @mbg.generated
*/
int deleteByExample(ProfitLossStatementEbitExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_ebit
*
* @mbg.generated
*/
int deleteByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_ebit
*
* @mbg.generated
*/
int insert(ProfitLossStatementEbit record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_ebit
*
* @mbg.generated
*/
int insertSelective(ProfitLossStatementEbit record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_ebit
*
* @mbg.generated
*/
List<ProfitLossStatementEbit> selectByExampleWithRowbounds(ProfitLossStatementEbitExample example, RowBounds rowBounds);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_ebit
*
* @mbg.generated
*/
List<ProfitLossStatementEbit> selectByExample(ProfitLossStatementEbitExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_ebit
*
* @mbg.generated
*/
ProfitLossStatementEbit selectByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_ebit
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") ProfitLossStatementEbit record, @Param("example") ProfitLossStatementEbitExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_ebit
*
* @mbg.generated
*/
int updateByExample(@Param("record") ProfitLossStatementEbit record, @Param("example") ProfitLossStatementEbitExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_ebit
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(ProfitLossStatementEbit record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_ebit
*
* @mbg.generated
*/
int updateByPrimaryKey(ProfitLossStatementEbit record);
}
\ No newline at end of file
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 profit_loss_statement_ebit
*
* @mbg.generated do_not_delete_during_merge
*/
public class ProfitLossStatementEbit extends BaseEntity implements Serializable {
/**
* Database Column Remarks:
* 唯一编号
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement_ebit.id
*
* @mbg.generated
*/
private Long id;
/**
* Database Column Remarks:
* 机构编号
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement_ebit.organization_id
*
* @mbg.generated
*/
private String organizationId;
/**
* Database Column Remarks:
* 项目ID
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement_ebit.project_id
*
* @mbg.generated
*/
private String projectId;
/**
* Database Column Remarks:
* 数据日期
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement_ebit.date
*
* @mbg.generated
*/
private Date date;
/**
* Database Column Remarks:
* 来源
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement_ebit.source
*
* @mbg.generated
*/
private String source;
/**
* Database Column Remarks:
* 税务系统期间yyyymm
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement_ebit.tms_period
*
* @mbg.generated
*/
private Integer tmsPeriod;
/**
* Database Column Remarks:
* 期间 yyyymm
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement_ebit.period
*
* @mbg.generated
*/
private Integer period;
/**
* Database Column Remarks:
* 关账标识
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement_ebit.status
*
* @mbg.generated
*/
private String status;
/**
* Database Column Remarks:
* 账套ID
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement_ebit.ledger_id
*
* @mbg.generated
*/
private String ledgerId;
/**
* Database Column Remarks:
* 账套名称
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement_ebit.ledger_name
*
* @mbg.generated
*/
private String ledgerName;
/**
* Database Column Remarks:
* 账套币种
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement_ebit.ledger_currency_code
*
* @mbg.generated
*/
private String ledgerCurrencyCode;
/**
* Database Column Remarks:
* 机构编码
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement_ebit.entity_code
*
* @mbg.generated
*/
private String entityCode;
/**
* Database Column Remarks:
* 机构名称
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement_ebit.entity_name
*
* @mbg.generated
*/
private String entityName;
/**
* Database Column Remarks:
* 主体性质
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement_ebit.category
*
* @mbg.generated
*/
private String category;
/**
* Database Column Remarks:
* 频度
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement_ebit.frequency
*
* @mbg.generated
*/
private String frequency;
/**
* Database Column Remarks:
* 项目名称
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement_ebit.item_name
*
* @mbg.generated
*/
private String itemName;
/**
* Database Column Remarks:
* 本期发生额
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement_ebit.period_amt
*
* @mbg.generated
*/
private BigDecimal periodAmt;
/**
* Database Column Remarks:
* 本年累计
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement_ebit.ytd_amt
*
* @mbg.generated
*/
private BigDecimal ytdAmt;
/**
* Database Column Remarks:
* 是否为国外
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement_ebit.prc_flag
*
* @mbg.generated
*/
private Boolean prcFlag;
/**
* Database Column Remarks:
* 创建时间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement_ebit.create_time
*
* @mbg.generated
*/
private Date createTime;
/**
* Database Column Remarks:
* 更新时间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement_ebit.update_time
*
* @mbg.generated
*/
private Date updateTime;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column profit_loss_statement_ebit.task_id
*
* @mbg.generated
*/
private String taskId;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table profit_loss_statement_ebit
*
* @mbg.generated
*/
private static final long serialVersionUID = 1L;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement_ebit.id
*
* @return the value of profit_loss_statement_ebit.id
*
* @mbg.generated
*/
public Long getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement_ebit.id
*
* @param id the value for profit_loss_statement_ebit.id
*
* @mbg.generated
*/
public void setId(Long id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement_ebit.organization_id
*
* @return the value of profit_loss_statement_ebit.organization_id
*
* @mbg.generated
*/
public String getOrganizationId() {
return organizationId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement_ebit.organization_id
*
* @param organizationId the value for profit_loss_statement_ebit.organization_id
*
* @mbg.generated
*/
public void setOrganizationId(String organizationId) {
this.organizationId = organizationId == null ? null : organizationId.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement_ebit.project_id
*
* @return the value of profit_loss_statement_ebit.project_id
*
* @mbg.generated
*/
public String getProjectId() {
return projectId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement_ebit.project_id
*
* @param projectId the value for profit_loss_statement_ebit.project_id
*
* @mbg.generated
*/
public void setProjectId(String projectId) {
this.projectId = projectId == null ? null : projectId.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement_ebit.date
*
* @return the value of profit_loss_statement_ebit.date
*
* @mbg.generated
*/
public Date getDate() {
return date;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement_ebit.date
*
* @param date the value for profit_loss_statement_ebit.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 profit_loss_statement_ebit.source
*
* @return the value of profit_loss_statement_ebit.source
*
* @mbg.generated
*/
public String getSource() {
return source;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement_ebit.source
*
* @param source the value for profit_loss_statement_ebit.source
*
* @mbg.generated
*/
public void setSource(String source) {
this.source = source == null ? null : source.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement_ebit.tms_period
*
* @return the value of profit_loss_statement_ebit.tms_period
*
* @mbg.generated
*/
public Integer getTmsPeriod() {
return tmsPeriod;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement_ebit.tms_period
*
* @param tmsPeriod the value for profit_loss_statement_ebit.tms_period
*
* @mbg.generated
*/
public void setTmsPeriod(Integer tmsPeriod) {
this.tmsPeriod = tmsPeriod;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement_ebit.period
*
* @return the value of profit_loss_statement_ebit.period
*
* @mbg.generated
*/
public Integer getPeriod() {
return period;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement_ebit.period
*
* @param period the value for profit_loss_statement_ebit.period
*
* @mbg.generated
*/
public void setPeriod(Integer period) {
this.period = period;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement_ebit.status
*
* @return the value of profit_loss_statement_ebit.status
*
* @mbg.generated
*/
public String getStatus() {
return status;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement_ebit.status
*
* @param status the value for profit_loss_statement_ebit.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 profit_loss_statement_ebit.ledger_id
*
* @return the value of profit_loss_statement_ebit.ledger_id
*
* @mbg.generated
*/
public String getLedgerId() {
return ledgerId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement_ebit.ledger_id
*
* @param ledgerId the value for profit_loss_statement_ebit.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 profit_loss_statement_ebit.ledger_name
*
* @return the value of profit_loss_statement_ebit.ledger_name
*
* @mbg.generated
*/
public String getLedgerName() {
return ledgerName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement_ebit.ledger_name
*
* @param ledgerName the value for profit_loss_statement_ebit.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 profit_loss_statement_ebit.ledger_currency_code
*
* @return the value of profit_loss_statement_ebit.ledger_currency_code
*
* @mbg.generated
*/
public String getLedgerCurrencyCode() {
return ledgerCurrencyCode;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement_ebit.ledger_currency_code
*
* @param ledgerCurrencyCode the value for profit_loss_statement_ebit.ledger_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 profit_loss_statement_ebit.entity_code
*
* @return the value of profit_loss_statement_ebit.entity_code
*
* @mbg.generated
*/
public String getEntityCode() {
return entityCode;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement_ebit.entity_code
*
* @param entityCode the value for profit_loss_statement_ebit.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 profit_loss_statement_ebit.entity_name
*
* @return the value of profit_loss_statement_ebit.entity_name
*
* @mbg.generated
*/
public String getEntityName() {
return entityName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement_ebit.entity_name
*
* @param entityName the value for profit_loss_statement_ebit.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 profit_loss_statement_ebit.category
*
* @return the value of profit_loss_statement_ebit.category
*
* @mbg.generated
*/
public String getCategory() {
return category;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement_ebit.category
*
* @param category the value for profit_loss_statement_ebit.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 profit_loss_statement_ebit.frequency
*
* @return the value of profit_loss_statement_ebit.frequency
*
* @mbg.generated
*/
public String getFrequency() {
return frequency;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement_ebit.frequency
*
* @param frequency the value for profit_loss_statement_ebit.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 profit_loss_statement_ebit.item_name
*
* @return the value of profit_loss_statement_ebit.item_name
*
* @mbg.generated
*/
public String getItemName() {
return itemName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement_ebit.item_name
*
* @param itemName the value for profit_loss_statement_ebit.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 profit_loss_statement_ebit.period_amt
*
* @return the value of profit_loss_statement_ebit.period_amt
*
* @mbg.generated
*/
public BigDecimal getPeriodAmt() {
return periodAmt;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement_ebit.period_amt
*
* @param periodAmt the value for profit_loss_statement_ebit.period_amt
*
* @mbg.generated
*/
public void setPeriodAmt(BigDecimal periodAmt) {
this.periodAmt = periodAmt;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement_ebit.ytd_amt
*
* @return the value of profit_loss_statement_ebit.ytd_amt
*
* @mbg.generated
*/
public BigDecimal getYtdAmt() {
return ytdAmt;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement_ebit.ytd_amt
*
* @param ytdAmt the value for profit_loss_statement_ebit.ytd_amt
*
* @mbg.generated
*/
public void setYtdAmt(BigDecimal ytdAmt) {
this.ytdAmt = ytdAmt;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement_ebit.prc_flag
*
* @return the value of profit_loss_statement_ebit.prc_flag
*
* @mbg.generated
*/
public Boolean getPrcFlag() {
return prcFlag;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement_ebit.prc_flag
*
* @param prcFlag the value for profit_loss_statement_ebit.prc_flag
*
* @mbg.generated
*/
public void setPrcFlag(Boolean prcFlag) {
this.prcFlag = prcFlag;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement_ebit.create_time
*
* @return the value of profit_loss_statement_ebit.create_time
*
* @mbg.generated
*/
public Date getCreateTime() {
return createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement_ebit.create_time
*
* @param createTime the value for profit_loss_statement_ebit.create_time
*
* @mbg.generated
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement_ebit.update_time
*
* @return the value of profit_loss_statement_ebit.update_time
*
* @mbg.generated
*/
public Date getUpdateTime() {
return updateTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement_ebit.update_time
*
* @param updateTime the value for profit_loss_statement_ebit.update_time
*
* @mbg.generated
*/
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column profit_loss_statement_ebit.task_id
*
* @return the value of profit_loss_statement_ebit.task_id
*
* @mbg.generated
*/
public String getTaskId() {
return taskId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column profit_loss_statement_ebit.task_id
*
* @param taskId the value for profit_loss_statement_ebit.task_id
*
* @mbg.generated
*/
public void setTaskId(String taskId) {
this.taskId = taskId == null ? null : taskId.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_ebit
*
* @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(", organizationId=").append(organizationId);
sb.append(", projectId=").append(projectId);
sb.append(", date=").append(date);
sb.append(", source=").append(source);
sb.append(", tmsPeriod=").append(tmsPeriod);
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(", periodAmt=").append(periodAmt);
sb.append(", ytdAmt=").append(ytdAmt);
sb.append(", prcFlag=").append(prcFlag);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", taskId=").append(taskId);
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 ProfitLossStatementEbitExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table profit_loss_statement_ebit
*
* @mbg.generated
*/
protected String orderByClause;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table profit_loss_statement_ebit
*
* @mbg.generated
*/
protected boolean distinct;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table profit_loss_statement_ebit
*
* @mbg.generated
*/
protected List<Criteria> oredCriteria;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_ebit
*
* @mbg.generated
*/
public ProfitLossStatementEbitExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_ebit
*
* @mbg.generated
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_ebit
*
* @mbg.generated
*/
public String getOrderByClause() {
return orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_ebit
*
* @mbg.generated
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_ebit
*
* @mbg.generated
*/
public boolean isDistinct() {
return distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_ebit
*
* @mbg.generated
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_ebit
*
* @mbg.generated
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_ebit
*
* @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 profit_loss_statement_ebit
*
* @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 profit_loss_statement_ebit
*
* @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 profit_loss_statement_ebit
*
* @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 profit_loss_statement_ebit
*
* @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 andOrganizationIdIsNull() {
addCriterion("organization_id is null");
return (Criteria) this;
}
public Criteria andOrganizationIdIsNotNull() {
addCriterion("organization_id is not null");
return (Criteria) this;
}
public Criteria andOrganizationIdEqualTo(String value) {
addCriterion("organization_id =", value, "organizationId");
return (Criteria) this;
}
public Criteria andOrganizationIdNotEqualTo(String value) {
addCriterion("organization_id <>", value, "organizationId");
return (Criteria) this;
}
public Criteria andOrganizationIdGreaterThan(String value) {
addCriterion("organization_id >", value, "organizationId");
return (Criteria) this;
}
public Criteria andOrganizationIdGreaterThanOrEqualTo(String value) {
addCriterion("organization_id >=", value, "organizationId");
return (Criteria) this;
}
public Criteria andOrganizationIdLessThan(String value) {
addCriterion("organization_id <", value, "organizationId");
return (Criteria) this;
}
public Criteria andOrganizationIdLessThanOrEqualTo(String value) {
addCriterion("organization_id <=", value, "organizationId");
return (Criteria) this;
}
public Criteria andOrganizationIdLike(String value) {
addCriterion("organization_id like", value, "organizationId");
return (Criteria) this;
}
public Criteria andOrganizationIdNotLike(String value) {
addCriterion("organization_id not like", value, "organizationId");
return (Criteria) this;
}
public Criteria andOrganizationIdIn(List<String> values) {
addCriterion("organization_id in", values, "organizationId");
return (Criteria) this;
}
public Criteria andOrganizationIdNotIn(List<String> values) {
addCriterion("organization_id not in", values, "organizationId");
return (Criteria) this;
}
public Criteria andOrganizationIdBetween(String value1, String value2) {
addCriterion("organization_id between", value1, value2, "organizationId");
return (Criteria) this;
}
public Criteria andOrganizationIdNotBetween(String value1, String value2) {
addCriterion("organization_id not between", value1, value2, "organizationId");
return (Criteria) this;
}
public Criteria andProjectIdIsNull() {
addCriterion("project_id is null");
return (Criteria) this;
}
public Criteria andProjectIdIsNotNull() {
addCriterion("project_id is not null");
return (Criteria) this;
}
public Criteria andProjectIdEqualTo(String value) {
addCriterion("project_id =", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdNotEqualTo(String value) {
addCriterion("project_id <>", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdGreaterThan(String value) {
addCriterion("project_id >", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdGreaterThanOrEqualTo(String value) {
addCriterion("project_id >=", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdLessThan(String value) {
addCriterion("project_id <", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdLessThanOrEqualTo(String value) {
addCriterion("project_id <=", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdLike(String value) {
addCriterion("project_id like", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdNotLike(String value) {
addCriterion("project_id not like", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdIn(List<String> values) {
addCriterion("project_id in", values, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdNotIn(List<String> values) {
addCriterion("project_id not in", values, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdBetween(String value1, String value2) {
addCriterion("project_id between", value1, value2, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdNotBetween(String value1, String value2) {
addCriterion("project_id not between", value1, value2, "projectId");
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 andTmsPeriodIsNull() {
addCriterion("tms_period is null");
return (Criteria) this;
}
public Criteria andTmsPeriodIsNotNull() {
addCriterion("tms_period is not null");
return (Criteria) this;
}
public Criteria andTmsPeriodEqualTo(Integer value) {
addCriterion("tms_period =", value, "tmsPeriod");
return (Criteria) this;
}
public Criteria andTmsPeriodNotEqualTo(Integer value) {
addCriterion("tms_period <>", value, "tmsPeriod");
return (Criteria) this;
}
public Criteria andTmsPeriodGreaterThan(Integer value) {
addCriterion("tms_period >", value, "tmsPeriod");
return (Criteria) this;
}
public Criteria andTmsPeriodGreaterThanOrEqualTo(Integer value) {
addCriterion("tms_period >=", value, "tmsPeriod");
return (Criteria) this;
}
public Criteria andTmsPeriodLessThan(Integer value) {
addCriterion("tms_period <", value, "tmsPeriod");
return (Criteria) this;
}
public Criteria andTmsPeriodLessThanOrEqualTo(Integer value) {
addCriterion("tms_period <=", value, "tmsPeriod");
return (Criteria) this;
}
public Criteria andTmsPeriodIn(List<Integer> values) {
addCriterion("tms_period in", values, "tmsPeriod");
return (Criteria) this;
}
public Criteria andTmsPeriodNotIn(List<Integer> values) {
addCriterion("tms_period not in", values, "tmsPeriod");
return (Criteria) this;
}
public Criteria andTmsPeriodBetween(Integer value1, Integer value2) {
addCriterion("tms_period between", value1, value2, "tmsPeriod");
return (Criteria) this;
}
public Criteria andTmsPeriodNotBetween(Integer value1, Integer value2) {
addCriterion("tms_period not between", value1, value2, "tmsPeriod");
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("ledger_currency_code is null");
return (Criteria) this;
}
public Criteria andLedgerCurrencyCodeIsNotNull() {
addCriterion("ledger_currency_code is not null");
return (Criteria) this;
}
public Criteria andLedgerCurrencyCodeEqualTo(String value) {
addCriterion("ledger_currency_code =", value, "ledgerCurrencyCode");
return (Criteria) this;
}
public Criteria andLedgerCurrencyCodeNotEqualTo(String value) {
addCriterion("ledger_currency_code <>", value, "ledgerCurrencyCode");
return (Criteria) this;
}
public Criteria andLedgerCurrencyCodeGreaterThan(String value) {
addCriterion("ledger_currency_code >", value, "ledgerCurrencyCode");
return (Criteria) this;
}
public Criteria andLedgerCurrencyCodeGreaterThanOrEqualTo(String value) {
addCriterion("ledger_currency_code >=", value, "ledgerCurrencyCode");
return (Criteria) this;
}
public Criteria andLedgerCurrencyCodeLessThan(String value) {
addCriterion("ledger_currency_code <", value, "ledgerCurrencyCode");
return (Criteria) this;
}
public Criteria andLedgerCurrencyCodeLessThanOrEqualTo(String value) {
addCriterion("ledger_currency_code <=", value, "ledgerCurrencyCode");
return (Criteria) this;
}
public Criteria andLedgerCurrencyCodeLike(String value) {
addCriterion("ledger_currency_code like", value, "ledgerCurrencyCode");
return (Criteria) this;
}
public Criteria andLedgerCurrencyCodeNotLike(String value) {
addCriterion("ledger_currency_code not like", value, "ledgerCurrencyCode");
return (Criteria) this;
}
public Criteria andLedgerCurrencyCodeIn(List<String> values) {
addCriterion("ledger_currency_code in", values, "ledgerCurrencyCode");
return (Criteria) this;
}
public Criteria andLedgerCurrencyCodeNotIn(List<String> values) {
addCriterion("ledger_currency_code not in", values, "ledgerCurrencyCode");
return (Criteria) this;
}
public Criteria andLedgerCurrencyCodeBetween(String value1, String value2) {
addCriterion("ledger_currency_code between", value1, value2, "ledgerCurrencyCode");
return (Criteria) this;
}
public Criteria andLedgerCurrencyCodeNotBetween(String value1, String value2) {
addCriterion("ledger_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 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 andPrcFlagIsNull() {
addCriterion("prc_flag is null");
return (Criteria) this;
}
public Criteria andPrcFlagIsNotNull() {
addCriterion("prc_flag is not null");
return (Criteria) this;
}
public Criteria andPrcFlagEqualTo(Boolean value) {
addCriterion("prc_flag =", value, "prcFlag");
return (Criteria) this;
}
public Criteria andPrcFlagNotEqualTo(Boolean value) {
addCriterion("prc_flag <>", value, "prcFlag");
return (Criteria) this;
}
public Criteria andPrcFlagGreaterThan(Boolean value) {
addCriterion("prc_flag >", value, "prcFlag");
return (Criteria) this;
}
public Criteria andPrcFlagGreaterThanOrEqualTo(Boolean value) {
addCriterion("prc_flag >=", value, "prcFlag");
return (Criteria) this;
}
public Criteria andPrcFlagLessThan(Boolean value) {
addCriterion("prc_flag <", value, "prcFlag");
return (Criteria) this;
}
public Criteria andPrcFlagLessThanOrEqualTo(Boolean value) {
addCriterion("prc_flag <=", value, "prcFlag");
return (Criteria) this;
}
public Criteria andPrcFlagIn(List<Boolean> values) {
addCriterion("prc_flag in", values, "prcFlag");
return (Criteria) this;
}
public Criteria andPrcFlagNotIn(List<Boolean> values) {
addCriterion("prc_flag not in", values, "prcFlag");
return (Criteria) this;
}
public Criteria andPrcFlagBetween(Boolean value1, Boolean value2) {
addCriterion("prc_flag between", value1, value2, "prcFlag");
return (Criteria) this;
}
public Criteria andPrcFlagNotBetween(Boolean value1, Boolean value2) {
addCriterion("prc_flag not between", value1, value2, "prcFlag");
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;
}
public Criteria andTaskIdIsNull() {
addCriterion("task_id is null");
return (Criteria) this;
}
public Criteria andTaskIdIsNotNull() {
addCriterion("task_id is not null");
return (Criteria) this;
}
public Criteria andTaskIdEqualTo(String value) {
addCriterion("task_id =", value, "taskId");
return (Criteria) this;
}
public Criteria andTaskIdNotEqualTo(String value) {
addCriterion("task_id <>", value, "taskId");
return (Criteria) this;
}
public Criteria andTaskIdGreaterThan(String value) {
addCriterion("task_id >", value, "taskId");
return (Criteria) this;
}
public Criteria andTaskIdGreaterThanOrEqualTo(String value) {
addCriterion("task_id >=", value, "taskId");
return (Criteria) this;
}
public Criteria andTaskIdLessThan(String value) {
addCriterion("task_id <", value, "taskId");
return (Criteria) this;
}
public Criteria andTaskIdLessThanOrEqualTo(String value) {
addCriterion("task_id <=", value, "taskId");
return (Criteria) this;
}
public Criteria andTaskIdLike(String value) {
addCriterion("task_id like", value, "taskId");
return (Criteria) this;
}
public Criteria andTaskIdNotLike(String value) {
addCriterion("task_id not like", value, "taskId");
return (Criteria) this;
}
public Criteria andTaskIdIn(List<String> values) {
addCriterion("task_id in", values, "taskId");
return (Criteria) this;
}
public Criteria andTaskIdNotIn(List<String> values) {
addCriterion("task_id not in", values, "taskId");
return (Criteria) this;
}
public Criteria andTaskIdBetween(String value1, String value2) {
addCriterion("task_id between", value1, value2, "taskId");
return (Criteria) this;
}
public Criteria andTaskIdNotBetween(String value1, String value2) {
addCriterion("task_id not between", value1, value2, "taskId");
return (Criteria) this;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table profit_loss_statement_ebit
*
* @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 profit_loss_statement_ebit
*
* @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.ProfitLossStatementEbitMapper">
<resultMap id="BaseResultMap" type="pwc.taxtech.atms.vat.entity.ProfitLossStatementEbit">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id column="id" jdbcType="BIGINT" property="id" />
<result column="organization_id" jdbcType="VARCHAR" property="organizationId" />
<result column="project_id" jdbcType="VARCHAR" property="projectId" />
<result column="date" jdbcType="TIMESTAMP" property="date" />
<result column="source" jdbcType="VARCHAR" property="source" />
<result column="tms_period" jdbcType="INTEGER" property="tmsPeriod" />
<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="period_amt" jdbcType="DECIMAL" property="periodAmt" />
<result column="ytd_amt" jdbcType="DECIMAL" property="ytdAmt" />
<result column="prc_flag" jdbcType="BIT" property="prcFlag" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="task_id" jdbcType="VARCHAR" property="taskId" />
</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, organization_id, project_id, `date`, `source`, tms_period, period, `status`,
ledger_id, ledger_name, ledger_currency_code, entity_code, entity_name, category,
frequency, item_name, period_amt, ytd_amt, prc_flag, create_time, update_time, task_id
</sql>
<select id="selectByExample" parameterType="pwc.taxtech.atms.vat.entity.ProfitLossStatementEbitExample" 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 profit_loss_statement_ebit
<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 profit_loss_statement_ebit
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 profit_loss_statement_ebit
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="pwc.taxtech.atms.vat.entity.ProfitLossStatementEbitExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from profit_loss_statement_ebit
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="pwc.taxtech.atms.vat.entity.ProfitLossStatementEbit">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into profit_loss_statement_ebit (id, organization_id, project_id,
`date`, `source`, tms_period,
period, `status`, ledger_id,
ledger_name, ledger_currency_code, entity_code,
entity_name, category, frequency,
item_name, period_amt, ytd_amt,
prc_flag, create_time, update_time,
task_id)
values (#{id,jdbcType=BIGINT}, #{organizationId,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR},
#{date,jdbcType=TIMESTAMP}, #{source,jdbcType=VARCHAR}, #{tmsPeriod,jdbcType=INTEGER},
#{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}, #{periodAmt,jdbcType=DECIMAL}, #{ytdAmt,jdbcType=DECIMAL},
#{prcFlag,jdbcType=BIT}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{taskId,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="pwc.taxtech.atms.vat.entity.ProfitLossStatementEbit">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into profit_loss_statement_ebit
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="organizationId != null">
organization_id,
</if>
<if test="projectId != null">
project_id,
</if>
<if test="date != null">
`date`,
</if>
<if test="source != null">
`source`,
</if>
<if test="tmsPeriod != null">
tms_period,
</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="periodAmt != null">
period_amt,
</if>
<if test="ytdAmt != null">
ytd_amt,
</if>
<if test="prcFlag != null">
prc_flag,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="taskId != null">
task_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="organizationId != null">
#{organizationId,jdbcType=VARCHAR},
</if>
<if test="projectId != null">
#{projectId,jdbcType=VARCHAR},
</if>
<if test="date != null">
#{date,jdbcType=TIMESTAMP},
</if>
<if test="source != null">
#{source,jdbcType=VARCHAR},
</if>
<if test="tmsPeriod != null">
#{tmsPeriod,jdbcType=INTEGER},
</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="periodAmt != null">
#{periodAmt,jdbcType=DECIMAL},
</if>
<if test="ytdAmt != null">
#{ytdAmt,jdbcType=DECIMAL},
</if>
<if test="prcFlag != null">
#{prcFlag,jdbcType=BIT},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="taskId != null">
#{taskId,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="pwc.taxtech.atms.vat.entity.ProfitLossStatementEbitExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from profit_loss_statement_ebit
<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 profit_loss_statement_ebit
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.organizationId != null">
organization_id = #{record.organizationId,jdbcType=VARCHAR},
</if>
<if test="record.projectId != null">
project_id = #{record.projectId,jdbcType=VARCHAR},
</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.tmsPeriod != null">
tms_period = #{record.tmsPeriod,jdbcType=INTEGER},
</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.periodAmt != null">
period_amt = #{record.periodAmt,jdbcType=DECIMAL},
</if>
<if test="record.ytdAmt != null">
ytd_amt = #{record.ytdAmt,jdbcType=DECIMAL},
</if>
<if test="record.prcFlag != null">
prc_flag = #{record.prcFlag,jdbcType=BIT},
</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>
<if test="record.taskId != null">
task_id = #{record.taskId,jdbcType=VARCHAR},
</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 profit_loss_statement_ebit
set id = #{record.id,jdbcType=BIGINT},
organization_id = #{record.organizationId,jdbcType=VARCHAR},
project_id = #{record.projectId,jdbcType=VARCHAR},
`date` = #{record.date,jdbcType=TIMESTAMP},
`source` = #{record.source,jdbcType=VARCHAR},
tms_period = #{record.tmsPeriod,jdbcType=INTEGER},
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},
period_amt = #{record.periodAmt,jdbcType=DECIMAL},
ytd_amt = #{record.ytdAmt,jdbcType=DECIMAL},
prc_flag = #{record.prcFlag,jdbcType=BIT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
task_id = #{record.taskId,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.vat.entity.ProfitLossStatementEbit">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update profit_loss_statement_ebit
<set>
<if test="organizationId != null">
organization_id = #{organizationId,jdbcType=VARCHAR},
</if>
<if test="projectId != null">
project_id = #{projectId,jdbcType=VARCHAR},
</if>
<if test="date != null">
`date` = #{date,jdbcType=TIMESTAMP},
</if>
<if test="source != null">
`source` = #{source,jdbcType=VARCHAR},
</if>
<if test="tmsPeriod != null">
tms_period = #{tmsPeriod,jdbcType=INTEGER},
</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="periodAmt != null">
period_amt = #{periodAmt,jdbcType=DECIMAL},
</if>
<if test="ytdAmt != null">
ytd_amt = #{ytdAmt,jdbcType=DECIMAL},
</if>
<if test="prcFlag != null">
prc_flag = #{prcFlag,jdbcType=BIT},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="taskId != null">
task_id = #{taskId,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.vat.entity.ProfitLossStatementEbit">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update profit_loss_statement_ebit
set organization_id = #{organizationId,jdbcType=VARCHAR},
project_id = #{projectId,jdbcType=VARCHAR},
`date` = #{date,jdbcType=TIMESTAMP},
`source` = #{source,jdbcType=VARCHAR},
tms_period = #{tmsPeriod,jdbcType=INTEGER},
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},
period_amt = #{periodAmt,jdbcType=DECIMAL},
ytd_amt = #{ytdAmt,jdbcType=DECIMAL},
prc_flag = #{prcFlag,jdbcType=BIT},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
task_id = #{taskId,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.vat.entity.ProfitLossStatementEbitExample" 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 profit_loss_statement_ebit
<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
......@@ -99,7 +99,7 @@
//var prokjectId = vatSessionService.project.id;
//var period = vatSessionService.month;
/* if (!init) {
addEbitRow();
scope.relation.addEbitRow();
setData(init)
return;
}*/
......@@ -195,7 +195,7 @@
scope.spread = spread;
setColWidth(sheet);
if(sheet.getRowCount() <= 38)
addEbitRow(sheet)
scope.relation.addEbitRow(sheet)
if (scope.templateId && scope.reportSource) {
setData();
}
......@@ -204,10 +204,9 @@
return $q.when(spread);
};
var addEbitRow = function (sheet) {
scope.relation.addEbitRow = function (sheet) {
if (sheet == undefined || sheet == null)
sheet = scope.spread.getActiveSheet();
//添加单元格
if (sheet.getRowCount() > 43)
return;
......@@ -218,10 +217,10 @@
sheet.addRows(sheet.getRowCount(scope.relation.sheetArea.viewport), 1);
sheet.setValue(i + 37, 0, profileList[i]);
}
lockCell(scope.spread);
scope.relation.lockCell(scope.spread);
}
var lockCell = function (spread) {
scope.relation.lockCell = function (spread) {
//todo:注册之后这里去掉注释
var sheet;
if (constant.regesterInformation.active) {
......@@ -321,9 +320,9 @@
return;
}*/
if(upload){ //上传上来的文件也要动态添加行
addEbitRow(sheet);
scope.relation.addEbitRow(sheet);
scope.relation.loadEbitCell(sheet);
lockCell(scope.spread);
scope.relation.lockCell(scope.spread);
setColWidth(sheet);
scope.spread.resumePaint();
return
......@@ -335,13 +334,13 @@
//spreadJsTipService.initialize(sheet);
/*if (!scope.isReadOnly) {
lockCell(scope.spread, false, true);
scope.relation.lockCell(scope.spread, false, true);
}*/
scope.spread.suspendPaint();
/* if (scope.reportSource.length == 0 && scope.relation.emptyData && scope.relation.emptyData == true) {
_init(scope.templateId, true);///如果没有数据,需要重新加载
lockCell(scope.spread);
scope.relation.lockCell(scope.spread);
return;
}
*/
......@@ -367,7 +366,7 @@
}
}
}
lockCell(scope.spread);
scope.relation.lockCell(scope.spread);
scope.spread.resumePaint();
scope.relation.saveToDbFlag = Math.random();
......
......@@ -1100,7 +1100,7 @@
};
var getReportData = function (period) {
if($scope.relation.orgId == null || $scope.relation.orgId == undefined ){
if ($scope.relation.orgId == null || $scope.relation.orgId == undefined) {
$scope.relation.loadSheet($scope.templateId);
return;
}
......@@ -2931,16 +2931,23 @@
SweetAlert.error("请输入正确的EBIT Rate");
}
vatReportService.saveAndRefresh($scope.relation.orgId, $scope.relation.period, specialConsiderations, ebitRate).success(function (res) {
if (res.resultMsg == "success") {
if (res.data) $scope.relation.data = res.data;
$scope.relation.setData(true);
spreadTODb();
}
}).error(function (error) {
});
/* vatReportService.saveAndRefresh($scope.relation.orgId, $scope.relation.period, specialConsiderations, ebitRate).success(function (res) {
if (res.resultMsg == "success") {
if (res.data) $scope.relation.data = res.data;
$scope.relation.setData(true);
}
}).error(function (error) {
});*/
calculateEbitAndInsert($scope.sheet, true);
spreadTODb();
}
var spreadTODb = function () {
if ($scope.relation.period == undefined || $scope.relation.period == null) {
SweetAlert.error("请选择机构");
return;
}
var json = $scope.spread.toJSON({includeBindingSource: true});
var excelIo = new GC.Spread.Excel.IO();
var url = apiInterceptor.webApiHostUrl + '/Report/spreadToDb?orgId=' + $scope.relation.orgId + "&period=" + $scope.relation.period;
......@@ -2979,8 +2986,13 @@
});
//上传模板
$scope.upload = function (file) {
if (file == undefined || file == null || file.length == 0)
return
if ($scope.relation.orgId == null || $scope.relation.orgId == undefined) {
SweetAlert.error("请选择机构");
return;
}
file = file[0];
frontImport(file);//前端导入
/*if(file.length == 0)
......@@ -3061,16 +3073,20 @@
excelIo.open(file, function (json) {
var workbookObj = json;
$scope.spread.fromJSON(workbookObj);
vatReportService.saveAndRefresh($scope.relation.orgId, $scope.relation.period, 0, "1").success(function (res) {
var sheet = $scope.spread.sheets[0];
/*vatReportService.saveAndRefresh($scope.relation.orgId, $scope.relation.period, 0, "1").success(function (res) {
if (res.resultMsg == "success") {
if (res.data) $scope.relation.data = res.data;
$scope.relation.setData(true);
}
}).error(function (error) {
});
});*/
//进行ebit计算,这里是前端计算
$scope.relation.addEbitRow(sheet);
calculateEbitAndInsert(sheet, true);
$scope.relation.lockCell($scope.spread);
spreadTODb();
}, function (e) {
// process error
alert(e.errorMessage);
if (e.errorCode === 2/*noPassword*/ || e.errorCode === 3 /*invalidPassword*/) {
......@@ -3078,6 +3094,46 @@
});
}
}
$scope._ebitResult = {};
//给String 对象添加replaceAll方法
String.prototype.replaceAll = function (s1, s2) {
return this.replace(new RegExp(s1, "gm"), s2);
}
var calculateEbitAndInsert = function (sheet, insert) {
var yysr = Number(sheet.getValue(11, 2).toString().replaceAll(",", ""));//营业收入
var yycb = Number(sheet.getValue(12, 2).toString().replaceAll(",", ""));//营业成本
var yysjfj = Number(sheet.getValue(13, 2).toString().replaceAll(",", ""));//营业税金附加
var xsfy = Number(sheet.getValue(14, 2).toString().replaceAll(",", ""));//销售费用
var glfy = Number(sheet.getValue(15, 2).toString().replaceAll(",", ""));//管理费用
var yffy = Number(sheet.getValue(16, 2).toString().replaceAll(",", ""));//研发费用
var zcjzss = Number(sheet.getValue(18, 2).toString().replaceAll(",", ""));//资产减值损失
var ts = (sheet.getValue(38, 2) == "" || sheet.getValue(38, 2) == null) == true ? 0 : sheet.getValue(40, 2);
var rate = (sheet.getValue(40, 2) == "" || sheet.getValue(40, 2) == null) == true ? "1%" : sheet.getValue(40, 2);
$scope._ebitResult.klzcjsz = Number((yysr - yycb - yysjfj - xsfy - glfy - yffy - zcjzss).toFixed(4));
$scope._ebitResult.tsyskl = Number((Number(ts)).toFixed(4));
$scope._ebitResult.kltsys = ($scope._ebitResult.klzcjsz + $scope._ebitResult.tsyskl).toFixed(4);
$scope._ebitResult.rate = rate;
if($scope._ebitResult.rate.indexOf("%") != -1){
$scope._ebitResult.gljyye = Number((Number($scope._ebitResult.rate.replaceAll("%", "")) * $scope._ebitResult.kltsys).toFixed(4));
}else{
$scope._ebitResult.gljyye = Number(($scope._ebitResult.rate * $scope._ebitResult.kltsys).toFixed(4));
}
$scope._ebitResult.sixAddtax = Number((0.06 * $scope._ebitResult.gljyye).toFixed(4));
$scope._ebitResult.tsklys = Number(($scope._ebitResult.gljyye * 0.106).toFixed(4));
if (insert) {
sheet.setValue(37, 2, $scope._ebitResult.klzcjsz);
sheet.setValue(38, 2, $scope._ebitResult.tsklys);
sheet.setValue(39, 2, $scope._ebitResult.kltsys);
sheet.setValue(40, 2, $scope._ebitResult.rate);
sheet.setValue(41, 2, $scope._ebitResult.gljyye);
sheet.setValue(42, 2, $scope._ebitResult.sixAddtax);
sheet.setValue(43, 2, $scope._ebitResult.klzcjsz);
}
}
$scope.singleExport = function () {
if ($scope.spread != undefined && $scope.spread) {
......
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