Commit 19fd2bbf authored by chase's avatar chase

Merge branch 'dev_mysql' of http://code.tech.tax.asia.pwcinternal.com/root/atms into dev_mysql

parents 149d174c 535e759b
...@@ -62,6 +62,7 @@ public class CitDataPreviewServiceImpl extends BaseService { ...@@ -62,6 +62,7 @@ public class CitDataPreviewServiceImpl extends BaseService {
public PageInfo<CitJournalAdjustDto> getJournalMergeData(CitJournalAdjustDto citJournalAdjustDto) { public PageInfo<CitJournalAdjustDto> getJournalMergeData(CitJournalAdjustDto citJournalAdjustDto) {
CitJournalEntryAdjust citJournalEntryAdjust = beanUtil.copyProperties(citJournalAdjustDto, new CitJournalEntryAdjust()); CitJournalEntryAdjust citJournalEntryAdjust = beanUtil.copyProperties(citJournalAdjustDto, new CitJournalEntryAdjust());
Page page = PageHelper.startPage(citJournalAdjustDto.getPageInfo().getPageIndex(), citJournalAdjustDto.getPageInfo().getPageSize()); Page page = PageHelper.startPage(citJournalAdjustDto.getPageInfo().getPageIndex(), citJournalAdjustDto.getPageInfo().getPageSize());
List<CitJournalEntryAdjust> journalMerges = citJournalMapper.getJournalMerge(citJournalEntryAdjust); List<CitJournalEntryAdjust> journalMerges = citJournalMapper.getJournalMerge(citJournalEntryAdjust);
List<CitJournalAdjustDto> journalAdjustDtos = Lists.newArrayList(); List<CitJournalAdjustDto> journalAdjustDtos = Lists.newArrayList();
journalMerges.forEach(journal -> { journalMerges.forEach(journal -> {
......
...@@ -1191,6 +1191,7 @@ public class CitReportServiceImpl extends BaseService { ...@@ -1191,6 +1191,7 @@ public class CitReportServiceImpl extends BaseService {
private CitJournalEntryAdjustMapper citJournalEntryAdjustMapper; private CitJournalEntryAdjustMapper citJournalEntryAdjustMapper;
public OperationResultDto addCellManualDataSource(ManualDataSourceDto data, String projectId) { public OperationResultDto addCellManualDataSource(ManualDataSourceDto data, String projectId) {
data.setPeriod(0);
OperationResultDto operationResultDto = new OperationResultDto(); OperationResultDto operationResultDto = new OperationResultDto();
try { try {
if (data.getCellId() == null) { if (data.getCellId() == null) {
...@@ -1247,29 +1248,29 @@ public class CitReportServiceImpl extends BaseService { ...@@ -1247,29 +1248,29 @@ public class CitReportServiceImpl extends BaseService {
/*kevin insert */ // TODO: 3/21/2019 需要验证 /*kevin insert */ // TODO: 3/21/2019 需要验证
PeriodCellTemplateConfigExample example = new PeriodCellTemplateConfigExample(); // PeriodCellTemplateConfigExample example = new PeriodCellTemplateConfigExample();
PeriodCellTemplateConfigExample.Criteria criteria = example.createCriteria(); // PeriodCellTemplateConfigExample.Criteria criteria = example.createCriteria();
criteria.andCellTemplateIdEqualTo(Long.parseLong(data.getCellTemplateId())); // criteria.andCellTemplateIdEqualTo(Long.parseLong(data.getCellTemplateId()));
criteria.andProjectIdEqualTo(data.getProjectId()); // criteria.andProjectIdEqualTo(data.getProjectId());
PeriodCellTemplateConfig periodCellTemplateConfig = new PeriodCellTemplateConfig(); // PeriodCellTemplateConfig periodCellTemplateConfig = new PeriodCellTemplateConfig();
periodCellTemplateConfig.setParsedFormula(sumValue); // periodCellTemplateConfig.setParsedFormula(sumValue);
periodCellTemplateConfigMapper.updateByExampleSelective(periodCellTemplateConfig, example); // periodCellTemplateConfigMapper.updateByExampleSelective(periodCellTemplateConfig, example);
//更改选中行相关数据 // //更改选中行相关数据
CitJournalEntryAdjust citJournalEntryAdjust = new CitJournalEntryAdjust(); // CitJournalEntryAdjust citJournalEntryAdjust = new CitJournalEntryAdjust();
citJournalEntryAdjust.setIsSelect("1"); // citJournalEntryAdjust.setIsSelect("1");
CitJournalEntryAdjustExample example1 = new CitJournalEntryAdjustExample(); // CitJournalEntryAdjustExample example1 = new CitJournalEntryAdjustExample();
CitJournalEntryAdjustExample.Criteria criteria1 = example1.createCriteria(); // CitJournalEntryAdjustExample.Criteria criteria1 = example1.createCriteria();
criteria1.andProjectIdEqualTo(data.getProjectId()); // criteria1.andProjectIdEqualTo(data.getProjectId());
criteria1.andSubjectCodeEqualTo(data.getAccountCode()); // criteria1.andSubjectCodeEqualTo(data.getAccountCode());
citJournalEntryAdjustMapper.updateByExample(citJournalEntryAdjust, example1); // citJournalEntryAdjustMapper.updateByExample(citJournalEntryAdjust, example1);
//
JournalEntry journalEntry = new JournalEntry(); // JournalEntry journalEntry = new JournalEntry();
journalEntry.setIsSelect("1"); // journalEntry.setIsSelect("1");
JournalEntryExample example2 = new JournalEntryExample(); // JournalEntryExample example2 = new JournalEntryExample();
JournalEntryExample.Criteria criteria2 = example2.createCriteria(); // JournalEntryExample.Criteria criteria2 = example2.createCriteria();
criteria2.andProjectIdEqualTo(data.getProjectId()); // criteria2.andProjectIdEqualTo(data.getProjectId());
criteria2.andSegment3EqualTo(data.getAccountCode()); // criteria2.andSegment3EqualTo(data.getAccountCode());
journalEntryMapper.updateByExample(journalEntry, example2); // journalEntryMapper.updateByExample(journalEntry, example2);
} }
List<DataSourceExtendDto> dataSourceExtendDtos = periodDataSourceMapper.getManualDataSource(data.getCellId()); List<DataSourceExtendDto> dataSourceExtendDtos = periodDataSourceMapper.getManualDataSource(data.getCellId());
......
...@@ -352,16 +352,16 @@ ...@@ -352,16 +352,16 @@
created_by, created_date, late_updated_by, created_by, created_date, late_updated_by,
late_updated_date, create_time, update_time,is_select late_updated_date, create_time, update_time,is_select
from cit_journal_entry_adjust where project_id = #{projectId,jdbcType=VARCHAR} from cit_journal_entry_adjust where project_id = #{projectId,jdbcType=VARCHAR}
<if test="orgCode != null"> <if test="orgCode != null and orgCode != ''">
and org_code = #{orgCode,jdbcType=VARCHAR} and org_code = #{orgCode,jdbcType=VARCHAR}
</if> </if>
<if test="subjectCode != null"> <if test="subjectCode != null and subjectCode != ''">
and subject_code = #{subjectCode,jdbcType=VARCHAR} and subject_code = #{subjectCode,jdbcType=VARCHAR}
</if> </if>
<if test="orgName != null"> <if test="orgName != null and orgName != ''">
and org_name = #{orgName,jdbcType=VARCHAR} and org_name = #{orgName,jdbcType=VARCHAR}
</if> </if>
<if test="subjectName != null"> <if test="subjectName != null and subjectName != ''">
and subject_name = #{subjectName,jdbcType=VARCHAR} and subject_name = #{subjectName,jdbcType=VARCHAR}
</if> </if>
<if test="periodStart!=null"> <if test="periodStart!=null">
...@@ -381,16 +381,16 @@ ...@@ -381,16 +381,16 @@
attribute6, attribute7, attribute8, attribute9, attribute10, attribute11, attribute12, attribute13, attribute14, attribute15, attribute6, attribute7, attribute8, attribute9, attribute10, attribute11, attribute12, attribute13, attribute14, attribute15,
attribute16, created_by, created_date, late_updated_by, late_updated_date, create_time, update_time, is_select attribute16, created_by, created_date, late_updated_by, late_updated_date, create_time, update_time, is_select
from journal_entry where project_id = #{projectId,jdbcType=VARCHAR} from journal_entry where project_id = #{projectId,jdbcType=VARCHAR}
<if test="orgCode != null"> <if test="orgCode != null and orgCode != ''">
and segment1 = #{orgCode,jdbcType=VARCHAR} and segment1 = #{orgCode,jdbcType=VARCHAR}
</if> </if>
<if test="subjectCode != null"> <if test="subjectCode != null and subjectCode != ''">
and segment3 = #{subjectCode,jdbcType=VARCHAR} and segment3 = #{subjectCode,jdbcType=VARCHAR}
</if> </if>
<if test="orgName != null"> <if test="orgName != null and orgName != ''">
and segment1_name = #{orgName,jdbcType=VARCHAR} and segment1_name = #{orgName,jdbcType=VARCHAR}
</if> </if>
<if test="subjectName != null"> <if test="subjectName != null and subjectName != ''">
and segment3_name = #{subjectName,jdbcType=VARCHAR} and segment3_name = #{subjectName,jdbcType=VARCHAR}
</if> </if>
<if test="periodStart!=null"> <if test="periodStart!=null">
......
...@@ -360,13 +360,13 @@ ...@@ -360,13 +360,13 @@
on on
tb.account_code=dam.acct_code tb.account_code=dam.acct_code
where tb.project_id = #{projectId,jdbcType=VARCHAR} where tb.project_id = #{projectId,jdbcType=VARCHAR}
<if test="accountCode != null"> <if test="accountCode != null and accountCode != ''">
and tb.account_code = #{accountCode,jdbcType=VARCHAR} and tb.account_code = #{accountCode,jdbcType=VARCHAR}
</if> </if>
<if test="accountDescription != null"> <if test="accountDescription != null and accountDescription != ''">
and tb.account_description = #{accountDescription,jdbcType=VARCHAR} and tb.account_description = #{accountDescription,jdbcType=VARCHAR}
</if> </if>
<if test="attribute != null"> <if test="attribute != null and attribute != ''">
and dam.account_description = #{attribute,jdbcType=VARCHAR} and dam.account_description = #{attribute,jdbcType=VARCHAR}
</if> </if>
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
//分页的设置 //分页的设置
$scope.pagingOptions = { $scope.pagingOptions = {
pageIndex: 1, //当前页码 pageIndex: 1, //当前页码
totalItems: 1, //总数据 totalItems: 4187, //总数据
pageSize: 100, //每页多少条数据 pageSize: 100, //每页多少条数据
pageSizeString: "100" pageSizeString: "100"
}; };
......
...@@ -15,13 +15,13 @@ ...@@ -15,13 +15,13 @@
<input class="form-control input-width-middle" type="text" id="subjectName" ng-model="queryParams.subjectName" /> <input class="form-control input-width-middle" type="text" id="subjectName" ng-model="queryParams.subjectName" />
</td> </td>
</tr> </tr>
<tr> <tr style="display: none">
<td> <td>
<span translate="orgCode"></span> <span translate="orgCode"></span>
<input class="form-control input-width-middle" type="text" id="orgCode" ng-model="queryParams.orgCode" /> <input class="form-control input-width-middle" type="text" id="orgCode" ng-model="queryParams.orgCode" />
</td> </td>
</tr> </tr>
<tr> <tr style="display: none">
<td> <td>
<span translate="orgName"></span> <span translate="orgName"></span>
<input class="form-control input-width-middle" type="text" id="orgName" ng-model="queryParams.orgName" /> <input class="form-control input-width-middle" type="text" id="orgName" ng-model="queryParams.orgName" />
......
...@@ -178,13 +178,13 @@ ...@@ -178,13 +178,13 @@
} }
loadJournalEntryDataFromDB(1); loadJournalEntryDataFromDB(1);
if ($scope.criteriaList.length > 6) { // if ($scope.criteriaList.length > 6) {
$scope.criteriaListFirstRow = $scope.criteriaList.slice(0, 6); // $scope.criteriaListFirstRow = $scope.criteriaList.slice(0, 6);
$scope.criteriaListSecondRow = $scope.criteriaList.slice(6, $scope.criteriaList.length); // $scope.criteriaListSecondRow = $scope.criteriaList.slice(6, $scope.criteriaList.length);
} // }
else { // else {
$scope.criteriaListFirstRow = $scope.criteriaList.slice(0, $scope.criteriaList.length); // $scope.criteriaListFirstRow = $scope.criteriaList.slice(0, $scope.criteriaList.length);
} // }
$('.filter-button').popover("hide"); $('.filter-button').popover("hide");
}; };
...@@ -201,8 +201,8 @@ ...@@ -201,8 +201,8 @@
documentDate: null, documentDate: null,
projectId: vatSessionService.project.id projectId: vatSessionService.project.id
}; };
$scope.queryParams.periodStart = $scope.startMonth; $scope.queryParams.periodStart = vatSessionService.year * 100 + 1;
$scope.queryParams.periodEnd = $scope.endMonth; $scope.queryParams.periodEnd = vatSessionService.year * 100 + 12;
loadJournalEntryDataFromDB(1); loadJournalEntryDataFromDB(1);
$('.filter-button').popover("hide"); $('.filter-button').popover("hide");
}; };
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<div class="input-group"> <div class="input-group">
<input class="form-control " type="text" id="accountCode" placeholder="" <input class="form-control " type="text" id="accountCode" placeholder=""
ng-model="filterData.accountCode"> ng-model="queryParams.accountCode">
<!--<a class="input-group-addon btn btn-sm" ng-click="popTheParentCode()"><i--> <!--<a class="input-group-addon btn btn-sm" ng-click="popTheParentCode()"><i-->
<!--class="fa fa-columns" aria-hidden="true"></i></a>--> <!--class="fa fa-columns" aria-hidden="true"></i></a>-->
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<tr> <tr>
<td><span translate="AccountName"></span></td> <td><span translate="AccountName"></span></td>
<td><input class="form-control " type="text" id="accountDescription" placeholder="" <td><input class="form-control " type="text" id="accountDescription" placeholder=""
ng-model="filterData.accountDescription"></td> ng-model="queryParams.accountDescription"></td>
</tr> </tr>
<!--<tr>--> <!--<tr>-->
......
...@@ -182,6 +182,8 @@ ...@@ -182,6 +182,8 @@
pageInfo: {}, pageInfo: {},
periodStart: '', periodStart: '',
periodEnd: '', periodEnd: '',
accountCode:'',
accountDescription:'',
// segment3: null, // segment3: null,
// segment3Name: null, // segment3Name: null,
// segment5: null, // segment5: null,
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<div class="input-group"> <div class="input-group">
<input class="form-control " type="text" id="accountCode" placeholder="" <input class="form-control " type="text" id="accountCode" placeholder=""
ng-model="filterData.accountCode"> ng-model="queryParams.accountCode">
</div> </div>
</td> </td>
</tr> </tr>
...@@ -16,13 +16,13 @@ ...@@ -16,13 +16,13 @@
<tr> <tr>
<td><span translate="AccountName"></span></td> <td><span translate="AccountName"></span></td>
<td><input class="form-control " type="text" id="accountDescription" placeholder="" <td><input class="form-control " type="text" id="accountDescription" placeholder=""
ng-model="filterData.accountDescription"></td> ng-model="queryParams.accountDescription"></td>
</tr> </tr>
<tr> <tr>
<td><span translate="Attribute"></span></td> <td><span translate="Attribute"></span></td>
<td><input class="form-control " type="text" id="attribute" placeholder="" <td><input class="form-control " type="text" id="attribute" placeholder=""
ng-model="filterData.attribute"></td> ng-model="queryParams.attribute"></td>
</tr> </tr>
<!--<tr>--> <!--<tr>-->
......
...@@ -527,6 +527,7 @@ ...@@ -527,6 +527,7 @@
//设置手工输入保存时需要的信息 //设置手工输入保存时需要的信息
$scope.handInputModel = { $scope.handInputModel = {
cellId:jsonTagInfo.cellID,
cellID: jsonTagInfo.cellID, cellID: jsonTagInfo.cellID,
cellTemplateID: jsonTagInfo.cellTemplateID, cellTemplateID: jsonTagInfo.cellTemplateID,
reportID: jsonTagInfo.reportID reportID: jsonTagInfo.reportID
...@@ -1560,7 +1561,7 @@ ...@@ -1560,7 +1561,7 @@
if (vatSessionService.month) if (vatSessionService.month)
vatSessionService.project.period = vatSessionService.month; vatSessionService.project.period = vatSessionService.month;
vatApproveService.approvalStatus(vatSessionService.project.id, vatSessionService.project.period).success(function (result) { vatApproveService.approvalStatus(vatSessionService.project.id, 0).success(function (result) {
$scope.handInputModel.name = $scope.taxCellDetail.inputMemo; $scope.handInputModel.name = $scope.taxCellDetail.inputMemo;
$scope.handInputModel.description = $scope.taxCellDetail.inputMemo; $scope.handInputModel.description = $scope.taxCellDetail.inputMemo;
$scope.handInputModel.projectID = vatSessionService.project.id; $scope.handInputModel.projectID = vatSessionService.project.id;
......
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