Commit 5a5863cd authored by gary's avatar gary

1、添加TB,PL的Prc表

parent 6f66e253
......@@ -33,7 +33,7 @@ public class DataPreviewController extends BaseController {
@PostMapping("getPLDataForDisplay")
public PageInfo<ProfitLossStatementDto> getPLDataForDisplay(@RequestBody ProfitLossStatementParam param) {
logger.debug(String.format("利润表查询 Condition:%s", JSON.toJSONString(param)));
logger.debug(String.format("利润表PRC查询 Condition:%s", JSON.toJSONString(param)));
return dataPreviewSerivceImpl.getPLDataForDisplay(param);
}
......@@ -51,7 +51,7 @@ public class DataPreviewController extends BaseController {
@PostMapping("getBSDataForDisplay")
public PageInfo<BalanceSheetDto> getBSDataForDisplay(@RequestBody BalanceSheetParam param) {
logger.debug(String.format("资产负债表查询 Condition:%s", JSON.toJSONString(param)));
logger.debug(String.format("资产负债表PRC查询 Condition:%s", JSON.toJSONString(param)));
return dataPreviewSerivceImpl.getBSDataForDisplay(param);
}
......
......@@ -58,15 +58,13 @@ public class DataImportService extends BaseService {
@Resource
private DataValidateLogMapper dataValidateLogMapper;
@Resource
private ProfitLossStatementMapper profitLossStatementMapper;
private BalanceSheetPrcManualMapper balanceSheetPrcManualMapper;
@Resource
private BalanceSheetManualMapper balanceSheetManualMapper;
private ProfitLossStatementPrcManualMapper profitLossStatementPrcManualMapper;
@Resource
private ProfitLossStatementManualMapper profitLossStatementManualMapper;
private BalanceSheetPrcFinalMapper balanceSheetPrcFinalMapper;
@Resource
private BalanceSheetFinalMapper balanceSheetFinalMapper;
@Resource
private ProfitLossStatementFinalMapper profitLossStatementFinalMapper;
private ProfitLossStatementPrcFinalMapper profitLossStatementPrcFinalMapper;
@Resource
private RedLetterInfoTableMapper redLetterInfoTableMapper;
@Resource
......@@ -328,15 +326,15 @@ public class DataImportService extends BaseService {
// 1、写入最终表
// 2、记录数据导入记录与数据处理校验记录
if (EnumTbImportType.CoverImport.getCode().equals(importType)) {
ProfitLossStatementExample profitLossStatementExample = new ProfitLossStatementExample();
profitLossStatementExample.createCriteria().andOrganizationIdEqualTo(orgId).andPeriodEqualTo(period);
profitLossStatementManualMapper.deleteByExample(profitLossStatementExample);
if (profitLossStatementFinalMapper.countByExample(profitLossStatementExample) > 0) {
profitLossStatementFinalMapper.deleteByExample(profitLossStatementExample);
ProfitLossStatementPrcExample delExample = new ProfitLossStatementPrcExample();
delExample.createCriteria().andOrganizationIdEqualTo(orgId).andPeriodEqualTo(period);
profitLossStatementPrcManualMapper.deleteByExample(delExample);
if (profitLossStatementPrcFinalMapper.countByExample(delExample) > 0) {
profitLossStatementPrcFinalMapper.deleteByExample(delExample);
}
}
profitLossStatementManualMapper.insertBatch(pls);
profitLossStatementFinalMapper.insertBatch(pls);
profitLossStatementPrcManualMapper.insertBatch(pls);
profitLossStatementPrcFinalMapper.insertBatch(pls);
dataImportLog.setRecordSize(pls.size());
dataImportLog.setImportResult(true);
dataImportLogs.add(dataImportLog);
......@@ -492,15 +490,15 @@ public class DataImportService extends BaseService {
// 2、记录数据导入记录与数据处理校验记录
if (EnumTbImportType.CoverImport.getCode().equals(importType)) {
// 根据orgId period删除记录
BalanceSheetExample balanceSheetExample = new BalanceSheetExample();
balanceSheetExample.createCriteria().andOrganizationIdEqualTo(orgId).andPeriodEqualTo(period);
balanceSheetManualMapper.deleteByExample(balanceSheetExample);
if (balanceSheetFinalMapper.countByExample(balanceSheetExample) > 0) {
balanceSheetFinalMapper.deleteByExample(balanceSheetExample);
BalanceSheetPrcExample delExample = new BalanceSheetPrcExample();
delExample.createCriteria().andOrganizationIdEqualTo(orgId).andPeriodEqualTo(period);
balanceSheetPrcManualMapper.deleteByExample(delExample);
if (balanceSheetPrcFinalMapper.countByExample(delExample) > 0) {
balanceSheetPrcFinalMapper.deleteByExample(delExample);
}
}
balanceSheetManualMapper.insertBatch(bls);
balanceSheetFinalMapper.insertBatch(bls);
balanceSheetPrcManualMapper.insertBatch(bls);
balanceSheetPrcFinalMapper.insertBatch(bls);
dataImportLog.setRecordSize(bls.size());
dataImportLog.setImportResult(true);
dataImportLogs.add(dataImportLog);
......
......@@ -40,13 +40,13 @@ public class DataPreviewSerivceImpl extends BaseService {
private TrialBalanceMapper trialBalanceMapper;
@Resource
private ProfitLossStatementMapper profitLossStatementMapper;
private ProfitLossStatementPrcMapper profitLossStatementPrcMapper;
@Resource
private JournalEntryMapper journalEntryMapper;
@Resource
private BalanceSheetMapper balanceSheetMapper;
private BalanceSheetPrcMapper balanceSheetPrcMapper;
@Resource
private CashFlowMapper cashFlowMapper;
......@@ -98,7 +98,7 @@ public class DataPreviewSerivceImpl extends BaseService {
ProfitLossStatementCondition condition = beanUtil.copyProperties(param, new ProfitLossStatementCondition());
Page page = PageHelper.startPage(condition.getPageInfo().getPageIndex(), condition.getPageInfo().getPageSize());
List<ProfitLossStatement> profitLossStatements = profitLossStatementMapper.selectByCondition(condition);
List<ProfitLossStatement> profitLossStatements = profitLossStatementPrcMapper.selectByCondition(condition);
List<ProfitLossStatementDto> profitLossDtos = Lists.newArrayList();
profitLossStatements.forEach(pl -> {
......@@ -196,7 +196,7 @@ public class DataPreviewSerivceImpl extends BaseService {
BalanceSheetCondition condition = beanUtil.copyProperties(param, new BalanceSheetCondition());
Page page = PageHelper.startPage(condition.getPageInfo().getPageIndex(), condition.getPageInfo().getPageSize());
List<BalanceSheet> balanceSheets = balanceSheetMapper.selectByCondition(condition);
List<BalanceSheet> balanceSheets = balanceSheetPrcMapper.selectByCondition(condition);
List<BalanceSheetDto> balanceSheetDtos = Lists.newArrayList();
balanceSheets.forEach(bs -> {
......@@ -343,7 +343,7 @@ public class DataPreviewSerivceImpl extends BaseService {
ProfitLossStatementCondition condition = new ProfitLossStatementCondition();
beanUtil.copyProperties(param, condition);
List<ProfitLossStatement> profitLossStatements = profitLossStatementMapper.selectByCondition(condition);
List<ProfitLossStatement> profitLossStatements = profitLossStatementPrcMapper.selectByCondition(condition);
Map<String, String> header = generalPLHeader();
List<ProfitLossStatementExportDto> cellList = new ArrayList<>();
profitLossStatements.forEach(pl -> {
......@@ -384,8 +384,7 @@ public class DataPreviewSerivceImpl extends BaseService {
try {
BalanceSheetCondition condition = new BalanceSheetCondition();
beanUtil.copyProperties(param, condition);
List<BalanceSheet> balanceSheets = balanceSheetMapper.selectByCondition(condition);
List<BalanceSheet> balanceSheets = balanceSheetPrcMapper.selectByCondition(condition);
Map<String, String> header = generalBSHeader();
List<BalanceSheetExportDto> cellList = new ArrayList<>();
balanceSheets.forEach(bs -> {
......
......@@ -41,17 +41,49 @@
<property name="rootInterface" value="pwc.taxtech.atms.MyVatMapper" />
</javaClientGenerator>
<!-- <table tableName="trial_balance_final" domainObjectName="TrialBalanceFinal">
<!--
<table tableName="profit_loss_statement_prc" domainObjectName="ProfitLossStatementPrc">
<property name="useActualColumnNames" value="false"/>
<property name="ignoreQualifiersAtRuntime" value="true"/>
</table>-->
</table>
<table tableName="profit_loss_statement_prc_manual" domainObjectName="ProfitLossStatementPrcManual">
<property name="useActualColumnNames" value="false"/>
<property name="ignoreQualifiersAtRuntime" value="true"/>
</table>
<table tableName="profit_loss_statement_prc_final" domainObjectName="ProfitLossStatementPrcFinal">
<property name="useActualColumnNames" value="false"/>
<property name="ignoreQualifiersAtRuntime" value="true"/>
</table>
<table tableName="balance_sheet_prc" domainObjectName="BalanceSheetPrc">
<property name="useActualColumnNames" value="false"/>
<property name="ignoreQualifiersAtRuntime" value="true"/>
</table>
<table tableName="balance_sheet_prc_manual" domainObjectName="BalanceSheetPrcManual">
<property name="useActualColumnNames" value="false"/>
<property name="ignoreQualifiersAtRuntime" value="true"/>
</table>
<table tableName="balance_sheet_prc_final" domainObjectName="BalanceSheetPrcFinal">
<property name="useActualColumnNames" value="false"/>
<property name="ignoreQualifiersAtRuntime" value="true"/>
</table>
<table tableName="trial_balance_final" domainObjectName="TrialBalanceFinal">
<property name="useActualColumnNames" value="false"/>
<property name="ignoreQualifiersAtRuntime" value="true"/>
</table>
<table tableName="report_file_upload" domainObjectName="ReportFileUpload">
<property name="useActualColumnNames" value="false"/>
<property name="ignoreQualifiersAtRuntime" value="true"/>
</table>
<!--<table tableName="certified_invoices_list" domainObjectName="CertifiedInvoicesList">
<table tableName="certified_invoices_list" domainObjectName="CertifiedInvoicesList">
<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.dpo.BalanceSheetCondition;
import pwc.taxtech.atms.vat.entity.BalanceSheet;
import pwc.taxtech.atms.vat.entity.BalanceSheetPrc;
import pwc.taxtech.atms.vat.entity.BalanceSheetPrcExample;
@Mapper
public interface BalanceSheetPrcFinalMapper extends MyVatMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc_final
*
* @mbg.generated
*/
long countByExample(BalanceSheetPrcExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc_final
*
* @mbg.generated
*/
int deleteByExample(BalanceSheetPrcExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc_final
*
* @mbg.generated
*/
int deleteByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc_final
*
* @mbg.generated
*/
int insert(BalanceSheetPrc record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc_final
*
* @mbg.generated
*/
int insertSelective(BalanceSheetPrc record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc_final
*
* @mbg.generated
*/
List<BalanceSheetPrc> selectByExampleWithRowbounds(BalanceSheetPrcExample example, RowBounds rowBounds);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc_final
*
* @mbg.generated
*/
List<BalanceSheetPrc> selectByExample(BalanceSheetPrcExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc_final
*
* @mbg.generated
*/
BalanceSheetPrc selectByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc_final
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") BalanceSheetPrc record, @Param("example") BalanceSheetPrcExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc_final
*
* @mbg.generated
*/
int updateByExample(@Param("record") BalanceSheetPrc record, @Param("example") BalanceSheetPrcExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc_final
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(BalanceSheetPrc record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc_final
*
* @mbg.generated
*/
int updateByPrimaryKey(BalanceSheetPrc record);
List<BalanceSheet> selectByCondition(@Param("bsCondition") BalanceSheetCondition condition);
int insertBatch(List<BalanceSheet> bls);
}
\ No newline at end of file
package pwc.taxtech.atms.vat.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import pwc.taxtech.atms.MyVatMapper;
import pwc.taxtech.atms.vat.dpo.BalanceSheetCondition;
import pwc.taxtech.atms.vat.entity.BalanceSheet;
import pwc.taxtech.atms.vat.entity.BalanceSheetPrc;
import pwc.taxtech.atms.vat.entity.BalanceSheetPrcExample;
@Mapper
public interface BalanceSheetPrcManualMapper extends MyVatMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc_manual
*
* @mbg.generated
*/
long countByExample(BalanceSheetPrcExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc_manual
*
* @mbg.generated
*/
int deleteByExample(BalanceSheetPrcExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc_manual
*
* @mbg.generated
*/
int deleteByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc_manual
*
* @mbg.generated
*/
int insert(BalanceSheetPrc record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc_manual
*
* @mbg.generated
*/
int insertSelective(BalanceSheetPrc record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc_manual
*
* @mbg.generated
*/
List<BalanceSheetPrc> selectByExampleWithRowbounds(BalanceSheetPrcExample example, RowBounds rowBounds);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc_manual
*
* @mbg.generated
*/
List<BalanceSheetPrc> selectByExample(BalanceSheetPrcExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc_manual
*
* @mbg.generated
*/
BalanceSheetPrc selectByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc_manual
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") BalanceSheetPrc record, @Param("example") BalanceSheetPrcExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc_manual
*
* @mbg.generated
*/
int updateByExample(@Param("record") BalanceSheetPrc record, @Param("example") BalanceSheetPrcExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc_manual
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(BalanceSheetPrc record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc_manual
*
* @mbg.generated
*/
int updateByPrimaryKey(BalanceSheetPrc record);
List<BalanceSheet> selectByCondition(@Param("bsCondition") BalanceSheetCondition condition);
int insertBatch(List<BalanceSheet> bls);
}
\ No newline at end of file
package pwc.taxtech.atms.vat.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import pwc.taxtech.atms.MyVatMapper;
import pwc.taxtech.atms.vat.dpo.BalanceSheetCondition;
import pwc.taxtech.atms.vat.entity.BalanceSheet;
import pwc.taxtech.atms.vat.entity.BalanceSheetPrc;
import pwc.taxtech.atms.vat.entity.BalanceSheetPrcExample;
@Mapper
public interface BalanceSheetPrcMapper extends MyVatMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc
*
* @mbg.generated
*/
long countByExample(BalanceSheetPrcExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc
*
* @mbg.generated
*/
int deleteByExample(BalanceSheetPrcExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc
*
* @mbg.generated
*/
int deleteByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc
*
* @mbg.generated
*/
int insert(BalanceSheetPrc record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc
*
* @mbg.generated
*/
int insertSelective(BalanceSheetPrc record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc
*
* @mbg.generated
*/
List<BalanceSheetPrc> selectByExampleWithRowbounds(BalanceSheetPrcExample example, RowBounds rowBounds);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc
*
* @mbg.generated
*/
List<BalanceSheetPrc> selectByExample(BalanceSheetPrcExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc
*
* @mbg.generated
*/
BalanceSheetPrc selectByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") BalanceSheetPrc record, @Param("example") BalanceSheetPrcExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc
*
* @mbg.generated
*/
int updateByExample(@Param("record") BalanceSheetPrc record, @Param("example") BalanceSheetPrcExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(BalanceSheetPrc record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table balance_sheet_prc
*
* @mbg.generated
*/
int updateByPrimaryKey(BalanceSheetPrc record);
List<BalanceSheet> selectByCondition(@Param("bsCondition") BalanceSheetCondition condition);
int insertBatch(List<BalanceSheet> bls);
}
\ No newline at end of file
package pwc.taxtech.atms.vat.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import pwc.taxtech.atms.MyVatMapper;
import pwc.taxtech.atms.vat.dpo.ProfitLossStatementCondition;
import pwc.taxtech.atms.vat.entity.ProfitLossStatement;
import pwc.taxtech.atms.vat.entity.ProfitLossStatementPrc;
import pwc.taxtech.atms.vat.entity.ProfitLossStatementPrcExample;
@Mapper
public interface ProfitLossStatementPrcFinalMapper extends MyVatMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc_final
*
* @mbg.generated
*/
long countByExample(ProfitLossStatementPrcExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc_final
*
* @mbg.generated
*/
int deleteByExample(ProfitLossStatementPrcExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc_final
*
* @mbg.generated
*/
int deleteByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc_final
*
* @mbg.generated
*/
int insert(ProfitLossStatementPrc record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc_final
*
* @mbg.generated
*/
int insertSelective(ProfitLossStatementPrc record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc_final
*
* @mbg.generated
*/
List<ProfitLossStatementPrc> selectByExampleWithRowbounds(ProfitLossStatementPrcExample example, RowBounds rowBounds);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc_final
*
* @mbg.generated
*/
List<ProfitLossStatementPrc> selectByExample(ProfitLossStatementPrcExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc_final
*
* @mbg.generated
*/
ProfitLossStatementPrc selectByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc_final
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") ProfitLossStatementPrc record, @Param("example") ProfitLossStatementPrcExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc_final
*
* @mbg.generated
*/
int updateByExample(@Param("record") ProfitLossStatementPrc record, @Param("example") ProfitLossStatementPrcExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc_final
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(ProfitLossStatementPrc record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc_final
*
* @mbg.generated
*/
int updateByPrimaryKey(ProfitLossStatementPrc record);
List<ProfitLossStatement> selectByCondition(@Param("plCondition") ProfitLossStatementCondition condition);
int insertBatch(List<ProfitLossStatement> pls);
}
\ No newline at end of file
package pwc.taxtech.atms.vat.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import pwc.taxtech.atms.MyVatMapper;
import pwc.taxtech.atms.vat.dpo.ProfitLossStatementCondition;
import pwc.taxtech.atms.vat.entity.ProfitLossStatement;
import pwc.taxtech.atms.vat.entity.ProfitLossStatementPrc;
import pwc.taxtech.atms.vat.entity.ProfitLossStatementPrcExample;
@Mapper
public interface ProfitLossStatementPrcManualMapper extends MyVatMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc_manual
*
* @mbg.generated
*/
long countByExample(ProfitLossStatementPrcExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc_manual
*
* @mbg.generated
*/
int deleteByExample(ProfitLossStatementPrcExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc_manual
*
* @mbg.generated
*/
int deleteByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc_manual
*
* @mbg.generated
*/
int insert(ProfitLossStatementPrc record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc_manual
*
* @mbg.generated
*/
int insertSelective(ProfitLossStatementPrc record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc_manual
*
* @mbg.generated
*/
List<ProfitLossStatementPrc> selectByExampleWithRowbounds(ProfitLossStatementPrcExample example, RowBounds rowBounds);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc_manual
*
* @mbg.generated
*/
List<ProfitLossStatementPrc> selectByExample(ProfitLossStatementPrcExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc_manual
*
* @mbg.generated
*/
ProfitLossStatementPrc selectByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc_manual
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") ProfitLossStatementPrc record, @Param("example") ProfitLossStatementPrcExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc_manual
*
* @mbg.generated
*/
int updateByExample(@Param("record") ProfitLossStatementPrc record, @Param("example") ProfitLossStatementPrcExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc_manual
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(ProfitLossStatementPrc record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc_manual
*
* @mbg.generated
*/
int updateByPrimaryKey(ProfitLossStatementPrc record);
List<ProfitLossStatement> selectByCondition(@Param("plCondition") ProfitLossStatementCondition condition);
int insertBatch(List<ProfitLossStatement> pls);
}
\ No newline at end of file
package pwc.taxtech.atms.vat.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import pwc.taxtech.atms.MyVatMapper;
import pwc.taxtech.atms.vat.dpo.ProfitLossStatementCondition;
import pwc.taxtech.atms.vat.entity.ProfitLossStatement;
import pwc.taxtech.atms.vat.entity.ProfitLossStatementPrc;
import pwc.taxtech.atms.vat.entity.ProfitLossStatementPrcExample;
@Mapper
public interface ProfitLossStatementPrcMapper extends MyVatMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc
*
* @mbg.generated
*/
long countByExample(ProfitLossStatementPrcExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc
*
* @mbg.generated
*/
int deleteByExample(ProfitLossStatementPrcExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc
*
* @mbg.generated
*/
int deleteByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc
*
* @mbg.generated
*/
int insert(ProfitLossStatementPrc record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc
*
* @mbg.generated
*/
int insertSelective(ProfitLossStatementPrc record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc
*
* @mbg.generated
*/
List<ProfitLossStatementPrc> selectByExampleWithRowbounds(ProfitLossStatementPrcExample example, RowBounds rowBounds);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc
*
* @mbg.generated
*/
List<ProfitLossStatementPrc> selectByExample(ProfitLossStatementPrcExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc
*
* @mbg.generated
*/
ProfitLossStatementPrc selectByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") ProfitLossStatementPrc record, @Param("example") ProfitLossStatementPrcExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc
*
* @mbg.generated
*/
int updateByExample(@Param("record") ProfitLossStatementPrc record, @Param("example") ProfitLossStatementPrcExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(ProfitLossStatementPrc record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table profit_loss_statement_prc
*
* @mbg.generated
*/
int updateByPrimaryKey(ProfitLossStatementPrc record);
List<ProfitLossStatement> selectByCondition(@Param("plCondition") ProfitLossStatementCondition condition);
int insertBatch(List<ProfitLossStatement> pls);
}
\ No newline at end of file
......@@ -27,6 +27,7 @@
<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">
<!--
......@@ -101,7 +102,7 @@
-->
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, end_bal, beg_bal, prc_flag, create_time, update_time
frequency, item_name, end_bal, beg_bal, prc_flag, create_time, update_time, task_id
</sql>
<select id="selectByExample" parameterType="pwc.taxtech.atms.vat.entity.BalanceSheetExample" resultMap="BaseResultMap">
<!--
......@@ -160,16 +161,16 @@
ledger_name, ledger_currency_code, entity_code,
entity_name, category, frequency,
item_name, end_bal, beg_bal,
prc_flag, create_time, update_time
)
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}, #{endBal,jdbcType=DECIMAL}, #{begBal,jdbcType=DECIMAL},
#{prcFlag,jdbcType=BIT}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
)
#{prcFlag,jdbcType=BIT}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{taskId,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="pwc.taxtech.atms.vat.entity.BalanceSheet">
<!--
......@@ -241,6 +242,9 @@
<if test="updateTime != null">
update_time,
</if>
<if test="taskId != null">
task_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
......@@ -306,6 +310,9 @@
<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.BalanceSheetExample" resultType="java.lang.Long">
......@@ -388,6 +395,9 @@
<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" />
......@@ -419,7 +429,8 @@
beg_bal = #{record.begBal,jdbcType=DECIMAL},
prc_flag = #{record.prcFlag,jdbcType=BIT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,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>
......@@ -491,6 +502,9 @@
<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>
......@@ -519,7 +533,8 @@
beg_bal = #{begBal,jdbcType=DECIMAL},
prc_flag = #{prcFlag,jdbcType=BIT},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,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.BalanceSheetExample" resultMap="BaseResultMap">
......
......@@ -27,6 +27,7 @@
<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">
<!--
......@@ -101,7 +102,7 @@
-->
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, end_bal, beg_bal, prc_flag, create_time, update_time
frequency, item_name, end_bal, beg_bal, prc_flag, create_time, update_time, task_id
</sql>
<select id="selectByExample" parameterType="pwc.taxtech.atms.vat.entity.BalanceSheetExample" resultMap="BaseResultMap">
<!--
......@@ -160,16 +161,16 @@
ledger_name, ledger_currency_code, entity_code,
entity_name, category, frequency,
item_name, end_bal, beg_bal,
prc_flag, create_time, update_time
)
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}, #{endBal,jdbcType=DECIMAL}, #{begBal,jdbcType=DECIMAL},
#{prcFlag,jdbcType=BIT}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
)
#{prcFlag,jdbcType=BIT}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{taskId,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="pwc.taxtech.atms.vat.entity.BalanceSheet">
<!--
......@@ -241,6 +242,9 @@
<if test="updateTime != null">
update_time,
</if>
<if test="taskId != null">
task_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
......@@ -306,6 +310,9 @@
<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.BalanceSheetExample" resultType="java.lang.Long">
......@@ -388,6 +395,9 @@
<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" />
......@@ -419,7 +429,8 @@
beg_bal = #{record.begBal,jdbcType=DECIMAL},
prc_flag = #{record.prcFlag,jdbcType=BIT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,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>
......@@ -491,6 +502,9 @@
<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>
......@@ -519,7 +533,8 @@
beg_bal = #{begBal,jdbcType=DECIMAL},
prc_flag = #{prcFlag,jdbcType=BIT},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,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.BalanceSheetExample" resultMap="BaseResultMap">
......
......@@ -27,6 +27,7 @@
<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">
<!--
......@@ -101,7 +102,7 @@
-->
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
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.ProfitLossStatementExample" resultMap="BaseResultMap">
<!--
......@@ -160,16 +161,16 @@
ledger_name, ledger_currency_code, entity_code,
entity_name, category, frequency,
item_name, period_amt, ytd_amt,
prc_flag, create_time, update_time
)
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}
)
#{prcFlag,jdbcType=BIT}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{taskId,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="pwc.taxtech.atms.vat.entity.ProfitLossStatement">
<!--
......@@ -241,6 +242,9 @@
<if test="updateTime != null">
update_time,
</if>
<if test="taskId != null">
task_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
......@@ -306,6 +310,9 @@
<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.ProfitLossStatementExample" resultType="java.lang.Long">
......@@ -388,6 +395,9 @@
<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" />
......@@ -419,7 +429,8 @@
ytd_amt = #{record.ytdAmt,jdbcType=DECIMAL},
prc_flag = #{record.prcFlag,jdbcType=BIT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,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>
......@@ -491,6 +502,9 @@
<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>
......@@ -519,7 +533,8 @@
ytd_amt = #{ytdAmt,jdbcType=DECIMAL},
prc_flag = #{prcFlag,jdbcType=BIT},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,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.ProfitLossStatementExample" resultMap="BaseResultMap">
......
......@@ -27,6 +27,7 @@
<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">
<!--
......@@ -101,7 +102,7 @@
-->
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
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.ProfitLossStatementExample" resultMap="BaseResultMap">
<!--
......@@ -160,16 +161,16 @@
ledger_name, ledger_currency_code, entity_code,
entity_name, category, frequency,
item_name, period_amt, ytd_amt,
prc_flag, create_time, update_time
)
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}
)
#{prcFlag,jdbcType=BIT}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{taskId,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="pwc.taxtech.atms.vat.entity.ProfitLossStatement">
<!--
......@@ -241,6 +242,9 @@
<if test="updateTime != null">
update_time,
</if>
<if test="taskId != null">
task_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
......@@ -306,6 +310,9 @@
<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.ProfitLossStatementExample" resultType="java.lang.Long">
......@@ -388,6 +395,9 @@
<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" />
......@@ -419,7 +429,8 @@
ytd_amt = #{record.ytdAmt,jdbcType=DECIMAL},
prc_flag = #{record.prcFlag,jdbcType=BIT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,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>
......@@ -491,6 +502,9 @@
<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>
......@@ -519,7 +533,8 @@
ytd_amt = #{ytdAmt,jdbcType=DECIMAL},
prc_flag = #{prcFlag,jdbcType=BIT},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,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.ProfitLossStatementExample" resultMap="BaseResultMap">
......
......@@ -114,6 +114,10 @@
<when test="item.updateTime != null">#{item.updateTime,jdbcType=TIMESTAMP},</when>
<otherwise>CURRENT_TIMESTAMP,</otherwise>
</choose>
<choose>
<when test="item.taskId != null">#{item.taskId,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise>
</choose>
</trim>
</foreach>;
SELECT 1 FROM DUAL;
......
......@@ -114,6 +114,10 @@
<when test="item.updateTime != null">#{item.updateTime,jdbcType=TIMESTAMP},</when>
<otherwise>CURRENT_TIMESTAMP,</otherwise>
</choose>
<choose>
<when test="item.taskId != null">#{item.taskId,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise>
</choose>
</trim>
</foreach>;
SELECT 1 FROM DUAL;
......
<?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.BalanceSheetPrcMapper">
<sql id="QueryCondition">
1 = 1
<if test="@com.github.pagehelper.util.StringUtil@isNotEmpty(bsCondition.orgId)">
AND organization_id= #{bsCondition.orgId,jdbcType=VARCHAR}
</if>
<if test="bsCondition.periodStart!=null">
AND tms_period &gt;= #{bsCondition.periodStart,jdbcType=INTEGER}
</if>
<if test="bsCondition.periodEnd!=null">
AND tms_period &lt;= #{bsCondition.periodEnd,jdbcType=INTEGER}
</if>
</sql>
<select id="selectByCondition" parameterType="pwc.taxtech.atms.vat.dpo.BalanceSheetCondition" resultMap="BaseResultMap">
SELECT
bs.*
FROM
balance_sheet_prc bs
WHERE
<include refid="QueryCondition"/>
</select>
<insert id="insertBatch" parameterType="java.util.List">
insert into balance_sheet_prc
(<include refid="Base_Column_List"/>)
values
<foreach collection="list" item="item" index="index" separator=",">
<trim prefix="(" suffix=")" suffixOverrides=",">
<choose>
<when test="item.id != null">#{item.id,jdbcType=BIGINT},</when>
<otherwise>0,</otherwise>
</choose>
<choose>
<when test="item.organizationId != null">#{item.organizationId,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise>
</choose>
<choose>
<when test="item.projectId != null">#{item.projectId,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise>
</choose>
<choose>
<when test="item.date != null">#{item.date,jdbcType=TIMESTAMP},</when>
<otherwise>CURRENT_TIMESTAMP,</otherwise>
</choose>
<choose>
<when test="item.source != null">#{item.source,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise>
</choose>
<choose>
<when test="item.tmsPeriod != null">#{item.tmsPeriod,jdbcType=INTEGER},</when>
<otherwise>0,</otherwise>
</choose>
<choose>
<when test="item.period != null">#{item.period,jdbcType=INTEGER},</when>
<otherwise>0,</otherwise>
</choose>
<choose>
<when test="item.status != null">#{item.status,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise>
</choose>
<choose>
<when test="item.ledgerId != null">#{item.ledgerId,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise>
</choose>
<choose>
<when test="item.ledgerName != null">#{item.ledgerName,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise>
</choose>
<choose>
<when test="item.ledgerCurrencyCode != null">#{item.ledgerCurrencyCode,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise>
</choose>
<choose>
<when test="item.entityCode != null">#{item.entityCode,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise>
</choose>
<choose>
<when test="item.entityName != null">#{item.entityName,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise>
</choose>
<choose>
<when test="item.category != null">#{item.category,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise>
</choose>
<choose>
<when test="item.frequency != null">#{item.frequency,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise>
</choose>
<choose>
<when test="item.itemName != null">#{item.itemName,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise>
</choose>
<choose>
<when test="item.endBal != null">#{item.endBal,jdbcType=DECIMAL},</when>
<otherwise>0,</otherwise>
</choose>
<choose>
<when test="item.begBal != null">#{item.begBal,jdbcType=DECIMAL},</when>
<otherwise>0,</otherwise>
</choose>
<choose>
<when test="item.prcFlag != null">#{item.prcFlag,jdbcType=BIT},</when>
<otherwise>0,</otherwise>
</choose>
<choose>
<when test="item.createTime != null">#{item.createTime,jdbcType=TIMESTAMP},</when>
<otherwise>CURRENT_TIMESTAMP,</otherwise>
</choose>
<choose>
<when test="item.updateTime != null">#{item.updateTime,jdbcType=TIMESTAMP},</when>
<otherwise>CURRENT_TIMESTAMP,</otherwise>
</choose>
</trim>
</foreach>;
SELECT 1 FROM DUAL;
</insert>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="pwc.taxtech.atms.vat.dao.BalanceSheetPrcFinalMapper">
<sql id="QueryCondition">
1 = 1
<if test="@com.github.pagehelper.util.StringUtil@isNotEmpty(bsCondition.orgId)">
AND organization_id= #{bsCondition.orgId,jdbcType=VARCHAR}
</if>
<if test="bsCondition.periodStart!=null">
AND tms_period &gt;= #{bsCondition.periodStart,jdbcType=INTEGER}
</if>
<if test="bsCondition.periodEnd!=null">
AND tms_period &lt;= #{bsCondition.periodEnd,jdbcType=INTEGER}
</if>
</sql>
<select id="selectByCondition" parameterType="pwc.taxtech.atms.vat.dpo.BalanceSheetCondition" resultMap="BaseResultMap">
SELECT
bs.*
FROM
balance_sheet_prc_final bs
WHERE
<include refid="QueryCondition"/>
</select>
<insert id="insertBatch" parameterType="java.util.List">
insert into balance_sheet_prc_final
(<include refid="Base_Column_List"/>)
values
<foreach collection="list" item="item" index="index" separator=",">
<trim prefix="(" suffix=")" suffixOverrides=",">
<choose>
<when test="item.id != null">#{item.id,jdbcType=BIGINT},</when>
<otherwise>0,</otherwise>
</choose>
<choose>
<when test="item.organizationId != null">#{item.organizationId,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise>
</choose>
<choose>
<when test="item.projectId != null">#{item.projectId,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise>
</choose>
<choose>
<when test="item.date != null">#{item.date,jdbcType=TIMESTAMP},</when>
<otherwise>CURRENT_TIMESTAMP,</otherwise>
</choose>
<choose>
<when test="item.source != null">#{item.source,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise>
</choose>
<choose>
<when test="item.tmsPeriod != null">#{item.tmsPeriod,jdbcType=INTEGER},</when>
<otherwise>0,</otherwise>
</choose>
<choose>
<when test="item.period != null">#{item.period,jdbcType=INTEGER},</when>
<otherwise>0,</otherwise>
</choose>
<choose>
<when test="item.status != null">#{item.status,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise>
</choose>
<choose>
<when test="item.ledgerId != null">#{item.ledgerId,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise>
</choose>
<choose>
<when test="item.ledgerName != null">#{item.ledgerName,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise>
</choose>
<choose>
<when test="item.ledgerCurrencyCode != null">#{item.ledgerCurrencyCode,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise>
</choose>
<choose>
<when test="item.entityCode != null">#{item.entityCode,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise>
</choose>
<choose>
<when test="item.entityName != null">#{item.entityName,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise>
</choose>
<choose>
<when test="item.category != null">#{item.category,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise>
</choose>
<choose>
<when test="item.frequency != null">#{item.frequency,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise>
</choose>
<choose>
<when test="item.itemName != null">#{item.itemName,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise>
</choose>
<choose>
<when test="item.endBal != null">#{item.endBal,jdbcType=DECIMAL},</when>
<otherwise>0,</otherwise>
</choose>
<choose>
<when test="item.begBal != null">#{item.begBal,jdbcType=DECIMAL},</when>
<otherwise>0,</otherwise>
</choose>
<choose>
<when test="item.prcFlag != null">#{item.prcFlag,jdbcType=BIT},</when>
<otherwise>0,</otherwise>
</choose>
<choose>
<when test="item.createTime != null">#{item.createTime,jdbcType=TIMESTAMP},</when>
<otherwise>CURRENT_TIMESTAMP,</otherwise>
</choose>
<choose>
<when test="item.updateTime != null">#{item.updateTime,jdbcType=TIMESTAMP},</when>
<otherwise>CURRENT_TIMESTAMP,</otherwise>
</choose>
<choose>
<when test="item.taskId != null">#{item.taskId,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise>
</choose>
</trim>
</foreach>;
SELECT 1 FROM DUAL;
</insert>
</mapper>
\ No newline at end of file
......@@ -114,6 +114,10 @@
<when test="item.updateTime != null">#{item.updateTime,jdbcType=TIMESTAMP},</when>
<otherwise>CURRENT_TIMESTAMP,</otherwise>
</choose>
<choose>
<when test="item.taskId != null">#{item.taskId,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise>
</choose>
</trim>
</foreach>;
SELECT 1 FROM DUAL;
......
......@@ -114,6 +114,10 @@
<when test="item.updateTime != null">#{item.updateTime,jdbcType=TIMESTAMP},</when>
<otherwise>CURRENT_TIMESTAMP,</otherwise>
</choose>
<choose>
<when test="item.taskId != null">#{item.taskId,jdbcType=VARCHAR},</when>
<otherwise>'',</otherwise>
</choose>
</trim>
</foreach>;
SELECT 1 FROM DUAL;
......
......@@ -323,7 +323,7 @@
"CoupaInvoiceReport":"Coupa Invoice Report",
"AdjustmentTable":"Adjustment Table",
"BalanceSheetPRC":"BalanceSheet PRC",
"IncomeStatementPRC":"Income Statement PRC",
"IncomeStatementPRC":"PL Statement PRC",
"CashFlowStatement":"Cash Flow Statement",
"OwnerEquityChangeStatement":"Owner Equity Change Statement",
"InvoiceStatistics":"Invoice Statistics",
......
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