| | |
| | | trim: true |
| | | }) |
| | | } |
| | | export function monthList (data) { |
| | | return request.post('/business/applyChange/monthList', data, { |
| | | trim: true |
| | | }) |
| | | } |
| | | export function getChangeMemberListOnlineSignLink (data) { |
| | | return request.post('business/applyChange/getChangeMemberListOnlineSignLink', data, { |
| | | trim: true |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <GlobalWindow |
| | | :title="title" |
| | | width="100%" |
| | | :visible.sync="visible" |
| | | :confirm-working="isWorking" |
| | | @confirm="confirm" |
| | | > |
| | | <TableLayout :permissions="['business:applychange:query']"> |
| | | <!-- æç´¢è¡¨å --> |
| | | <el-form ref="searchForm" slot="search-form" :model="searchForm" label-width="100px" inline> |
| | | <el-form-item label="ä¿åç¶æ" prop="status"> |
| | | <el-select v-model="searchForm.status" placeholder="è¯·éæ©" @change="search"> |
| | | <el-option label="å
¨é¨" value=""></el-option> |
| | | <el-option label="å¾
ç¾ç½²" value="0"></el-option> |
| | | <el-option label="å¾
å®¡æ ¸" value="1"></el-option> |
| | | <el-option label="å·²çæ" value="2"></el-option> |
| | | <el-option label="ç³è¯·éå" value="3"></el-option> |
| | | <!-- 3 4 齿¯éåç³è¯·ä¸--> |
| | | <el-option label="å·²éå" value="5"></el-option> |
| | | <el-option label="å·²å
³é" value="6"></el-option> |
| | | <el-option label="å¾
åºå" value="7"></el-option> |
| | | <el-option label="æ¹æ¹ç³è¯·ä¸" value="9"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="ä¿é©æ¹æ¡" prop="baseSolutionsId"> |
| | | <el-select v-model="searchForm.baseSolutionsId" placeholder="è¯·éæ©" @change="search"> |
| | | <el-option |
| | | v-for="item in solutionList" |
| | | :key="item.baseId" |
| | | :label="item.name" |
| | | :value="item.baseId"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item>--> |
| | | <el-form-item label="年份" prop="year"> |
| | | <el-date-picker |
| | | v-model="searchForm.year" |
| | | type="year" |
| | | @change="search" |
| | | :clearable="false" |
| | | value-format="yyyy" |
| | | placeholder="è¯·éæ©å¹´ä»½" |
| | | format="yyyy" > |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <section> |
| | | <el-button type="primary" @click="search">æç´¢</el-button> |
| | | <el-button @click="reset">éç½®</el-button> |
| | | </section> |
| | | </el-form> |
| | | <!-- è¡¨æ ¼åå页 --> |
| | | <template v-slot:table-wrap> |
| | | <el-table |
| | | v-loading="isWorking.search" |
| | | :data="dataList" |
| | | stripe |
| | | show-summary |
| | | :summary-method="getSummaries" |
| | | > |
| | | <el-table-column label="åºå·" width="80px"> |
| | | <template slot-scope="scope"> |
| | | <span>{{scope.$index + 1}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="month" label="å¹´æ" ></el-table-column> |
| | | <el-table-column prop="countNum" label="ç³è¯·åæ°" ></el-table-column> |
| | | <el-table-column prop="fee" label="è´¹ç¨åæ´(å
)" ></el-table-column> |
| | | </el-table> |
| | | </template> |
| | | <!-- 详æ
--> |
| | | </TableLayout> |
| | | <template v-slot:footer> |
| | | <el-button @click="visible=false">è¿å</el-button> |
| | | </template> |
| | | </GlobalWindow> |
| | | </template> |
| | | <script> |
| | | import BaseTable from '@/components/base/BaseTable' |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import { all as solutionAll } from '@/api/business/solutions' |
| | | import { monthList } from '@/api/business/applyChange' |
| | | export default { |
| | | name: 'OperaApplyChangeMonthWindow', |
| | | extends: BaseTable, |
| | | components: { TableLayout ,GlobalWindow}, |
| | | data () { |
| | | return { |
| | | // æç´¢ |
| | | visible:false, |
| | | title: '', |
| | | searchForm: { |
| | | status: '', |
| | | type: '0', |
| | | applyId:null, |
| | | baseSolutionsId: '', |
| | | createDateE: '', |
| | | createDateS: '', |
| | | year:null |
| | | }, |
| | | solutionList: [], |
| | | dataList: [] |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | module: 'å åä¿æ¢åç³è¯·ä¿¡æ¯è¡¨', |
| | | api: '/business/applyChange', |
| | | 'field.id': 'id', |
| | | 'field.main': 'id' |
| | | }) |
| | | }, |
| | | methods: { |
| | | open(title,taget){ |
| | | this.searchForm.applyId = taget.id |
| | | this.title = title + "-" + taget.solutionsName |
| | | this.visible = true |
| | | this.searchForm.year = new Date().getFullYear().toString() |
| | | this.search() |
| | | this.getAll() |
| | | }, |
| | | getSummaries (param) { |
| | | const { columns, data } = param |
| | | const sums = [] |
| | | columns.forEach((column, index) => { |
| | | if (index === 0) { |
| | | sums[index] = 'å计' |
| | | } else if (index == 3) { |
| | | let price = 0 |
| | | data.forEach(item => { |
| | | price += item.fee |
| | | }) |
| | | sums[index] = price.toFixed(2) |
| | | } |
| | | }) |
| | | return sums; |
| | | }, |
| | | getAll () { |
| | | solutionAll({ dataType: 2 }).then(res => { |
| | | this.solutionList = res |
| | | }).catch(err => { |
| | | }) |
| | | }, |
| | | search () { |
| | | monthList(this.searchForm).then(res => { |
| | | this.dataList = res |
| | | }).catch(err => { |
| | | }) |
| | | }, |
| | | changeTime (e) { |
| | | if (e.length > 0) { |
| | | this.searchForm.createDateS = e[0] |
| | | this.searchForm.createDateE = e[1] |
| | | } else { |
| | | this.searchForm.createDateS = '' |
| | | this.searchForm.createDateE = '' |
| | | } |
| | | this.search() |
| | | }, |
| | | reset () { |
| | | this.searchForm.createDateS = '' |
| | | this.searchForm.createDateE = '' |
| | | this.searchForm.time = [] |
| | | this.$refs.searchForm.resetFields() |
| | | this.search() |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | /* èªå®ä¹å计è¡èæ¯è² */ |
| | | ::v-deep .el-table .el-table__footer-wrapper tr { |
| | | background-color: #f2f2f2; |
| | | } |
| | | ::v-deep .el-table__footer tr { |
| | | background-color: #f2f2f2; |
| | | } |
| | | |
| | | /* èªå®ä¹åè®¡è¡ææ¬é¢è² */ |
| | | ::v-deep .el-table .el-table__footer-wrapper tr td { |
| | | color: red; |
| | | } |
| | | ::v-deep .el-table__footer tr td { |
| | | color: red; |
| | | font-weight: bold; |
| | | } |
| | | </style> |
| | |
| | | :key="Math.random()" |
| | | prop="startTime" |
| | | align="center" |
| | | label="ä¿é©çæèµ·æ"> |
| | | :label="getApplyTimeTitle(0,model.solutionType,model)"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | :key="Math.random()" |
| | | prop="endTime" |
| | | align="center" |
| | | label="ä¿é©çææ¢æ"> |
| | | :label="getApplyTimeTitle(1,model.solutionType,model)"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | :key="Math.random()" |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <TableLayout :permissions="['business:applychange:query']"> |
| | | <!-- æç´¢è¡¨å --> |
| | | <el-form ref="searchForm" slot="search-form" :model="searchForm" label-width="100px" inline> |
| | | <el-form-item label="ä¿åç¶æ" prop="status"> |
| | | <el-select v-model="searchForm.status" placeholder="è¯·éæ©" @change="search"> |
| | | <el-option label="å
¨é¨" value=""></el-option> |
| | | <el-option label="å¾
ç¾ç½²" value="0"></el-option> |
| | | <el-option label="å¾
å®¡æ ¸" value="1"></el-option> |
| | | <el-option label="å·²çæ" value="2"></el-option> |
| | | <el-option label="ç³è¯·éå" value="3"></el-option> |
| | | <!-- 3 4 齿¯éåç³è¯·ä¸--> |
| | | <el-option label="å·²éå" value="5"></el-option> |
| | | <el-option label="å·²å
³é" value="6"></el-option> |
| | | <el-option label="å¾
åºå" value="7"></el-option> |
| | | <el-option label="æ¹æ¹ç³è¯·ä¸" value="9"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="ä¿é©æ¹æ¡" prop="baseSolutionsId"> |
| | | <el-select v-model="searchForm.baseSolutionsId" placeholder="è¯·éæ©" @change="search"> |
| | | <el-option |
| | | v-for="item in solutionList" |
| | | :key="item.baseId" |
| | | :label="item.name" |
| | | :value="item.baseId"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="年份" prop="year"> |
| | | <el-date-picker |
| | | v-model="searchForm.year" |
| | | type="year" |
| | | @change="search" |
| | | :clearable="false" |
| | | value-format="yyyy" |
| | | placeholder="è¯·éæ©å¹´ä»½" |
| | | format="yyyy" > |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <section> |
| | | <el-button type="primary" @click="search">æç´¢</el-button> |
| | | <el-button @click="reset">éç½®</el-button> |
| | | </section> |
| | | </el-form> |
| | | <!-- è¡¨æ ¼åå页 --> |
| | | <template v-slot:table-wrap> |
| | | <el-table |
| | | v-loading="isWorking.search" |
| | | :data="dataList" |
| | | stripe |
| | | show-summary |
| | | :summary-method="getSummaries" |
| | | > |
| | | <el-table-column label="åºå·" width="80px"> |
| | | <template slot-scope="scope"> |
| | | <span>{{scope.$index + 1}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="month" label="å¹´æ" ></el-table-column> |
| | | <el-table-column prop="countNum" label="ç³è¯·åæ°" ></el-table-column> |
| | | <el-table-column prop="fee" label="è´¹ç¨åæ´(å
)" ></el-table-column> |
| | | </el-table> |
| | | </template> |
| | | <!-- 详æ
--> |
| | | </TableLayout> |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseTable from '@/components/base/BaseTable' |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import { all as solutionAll } from '@/api/business/solutions' |
| | | import { monthList } from '@/api/business/applyChange' |
| | | export default { |
| | | name: 'add_subtract', |
| | | extends: BaseTable, |
| | | components: { TableLayout }, |
| | | data () { |
| | | return { |
| | | // æç´¢ |
| | | searchForm: { |
| | | status: '', |
| | | type: '0', |
| | | applyId:null, |
| | | baseSolutionsId: '', |
| | | createDateE: '', |
| | | createDateS: '', |
| | | year:null |
| | | }, |
| | | solutionList: [], |
| | | dataList: [] |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | module: 'å åä¿æ¢åç³è¯·ä¿¡æ¯è¡¨', |
| | | api: '/business/applyChange', |
| | | 'field.id': 'id', |
| | | 'field.main': 'id' |
| | | }) |
| | | this.searchForm.year = new Date().getFullYear().toString() |
| | | this.search() |
| | | this.getAll() |
| | | }, |
| | | methods: { |
| | | getSummaries (param) { |
| | | const { columns, data } = param |
| | | const sums = [] |
| | | columns.forEach((column, index) => { |
| | | if (index === 0) { |
| | | sums[index] = 'å计' |
| | | } else if (index == 3) { |
| | | let price = 0 |
| | | data.forEach(item => { |
| | | price += item.fee |
| | | }) |
| | | sums[index] = price.toFixed(2) |
| | | } |
| | | }) |
| | | return sums; |
| | | }, |
| | | getAll () { |
| | | solutionAll({ dataType: 2 }).then(res => { |
| | | this.solutionList = res |
| | | }).catch(err => { |
| | | }) |
| | | }, |
| | | search () { |
| | | monthList(this.searchForm).then(res => { |
| | | this.dataList = res |
| | | }).catch(err => { |
| | | }) |
| | | }, |
| | | changeTime (e) { |
| | | if (e.length > 0) { |
| | | this.searchForm.createDateS = e[0] |
| | | this.searchForm.createDateE = e[1] |
| | | } else { |
| | | this.searchForm.createDateS = '' |
| | | this.searchForm.createDateE = '' |
| | | } |
| | | this.search() |
| | | }, |
| | | reset () { |
| | | this.searchForm.createDateS = '' |
| | | this.searchForm.createDateE = '' |
| | | this.searchForm.time = [] |
| | | this.$refs.searchForm.resetFields() |
| | | this.search() |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style> |
| | | /* èªå®ä¹å计è¡èæ¯è² */ |
| | | ::v-deep .el-table .el-table__footer-wrapper tr { |
| | | background-color: #f2f2f2; |
| | | } |
| | | ::v-deep .el-table__footer tr { |
| | | background-color: #f2f2f2; |
| | | } |
| | | |
| | | /* èªå®ä¹åè®¡è¡ææ¬é¢è² */ |
| | | ::v-deep .el-table .el-table__footer-wrapper tr td { |
| | | color: red; |
| | | } |
| | | ::v-deep .el-table__footer tr td { |
| | | color: red; |
| | | } |
| | | </style> |
| | |
| | | <el-table-column |
| | | v-if="containPermissions(['business:insuranceapply:update', 'business:insuranceapply:delete'])" |
| | | label="æä½" |
| | | min-width="120" |
| | | min-width="150" |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="godetail(row)" v-permissions="['business:insuranceapply:update']">æ¥ç详æ
</el-button> |
| | | <el-button type="text" @click="godetail(row)" v-permissions="['business:insuranceapply:update']">æ¥ç详æ
</el-button> |
| | | <el-button type="text" @click="$refs.OperaApplyChangeMonthWindow.open('å åä¿æåº¦è´¹ç¨ç»è®¡',row)" v-permissions="['business:applychange:query']">å åä¿è´¹ç¨</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | </template> |
| | | <!-- æ°å¢æä¿ --> |
| | | <OperaInsuranceApplyAddWindow ref="OperaInsuranceApplyAddWindow" @success="result" /> |
| | | <OperaApplyChangeMonthWindow ref="OperaApplyChangeMonthWindow" @success="handlePageChange" /> |
| | | <OperaWtbApplyShopWindow ref="OperaWtbApplyShopWindow" @success="handlePageChange" /> |
| | | <!-- æä¿è¯¦æ
--> |
| | | <OperaInsuranceApplyDetails ref="OperaInsuranceApplyDetails" @success="handlePageChange" /> |
| | |
| | | import OperaInsuranceApplyAddWindow from '@/components/enterprise/OperaInsuranceApplyAddWindow' |
| | | import OperaInsuranceApplyDetails from '@/components/business/OperaInsuranceApplyWindow' |
| | | import OperaWtbApplyShopWindow from '@/components/business/OperaWtbApplyShopWindow' |
| | | import OperaApplyChangeMonthWindow from '@/components/business/OperaApplyChangeMonthWindow' |
| | | |
| | | import { all as solutionAll } from '@/api/business/solutions' |
| | | export default { |
| | | name: 'InsuranceApply', |
| | | extends: BaseTable, |
| | | components: { TableLayout, Pagination, OperaInsuranceApplyAddWindow, OperaInsuranceApplyDetails,OperaWtbApplyShopWindow }, |
| | | components: { TableLayout, Pagination,OperaApplyChangeMonthWindow, OperaInsuranceApplyAddWindow, OperaInsuranceApplyDetails,OperaWtbApplyShopWindow }, |
| | | data () { |
| | | return { |
| | | // æç´¢ |
| | |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="godetail(row)" v-permissions="['business:insuranceapply:update']">æ¥ç详æ
</el-button> |
| | | <el-button type="text" @click="$refs.OperaApplyChangeMonthWindow.open('å åä¿æåº¦è´¹ç¨ç»è®¡',row)" v-permissions="['business:applychange:query']">å åä¿è´¹ç¨</el-button> |
| | | <!-- <template v-if="row.statusCollect === 2">--> |
| | | <!-- <el-button type="text" @click="$refs.additionSubtractionApplication.open('å åä¿ç³è¯·', { id: row.id })">å åä¿ç³è¯·</el-button>--> |
| | | <!-- </template>--> |
| | |
| | | <!-- å åä¿ç³è¯· --> |
| | | <additionSubtractionApplication ref="additionSubtractionApplication" @success="handlePageChange" /> |
| | | <!-- ç»ä¿å¼¹çª --> |
| | | <OperaApplyChangeMonthWindow ref="OperaApplyChangeMonthWindow" @success="handlePageChange" /> |
| | | <renewalInsurance ref="renewalInsurance" @success="handlePageChange" /> |
| | | </TableLayout> |
| | | </template> |
| | |
| | | import additionSubtractionApplication from '@/components/enterprise/additionSubtractionApplication' |
| | | import renewalInsurance from '@/components/enterprise/renewalInsurance' |
| | | import OperaWtbApplyShopWindow from '@/components/business/OperaWtbApplyShopWindow' |
| | | import OperaApplyChangeMonthWindow from '@/components/business/OperaApplyChangeMonthWindow' |
| | | |
| | | import { all as solutionAll } from '@/api/business/solutions' |
| | | import { getCaptcha, closeApplyNotice } from '@/api/business/notices' |
| | |
| | | OperaInsuranceApplyWindow, |
| | | OperaInsuranceApplyDetails, |
| | | renewalInsurance, |
| | | OperaApplyChangeMonthWindow, |
| | | additionSubtractionApplication, |
| | | OperaWtbApplyShopWindow |
| | | }, |
| | |
| | | return ApiResponse.success(applyChangeService.findPageForCompany(pageWrap)); |
| | | } |
| | | |
| | | @ApiOperation("æ¥è¯¢æåº¦ç»è®¡æ°æ®") |
| | | @PostMapping("/monthList") |
| | | @RequiresPermissions("business:applychange:query") |
| | | public ApiResponse<List<ApplyChange>> findPage (@RequestBody ApplyChange pageWrap) { |
| | | return ApiResponse.success(applyChangeService.monthTotalList(pageWrap)); |
| | | } |
| | | |
| | | @ApiOperation("导åºExcel") |
| | | @PostMapping("/exportExcel") |
| | | @RequiresPermissions("business:applychange:exportExcel") |
| | |
| | | @ApiModelProperty(value = "åå¹¶å主é®ï¼ä¿åï¼") |
| | | @TableField(exist = false) |
| | | private Integer unionApplyId; |
| | | |
| | | @ApiModelProperty(value = "年份") |
| | | @TableField(exist = false) |
| | | private Integer year; |
| | | @ApiModelProperty(value = "ç»è®¡æ¡ç®æ°") |
| | | @TableField(exist = false) |
| | | private Integer countNum; |
| | | @ApiModelProperty(value = "æäº¤æ¥æå¼å§ yyyy-MM ") |
| | | @TableField(exist = false) |
| | | private String month; |
| | | |
| | | public TaxesInvoicingVO toTaxesInvoicingVO(){ |
| | | TaxesInvoicingVO taxesInvoicingVO = new TaxesInvoicingVO(); |
| | |
| | | String getSignLinkChangeUnit(ApplyChange model); |
| | | |
| | | List<ApplyChange> findListForCompany(ApplyChange model); |
| | | List<ApplyChange> monthTotalList(ApplyChange model); |
| | | |
| | | CountCyclePriceVO getChangeCountCyclePriceVO(ApplyChangeCyclePriceDTO applyChangeCyclePriceDTO); |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<ApplyChange> monthTotalList(ApplyChange model){ |
| | | if(model.getApplyId() ==null || model.getYear() == null){ |
| | | return new ArrayList<>(); |
| | | } |
| | | MPJLambdaWrapper<ApplyChange> queryWrapper = new MPJLambdaWrapper<>(); |
| | | queryWrapper |
| | | .select("count(t.id)",ApplyChange::getCountNum) |
| | | .select("sum(t.fee)",ApplyChange::getFee) |
| | | .select("DATE_FORMAT(t.create_date, '%Y-%m')",ApplyChange::getMonth) |
| | | .leftJoin(InsuranceApply.class,InsuranceApply::getId,ApplyChange::getApplyId) |
| | | .leftJoin(Solutions.class,Solutions::getId,InsuranceApply::getSolutionId) |
| | | .eq(!Objects.isNull(model.getType()),ApplyChange::getType,model.getType()) |
| | | .eq(ApplyChange::getApplyId,model.getApplyId()) |
| | | .eq(!Objects.isNull(model.getStatus())&&!model.getStatus().equals(Constants.ApplyChangeStatus.RETURN_APPLY_UPLOAD.getKey()),ApplyChange::getStatus,model.getStatus()) |
| | | .in(!Objects.isNull(model.getStatus())&&model.getStatus().equals(Constants.ApplyChangeStatus.RETURN_APPLY_UPLOAD.getKey()), |
| | | ApplyChange::getStatus, |
| | | Constants.ApplyChangeStatus.RETURN_APPLY_UPLOAD.getKey(), |
| | | Constants.ApplyChangeStatus.RETURN_APPLY_SIGNATURE.getKey()) |
| | | .eq(!Objects.isNull(model.getSolutionType()),Solutions::getType,model.getSolutionType()) |
| | | .eq(!Objects.isNull(model.getBaseSolutionsId()),Solutions::getBaseId,model.getBaseSolutionsId()) |
| | | .like(StringUtils.isNotBlank(model.getSolutionsName()),Solutions::getName,model.getSolutionsName()) |
| | | .ge( ApplyChange::getCreateDate, model.getYear()+"-01-01 00:00:00" ) |
| | | .lt(ApplyChange::getCreateDate, (model.getYear()+1)+"-01-01 00:00:00") |
| | | .groupBy("month" ); |
| | | /* LoginUserInfo loginUserInfo =(LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | //ä¼ä¸äººåæ¥çæ¬ä¼ä¸æ°æ® |
| | | if(loginUserInfo.getType().equals(Constants.ONE)){ |
| | | queryWrapper.eq(InsuranceApply::getCompanyId, loginUserInfo.getCompanyId()); |
| | | }else if(loginUserInfo.getType().equals(Constants.TWO)){ |
| | | //妿æ¯åæ·æ¥ç |
| | | if(model.getSolutionType()!=null && model.getSolutionType() ==0){ |
| | | queryWrapper.exists("select cs.id from company_solution cs where cs.isdeleted=0 and cs.company_id=t1.company_id and cs.shop_id="+loginUserInfo.getCompanyId()); |
| | | }else if(model.getSolutionType()!=null && model.getSolutionType() ==1){ |
| | | queryWrapper.eq(Solutions::getShopId,loginUserInfo.getCompanyId()); |
| | | }else{ |
| | | queryWrapper.apply("((t2.type=0 and exists(select cs.id from company_solution cs where cs.isdeleted=0 and cs.company_id=t1.company_id and cs.shop_id="+loginUserInfo.getCompanyId()+")) or (" + |
| | | "t2.type=1 and t2.shop_id="+loginUserInfo.getCompanyId()+"))") ; |
| | | } |
| | | }else{ |
| | | if(loginUserInfo.getCompanyIdList()!=null && loginUserInfo.getCompanyIdList().size()>0){ |
| | | queryWrapper.in(InsuranceApply::getCompanyId, loginUserInfo.getCompanyIdList()); |
| | | }else{ |
| | | queryWrapper.eq(InsuranceApply::getCompanyId, -1); |
| | | } |
| | | queryWrapper.eq(model.getCompanyId()!=null,InsuranceApply::getCompanyId, model.getCompanyId()); |
| | | }*/ |
| | | |
| | | List<ApplyChange> list =applyChangeJoinMapper.selectJoinList(ApplyChange.class,queryWrapper); |
| | | List<ApplyChange> result = new ArrayList<>(); |
| | | for (int i = 1; i <= 12; i++) { |
| | | if(i<10){ |
| | | result.add(getMonthDayFromList(model.getYear() +"-0"+i,list)); |
| | | }else{ |
| | | result.add(getMonthDayFromList(model.getYear() +"-"+i,list)); |
| | | } |
| | | } |
| | | return result; |
| | | |
| | | } |
| | | |
| | | private ApplyChange getMonthDayFromList(String s, List<ApplyChange> list) { |
| | | for(ApplyChange d : list){ |
| | | if(StringUtils.equals(s,d.getMonth())){ |
| | | return d; |
| | | } |
| | | } |
| | | ApplyChange d = new ApplyChange(); |
| | | d.setMonth(s); |
| | | d.setFee(new BigDecimal(0)); |
| | | d.setCountNum(0); |
| | | return d; |
| | | } |
| | | |
| | | @Override |
| | | public List<ApplyChange> findListForCompany(ApplyChange model) { |
| | | MPJLambdaWrapper<ApplyChange> queryWrapper = new MPJLambdaWrapper<>(); |
| | | queryWrapper |