| | |
| | | VUE_APP_CONTEXT_PATH = '/' |
| | | |
| | | #æ±èæ¬å° |
| | | #VUE_APP_API_BASE_URL='http://localhost:10014' |
| | | VUE_APP_API_BASE_URL='http://localhost:12014' |
| | | |
| | | VUE_APP_API_BASE_URL='http://192.168.0.7/dmmall_admin_api/' |
| | | #VUE_APP_API_BASE_URL='http://192.168.0.7/dmmall_admin_api/' |
| | |
| | | this.$tip.warning('请è³å°éæ©ä¸æ¡æ°æ®') |
| | | return |
| | | } |
| | | let message = `确认å é¤å·²éä¸ç ${this.tableData.selectedRows.length} æ¡${this.module}è®°å½å?` |
| | | let message = `确认å é¤å·²éä¸ç ${this.tableData.selectedRows.length} æ¡è®°å½å?` |
| | | if (childConfirm) { |
| | | const containChildrenRows = [] |
| | | for (const row of this.tableData.selectedRows) { |
| | |
| | | <GlobalWindow |
| | | :title="title" |
| | | width="80%" |
| | | :withFooter="false" |
| | | :visible.sync="visible" |
| | | > |
| | | <div style="display: block;"> |
| | |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | .table-pagination{ |
| | | /*.table-pagination{ |
| | | position: fixed !important; |
| | | bottom: 50px; |
| | | } |
| | | bottom: 0px; |
| | | }*/ |
| | | .header-b{ |
| | | display: inline-block; |
| | | font-size: 16px; |
| | |
| | | <GlobalWindow |
| | | :title="title" |
| | | width="100%" |
| | | :with-footer="false" |
| | | :visible.sync="visible" |
| | | @confirm="confirm" |
| | | > |
| | |
| | | <section> |
| | | <el-button type="primary" @click="search">æç´¢</el-button> |
| | | <el-button @click="reset">éç½®</el-button> |
| | | <el-button type="primary" style="margin-left: 30px;font-weight: bold" @click="confirm">确认ååé
ç½®</el-button> |
| | | </section> |
| | | </el-form> |
| | | <!-- è¡¨æ ¼åå页 --> |
| | |
| | | <style scoped> |
| | | .table-pagination{ |
| | | position: fixed !important; |
| | | bottom: 50px; |
| | | bottom: 10px; |
| | | } |
| | | </style> |
| | |
| | | <el-radio :value="0" :label="0" >䏿¶</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-form-item label="使ç¨åååç" prop="brandIdList"> |
| | | <el-form-item label="éç¨åååç" prop="brandIdList"> |
| | | <el-select v-model="form.brandIdList" placeholder="è¯·éæ©åååç" clearable multiple @change="changeBrand"> |
| | | <el-option |
| | | v-for="item in applyBrands" |
| | |
| | | <GlobalWindow |
| | | :title="title" |
| | | width="100%" |
| | | :withFooter="false" |
| | | :visible.sync="visible" |
| | | > |
| | | <TableLayout :permissions="['business:integral:query']"> |
| | |
| | | <el-table |
| | | v-loading="isWorking.search" |
| | | :data="tableData.list" |
| | | :height="tableHeight" |
| | | stripe |
| | | border |
| | | > |
| | |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | .table-pagination{ |
| | | /*.table-pagination{ |
| | | position: fixed !important; |
| | | bottom: 50px; |
| | | } |
| | | bottom: 0px; |
| | | }*/ |
| | | .header-b{ |
| | | display: inline-block; |
| | | font-size: 16px; |
| | |
| | | <GlobalAlertWindow |
| | | v-loading="isUploading" |
| | | :title="title" |
| | | width="500px" |
| | | :visible.sync="visible" |
| | | :confirm-working="isWorking" |
| | | @confirm="confirm" |
| | | > |
| | | <el-form :model="form" ref="form" :rules="rules" label-width="120px" label-suffix="ï¼" inline> |
| | | <el-form-item label="åºååç§°" prop="name"> |
| | | <el-input v-model="form.name" placeholder="请è¾å
¥åç±»åç§°" v-trim/> |
| | | <el-input v-model="form.name" placeholder="请è¾å
¥åºååç§°" v-trim/> |
| | | </el-form-item> |
| | | <el-form-item label="éæ©ç份" prop="name"> |
| | | <el-form-item label="éæ©ç份" prop="areaIdList"> |
| | | <el-select v-model="form.areaIdList" placeholder="è¯·éæ©ç份" multiple filterable> |
| | | <el-option |
| | | v-for="item in province" |
| | |
| | | province: [], |
| | | // éªè¯è§å |
| | | rules: { |
| | | name: [ |
| | | { required: true, message: '请è¾å
¥å¤§åºåç§°' } |
| | | ], |
| | | areaIdList: [ |
| | | { required: true, message: 'è¯·éæ©ç份' } |
| | | ], |
| | | } |
| | | } |
| | | }, |
| | |
| | | <GlobalWindow |
| | | :title="title" |
| | | width="100%" |
| | | :withFooter="false" |
| | | :visible.sync="visible" |
| | | > |
| | | <div class="detail-box"> |
| | |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | .table-pagination{ |
| | | /*.table-pagination{ |
| | | position: fixed !important; |
| | | bottom: 50px; |
| | | } |
| | | bottom: 0px; |
| | | }*/ |
| | | .header-b{ |
| | | display: inline-block; |
| | | font-size: 16px; |
| | |
| | | <GlobalWindow |
| | | :title="title" |
| | | width="80%" |
| | | :with-footer="false" |
| | | :visible.sync="visible" |
| | | > |
| | | <TableLayout > |
| | |
| | | </el-form> |
| | | <!-- è¡¨æ ¼åå页 --> |
| | | <template v-slot:table-wrap> |
| | | <div :style="'display: flex;height:'+tabelHeight+'px;'"> |
| | | <!-- <div :style="'display: flex;height:'+tabelHeight+'px;'">--> |
| | | <el-table |
| | | v-loading="isWorking.search" |
| | | :data="tableData.list" |
| | |
| | | :pagination="tableData.pagination" |
| | | > |
| | | </pagination> |
| | | </div> |
| | | <!-- </div>--> |
| | | </template> |
| | | </TableLayout> |
| | | <template v-slot:footer> |
| | |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | .table-pagination{ |
| | | /*.table-pagination{ |
| | | position: fixed !important; |
| | | bottom: 50px; |
| | | } |
| | | }*/ |
| | | </style> |
| | |
| | | <GlobalWindow |
| | | :title="title" |
| | | width="100%" |
| | | :with-footer="false" |
| | | :visible.sync="visible" |
| | | > |
| | | <div class="detail-box"> |
| | |
| | | <template v-if="activeGroup === 1"> |
| | | <div class="detail-box"> |
| | | <el-form ref="searchForm1" :model="searchForm1" style="display: block;" > |
| | | <el-form-item label="" prop="code" style="display: inline-block;margin-right: 30px;"> |
| | | <el-input v-model="searchForm1.code" placeholder="请è¾å
¥è®¢åå·" @keypress.enter.native="handlePageChange1(1)"></el-input> |
| | | <el-form-item label="" prop="code" style="display: inline-block;margin-right: 20px;"> |
| | | <el-input v-model="searchForm1.code" style="width: 130px;" placeholder="订åç¼å·" @keypress.enter.native="handlePageChange1(1)"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="" prop="goodsName" style="display: inline-block;margin-right: 30px;"> |
| | | <el-input v-model="searchForm1.goodsName" placeholder="请è¾å
¥åååç§°/ç¼ç " @keypress.enter.native="handlePageChange1(1)"></el-input> |
| | | <el-form-item label="" prop="goodsName" style="display: inline-block;margin-right: 20px;"> |
| | | <el-input v-model="searchForm1.goodsName" style="width: 130px;" placeholder="åååç§°/ç¼ç " @keypress.enter.native="handlePageChange1(1)"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="" prop="status" style="display: inline-block;margin-right: 30px;"> |
| | | <!-- 0æ£å¸¸ 1ç¦ç¨ --> |
| | | <el-select v-model="searchForm1.status" placeholder="è¯·éæ©è®¢åç¶æ" @change="handlePageChange1(1)" > |
| | | <el-form-item label="" prop="status" style="display: inline-block;margin-right: 20px;"> |
| | | <el-select v-model="searchForm1.status" placeholder="订åç¶æ" style="width: 130px;" @change="handlePageChange1(1)" > |
| | | <el-option :key="0" :value="0" label="å¾
æ¯ä»" ></el-option> |
| | | <el-option :key="1" :value="1" label="å¾
åè´§/å¾
èªæ" ></el-option> |
| | | <el-option :key="2" :value="2" label="å¾
æ¶è´§" ></el-option> |
| | |
| | | <el-option :key="4" :value="4" label="å·²å
³é" ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <div class="date-style" style="display: inline-block;font-size: 14px;margin-right: 20px;">è®¢åæ¶é´ï¼ |
| | | <el-form-item label="" prop="receiveType" style="display: inline-block;margin-right: 20px;"> |
| | | <el-select v-model="searchForm1.receiveType" style="width: 130px; " placeholder="åè´§æ¹å¼" clearable @change="handlePageChange1(1)" > |
| | | <el-option :key="0" :value="0" label="å¿«éé
é"></el-option> |
| | | <el-option :key="1" :value="1" label="èªæ"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <div class="date-style" style="display: inline-block;font-size: 14px;margin-right: 20px;font-size: 12px;">è®¢åæ¶é´ï¼ |
| | | <el-form-item label="" prop="starttime" style="display: inline-block" > |
| | | <el-date-picker |
| | | style="width: 160px; " |
| | |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | format="yyyy-MM-dd HH:mm:ss" |
| | | range-separator="è³" |
| | | placeholder="æªæ¢æ¶é´" |
| | | placeholder="ç»ææ¶é´" |
| | | ></el-date-picker> |
| | | </el-form-item> |
| | | </div> |
| | |
| | | stripe |
| | | border |
| | | > |
| | | <el-table-column prop="code" label="订åç¼å·" align="center" min-width="120px" show-overflow-tooltip> </el-table-column> |
| | | <el-table-column prop="code" label="订åç¼å·" fixed align="center" min-width="120px" show-overflow-tooltip> |
| | | <template slot-scope="{row}"> |
| | | <span style="color: #216EEE; " @click="$refs.operaGoodsOrderDetail.open('订å详æ
', row, 'first')">{{row.code}}</span> |
| | | </template> |
| | | |
| | | </el-table-column> |
| | | <el-table-column prop="details" label="ååä¿¡æ¯" align="center" min-width="250px" show-overflow-tooltip> |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.goodsorderDetailList && row.goodsorderDetailList.length" style="width: 220px"> |
| | |
| | | <el-table-column prop="couponPrice" label="伿 éé¢(å
)" align="center" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | {{(row.couponPrice || 0) + (row.integral||0)}} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="status" label="订åç¶æ" align="center" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.status ==0" class="orange">å¾
æ¯ä»</span> |
| | | <span v-if="row.status ==1" class="orange">{{ (row.receiveType||0)==1?'å¾
èªæ':'å¾
åè´§'}}</span> |
| | | <span v-if="row.status ==2" class="orange">å¾
æ¶è´§</span> |
| | | <span v-if="row.status ==3" class="grey">交æå®æ</span> |
| | | <span v-if="row.status ==4" class="grey">已忶</span> |
| | | <span v-if="row.status ==6" class="grey">已鿬¾</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="price" label="å®ä»ä»·æ ¼(å
)" align="center" min-width="200px"></el-table-column> |
| | |
| | | <span v-else class="red">æ£é¤</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="num" label="æ°é" fixed align="center" min-width="100px"> </el-table-column> |
| | | <el-table-column prop="totalNum" label="ä½é¢" fixed align="center" min-width="100px"> </el-table-column> |
| | | <el-table-column prop="num" label="æ°é" align="center" min-width="100px"> </el-table-column> |
| | | <el-table-column prop="totalNum" label="ä½é¢" align="center" min-width="100px"> </el-table-column> |
| | | <el-table-column prop="strObjType" label="æ¶è´¹ç±»å" align="center" min-width="100px"></el-table-column> |
| | | <el-table-column prop="content" label="æ¥æº" align="center" min-width="150px" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="remark" label="夿³¨" align="center" min-width="200px"></el-table-column> |
| | |
| | | </template> |
| | | <OperaChangeShopRecordWindow ref="OperaChangeShopRecordWindow"/> |
| | | <OperaChangeIntegralWindow ref="OperaChangeIntegralWindow" @success="successBiz"/> |
| | | <OperaGoodsOrderDetail ref="operaGoodsOrderDetail" @success="handlePageChange"/> |
| | | </GlobalWindow> |
| | | </template> |
| | | <script> |
| | |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaChangeShopRecordWindow from '@/components/business/OperaChangeShopRecordWindow' |
| | | import OperaGoodsOrderDetail from '@/components/business/OperaGoodsOrderDetail' |
| | | import OperaChangeIntegralWindow from '@/components/business/OperaChangeIntegralWindow' |
| | | import { shopDetail as detail } from '@/api/business/shop' |
| | | import { fetchList as actionList } from '@/api/business/userAction' |
| | |
| | | export default { |
| | | name: 'OperaShopInfoWindow', |
| | | extends: BaseTable, |
| | | components: { GlobalWindow, TableLayout, Pagination, OperaChangeShopRecordWindow, OperaChangeIntegralWindow }, |
| | | components: { GlobalWindow, TableLayout, Pagination, OperaChangeShopRecordWindow, OperaChangeIntegralWindow,OperaGoodsOrderDetail }, |
| | | data () { |
| | | return { |
| | | title: '', |
| | |
| | | searchForm1: { |
| | | distributionShopId: '', |
| | | goodsName: null, |
| | | receiveType:'', |
| | | code: null, |
| | | status: null, |
| | | starttime: null, |
| | |
| | | border-bottom: 2px solid #216EEE; |
| | | } |
| | | } |
| | | .table-pagination{ |
| | | /*.table-pagination{ |
| | | position: fixed !important; |
| | | bottom: 50px; |
| | | } |
| | | }*/ |
| | | .header-b{ |
| | | display: inline-block; |
| | | font-size: 16px; |
| | |
| | | <p class="tip-header" >ç³è¯·å®¡æ¹</p> |
| | | <el-form :model="checkForm" ref="checkForm" :rules="rules" label-width="110px" label-suffix="ï¼" style="margin-left: 20px;width: 500px;" inline > |
| | | <el-form-item label="å®¡æ ¸ç»æ" prop="status"> |
| | | <el-radio-group v-model="checkForm.status"> |
| | | <el-radio-group v-model="checkForm.status" @change="changeStatuus"> |
| | | <el-radio :label="1">éè¿</el-radio> |
| | | <el-radio :label="2">驳å</el-radio> |
| | | </el-radio-group> |
| | |
| | | <el-form-item label="ææ¬¾é¶è¡" prop="payBank" v-if="checkForm.status ==1"> |
| | | <el-input v-model="checkForm.payBank" placeholder="请è¾å
¥ææ¬¾é¶è¡" style="width: 350px" v-trim/> |
| | | </el-form-item> |
| | | <el-form-item label="å®¡æ ¸å¤æ³¨" prop="auditRemark"> |
| | | <el-form-item label="å®¡æ ¸å¤æ³¨" prop="auditRemark" > |
| | | <el-input v-model="checkForm.auditRemark" placeholder="请è¾å
¥å®¡æ ¸å¤æ³¨" type="textarea" style="width: 350px; " rows="6" v-trim/> |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | payBank: '', |
| | | payFileList: null |
| | | }, |
| | | isRemarkRequired: false, |
| | | rules: { |
| | | status: [ |
| | | { required: true, message: 'è¯·éæ©å®¡æ ¸ç»æ' } |
| | | ] |
| | | ], |
| | | auditRemark: [] |
| | | } |
| | | } |
| | | }, |
| | |
| | | 'field.main': 'id' |
| | | }) |
| | | }, |
| | | watch: { |
| | | isRemarkRequired(newVal) { |
| | | this.updateRules(); |
| | | } |
| | | }, |
| | | methods: { |
| | | changeStatuus(){ |
| | | this.isRemarkRequired = this.checkForm.status ==2 |
| | | }, |
| | | updateRules() { |
| | | if (this.isRemarkRequired) { |
| | | this.rules.auditRemark = [ |
| | | { required: true, message: '请填åå®¡æ ¸å¤æ³¨', trigger: 'blur' } |
| | | ] |
| | | } else { |
| | | this.rules.auditRemark = []; // ä¸å¿
å¡«æ¶ï¼æ¸
空è§åæ°ç» |
| | | } |
| | | this.$refs.checkForm.clearValidate(); // æ¸
é¤ä¹åçéªè¯ç¶æï¼é¿å
åºç°ä¸å¿
è¦çæç¤º |
| | | }, |
| | | confirmDo () { |
| | | this.$refs.checkForm.validate((valid) => { |
| | | if (!valid) { |
| | |
| | | title="éç½®å¯ç " |
| | | @confirm="confirm" |
| | | > |
| | | <p class="tip" v-if="user != null">为ç»éå <em>{{shop.realname}}</em> éç½®å¯ç </p> |
| | | <p class="tip" v-if="shop != null">为ç»éå <em>{{shop.realname}}</em> éç½®å¯ç </p> |
| | | <el-form :model="form" ref="form" :rules="rules"> |
| | | <el-form-item label="æ°å¯ç " prop="password" required> |
| | | <el-input v-model="form.password" type="password" placeholder="请è¾å
¥æ°å¯ç " maxlength="30" show-password></el-input> |
| | |
| | | } |
| | | this.isWorking = true |
| | | resetPwd({ |
| | | id: this.user.id, |
| | | id: this.shop.id, |
| | | password: this.form.password |
| | | }) |
| | | .then(() => { |
| | |
| | | data() { |
| | | return { |
| | | fileList: [], |
| | | uploadImgUrl: process.env.VUE_APP_API_PREFIX + '/visitsAdmin/cloudService/public/upload?folder='+this.uploadData.folder |
| | | uploadImgUrl: process.env.VUE_APP_API_PREFIX + '/public/upload?folder='+this.uploadData.folder |
| | | } |
| | | }, |
| | | |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="imgurlfull" label="å±ç¤ºå¾" align="center" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <el-image :scr="row.imgFullUrl" :preview-src-list="[row.imgFullUrl]"></el-image> |
| | | <el-image :src="row.imgFullUrl" :preview-src-list="[row.imgFullUrl]"></el-image> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="cityName" label="å±ç¤ºåå¸" align="center" min-width="100px"></el-table-column> |
| | |
| | | <TableLayout :permissions="['business:member:query']"> |
| | | <!-- æç´¢è¡¨å --> |
| | | <el-form ref="searchForm" slot="search-form" :model="searchForm" label-width="100px" inline> |
| | | <el-form-item label="ç¨æ·" prop="nickname "> |
| | | <el-form-item label="ç¨æ·" prop="nickname"> |
| | | <el-input v-model="searchForm.nickname" style="width: 160px" placeholder="æµç§°/ææºå·/çå®å§å" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="ç¶æ" prop="status" > |
| | |
| | | <el-option :key="2" :value="2" label="已注é"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="å
³èç»éå" prop="shopName "> |
| | | <el-form-item label="å
³èç»éå" prop="shopName"> |
| | | <el-input v-model="searchForm.shopName" style="width: 160px" placeholder="ç»éååç§°" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <div class="date-style" style="display: inline"> |
| | | <el-form-item label="å建æ¶é´" prop="queryStartDate" > |
| | | <el-form-item label="å建æ¶é´" prop="starttime" > |
| | | <el-date-picker |
| | | style="width: 160px" |
| | | v-model="searchForm.starttime" |
| | |
| | | placeholder="å¼å§æ¶é´" |
| | | ></el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="-" label-width="10px" prop="queryEndDate" > |
| | | <el-form-item label="-" label-width="10px" prop="endtime" > |
| | | <el-date-picker |
| | | style="width: 160px" |
| | | v-model="searchForm.endtime" |
| | |
| | | stripe |
| | | border |
| | | > |
| | | <el-table-column prop="openid" label="微信openid" align="center" min-width="100px"></el-table-column> |
| | | <el-table-column prop="nickname" label="æµç§°" align="center" min-width="100px"></el-table-column> |
| | | <el-table-column prop="nickname" label="æµç§°" fixed align="center" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span style="cursor: pointer" title="ç¹å»æ¥ç详æ
" class="blue" @click="showMemberDetail(row)">{{row.nickname}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="imgurl" label="头å" align="center" min-width="70px"> |
| | | <template slot-scope="{row}"> |
| | | <el-image style="width: 60px;height: 60px;" v-if="row.imgurl" :src="row.imgFullUrl+row.imgurl" :preview-src-list="[row.imgFullUrl+row.imgurl]"></el-image> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="openId" label="微信openid" align="center" min-width="150px" > |
| | | <template slot-scope="{row}"> |
| | | <span >{{row.openId}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="name" label="客æ·å§å" align="center" min-width="100px"></el-table-column> |
| | | <el-table-column prop="phone" label="ææææºå·" align="center" min-width="100px"></el-table-column> |
| | | <el-table-column prop="idcard" label="身份è¯å·" align="center" min-width="100px"></el-table-column> |
| | | <el-table-column prop="integral" label="ç°æç§¯å" align="center" min-width="100px"></el-table-column> |
| | | <el-table-column prop="totalIntegral" label="累计积å" align="center" min-width="100px"></el-table-column> |
| | | <el-table-column prop="totalIntegral" label="累计æ£é¤" align="center" min-width="100px"></el-table-column> |
| | | <el-table-column prop="totalReduceIntegral" label="累计æ£é¤" align="center" min-width="100px"></el-table-column> |
| | | <el-table-column prop="shopName" label="å
³èç»éå" align="center" min-width="100px"></el-table-column> |
| | | <el-table-column prop="createDate" label="å建æ¶é´" align="center" min-width="140px"></el-table-column> |
| | | <el-table-column label="ç¶æ" align="center" min-width="100px"> |
| | |
| | | <span v-if="row.status==2" class="grey">已注é</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="æä½" align="center" min-width="200px"> |
| | | <el-table-column label="æä½" align="center" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="showMemberDetail(row)">详æ
</el-button> |
| | | <el-button type="text" v-if="row.bindShopId !=null && row.status!=2" @click="changeShop(row)">æ´æ¢ç»éå</el-button> |
| | |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column type="selection" width="55"></el-table-column> |
| | | <el-table-column prop="imgurl" label="ååä¿¡æ¯" min-width="80px"> |
| | | <el-table-column prop="imgurl" label="åå主å¾" min-width="80px"> |
| | | <template slot-scope="{row}"> |
| | | <el-image style="width: 50px;height: 50px;" v-if="row.imgurl && row.imgurl!=''" :src="row.resourcePath+row.imgurl" :preview-src-list="[row.resourcePath+row.imgurl]"></el-image> |
| | | </template> |
| | |
| | | <el-form-item label="åç§°" prop="name"> |
| | | <el-input v-model="searchForm.name" placeholder="请è¾å
¥åç§°" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="é¨åºID" prop="code"> |
| | | <el-input v-model="searchForm.code" placeholder="请è¾å
¥é¨åºID" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="ç»å½è´¦å·" prop="name"> |
| | | <el-input v-model="searchForm.username" placeholder="请è¾å
¥ç»å½è´¦å·" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="é宿¨¡å¼" prop="saleType" > |
| | | <!-- 0æ£å¸¸ 1ç¦ç¨ --> |
| | | <el-select v-model="searchForm.saleType" placeholder="é宿¨¡å¼" @change="search" > |
| | | <el-select v-model="searchForm.saleType" placeholder="é宿¨¡å¼" style="width: 100px" @change="search" > |
| | | <el-option :key="0" :value="0" label="å¹³å°éºè´§" ></el-option> |
| | | <el-option :key="1" :value="1" label="èªä¸»éè´" ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="çå¸åº" prop="provinceId" > |
| | | <el-select v-model="searchForm.provinceId" placeholder="ç份" style="width: 100px" filterable @change="selectProvince"> |
| | | <el-option |
| | | v-for="item in provinces" |
| | | :key="item.id" |
| | | :value="item.id" |
| | | :label="item.name" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="" prop="cityId" > |
| | | <el-select v-model="searchForm.cityId" filterable placeholder="åå¸" @change="selectCity" style="width: 100px" > |
| | | <el-option |
| | | v-for="item in cities" |
| | | :key="item.id" |
| | | :value="item.id" |
| | | :label="item.name" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="" prop="areaId" > |
| | | <el-select v-model="searchForm.areaId" filterable placeholder="åºå" style="width: 100px" > |
| | | <el-option |
| | | v-for="item in areas" |
| | | :key="item.id" |
| | | :value="item.id" |
| | | :label="item.name" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="ç¶æ" prop="status"> |
| | | <!-- 0æ£å¸¸ 1ç¦ç¨ --> |
| | | <el-select v-model="searchForm.status" placeholder="è¯·éæ©ç¶æ" @change="search" > |
| | | <el-select v-model="searchForm.status" placeholder="è¯·éæ©ç¶æ" style="width: 100px" @change="search" > |
| | | <el-option :key="0" :value="0" label="æ£å¸¸" ></el-option> |
| | | <el-option :key="1" :value="1" label="ç¦ç¨" ></el-option> |
| | | </el-select> |
| | |
| | | import OperaGoodsShopWindow from '@/components/business/OperaGoodsShopWindow' |
| | | import { resetPwd, updateIsRecById } from '@/api/business/shop' |
| | | import ResetPwdShopWindow from '@/components/business/ResetPwdShopWindow' |
| | | import { listByParentId } from '@/api/business/areas' |
| | | export default { |
| | | name: 'Shop', |
| | | extends: BaseTable, |
| | | components: { TableLayout, Pagination, OperaShopWindow, OperaShopInfoWindow, ResetPwdShopWindow,OperaGoodsShopWindow }, |
| | | components: { TableLayout, Pagination, OperaShopWindow, OperaShopInfoWindow, ResetPwdShopWindow, OperaGoodsShopWindow }, |
| | | data () { |
| | | return { |
| | | |
| | | // æç´¢ |
| | | searchForm: { |
| | | name: '', |
| | | code: '', |
| | | username: '', |
| | | status: '', |
| | | saleType: '', |
| | | isrec: '' |
| | | } |
| | | isrec: '', |
| | | provinceId: '', |
| | | cityId: '', |
| | | areaId: '' |
| | | }, |
| | | provinces: [], |
| | | cities: [], |
| | | areas: [] |
| | | } |
| | | }, |
| | | created () { |
| | |
| | | 'field.id': 'id', |
| | | 'field.main': 'id' |
| | | }) |
| | | listByParentId({ type: 0, parentId: '' }) |
| | | .then(data => { |
| | | this.provinces = data |
| | | }) |
| | | this.search() |
| | | }, |
| | | methods: { |
| | | goPriceSet(row){ |
| | | this.$refs.OperaGoodsShopWindow.open('设置ä¾è´§ä»· - '+row.name, row ) |
| | | selectProvince (val) { |
| | | this.searchForm.cityId = null |
| | | this.searchForm.areaId = null |
| | | this.cities = [] |
| | | this.areas = [] |
| | | listByParentId({ type: 1, parentId: val }) |
| | | .then(data => { |
| | | this.cities = data |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.error(e) |
| | | }) |
| | | }, |
| | | selectCity (val) { |
| | | this.searchForm.areaId = null |
| | | this.areas = [] |
| | | listByParentId({ type: 2, parentId: val }) |
| | | .then(data => { |
| | | this.areas = data |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.error(e) |
| | | }) |
| | | }, |
| | | initCityArea (proid, cityid) { |
| | | listByParentId({ type: 1, parentId: proid }) |
| | | .then(data => { |
| | | this.cities = data |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.error(e) |
| | | }) |
| | | listByParentId({ type: 2, parentId: cityid }) |
| | | .then(data => { |
| | | this.areas = data |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.error(e) |
| | | }) |
| | | }, |
| | | goPriceSet (row) { |
| | | this.$refs.OperaGoodsShopWindow.open('设置ä¾è´§ä»· - ' + row.name, row) |
| | | }, |
| | | resetPwd (row) { |
| | | this.$dialog.messageWaring('确认é置该ç»éåã' + row.name + 'ãçç»å½å¯ç åï¼') |
| | |
| | | }) |
| | | }, |
| | | showDetail (row) { |
| | | this.$refs.OperaShopInfoWindow.open('ç»éå详æ
ã'+row.name+'ã', row) |
| | | this.$refs.OperaShopInfoWindow.open('ç»éå详æ
ã' + row.name + 'ã', row) |
| | | } |
| | | } |
| | | } |
| | |
| | | public interface MemberMapper extends MPJBaseMapper<Member> { |
| | | |
| | | |
| | | /** |
| | | /* *//** |
| | | * æ·»å 积å |
| | | * @param memberId |
| | | * @param integral |
| | | */ |
| | | *//* |
| | | @Select(" update member set INTEGRAL = ifNull( INTEGRAL,0) + #{integral} , TOTAL_INTEGRAL = ifNull(TOTAL_INTEGRAL,0) + #{titleIntegral} , EDIT_DATE = now() , EDITOR = #{memberId} where id = #{memberId} ") |
| | | void addIntegral(@Param("memberId") Integer memberId , @Param("integral")BigDecimal integral , @Param("titleIntegral")BigDecimal titleIntegral); |
| | | |
| | | /** |
| | | *//** |
| | | * åå°ç§¯å |
| | | * @param memberId |
| | | * @param integral |
| | | */ |
| | | *//* |
| | | @Select(" update member set INTEGRAL = ifNull( INTEGRAL,0) - #{integral} , EDIT_DATE = now() , EDITOR = #{memberId} where id = #{memberId} ") |
| | | void subtractIntegral(@Param("memberId") Integer memberId , @Param("integral")BigDecimal integral); |
| | | void subtractIntegral(@Param("memberId") Integer memberId , @Param("integral")BigDecimal integral);*/ |
| | | |
| | | } |
| | |
| | | */ |
| | | public interface ShopMapper extends BaseMapper<Shop> { |
| | | |
| | | |
| | | /** |
| | | * æ·»å 积å |
| | | * @param shopId |
| | | * @param integral |
| | | */ |
| | | @Select(" update shop set INTEGRAL = ifNull( INTEGRAL,0) + #{integral} , TOTAL_INTEGRAL = ifNull(TOTAL_INTEGRAL,0) + #{titleIntegral} , EDIT_DATE = now() where id = #{shopId} ") |
| | | void addIntegral(@Param("shopId") Integer shopId , @Param("integral") BigDecimal integral , @Param("titleIntegral")BigDecimal titleIntegral); |
| | | |
| | | /** |
| | | * åå°ç§¯å |
| | | * @param shopId |
| | | * @param integral |
| | | */ |
| | | @Select(" update shop set INTEGRAL = ifNull( INTEGRAL,0) - #{integral} , EDIT_DATE = now() where id = #{shopId} ") |
| | | void subtractIntegral(@Param("shopId") Integer shopId , @Param("integral")BigDecimal integral); |
| | | |
| | | |
| | | /** |
| | | * æ·»å ä½é¢ |
| | | * @param shopId |
| | | * @param amount |
| | | */ |
| | | @Select(" update shop set AMOUNT = ifNull(AMOUNT,0) + #{amount} , TOTAL_AMOUNT = ifNull(TOTAL_AMOUNT,0) + #{titleAmount} , EDIT_DATE = now() where id = #{shopId} ") |
| | | void addAmount(@Param("shopId") Integer shopId , @Param("amount") BigDecimal amount , @Param("titleAmount")BigDecimal titleAmount); |
| | | |
| | | /** |
| | | * åå°ä½é¢ |
| | | * @param shopId |
| | | * @param amount |
| | | */ |
| | | @Select(" update shop set AMOUNT = ifNull( AMOUNT,0) - #{amount} , EDIT_DATE = now() where id = #{shopId} ") |
| | | void subtractAmount(@Param("shopId") Integer shopId , @Param("amount")BigDecimal amount); |
| | | |
| | | } |
| | |
| | | private Integer creator; |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @ExcelColumn(name="å建æ¶é´",width = 10,index = 8,dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | @ExcelColumn(name="å建æ¶é´",width = 10,index = 10,dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createDate; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°äººç¼ç ", example = "1") |
| | |
| | | private String phone; |
| | | |
| | | @ApiModelProperty(value = "身份è¯å·") |
| | | // @ExcelColumn(name="身份è¯å·") |
| | | @ExcelColumn(name="身份è¯å·" ,width = 10,index = 5) |
| | | private String idcard; |
| | | |
| | | @ApiModelProperty(value = "èº«ä»½è¯æ£é¢ç
§") |
| | |
| | | private String idcardImgBack; |
| | | |
| | | @ApiModelProperty(value = "积åä½é¢", example = "1") |
| | | @ExcelColumn(name="积åä½é¢",width = 10,index = 5) |
| | | @ExcelColumn(name="积åä½é¢",width = 10,index = 6) |
| | | private BigDecimal integral; |
| | | |
| | | @ApiModelProperty(value = "积å累计", example = "1") |
| | | @ExcelColumn(name="积å累计è·å¾",width = 10,index = 6) |
| | | @ExcelColumn(name="积å累计è·å¾",width = 10,index = 7) |
| | | private BigDecimal totalIntegral; |
| | | @ApiModelProperty(value = "ç§¯åæ£é¤ç´¯è®¡", example = "1") |
| | | @ExcelColumn(name="积å累计æ£é¤",width = 10,index =8) |
| | | @TableField(exist = false) |
| | | private BigDecimal totalReduceIntegral; |
| | | |
| | | @ApiModelProperty(value = "ç¶æ0æ£å¸¸ 1å¼å¸¸ 2注é", example = "1") |
| | | @ExcelColumn(name="ç¶æ",width = 10,index =9,valueMapping = "0=å¯ç¨;1=ç¦ç¨") |
| | | @ExcelColumn(name="ç¶æ",width = 10,index =11,valueMapping = "0=å¯ç¨;1=ç¦ç¨;2=已注é;") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "æ§å« 0ç· 1女 2æªç¥", example = "1") |
| | |
| | | private String cityName; |
| | | @ApiModelProperty(value = "ç»éååç§°") |
| | | @TableField(exist = false) |
| | | @ExcelColumn(name = "å
³èç»éå",width = 10,index = 7) |
| | | @ExcelColumn(name = "å
³èç»éå",width = 10,index = 9) |
| | | private String shopName; |
| | | @ApiModelProperty(value = "å¼å§æ¶é´ ") |
| | | @TableField(exist = false) |
| | |
| | | @TableField(exist = false) |
| | | private List<ProductLabel> productList; |
| | | |
| | | |
| | | @ApiModelProperty(value = "æå±åå¸ç¼ç ï¼å
³èareas)", example = "1") |
| | | @TableField(exist = false) |
| | | private Integer cityId; |
| | | |
| | | @ApiModelProperty(value = "æå±ç份ç¼ç ï¼å
³èareas)", example = "1") |
| | | @TableField(exist = false) |
| | | private Integer provinceId; |
| | | } |
| | |
| | | @ApiModelProperty(value = "æ¶æ¯åæ°") |
| | | private String param1; |
| | | |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String remark; |
| | | |
| | | |
| | | } |
| | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.model.Integral; |
| | | import com.doumee.dao.business.model.Member; |
| | | import com.doumee.dao.business.model.Shop; |
| | | import com.doumee.dao.web.dto.IntegralDTO; |
| | | import com.doumee.dao.web.dto.IntegralRecordDTO; |
| | | import com.doumee.dao.web.request.DealIntegralRequest; |
| | |
| | | * @param dealIntegralRequest å®ä½å¯¹è±¡ |
| | | * @return Integer |
| | | */ |
| | | Integer dealIntegral(DealIntegralRequest dealIntegralRequest); |
| | | Integer dealIntegral(DealIntegralRequest dealIntegralRequest, Member member); |
| | | |
| | | /** |
| | | * æ´æ°ç»éå积å |
| | | * @param dealIntegralRequest |
| | | * @return |
| | | */ |
| | | Integer dealShopIntegral(DealIntegralRequest dealIntegralRequest); |
| | | Integer dealShopIntegral(DealIntegralRequest dealIntegralRequest, Shop shop); |
| | | |
| | | /** |
| | | * æ´æ°ç»éåéé¢ |
| | |
| | | param.setDealType(Constants.ZERO); |
| | | param.setIntegralNum(integral); |
| | | param.setIntegralObjType(Constants.IntegralObjType.AFTERSALE_BACK); |
| | | integralService.dealIntegral(param); |
| | | integralService.dealIntegral(param,null); |
| | | } |
| | | |
| | | private void isBackMoneyValid(BigDecimal actmoney, BigDecimal perPrice, Integer goodsNum, BigDecimal orderPrice,BigDecimal orderIntegral, BigDecimal orderCouponPrice) { |
| | |
| | | dealIntegralRequest.setObjId(goodsorder.getId()); |
| | | dealIntegralRequest.setOrderCode(goodsorder.getCode().toString()); |
| | | dealIntegralRequest.setIntegralObjType(Constants.IntegralObjType.SHOP_ORDER_REFUND_INTEGRAL); |
| | | integralService.dealShopIntegral(dealIntegralRequest); |
| | | integralService.dealShopIntegral(dealIntegralRequest,null); |
| | | } |
| | | } |
| | | } |
| | |
| | | dealIntegralRequest.setObjId(goodsorder.getId()); |
| | | dealIntegralRequest.setOrderCode(goodsorder.getCode().toString()); |
| | | dealIntegralRequest.setIntegralObjType(Constants.IntegralObjType.MEMBER_ORDER_REFUND_RETURN); |
| | | integralService.dealIntegral(dealIntegralRequest); |
| | | integralService.dealIntegral(dealIntegralRequest,null); |
| | | } |
| | | } |
| | | } |
| | |
| | | dealIntegralRequest.setOrderCode(goodsorder.getCode().toString()); |
| | | dealIntegralRequest.setIntegralObjType(Constants.IntegralObjType.MEMBER_ORDER_REFUND); |
| | | dealIntegralRequest.setParam1(goodsorder.getCode().toString()); |
| | | integralService.dealIntegral(dealIntegralRequest); |
| | | integralService.dealIntegral(dealIntegralRequest,null); |
| | | } |
| | | |
| | | //订å鿬¾ éå客æ·ä½¿ç¨ç伿 å¸ |
| | |
| | | dealIntegralRequest.setMemberId(memberId); |
| | | dealIntegralRequest.setObjId(card.getId()); |
| | | dealIntegralRequest.setDealType(Constants.ZERO); |
| | | integralService.dealIntegral(dealIntegralRequest); |
| | | integralService.dealIntegral(dealIntegralRequest,null); |
| | | } |
| | | } |
| | |
| | | package com.doumee.service.business.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.config.listener.event.IntegralEvent; |
| | | import com.doumee.core.constants.ResponseStatus; |
| | | import com.doumee.core.exception.BusinessException; |
| | | import com.doumee.core.model.LoginUserInfo; |
| | |
| | | import com.doumee.dao.web.dto.activity.ActivityReplyCommentDTO; |
| | | import com.doumee.dao.web.request.CommentApplyRequest; |
| | | import com.doumee.service.business.CommentService; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.doumee.service.business.MemberService; |
| | | import com.doumee.service.business.ZanService; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import org.apache.commons.collections4.MapUtils; |
| | |
| | | target.setMemberImgUrl(memberFile + member.getImgurl()); |
| | | } |
| | | } |
| | | IntegralEvent<Comment> integralEvent = new IntegralEvent(this,target, Constants.CoffeeBeanTask.POST_COMMENTS,memberId); |
| | | applicationEventPublisher.publishEvent(integralEvent); |
| | | target.setZanCount(Constants.ZERO); |
| | | target.setZanStatus(Constants.ZERO); |
| | | return target; |
| | |
| | | QueryWrapper<Comment> wrapper = new QueryWrapper<>(comment); |
| | | return commentMapper.selectList(wrapper); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public PageData<Comment> findPage(PageWrap<Comment> pageWrap) { |
| | | IPage<Comment> page = new Page<>(pageWrap.getPage(), pageWrap.getCapacity()); |
| | |
| | | } |
| | | Multifile find = new Multifile(); |
| | | find.setObjId(id); |
| | | find.setObjType(Constants.MultiFile.PLATFORM_GOOD_ROTATION.getKey()); |
| | | find.setIsdeleted(Constants.ZERO); |
| | | List<Multifile> fileList= multifileMapper.selectList(new QueryWrapper<>(find)); |
| | | goods.setFileList(fileList); |
| | |
| | | Utils.MP.blankToNull(pageWrap.getModel()); |
| | | |
| | | queryWrapper.selectAll(Goodsorder.class) |
| | | .eq(pageWrap.getModel().getReceiveType()!=null,Goodsorder::getReceiveType,pageWrap.getModel().getReceiveType()) |
| | | .eq(pageWrap.getModel().getDistributionShopId()!=null,Goodsorder::getDistributionShopId,pageWrap.getModel().getDistributionShopId()) |
| | | .eq(pageWrap.getModel().getStatus()!=null,Goodsorder::getStatus,pageWrap.getModel().getStatus()) |
| | | .eq(pageWrap.getModel().getCode()!=null,Goodsorder::getCode,pageWrap.getModel().getCode()) |
| | |
| | | dealIntegralRequest.setObjId(goodsorder.getId()); |
| | | dealIntegralRequest.setOrderCode(goodsorder.getCode().toString()); |
| | | dealIntegralRequest.setIntegralObjType(Constants.IntegralObjType.MEMBER_ORDER); |
| | | integralService.dealIntegral(dealIntegralRequest); |
| | | integralService.dealIntegral(dealIntegralRequest,null); |
| | | } |
| | | |
| | | if(goodsorder.getPrice().compareTo(orderPayRequest.getTitlePrice())!=Constants.ZERO){ |
| | |
| | | dealIntegralRequest.setObjId(goodsorder.getId()); |
| | | dealIntegralRequest.setOrderCode(goodsorder.getCode().toString()); |
| | | dealIntegralRequest.setIntegralObjType(Constants.IntegralObjType.MEMBER_ORDER_CANCEL); |
| | | integralService.dealIntegral(dealIntegralRequest); |
| | | integralService.dealIntegral(dealIntegralRequest,null); |
| | | } |
| | | //订åä¿¡æ¯åæ¶ |
| | | goodsorder.setStatus(Constants.OrderStatus.CLOSE.getKey()); |
| | |
| | | dealIntegralRequest.setObjId(goodsorder.getId()); |
| | | dealIntegralRequest.setOrderCode(goodsorder.getCode().toString()); |
| | | dealIntegralRequest.setIntegralObjType(Constants.IntegralObjType.MEMBER_ORDER_CANCEL); |
| | | integralService.dealIntegral(dealIntegralRequest); |
| | | integralService.dealIntegral(dealIntegralRequest,null); |
| | | } |
| | | //订åä¿¡æ¯åæ¶ |
| | | goodsorder.setStatus(Constants.OrderStatus.CLOSE.getKey()); |
| | |
| | | if(Objects.nonNull(member)){ |
| | | dealIntegralRequest.setParam1(member.getNickname()); |
| | | } |
| | | integralService.dealShopIntegral(dealIntegralRequest); |
| | | integralService.dealShopIntegral(dealIntegralRequest,null); |
| | | } |
| | | } |
| | | |
| | |
| | | dealIntegralRequest.setObjId(goodsorder.getId()); |
| | | dealIntegralRequest.setOrderCode(goodsorder.getCode().toString()); |
| | | dealIntegralRequest.setIntegralObjType(Constants.IntegralObjType.ORDER_DONATE); |
| | | integralService.dealIntegral(dealIntegralRequest); |
| | | integralService.dealIntegral(dealIntegralRequest,null); |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = {Exception.class, BusinessException.class}) |
| | | public Integer dealIntegral(DealIntegralRequest dealIntegralRequest) { |
| | | Member member = memberMapper.selectById(dealIntegralRequest.getMemberId()); |
| | | public Integer dealIntegral(DealIntegralRequest dealIntegralRequest,Member member) { |
| | | if(member == null){ |
| | | member = memberMapper.selectById(dealIntegralRequest.getMemberId()); |
| | | } |
| | | if(Objects.isNull(member)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"æªæ¥è¯¢å°ç¨æ·ä¿¡æ¯"); |
| | | } |
| | |
| | | info = info .replace("${param1}",dealIntegralRequest.getParam1()); |
| | | } |
| | | integral.setContent(info); |
| | | integral.setRemark(dealIntegralRequest.getRemark()); |
| | | integral.setObjId(dealIntegralRequest.getObjId()); |
| | | integral.setObjType(dealIntegralRequest.getIntegralObjType().getKey()); |
| | | integral.setType(dealIntegralRequest.getDealType()); |
| | |
| | | integral.setOrderCode(dealIntegralRequest.getOrderCode()); |
| | | integral.setUserType(Constants.ZERO); |
| | | integralMapper.insert(integral); |
| | | if(dealIntegralRequest.getDealType().equals(Constants.ZERO)){ |
| | | memberMapper.addIntegral(member.getId(),dealIntegralRequest.getIntegralNum(), |
| | | dealIntegralRequest.getIntegralObjType().getAddTitle()==Constants.ZERO?dealIntegralRequest.getIntegralNum():BigDecimal.ZERO); |
| | | }else{ |
| | | memberMapper.subtractIntegral(member.getId(),dealIntegralRequest.getIntegralNum()); |
| | | } |
| | | LoginUserInfo user =(LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | memberMapper.update(null,new UpdateWrapper<Member>().lambda() |
| | | .eq(Member::getId,member.getId()) |
| | | .set(Member::getEditDate,new Date()) |
| | | .set(Member::getEditor,user!=null ? user.getId():null) |
| | | .setSql(dealIntegralRequest.getDealType().equals(Constants.ZERO),"total_integral = ifnull(total_integral,0)+" + dealIntegralRequest.getIntegralNum())//累计å¢å |
| | | .setSql(dealIntegralRequest.getDealType().equals(Constants.ZERO),"integral = ifnull(integral,0)+" + dealIntegralRequest.getIntegralNum()) |
| | | .setSql(dealIntegralRequest.getDealType().equals(Constants.ONE),"integral = ifnull(integral,0)-" + dealIntegralRequest.getIntegralNum())); |
| | | |
| | | //ç«å
ä¿¡ |
| | | noticeService.saveMemberIntegralNotice( |
| | | dealIntegralRequest.getIntegralObjType(),Constants.ZERO,member.getId(),dealIntegralRequest.getIntegralNum(), |
| | | integral.getId(), info |
| | | ); |
| | | |
| | | |
| | | return integral.getId(); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = {Exception.class, BusinessException.class}) |
| | | public Integer dealShopIntegral(DealIntegralRequest dealIntegralRequest) { |
| | | Shop shop = shopMapper.selectById(dealIntegralRequest.getMemberId()); |
| | | public Integer dealShopIntegral(DealIntegralRequest dealIntegralRequest,Shop shop) { |
| | | LoginUserInfo user = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | if(shop ==null){ |
| | | shop = shopMapper.selectById(dealIntegralRequest.getMemberId()); |
| | | } |
| | | if(Objects.isNull(shop)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"æªæ¥è¯¢å°åæ·ä¿¡æ¯"); |
| | | } |
| | |
| | | integral.setMemberId(shop.getId()); |
| | | integral.setCreateDate(new Date()); |
| | | integral.setIsdeleted(Constants.ZERO); |
| | | integral.setTitle(dealIntegralRequest.getIntegralObjType().getName()); |
| | | integral.setTitle( dealIntegralRequest.getIntegralObjType()!=null?dealIntegralRequest.getIntegralObjType().getName():""); |
| | | String info = dealIntegralRequest.getIntegralObjType().getNoteinfo(); |
| | | info = info.replace("${param}",dealIntegralRequest.getIntegralNum().toString()); |
| | | if(StringUtils.isNotBlank(dealIntegralRequest.getParam1())){ |
| | |
| | | integral.setObjId(dealIntegralRequest.getObjId()); |
| | | integral.setObjType(dealIntegralRequest.getIntegralObjType().getKey()); |
| | | integral.setType(dealIntegralRequest.getDealType()); |
| | | integral.setRemark(dealIntegralRequest.getRemark()); |
| | | integral.setNum(dealIntegralRequest.getIntegralNum()); |
| | | shop.setIntegral(Constants.formatBigdecimal(shop.getIntegral())); |
| | | integral.setTotalNum(dealIntegralRequest.getDealType().equals(Constants.ZERO)? shop.getIntegral().add(integral.getNum()):shop.getIntegral().subtract(integral.getNum())); |
| | | integral.setOrderCode(dealIntegralRequest.getOrderCode()); |
| | | integral.setUserType(Constants.ONE); |
| | | integralMapper.insert(integral); |
| | | if(dealIntegralRequest.getDealType().equals(Constants.ZERO)){ |
| | | |
| | | shopMapper.update(null,new UpdateWrapper<Shop>().lambda() |
| | | .eq(Shop::getId,shop.getId()) |
| | | .set(Shop::getEditDate,new Date()) |
| | | .set(Shop::getEditor,user!=null ? user.getId():null) |
| | | .setSql(dealIntegralRequest.getDealType().equals(Constants.ZERO),"total_integral = ifnull(total_integral,0)+" + dealIntegralRequest.getIntegralNum())//累计å¢å |
| | | .setSql(dealIntegralRequest.getDealType().equals(Constants.ZERO),"integral = ifnull(integral,0)+" + dealIntegralRequest.getIntegralNum()) |
| | | .setSql(dealIntegralRequest.getDealType().equals(Constants.ONE),"integral = ifnull(integral,0)-" + dealIntegralRequest.getIntegralNum())); |
| | | /* if(dealIntegralRequest.getDealType().equals(Constants.ZERO)){ |
| | | shopMapper.addIntegral(shop.getId(),dealIntegralRequest.getIntegralNum(), |
| | | dealIntegralRequest.getIntegralObjType().getAddTitle()==Constants.ZERO?dealIntegralRequest.getIntegralNum():BigDecimal.ZERO); |
| | | }else{ |
| | | |
| | | shopMapper.subtractIntegral(shop.getId(),dealIntegralRequest.getIntegralNum()); |
| | | } |
| | | }*/ |
| | | |
| | | //ç«å
ä¿¡ |
| | | noticeService.saveMemberIntegralNotice( |
| | |
| | | integral.setOrderCode(dealIntegralRequest.getOrderCode()); |
| | | integral.setUserType(Constants.TWO); |
| | | integralMapper.insert(integral); |
| | | if(dealIntegralRequest.getDealType().equals(Constants.ZERO)){ |
| | | |
| | | LoginUserInfo user =(LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | shopMapper.update(null,new UpdateWrapper<Shop>().lambda() |
| | | .eq(Shop::getId,shop.getId()) |
| | | .set(Shop::getEditDate,new Date()) |
| | | .set(Shop::getEditor,user!=null ? user.getId():null) |
| | | .setSql(dealIntegralRequest.getDealType().equals(Constants.ZERO),"total_integral = ifnull(total_integral,0)+" + dealIntegralRequest.getIntegralNum())//累计å¢å |
| | | .setSql(dealIntegralRequest.getDealType().equals(Constants.ZERO),"integral = ifnull(integral,0)+" + dealIntegralRequest.getIntegralNum()) |
| | | .setSql(dealIntegralRequest.getDealType().equals(Constants.ONE),"integral = ifnull(integral,0)-" + dealIntegralRequest.getIntegralNum())); |
| | | |
| | | |
| | | /* if(dealIntegralRequest.getDealType().equals(Constants.ZERO)){ |
| | | shopMapper.addAmount(shop.getId(),dealIntegralRequest.getIntegralNum(), |
| | | dealIntegralRequest.getIntegralObjType().getAddTitle()==Constants.ZERO?dealIntegralRequest.getIntegralNum():BigDecimal.ZERO); |
| | | }else{ |
| | | shopMapper.subtractAmount(shop.getId(),dealIntegralRequest.getIntegralNum()); |
| | | } |
| | | }*/ |
| | | return integral.getId(); |
| | | } |
| | | |
| | |
| | | } |
| | | LoginUserInfo user = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | |
| | | Date date = new Date(); |
| | | Integral integral = new Integral(); |
| | | // Date date = new Date(); |
| | | // Integral integral = new Integral(); |
| | | Constants.IntegralObjType integralObjType =null; |
| | | DealIntegralRequest dealIntegralRequest = new DealIntegralRequest(); |
| | | dealIntegralRequest.setIntegralNum(param.getNum()); |
| | | dealIntegralRequest.setRemark(param.getRemark()); |
| | | dealIntegralRequest.setDealType(param.getType()); |
| | | if(Constants.equalsInteger(param.getUserType(), Constants.ZERO)){//ç¨æ·è´¦å· |
| | | MPJLambdaWrapper<Member> queryWrapper =new MPJLambdaWrapper<>(); |
| | | queryWrapper.selectAll(Member.class); |
| | |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"ç¨æ·è´¦æ·ä½é¢ä¸è¶³ï¼"); |
| | | } |
| | | integralObjType = param.getType()==0?Constants.IntegralObjType.SYSTEM_RECHARGE:Constants.IntegralObjType.SYSTEM_DEDUCT; |
| | | DealIntegralRequest dealIntegralRequest = new DealIntegralRequest(); |
| | | dealIntegralRequest.setIntegralNum(num); |
| | | dealIntegralRequest.setDealType(param.getType()); |
| | | dealIntegralRequest.setMemberId(model.getId()); |
| | | dealIntegralRequest.setObjId(null); |
| | | dealIntegralRequest.setOrderCode(null); |
| | | dealIntegralRequest.setRemark(param.getRemark()); |
| | | dealIntegralRequest.setIntegralObjType(integralObjType); |
| | | this.dealIntegral(dealIntegralRequest); |
| | | this.dealIntegral(dealIntegralRequest,model); |
| | | |
| | | |
| | | //è´¦æ·ä½é¢ |
| | | // memberMapper.update(null,new UpdateWrapper<Member>().lambda() |
| | | // .eq(Member::getId,model.getId()) |
| | | // .set(Member::getEditDate,date) |
| | | // .set(Member::getEditor,user.getId()) |
| | | // .setSql(param.getType() == 0,"total_integral = ifnull(total_integral,0)+" + num)//累计å¢å |
| | | // .setSql(param.getType() == 0,"integral = ifnull(integral,0)+" + param.getNum()) |
| | | // .setSql(param.getType() == 1,"integral = ifnull(integral,0)-" + param.getNum())); |
| | | // |
| | | // integralObjType = param.getType()==0?Constants.IntegralObjType.SYSTEM_RECHARGE:Constants.IntegralObjType.SYSTEM_DEDUCT; |
| | | // integral.setTotalNum(param.getType() == 0? Constants.formatBigdecimal(model.getIntegral()).add(param.getNum()):Constants.formatBigdecimal(model.getIntegral()).subtract(param.getNum())); |
| | | // integral.setUserType(Constants.ZERO); |
| | | }else{//ç»éåè´¦æ· |
| | | Shop model = shopMapper.selectById(param.getMemberId()); |
| | | if(model == null ||Constants.equalsObject(model.getIsdeleted(),Constants.ONE)){ |
| | |
| | | // num = num.multiply(new BigDecimal(-1));//åå° |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"ç»éåè´¦æ·ç§¯åä½é¢ä¸è¶³ï¼"); |
| | | } |
| | | //è´¦æ·ä½é¢ |
| | | // shopMapper.update(null,new UpdateWrapper<Shop>().lambda() |
| | | // .eq(Shop::getId,model.getId()) |
| | | // .set(Shop::getEditDate,date) |
| | | // .set(Shop::getEditor,user.getId()) |
| | | // .setSql(param.getType() == 0,"total_integral = ifnull(total_integral,0)+" + num)//累计å¢å |
| | | // .setSql(param.getType() == 0,"integral = ifnull(integral,0)+" + param.getNum()) |
| | | // .setSql(param.getType() == 1,"integral = ifnull(integral,0)-" + param.getNum())); |
| | | // integralObjType = param.getType()==0?Constants.IntegralObjType.SHOP_SYSTEM_RECHARGE:Constants.IntegralObjType.SHOP_SYSTEM_DEDUCT; |
| | | // integral.setTotalNum(param.getType() == 0? Constants.formatBigdecimal(model.getIntegral()).add(param.getNum()):Constants.formatBigdecimal(model.getIntegral()).subtract(param.getNum())); |
| | | // integral.setUserType(Constants.ONE); |
| | | |
| | | DealIntegralRequest dealIntegralRequest = new DealIntegralRequest(); |
| | | dealIntegralRequest.setIntegralNum(num); |
| | | dealIntegralRequest.setDealType(param.getType()); |
| | | integralObjType = param.getType()==0?Constants.IntegralObjType.SHOP_SYSTEM_RECHARGE:Constants.IntegralObjType.SHOP_SYSTEM_DEDUCT; |
| | | dealIntegralRequest.setMemberId(model.getId()); |
| | | dealIntegralRequest.setObjId(null); |
| | | dealIntegralRequest.setOrderCode(null); |
| | | dealIntegralRequest.setIntegralObjType(integralObjType); |
| | | this.dealShopIntegral(dealIntegralRequest); |
| | | this.dealShopIntegral(dealIntegralRequest,model); |
| | | |
| | | |
| | | } |
| | | // integral.setCreateDate(new Date()); |
| | | // integral.setCreator(user.getId()); |
| | | // integral.setIsdeleted(Constants.ZERO); |
| | | // integral.setNum(param.getNum()); |
| | | // integral.setTitle(integralObjType.getName()); |
| | | // integral.setContent(integralObjType.getNoteinfo().replace("${param}",integral.getNum().toString())); |
| | | // integral.setMemberId(param.getMemberId()); |
| | | // integral.setObjId(param.getMemberId()); |
| | | // integral.setObjType(integralObjType.getKey()); |
| | | // integral.setType(param.getType()); |
| | | // integral.setRemark(param.getRemark()); |
| | | // integral.setOrderCode(null); |
| | | // integralMapper.insert(integral); |
| | | |
| | | } |
| | | @Override |
| | | public IntegralDataResponse getIntegralData(IntegralRecordDTO model){ |
| | |
| | | memberCoupon.setBackIntegral(BigDecimal.ZERO); |
| | | memberCoupon.setName(coupon.getName()); |
| | | memberCouponMapper.insert(memberCoupon); |
| | | //TODO æ·»å 积ååå¨è®°å½ |
| | | |
| | | //æ´æ°ç¨æ·ç§¯å |
| | | memberMapper.subtractIntegral(memberId,memberCoupon.getIntegral()); |
| | | } |
| | | |
| | | |
| | |
| | | .or().like(Member::getName,pageWrap.getModel().getNickname()) |
| | | .or().like(Member::getPhone,pageWrap.getModel().getNickname()) |
| | | ); |
| | | queryWrapper.like(StringUtils.isNotBlank(pageWrap.getModel().getShopName()),Shop::getStatus,pageWrap.getModel().getShopName()); |
| | | queryWrapper.like(StringUtils.isNotBlank(pageWrap.getModel().getShopName()),Shop::getName,pageWrap.getModel().getShopName()); |
| | | queryWrapper.eq(pageWrap.getModel().getStatus()!=null,Member::getStatus,pageWrap.getModel().getStatus()); |
| | | queryWrapper.eq(Member::getIsdeleted,Constants.ZERO); |
| | | queryWrapper.ge(pageWrap.getModel().getStarttime()!=null, Member::getCreateDate,pageWrap.getModel().getStarttime()); |
| | | queryWrapper.le(pageWrap.getModel().getEndtime()!=null,Member::getCreateDate, pageWrap.getModel().getEndtime()); |
| | | |
| | | queryWrapper.orderByDesc(Member::getCreateDate); |
| | | queryWrapper.orderByDesc(Member::getId); |
| | | |
| | | IPage<Member> result = memberJoinMapper.selectJoinPage(page, Member.class, queryWrapper); |
| | | |
| | |
| | | for(Member model:result.getRecords()){ |
| | | if(StringUtils.isNotBlank(model.getImgurl())){ |
| | | model.setImgFullUrl(path); |
| | | } |
| | | model.setTotalReduceIntegral(Constants.formatBigdecimal(model.getTotalIntegral()).subtract(Constants.formatBigdecimal(model.getIntegral()))); |
| | | if(model.getTotalReduceIntegral().compareTo(new BigDecimal(0)) <=0){ |
| | | model.setTotalReduceIntegral(new BigDecimal(0)); |
| | | } |
| | | } |
| | | } |
| | |
| | | dealIntegralRequest.setDealType(Constants.ZERO); |
| | | dealIntegralRequest.setMemberId(member.getId()); |
| | | dealIntegralRequest.setIntegralObjType(Constants.IntegralObjType.REGISTER); |
| | | integralService.dealIntegral(dealIntegralRequest); |
| | | integralService.dealIntegral(dealIntegralRequest,null); |
| | | } |
| | | //å¼å¯æ³¨åé伿 å¸ |
| | | if(Constants.equalsInteger(platformConfigDTO.getRegCouponRewardStatus(),Constants.ZERO)){ |
| | |
| | | dealIntegralRequest.setMemberId(member.getRecId()); |
| | | dealIntegralRequest.setIntegralObjType(Constants.IntegralObjType.INVITENEWUSER); |
| | | dealIntegralRequest.setParam1(member.getNickname()); |
| | | integralService.dealIntegral(dealIntegralRequest); |
| | | integralService.dealIntegral(dealIntegralRequest,null); |
| | | } |
| | | } |
| | | |
| | |
| | | dealIntegralRequest.setObjId(s.getId()); |
| | | dealIntegralRequest.setOrderCode(null); |
| | | dealIntegralRequest.setDealType(memberRechargeDTO.getIntegralType()); |
| | | integralService.dealIntegral(dealIntegralRequest); |
| | | integralService.dealIntegral(dealIntegralRequest,null); |
| | | }); |
| | | // integralService.dealIntegral() |
| | | } catch (Exception e) { |
| | |
| | | dealIntegralRequest.setObjId(memberRechargeDTO.getMemberId()); |
| | | dealIntegralRequest.setOrderCode(null); |
| | | dealIntegralRequest.setDealType(memberRechargeDTO.getIntegralType()); |
| | | Integer integer = integralService.dealIntegral(dealIntegralRequest); |
| | | Integer integer = integralService.dealIntegral(dealIntegralRequest,null); |
| | | return integer; |
| | | } |
| | | |
| | |
| | | package com.doumee.service.business.impl; |
| | | |
| | | import com.doumee.config.listener.event.IntegralEvent; |
| | | import com.doumee.core.model.LoginUserInfo; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.DateUtil; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.SharesMapper; |
| | | import com.doumee.dao.business.model.Shares; |
| | | import com.doumee.service.business.SharesService; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.apache.shiro.SecurityUtils; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.SharesMapper; |
| | | import com.doumee.dao.business.model.Shares; |
| | | import com.doumee.service.business.SharesService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.context.ApplicationEventPublisher; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.math.BigDecimal; |
| | | import java.util.Arrays; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * ç¨æ·å享信æ¯è¡¨Serviceå®ç° |
| | |
| | | |
| | | @Override |
| | | public Integer create(Shares shares,Integer memberId) { |
| | | // LoginUserInfo userInfo = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | Shares target = new Shares(); |
| | | // target.setCreator(userInfo.getId()); |
| | | // target.setEditor(userInfo.getId()); |
| | | target.setMemberId(memberId); |
| | | target.setObjId(shares.getObjId()); |
| | | target.setObjType(shares.getObjType()); |
| | |
| | | target.setTitle(shares.getTitle()); |
| | | target.setIntegral(new BigDecimal("0")); |
| | | sharesMapper.insert(target); |
| | | IntegralEvent<Shares> event = new IntegralEvent<>(this,target, Constants.CoffeeBeanTask.SHARE_INFO,memberId); |
| | | applicationEventPublisher.publishEvent(event); |
| | | |
| | | return shares.getId(); |
| | | } |
| | | |
| | |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.config.Jwt.JwtPayLoad; |
| | | import com.doumee.config.Jwt.JwtTokenUtil; |
| | | import com.doumee.config.listener.event.VisitEvent; |
| | | import com.doumee.core.model.LoginUserInfo; |
| | | import com.doumee.core.constants.ResponseStatus; |
| | | import com.doumee.core.exception.BusinessException; |
| | |
| | | |
| | | queryWrapper.leftJoin(Member.class,Member::getId,Shop::getMemberId); |
| | | queryWrapper.leftJoin(Labels.class,Labels::getId,Shop::getBigAreaId); |
| | | |
| | | if(pageWrap.getModel().getAreaId()!=null){ |
| | | queryWrapper.eq( Shop::getAreaId, pageWrap.getModel().getAreaId()); |
| | | }else if(pageWrap.getModel().getCityId()!=null){ |
| | | queryWrapper.leftJoin("areas a1 on a1.id=t.area_id"); |
| | | queryWrapper.leftJoin("areas a2 on a2.id=a1.parent_id"); |
| | | queryWrapper.apply("a2.id ="+pageWrap.getModel().getCityId()); |
| | | } else if (pageWrap.getModel().getProvinceId()!=null){ |
| | | queryWrapper.leftJoin("areas a1 on a1.id=t.area_id"); |
| | | queryWrapper.leftJoin("areas a2 on a2.id=a1.parent_id"); |
| | | queryWrapper.leftJoin("areas a3 on a3.id=a2.parent_id"); |
| | | queryWrapper.apply("a3.id ="+pageWrap.getModel().getProvinceId()); |
| | | } |
| | | queryWrapper.eq(Shop::getIsdeleted, Constants.ZERO); |
| | | queryWrapper.like(StringUtils.isNotBlank(pageWrap.getModel().getCode()) ,Shop::getCode,pageWrap.getModel().getCode()); |
| | | queryWrapper.like(StringUtils.isNotBlank(pageWrap.getModel().getUsername()) ,Shop::getName,pageWrap.getModel().getUsername()); |
| | |
| | | dto.setLabels(labels.stream().map(s->s.getName()).collect(Collectors.toList())); |
| | | List<ShopMenuDTO> shopMenuDTO = shopMenuService.findShopMenuDTO(shopId); |
| | | dto.setShopMenuDTOList(shopMenuDTO); |
| | | //è®¿é®æä½ |
| | | VisitEvent<Shop> shopVisitEvent = new VisitEvent<>(this,shop); |
| | | applicationEventPublisher.publishEvent(shopVisitEvent); |
| | | return dto; |
| | | } |
| | | |
| | |
| | | package com.doumee.service.business.impl; |
| | | |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.config.listener.event.IntegralEvent; |
| | | import com.doumee.core.constants.ResponseStatus; |
| | | import com.doumee.core.exception.BusinessException; |
| | | import com.doumee.core.model.LoginUserInfo; |
| | |
| | | signup.setIntegral(new BigDecimal(dictData.getCode())); |
| | | signup.setDays(LocalDate.now().compareTo(dateTime) == 1 ? one.getDays() + 1 : 1 ); |
| | | signupMapper.insert(signup); |
| | | IntegralEvent<Signup> event = new IntegralEvent<>(this,signup,Constants.CoffeeBeanTask.SIGN_BOARD,memberId); |
| | | applicationEventPublisher.publishEvent(event); |
| | | return signup.getId(); |
| | | } |
| | | |
| | |
| | | dealIntegralRequest.setIntegralObjType(Constants.IntegralObjType.WITHDRAW_APPLY_BACK); |
| | | dealIntegralRequest.setIntegralNum(model.getAmount()); |
| | | dealIntegralRequest.setObjId(withdrawRecord.getId()); |
| | | dealIntegralRequest.setOrderCode(withdrawRecord.getCode().toString()); |
| | | dealIntegralRequest.setOrderCode(withdrawRecord.getCode()!=null?withdrawRecord.getCode().toString():""); |
| | | dealIntegralRequest.setMemberId(model.getMemberId()); |
| | | dealIntegralRequest.setDealType(Constants.ZERO); |
| | | integralService.dealShopAmount(dealIntegralRequest); |