DataSourceMapper.java 4.51 KB
Newer Older
frank.xa.zhang's avatar
frank.xa.zhang committed
1 2 3 4 5 6
package pwc.taxtech.atms.vat.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import pwc.taxtech.atms.MyVatMapper;
7 8
import pwc.taxtech.atms.vat.dpo.DataSourceCellDataDto;
import pwc.taxtech.atms.vat.dpo.DataSourceExtendDto;
frank.xa.zhang's avatar
frank.xa.zhang committed
9 10 11
import pwc.taxtech.atms.vat.entity.DataSource;
import pwc.taxtech.atms.vat.entity.DataSourceExample;

12 13
import java.util.List;

frank.xa.zhang's avatar
frank.xa.zhang committed
14 15 16 17
@Mapper
public interface DataSourceMapper extends MyVatMapper {
    /**
     * This method was generated by MyBatis Generator.
18
     * This method corresponds to the database table data_source
frank.xa.zhang's avatar
frank.xa.zhang committed
19 20 21 22 23 24 25
     *
     * @mbg.generated
     */
    long countByExample(DataSourceExample example);

    /**
     * This method was generated by MyBatis Generator.
26
     * This method corresponds to the database table data_source
frank.xa.zhang's avatar
frank.xa.zhang committed
27 28 29 30 31 32 33
     *
     * @mbg.generated
     */
    int deleteByExample(DataSourceExample example);

    /**
     * This method was generated by MyBatis Generator.
34
     * This method corresponds to the database table data_source
frank.xa.zhang's avatar
frank.xa.zhang committed
35 36 37
     *
     * @mbg.generated
     */
38
    int deleteByPrimaryKey(Long id);
frank.xa.zhang's avatar
frank.xa.zhang committed
39 40 41

    /**
     * This method was generated by MyBatis Generator.
42
     * This method corresponds to the database table data_source
frank.xa.zhang's avatar
frank.xa.zhang committed
43 44 45 46 47 48 49
     *
     * @mbg.generated
     */
    int insert(DataSource record);

    /**
     * This method was generated by MyBatis Generator.
50
     * This method corresponds to the database table data_source
frank.xa.zhang's avatar
frank.xa.zhang committed
51 52 53 54 55 56 57
     *
     * @mbg.generated
     */
    int insertSelective(DataSource record);

    /**
     * This method was generated by MyBatis Generator.
58
     * This method corresponds to the database table data_source
frank.xa.zhang's avatar
frank.xa.zhang committed
59 60 61 62 63 64 65
     *
     * @mbg.generated
     */
    List<DataSource> selectByExampleWithRowbounds(DataSourceExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
66
     * This method corresponds to the database table data_source
frank.xa.zhang's avatar
frank.xa.zhang committed
67 68 69 70 71 72 73
     *
     * @mbg.generated
     */
    List<DataSource> selectByExample(DataSourceExample example);

    /**
     * This method was generated by MyBatis Generator.
74
     * This method corresponds to the database table data_source
frank.xa.zhang's avatar
frank.xa.zhang committed
75 76 77
     *
     * @mbg.generated
     */
78
    DataSource selectByPrimaryKey(Long id);
frank.xa.zhang's avatar
frank.xa.zhang committed
79 80 81

    /**
     * This method was generated by MyBatis Generator.
82
     * This method corresponds to the database table data_source
frank.xa.zhang's avatar
frank.xa.zhang committed
83 84 85 86 87 88 89
     *
     * @mbg.generated
     */
    int updateByExampleSelective(@Param("record") DataSource record, @Param("example") DataSourceExample example);

    /**
     * This method was generated by MyBatis Generator.
90
     * This method corresponds to the database table data_source
frank.xa.zhang's avatar
frank.xa.zhang committed
91 92 93 94 95 96 97
     *
     * @mbg.generated
     */
    int updateByExample(@Param("record") DataSource record, @Param("example") DataSourceExample example);

    /**
     * This method was generated by MyBatis Generator.
98
     * This method corresponds to the database table data_source
frank.xa.zhang's avatar
frank.xa.zhang committed
99 100 101 102 103 104 105
     *
     * @mbg.generated
     */
    int updateByPrimaryKeySelective(DataSource record);

    /**
     * This method was generated by MyBatis Generator.
106
     * This method corresponds to the database table data_source
frank.xa.zhang's avatar
frank.xa.zhang committed
107 108 109 110
     *
     * @mbg.generated
     */
    int updateByPrimaryKey(DataSource record);
111

112
    void clearFormulaBlockWithPeriod(@Param("period") Integer period);
113

114
    void clearTaxRuleSettingWithPeriod(@Param("period") Integer period);
115

116
    void clearCellTemplateWithPeriod(@Param("period") Integer period, @Param("exceptReportTemplateIDs") String exceptReportTemplateIDs);
117

118
    void clearCellTemplateConfigWithPeriod(@Param("period") Integer period, @Param("exceptReportTemplateIDs") String exceptReportTemplateIDs);
119

120
    void clearTemplateWithPeriod(@Param("period") Integer period, @Param("exceptReportTemplateIDs") String exceptReportTemplateIDs);
121

122
    void clearTaxPayerReportWithPeriod(@Param("period") Integer period);
123

124
    void clearDataSourceWithPeriod(@Param("period") Integer period);
125

126
    void clearDataSourceDetailWithPeriod(@Param("period") Integer period);
127

128 129
    void clearCellDataSourceDataWithPeriod(@Param("period") Integer period);

130 131 132
    void clearCellDataWithPeriod(@Param("exceptReportTemplateIDs") String exceptReportTemplateIDs,@Param("period")Integer period);

    void clearReportWithPeriod(Integer period);
133

134 135
    void clearDataWithPeriod(@Param("exceptReportTemplateIDs") String exceptReportTemplateIDs,@Param("period")Integer period);

136
    List<DataSourceExtendDto> getFormulaDataSource(Long reportID);
137 138 139 140

    List<DataSourceExtendDto> getManualDataSource(Long cellDataID);

    DataSourceCellDataDto getManualDataSource2(Long dataSourceID);
frank.xa.zhang's avatar
frank.xa.zhang committed
141
}