Compare commits
7 Commits
24110f0fa8
...
7b32e910c4
Author | SHA1 | Date | |
---|---|---|---|
![]() |
7b32e910c4 | ||
![]() |
e506a57062 | ||
![]() |
879bb2d1d0 | ||
![]() |
4c3eb2ac79 | ||
![]() |
042c3200c9 | ||
![]() |
54d681a0ce | ||
![]() |
c2bbf67a68 |
16
.idea/ApifoxUploaderProjectSetting.xml
Normal file
16
.idea/ApifoxUploaderProjectSetting.xml
Normal file
@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ApifoxUploaderProjectSetting">
|
||||
<option name="apiAccessToken" value="APS-7sVwcf15GIEFsfvgul8y3dd7N3tedf6H" />
|
||||
<option name="apiApiOverwriteMode" value="覆盖所有字段" />
|
||||
<option name="apiProjectIds">
|
||||
<array>
|
||||
<option value="<byte-array>rO0ABXNyADZjb20uaXRhbmdjZW50LmlkZWEucGx1Z2luLmFwaS5hY2NvdW50LlByb2plY3RBbmRNb2R1bGUAAAAAAAAAAQIAFVoABmVuYWJsZUwACG1vZHVsZUlkdAASTGphdmEvbGFuZy9TdHJpbmc7TAAGb3RoZXIxcQB+AAFMAAdvdGhlcjEwcQB+AAFMAAdvdGhlcjExcQB+AAFMAAdvdGhlcjEycQB+AAFMAAZvdGhlcjJxAH4AAUwABm90aGVyM3EAfgABTAAGb3RoZXI0cQB+AAFMAAZvdGhlcjVxAH4AAUwABm90aGVyNnEAfgABTAAGb3RoZXI3cQB+AAFMAAZvdGhlcjhxAH4AAUwABm90aGVyOXEAfgABTAAKcGF0aEJlZm9yZXEAfgABTAANcHJvamVjdEZvbGRlcnEAfgABTAAPcHJvamVjdEZvbGRlcklkcQB+AAFMAAlwcm9qZWN0SWRxAH4AAUwAC3Byb2plY3ROYW1lcQB+AAFMAAxzY2hlbWFGb2xkZXJxAH4AAUwACHNjaGVtYUlkcQB+AAF4cAB0AAZoaWRkZW5wcHBwcHBwcHBwcHB0AApwYXRoQmVmb3JldAANcHJvamVjdEZvbGRlcnQAD3Byb2plY3RGb2xkZXJJZHQAC3Byb2plY3ROYW1ldAAIaGlkZGVuSWR0AABxAH4ACQ==</byte-array>" />
|
||||
<option value="<byte-array>rO0ABXNyADZjb20uaXRhbmdjZW50LmlkZWEucGx1Z2luLmFwaS5hY2NvdW50LlByb2plY3RBbmRNb2R1bGUAAAAAAAAAAQIAFVoABmVuYWJsZUwACG1vZHVsZUlkdAASTGphdmEvbGFuZy9TdHJpbmc7TAAGb3RoZXIxcQB+AAFMAAdvdGhlcjEwcQB+AAFMAAdvdGhlcjExcQB+AAFMAAdvdGhlcjEycQB+AAFMAAZvdGhlcjJxAH4AAUwABm90aGVyM3EAfgABTAAGb3RoZXI0cQB+AAFMAAZvdGhlcjVxAH4AAUwABm90aGVyNnEAfgABTAAGb3RoZXI3cQB+AAFMAAZvdGhlcjhxAH4AAUwABm90aGVyOXEAfgABTAAKcGF0aEJlZm9yZXEAfgABTAANcHJvamVjdEZvbGRlcnEAfgABTAAPcHJvamVjdEZvbGRlcklkcQB+AAFMAAlwcm9qZWN0SWRxAH4AAUwAC3Byb2plY3ROYW1lcQB+AAFMAAxzY2hlbWFGb2xkZXJxAH4AAUwACHNjaGVtYUlkcQB+AAF4cAF0ABFmdWludC1hcHBsaWNhdGlvbnBwcHBwcHBwcHBwcHQAAHQACeagueebruW9lXQAATB0AAk1MTQ5MzA4LjB0AAbmsrnnq5lxAH4ABXEAfgAG</byte-array>" />
|
||||
</array>
|
||||
</option>
|
||||
<option name="apiSyncFolder" value="true" />
|
||||
<option name="treeNodes" value="<byte-array>rO0ABXNyABdqYXZhLnV0aWwuTGlua2VkSGFzaE1hcDTATlwQbMD7AgABWgALYWNjZXNzT3JkZXJ4cgARamF2YS51dGlsLkhhc2hNYXAFB9rBwxZg0QMAAkYACmxvYWRGYWN0b3JJAAl0aHJlc2hvbGR4cD9AAAAAAAAMdwgAAAAQAAAAAnQACTIwNDc3MDQuMHNyAC5jb20uaXRhbmdjZW50LmlkZW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ABwdAAJMjE0MTM0Mi4wdAAM5Y2O6I6x5pm656eRcHBwdAAJMjE0MTM0Mi4wdAAM5Y2O6I6x5pm656eRcQB+AEZ4cHBwcHBwcHB4cHVxAH4ADQAAAAJxAH4AFHNxAH4AFXQABFJvb3RwcHQAATBxAH4Al3BwcHBwcQB+AEZ4c3EAfgAKAAAAAAAAAAJ1cQB+AA0AAAAKdAAEcm9vdHEAfgAJcHBwcHBwcHB4eA==</byte-array>" />
|
||||
</component>
|
||||
</project>
|
@ -6,6 +6,11 @@
|
||||
<option name="name" value="Central Repository" />
|
||||
<option name="url" value="https://repo.maven.apache.org/maven2" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="central" />
|
||||
<option name="name" value="Central Repository" />
|
||||
<option name="url" value="https://maven.aliyun.com/repository/public/" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="central" />
|
||||
<option name="name" value="Central Repository" />
|
||||
|
@ -311,7 +311,7 @@
|
||||
:visible.sync="showDialogVisible"
|
||||
width="60%">
|
||||
<el-form :model="ruleForm1" :rules="rules" ref="ruleForm1" label-width="120px" class="demo-ruleForm">
|
||||
<div style="display: flex;width: 100%;margin: 20px 0;">
|
||||
<div style="display: flex;width: 100%; margin-bottom: 20px">
|
||||
<div style="width: 50%">
|
||||
<el-form-item label="分时优惠名称" prop="activeId">
|
||||
<el-select v-model="ruleForm1.activeId" placeholder="请选择优惠名称">
|
||||
@ -400,7 +400,7 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="1">
|
||||
<div style="margin-left: 5px">至</div>
|
||||
<div style="margin:0px, 6px">至</div>
|
||||
</el-col>
|
||||
<el-col :span="11">
|
||||
<el-form-item prop="activeEndTime">
|
||||
@ -413,13 +413,13 @@
|
||||
<el-form-item label="适用时间段" prop="timeType">
|
||||
<div>
|
||||
<div class="icon-type" v-for="(item,index) in weekMonthTypeList" :key="index"
|
||||
:class="{ 'acvtive' : index === tindex3 }" @click="Typeindex3(index)">
|
||||
:class="{ 'acvtive' : index === tindex3 }" @click="Typeindex3(index)" style="margin-bottom: 20px">
|
||||
<img src="@/assets/images/wx.png" style="width: 20px;height: 20px" v-if="index != tindex3">
|
||||
<img src="@/assets/images/xz.png" style="width: 20px;height: 20px" v-if="index == tindex3">
|
||||
{{ item }}
|
||||
<el-select v-model="weekDay" v-if="item=='每周'" placeholder="请选择每月固定日期" multiple
|
||||
:disabled="tindex3!=0"
|
||||
style="margin-left: 20px;margin-bottom: 20px">
|
||||
style="margin-left: 20px;">
|
||||
<el-option
|
||||
v-for="(item,index) in weekList"
|
||||
:key="index"
|
||||
|
@ -22,6 +22,7 @@
|
||||
:key="option.id"
|
||||
:label="option.realName"
|
||||
:value="option.id"
|
||||
:disabled="queryParams.status === '统一交班'"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@ -29,7 +30,7 @@
|
||||
|
||||
|
||||
<el-form-item class="flex-container" style="float: right">
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
|
||||
<el-button type="primary" icon="el-icon-search" :disabled="!queryParams.staffId" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@ -436,6 +437,9 @@ export default {
|
||||
this.getStatus();
|
||||
this.getStaffList();
|
||||
},
|
||||
mounted() {
|
||||
this.queryParams.status = '统一交班';
|
||||
},
|
||||
methods: {
|
||||
getHandover() {
|
||||
getHandoverApi2(this.queryParams).then(res=>{
|
||||
@ -546,6 +550,7 @@ export default {
|
||||
this.dateRange = []
|
||||
this.beginTime = "";
|
||||
this.endTime = ""
|
||||
this.queryParams.status = '统一交班';
|
||||
this.getList();
|
||||
},
|
||||
printLocally(data) {
|
||||
|
@ -7,7 +7,7 @@
|
||||
{{ item.name }}
|
||||
</div>
|
||||
</div>
|
||||
<div v-show="tabindex == 0" >
|
||||
<div v-show="tabindex == 0" style="margin-top: -6px">
|
||||
<div class="top-box">
|
||||
<div class="crad-box" id="d1">
|
||||
<div class="number_">会员人数</div>
|
||||
@ -122,7 +122,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-show="tabindex == 1" >
|
||||
<div v-show="tabindex == 1" style="margin-top: -6px">
|
||||
<div class="bottom-box">
|
||||
<div class="b-box-r">
|
||||
<div class="d-s">
|
||||
@ -197,7 +197,7 @@
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="b-box-r">
|
||||
<div class="b-box-r" >
|
||||
<div class="d-s">
|
||||
<div class="gang"></div>
|
||||
<div>按月份分布</div>
|
||||
@ -275,6 +275,8 @@ export default {
|
||||
})
|
||||
getUserSex().then(res => {
|
||||
this.sexSpread = res.data
|
||||
this.sexSpread.maleProportion = Math.round(this.sexSpread.maleProportion)
|
||||
this.sexSpread.femaleProportion = Math.round(this.sexSpread.femaleProportion)
|
||||
})
|
||||
await getStoredValue().then(res => {
|
||||
this.storedValue = res.data;
|
||||
@ -1035,6 +1037,7 @@ export default {
|
||||
box-sizing: border-box;
|
||||
padding: 15px;
|
||||
background: #fff;
|
||||
width:49.5%;
|
||||
|
||||
}
|
||||
.hx{
|
||||
|
@ -61,7 +61,7 @@
|
||||
|
||||
</div>
|
||||
|
||||
<el-table ref="tables" v-loading="loading" :data="list">
|
||||
<el-table ref="tables" v-loading="loading" :data="list" >
|
||||
<el-table-column type="index" width="80" align="center" label="序号"/>
|
||||
<el-table-column label="单位名称" prop="unitName" align="center" />
|
||||
<el-table-column label="挂账人" prop="personCredit" align="center"/>
|
||||
@ -343,9 +343,14 @@ export default {
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.app-container{
|
||||
width: 100%;
|
||||
html, body {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
.app-container{
|
||||
display: flex;
|
||||
width: 100%;
|
||||
height: 93vh;
|
||||
background: #f6f8f9;
|
||||
}
|
||||
</style>
|
||||
|
@ -99,7 +99,9 @@ export default {
|
||||
return new Promise(async (resolve, reject) => {
|
||||
try {
|
||||
const response = await getOilNumberList(this.queryParams);
|
||||
console.log('response', response)
|
||||
this.oilNumberList2 = response.data.records;
|
||||
console.log('oilNumberList2', this.oilNumberList2)
|
||||
this.total = response.data.total
|
||||
await this.getAllOilList();
|
||||
resolve();
|
||||
@ -176,7 +178,7 @@ export default {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
var this_ = this
|
||||
if (this.oilNumber.id) {
|
||||
if (this.oilNumber.numberId) {
|
||||
updateOilNumber(this_.oilNumber).then(response => {
|
||||
var list = response.data
|
||||
if (list < 0) {
|
||||
|
@ -78,27 +78,27 @@
|
||||
</el-card>
|
||||
|
||||
<el-dialog :title="title" :close-on-click-modal="false" :visible.sync="open" width="30%" append-to-body>
|
||||
<el-form ref="form" :model="deviceInfo" label-width="80px">
|
||||
<el-form :model="deviceInfo" ref="deviceForm" label-width="120px">
|
||||
<el-form-item label="设备名称" prop="deviceName">
|
||||
<el-form ref="form" :model="deviceInfo" label-width="80px">
|
||||
<el-form :model="deviceInfo" :rules="rules" ref="deviceForm" label-width="120px">
|
||||
<el-form-item label="设备名称" prop="deviceName" >
|
||||
<el-input v-model="deviceInfo.deviceName" style="width: 300px"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="设备品牌" prop="deviceSi">
|
||||
<el-form-item label="设备品牌" prop="deviceSi" >
|
||||
<el-input v-model="deviceInfo.deviceSi" style="width: 300px"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="设备功能" prop="deviceAb">
|
||||
<el-form-item label="设备功能" prop="deviceAb" >
|
||||
<el-radio-group v-model="deviceInfo.deviceAb">
|
||||
<el-radio label="打印小票"></el-radio>
|
||||
<el-radio label="语音播报"></el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="设备终端号" prop="machineCode">
|
||||
<el-form-item label="设备终端号" prop="machineCode" >
|
||||
<el-input v-model="deviceInfo.machineCode" style="width: 300px"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="设备密钥" prop="msign">
|
||||
<el-form-item label="设备密钥" prop="msign" >
|
||||
<el-input v-model="deviceInfo.msign" style="width: 300px"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="选择员工" prop="staffId">
|
||||
<el-form-item label="选择员工" prop="staffId" >
|
||||
<el-select
|
||||
v-model="staffIds"
|
||||
clearable
|
||||
@ -131,7 +131,7 @@
|
||||
<!-- <el-form-item label="token" prop="accessToken">-->
|
||||
<!-- <el-input v-model="deviceInfo.accessToken"></el-input>-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item label="启用状态" prop="isAcquiesce">
|
||||
<el-form-item label="启用状态" prop="isAcquiesce" >
|
||||
<el-switch
|
||||
v-model="deviceInfo.acquiesce"
|
||||
active-color="#13ce66"
|
||||
@ -184,6 +184,26 @@ export default {
|
||||
staffName: '', // 设备员工名字
|
||||
acquiesce: false // token
|
||||
},
|
||||
rules: {
|
||||
deviceName: [
|
||||
{ required: true, message: '设备名称不能为空', trigger: 'blur' }
|
||||
],
|
||||
deviceSi: [
|
||||
{ required: true, message: '设备品牌不能为空', trigger: 'blur' }
|
||||
],
|
||||
deviceAb: [
|
||||
{ required: true, message: '设备功能不能为空', trigger: 'change' }
|
||||
],
|
||||
machineCode: [
|
||||
{ required: true, message: '设备终端号不能为空', trigger: 'blur' }
|
||||
],
|
||||
msign: [
|
||||
{ required: true, message: '设备密钥不能为空', trigger: 'blur' }
|
||||
],
|
||||
staffId: [
|
||||
{ required: false, message: '请选择员工', trigger: 'change' }
|
||||
]
|
||||
},
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
title:"",
|
||||
|
@ -136,5 +136,20 @@ public class CardCouponController extends BaseController {
|
||||
public ResponseObject isOnLine(@PathVariable Integer id) {
|
||||
return getSuccessResult(cardCouponService.isOnLine(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询可领取优惠券(uniapp使用)
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param cardCoupon
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/queryByPageAndStoreId")
|
||||
public ResponseObject selectAllByPageAndStoreId(@RequestParam(value = "pageNo",defaultValue = "1") Integer pageNo,
|
||||
@RequestParam(value = "pageSize",defaultValue = "10") Integer pageSize, @Param("cardCoupon") CardCoupon cardCoupon) {
|
||||
Page page = new Page(pageNo, pageSize);
|
||||
return getSuccessResult(this.cardCouponService.pageVo(page, cardCoupon));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.fuint.business.marketingActivity.cardValue.dto.CardValueDTO;
|
||||
import com.fuint.business.marketingActivity.cardValue.entity.CardValue;
|
||||
import com.fuint.business.marketingActivity.cardValue.vo.CardValueAppletVO;
|
||||
import com.fuint.business.marketingActivity.cardValue.vo.CardValueUniVo;
|
||||
import com.fuint.business.marketingActivity.cardValue.vo.CardValueVO;
|
||||
import com.fuint.business.marketingActivity.cardValue.vo.CardValueVOs;
|
||||
|
||||
@ -34,7 +35,7 @@ public interface CardValueService extends IService<CardValue> {
|
||||
* @param cardValue
|
||||
* @return
|
||||
*/
|
||||
List<CardValueVOs> selectAppletL(CardValue cardValue);
|
||||
CardValueUniVo selectAppletL(CardValue cardValue);
|
||||
|
||||
/**
|
||||
* 通过主键查询单条数据(充值)
|
||||
|
@ -26,11 +26,18 @@ import com.fuint.business.marketingActivity.cardValue.entity.CardValue;
|
||||
import com.fuint.business.marketingActivity.cardValue.service.CardValueChildService;
|
||||
import com.fuint.business.marketingActivity.cardValue.service.CardValueService;
|
||||
import com.fuint.business.marketingActivity.cardValue.vo.CardValueAppletVO;
|
||||
import com.fuint.business.marketingActivity.cardValue.vo.CardValueUniVo;
|
||||
import com.fuint.business.marketingActivity.cardValue.vo.CardValueVO;
|
||||
import com.fuint.business.marketingActivity.cardValue.vo.CardValueVOs;
|
||||
import com.fuint.business.store.service.StoreService;
|
||||
import com.fuint.business.storeInformation.service.ILJStoreService;
|
||||
import com.fuint.business.userManager.service.LJUserGradeService;
|
||||
import com.fuint.common.service.StaffService;
|
||||
import com.fuint.common.util.TokenUtil;
|
||||
import com.fuint.repository.mapper.MtStaffMapper;
|
||||
import com.fuint.repository.mapper.NewMtStaffMapper;
|
||||
import com.fuint.repository.model.MtStaff;
|
||||
import com.fuint.repository.model.NewMtStaff;
|
||||
import org.apache.commons.lang3.ObjectUtils;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@ -69,6 +76,12 @@ public class CardValueServiceImpl extends ServiceImpl<CardValueMapper, CardValue
|
||||
|
||||
@Resource
|
||||
private ActiveAppletService activeAppletService;
|
||||
|
||||
@Resource
|
||||
private ILJStoreService ljStoreService;
|
||||
|
||||
@Autowired
|
||||
private NewMtStaffMapper mtStaffMapper;
|
||||
/**
|
||||
* 分页查询所有数据
|
||||
* @param page
|
||||
@ -121,7 +134,9 @@ public class CardValueServiceImpl extends ServiceImpl<CardValueMapper, CardValue
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<CardValueVOs> selectAppletL(CardValue cardValue) {
|
||||
public CardValueUniVo selectAppletL(CardValue cardValue) {
|
||||
CardValueUniVo cardValueUniVo = new CardValueUniVo();
|
||||
|
||||
LambdaQueryWrapper<CardValue> queryWrapper = new LambdaQueryWrapper<>();
|
||||
//构建查询条件
|
||||
if (ObjectUtils.isNotEmpty(cardValue.getIsonline())){
|
||||
@ -170,8 +185,16 @@ public class CardValueServiceImpl extends ServiceImpl<CardValueMapper, CardValue
|
||||
cardValueVOs.add(cardValueVO);
|
||||
}
|
||||
}
|
||||
//查询状态为启用的本店员工
|
||||
LambdaQueryWrapper<NewMtStaff> staffQueryWrapper = new LambdaQueryWrapper<>();
|
||||
staffQueryWrapper.eq(NewMtStaff::getStatus, "qy");
|
||||
staffQueryWrapper.eq(NewMtStaff::getStoreId, cardValue.getStoreId());
|
||||
List<NewMtStaff> newMtStaffs = mtStaffMapper.selectList(staffQueryWrapper);
|
||||
//page1.setRecords(cardValueVOs);
|
||||
return cardValueVOs;
|
||||
cardValueUniVo.setCardValueList(cardValueVOs);
|
||||
cardValueUniVo.setStaffList(newMtStaffs);
|
||||
cardValueUniVo.setStoreName(ljStoreService.queryStoreById(cardValue.getStoreId()).getName());
|
||||
return cardValueUniVo;
|
||||
}
|
||||
|
||||
public IPage selectAll(Page page, CardValue cardValue) {
|
||||
|
@ -0,0 +1,17 @@
|
||||
package com.fuint.business.marketingActivity.cardValue.vo;
|
||||
|
||||
import com.fuint.repository.model.MtStaff;
|
||||
import com.fuint.repository.model.NewMtStaff;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class CardValueUniVo {
|
||||
//店铺名称
|
||||
private String storeName;
|
||||
//卡券列表
|
||||
private List<CardValueVOs> cardValueList;
|
||||
//可以选择的员工
|
||||
private List<NewMtStaff> staffList;
|
||||
}
|
@ -9,4 +9,6 @@ import java.io.Serializable;
|
||||
public class CardValueVOs extends CardValue implements Serializable {
|
||||
//卡券数量
|
||||
private Integer count;
|
||||
|
||||
|
||||
}
|
||||
|
@ -12,6 +12,7 @@ import com.fuint.business.petrolStationManagement.entity.OilNumber;
|
||||
import com.fuint.business.petrolStationManagement.entity.OilPresetPrices;
|
||||
import com.fuint.business.petrolStationManagement.service.OilNumberService;
|
||||
import com.fuint.business.petrolStationManagement.service.OilPresetPricesService;
|
||||
import com.fuint.business.petrolStationManagement.vo.OilNumberUniVo;
|
||||
import com.fuint.business.petrolStationManagement.vo.OilPresetPricesVO;
|
||||
import com.fuint.business.setting.entity.SysLog;
|
||||
import com.fuint.business.setting.service.SysLogService;
|
||||
@ -19,6 +20,8 @@ import com.fuint.framework.web.BaseController;
|
||||
import com.fuint.framework.web.ResponseObject;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@ -36,6 +39,8 @@ import java.util.List;
|
||||
@RestController
|
||||
@RequestMapping("/business/petrolStationManagement/oilNumber")
|
||||
public class OilNumberController extends BaseController {
|
||||
private static final Logger log = LoggerFactory.getLogger(OilNumberController.class);
|
||||
|
||||
/**
|
||||
* 服务对象
|
||||
*/
|
||||
@ -57,6 +62,13 @@ public class OilNumberController extends BaseController {
|
||||
return getSuccessResult(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 小程序端查询油价价格
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param oilNumber
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation("查询所有油号")
|
||||
@GetMapping("getList2")
|
||||
public ResponseObject selectAll2(@RequestParam(value = "pageNo",defaultValue = "1") Integer pageNo,
|
||||
@ -98,6 +110,7 @@ public class OilNumberController extends BaseController {
|
||||
*/
|
||||
@PostMapping
|
||||
public ResponseObject insert(@RequestBody OilNumber oilNumber) {
|
||||
log.info("新增油号信息:{}",oilNumber);
|
||||
try {
|
||||
SysLog sysLog =new SysLog();
|
||||
sysLog.setSystemName("2");
|
||||
@ -116,6 +129,7 @@ public class OilNumberController extends BaseController {
|
||||
*/
|
||||
@PutMapping
|
||||
public ResponseObject update(@RequestBody OilNumber oilNumber) {
|
||||
log.info("修改油号信息:{}", oilNumber);
|
||||
try {
|
||||
SysLog sysLog =new SysLog();
|
||||
sysLog.setSystemName("2");
|
||||
|
@ -39,6 +39,8 @@ public class OilNumber extends BaseEntity {
|
||||
private Double oilDensity; //油品密度
|
||||
@TableField(exist = false)
|
||||
public Integer id; //id(主键)
|
||||
public Integer upOrDown;//油价涨幅 1-升 2-降
|
||||
public String amplitudeOfChange; //涨幅
|
||||
|
||||
|
||||
|
||||
|
@ -19,6 +19,8 @@
|
||||
<result property="ifDelete" column="if_delete" />
|
||||
<result property="unit" column="unit"/>
|
||||
<result property="storeId" column="store_id"/>
|
||||
<result property="upOrDown" column="up_or_down"/>
|
||||
<result property="amplitudeOfChange" column="amplitude_of_change"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectOilNumber">
|
||||
@ -39,7 +41,9 @@
|
||||
onn.oil_name,
|
||||
onn.id,
|
||||
omm.oil_price,
|
||||
omm.gb_price
|
||||
omm.gb_price,
|
||||
omm.up_or_down,
|
||||
omm.amplitude_of_change
|
||||
from oil_number omm
|
||||
left join oil_name onn on omm.oil_name = onn.id
|
||||
<where>
|
||||
@ -110,6 +114,8 @@
|
||||
<if test=" remark != null and remark != ''">remark= #{remark},</if>
|
||||
<if test=" updateBy != null and updateBy != ''">update_by= #{updateBy},</if>
|
||||
<if test=" unit != null and unit != ''">unit= #{unit},</if>
|
||||
<if test=" upOrDown != null and unit != ''">up_or_down= #{upOrDown},</if>
|
||||
<if test=" amplitudeOfChange != null and amplitudeOfChange != ''">amplitude_of_change= #{amplitudeOfChange },</if>
|
||||
update_time= NOW()
|
||||
</set>
|
||||
where number_id = #{numberId}
|
||||
|
@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.fuint.business.petrolStationManagement.entity.OilNumber;
|
||||
import com.fuint.business.petrolStationManagement.entity.OilPresetPrices;
|
||||
import com.fuint.business.petrolStationManagement.vo.OilNumberNameVo;
|
||||
import com.fuint.business.petrolStationManagement.vo.OilNumberUniVo;
|
||||
import com.fuint.business.petrolStationManagement.vo.OilPresetPricesVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.fuint.business.petrolStationManagement.service.impl;
|
||||
|
||||
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
@ -17,19 +17,25 @@ import com.fuint.business.petrolStationManagement.mapper.OilPresetPricesMapper;
|
||||
import com.fuint.business.petrolStationManagement.service.OilNameService;
|
||||
import com.fuint.business.petrolStationManagement.service.OilNumberService;
|
||||
import com.fuint.business.petrolStationManagement.vo.OilNumberNameVo;
|
||||
import com.fuint.business.petrolStationManagement.vo.OilNumberUniVo;
|
||||
import com.fuint.business.petrolStationManagement.vo.OilPresetPricesVO;
|
||||
import com.fuint.common.dto.AccountInfo;
|
||||
import com.fuint.common.util.TokenUtil;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.text.DecimalFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import static cn.hutool.core.util.NumberUtil.decimalFormat;
|
||||
|
||||
/**
|
||||
* (OilNumber)表服务实现类
|
||||
*
|
||||
@ -39,15 +45,18 @@ import java.util.stream.Collectors;
|
||||
@Service("OilNumberService")
|
||||
public class OilNumberServiceImpl extends ServiceImpl<OilNumberMapper, OilNumber> implements OilNumberService {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(OilNumberServiceImpl.class);
|
||||
|
||||
@Resource
|
||||
private OilPresetPricesMapper oilPresetPricesMapper;
|
||||
@Resource
|
||||
private OilNameService oilNameService;
|
||||
|
||||
@Override
|
||||
public IPage<OilNumber> selectOilNumberList(Page page, OilNumber oilNumber) {
|
||||
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
||||
oilNumber.setStoreId(nowAccountInfo.getStoreId());
|
||||
return baseMapper.selectOilNumberList(page,oilNumber);
|
||||
return baseMapper.selectOilNumberList(page, oilNumber);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -57,7 +66,9 @@ public class OilNumberServiceImpl extends ServiceImpl<OilNumberMapper, OilNumber
|
||||
oilNumber.setStoreId(nowAccountInfo.getStoreId());
|
||||
}
|
||||
|
||||
return baseMapper.selectOilNumberList2(page,oilNumber);
|
||||
IPage<OilNumber> oilNumberIPage = baseMapper.selectOilNumberList2(page, oilNumber);
|
||||
|
||||
return oilNumberIPage;
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -74,7 +85,7 @@ public class OilNumberServiceImpl extends ServiceImpl<OilNumberMapper, OilNumber
|
||||
DecimalFormat decimalFormat = new DecimalFormat("#0.00"); // 设置要显示的小数位数
|
||||
|
||||
double v = s.getOilPrice() / s.getGbPrice();
|
||||
String formattedNumber = decimalFormat.format((1-v) * 100);
|
||||
String formattedNumber = decimalFormat.format((1 - v) * 100);
|
||||
oilPresetPricesVO.setRate(formattedNumber + "%");
|
||||
return oilPresetPricesVO;
|
||||
}).collect(Collectors.toList());
|
||||
@ -98,9 +109,13 @@ public class OilNumberServiceImpl extends ServiceImpl<OilNumberMapper, OilNumber
|
||||
oilNumber.setCreateBy(nowAccountInfo.getStaffId().toString());
|
||||
// 根据id查询这个店铺是否加过该型号的油
|
||||
int i = baseMapper.selectOilNameByStore(oilNumber);
|
||||
if ( i >= 1) {
|
||||
if (i >= 1) {
|
||||
return -1;
|
||||
}
|
||||
oilNumber.setUpOrDown(3);
|
||||
oilNumber.setAmplitudeOfChange("0%");
|
||||
|
||||
|
||||
return baseMapper.insertOilNumber(oilNumber);
|
||||
}
|
||||
|
||||
@ -110,10 +125,28 @@ public class OilNumberServiceImpl extends ServiceImpl<OilNumberMapper, OilNumber
|
||||
oilNumber.setUpdateBy(nowAccountInfo.getStaffId().toString());
|
||||
|
||||
int i = baseMapper.selectOilNameByStore(oilNumber);
|
||||
if ( i> 1) {
|
||||
if (i > 1) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
LambdaQueryWrapper<OilNumber> queryWrapper = new LambdaQueryWrapper<>();
|
||||
queryWrapper.eq(OilNumber::getNumberId, oilNumber.getNumberId());
|
||||
OilNumber oilNumber1 = baseMapper.selectOne(queryWrapper);
|
||||
if (oilNumber1 != null) {
|
||||
if (oilNumber1.getOilPrice() == oilNumber.getOilPrice()) {
|
||||
oilNumber.setUpOrDown(3);
|
||||
oilNumber.setAmplitudeOfChange("0%");
|
||||
}else if (oilNumber1.getOilPrice() > oilNumber.getOilPrice()) {
|
||||
oilNumber.setUpOrDown(2);
|
||||
String s = calculatePercentageChange(oilNumber.getOilPrice(), oilNumber1.getOilPrice());
|
||||
oilNumber.setAmplitudeOfChange(s);
|
||||
}else if (oilNumber1.getOilPrice() < oilNumber.getOilPrice()) {
|
||||
oilNumber.setUpOrDown(1);
|
||||
String s = calculatePercentageChange(oilNumber.getOilPrice(), oilNumber1.getOilPrice());
|
||||
oilNumber.setAmplitudeOfChange(s);
|
||||
}
|
||||
}
|
||||
|
||||
return baseMapper.updateOilNumber(oilNumber);
|
||||
}
|
||||
|
||||
@ -132,7 +165,7 @@ public class OilNumberServiceImpl extends ServiceImpl<OilNumberMapper, OilNumber
|
||||
|
||||
@Override
|
||||
public List<OilNumberNameVo> selectOilNumberNameByStoreId(Integer storeId) {
|
||||
if (storeId==null){
|
||||
if (storeId == null) {
|
||||
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
||||
storeId = nowAccountInfo.getStoreId();
|
||||
}
|
||||
@ -142,8 +175,8 @@ public class OilNumberServiceImpl extends ServiceImpl<OilNumberMapper, OilNumber
|
||||
@Override
|
||||
public OilNumber selectOilNumberByOilName(String oilName, Integer storeId) {
|
||||
QueryWrapper queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("oil_name",oilName);
|
||||
queryWrapper.eq("store_id",storeId);
|
||||
queryWrapper.eq("oil_name", oilName);
|
||||
queryWrapper.eq("store_id", storeId);
|
||||
OilNumber oilNumber = baseMapper.selectOne(queryWrapper);
|
||||
return oilNumber;
|
||||
}
|
||||
@ -152,11 +185,30 @@ public class OilNumberServiceImpl extends ServiceImpl<OilNumberMapper, OilNumber
|
||||
public OilNumber getOilPrice(Integer oilName) {
|
||||
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
||||
LambdaQueryWrapper<OilNumber> queryWrapper = new LambdaQueryWrapper<>();
|
||||
queryWrapper.eq(OilNumber::getStoreId,nowAccountInfo.getStoreId());
|
||||
queryWrapper.eq(OilNumber::getOilName,oilName);
|
||||
queryWrapper.eq(OilNumber::getStoreId, nowAccountInfo.getStoreId());
|
||||
queryWrapper.eq(OilNumber::getOilName, oilName);
|
||||
OilNumber one = getOne(queryWrapper);
|
||||
return one;
|
||||
}
|
||||
|
||||
//计算变化幅度
|
||||
public static String calculatePercentageChange(double original, double newValue) {
|
||||
if (original == 0) {
|
||||
throw new IllegalArgumentException("");
|
||||
}
|
||||
|
||||
// 计算变化幅度 (newValue - original) / original * 100
|
||||
double change = ((original - newValue) / newValue) * 100;
|
||||
|
||||
|
||||
//如果变化幅度小于0 取反
|
||||
if (change < 0) {
|
||||
change = -change;
|
||||
}
|
||||
|
||||
// 将结果格式化为带百分号的字符串,并保留两位小数
|
||||
return String.format("%.2f%%", change);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,48 @@
|
||||
package com.fuint.business.petrolStationManagement.vo;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.fuint.repository.model.base.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 油号表控制层
|
||||
*
|
||||
* @author wangh
|
||||
* @since 2023-10-11 16:36:02
|
||||
*/
|
||||
@ApiModel("油品数据")
|
||||
@Data
|
||||
public class OilNumberUniVo extends BaseEntity {
|
||||
@ApiModelProperty("商户名")
|
||||
@TableId(value = "number_id", type = IdType.AUTO)
|
||||
public Integer numberId; //id(主键)
|
||||
private String oilType; // 油品类型
|
||||
private String oilName; //油品名称
|
||||
private Double oilPrice; //油品单价
|
||||
private Double gbPrice; //国标价格
|
||||
private String receivingUnits; //收款单位
|
||||
// private String createTime; //创建时间
|
||||
// private String updateTime; //更新时间
|
||||
private String state; // 状态 启用或禁用(0禁用1启用)
|
||||
private String sort; //排序
|
||||
private String remark; //
|
||||
private String ifDelete; //
|
||||
private String unit; //
|
||||
private Integer storeId; //
|
||||
@TableField(exist = false)
|
||||
private Double oilDensity; //油品密度
|
||||
@TableField(exist = false)
|
||||
public Integer id; //id(主键)
|
||||
/**
|
||||
* 1-升 2-降
|
||||
*/
|
||||
public Integer upOrDown;//油价涨幅 1-升 2-降
|
||||
public String amplitudeOfChange; //涨幅
|
||||
|
||||
|
||||
|
||||
}
|
@ -1,6 +1,8 @@
|
||||
package com.fuint.business.printer.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.fuint.repository.model.base.BaseEntity;
|
||||
import lombok.Data;
|
||||
|
||||
@ -61,8 +63,9 @@ public class PrintDeviceInfo extends BaseEntity {
|
||||
* 店铺id
|
||||
*/
|
||||
private Integer storeId;
|
||||
|
||||
@TableField(exist = false)
|
||||
private Integer deptId;
|
||||
@TableField(exist = false)
|
||||
private String deptName;
|
||||
|
||||
private String deviceSi; // 设备品牌
|
||||
|
@ -1,5 +1,6 @@
|
||||
package com.fuint.business.printer.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.fuint.business.printer.entity.PrintDeviceInfo;
|
||||
@ -13,7 +14,7 @@ import java.util.List;
|
||||
* @author wangh
|
||||
* @since 2024-04-29 17:31:02
|
||||
*/
|
||||
public interface PrintDeviceInfoMapper {
|
||||
public interface PrintDeviceInfoMapper extends BaseMapper<PrintDeviceInfo> {
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
|
@ -1,17 +1,18 @@
|
||||
package com.fuint.business.printer.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.fuint.business.printer.entity.PrintDeviceInfo;
|
||||
import com.fuint.business.printer.mapper.PrintDeviceInfoMapper;
|
||||
import com.fuint.business.printer.service.PrintDeviceInfoService;
|
||||
import com.fuint.framework.exception.BusinessCheckException;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.fuint.common.util.TokenUtil;
|
||||
import io.lettuce.core.dynamic.annotation.Param;
|
||||
import com.fuint.common.dto.AccountInfo;
|
||||
|
||||
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
@ -40,14 +41,14 @@ public class PrintDeviceInfoServiceImpl implements PrintDeviceInfoService {
|
||||
* 分页查询
|
||||
*
|
||||
* @param printDeviceInfo 筛选条件
|
||||
* @param page 分页对象
|
||||
* @param page 分页对象
|
||||
* @return 查询结果
|
||||
*/
|
||||
@Override
|
||||
public IPage<PrintDeviceInfo> queryByPage(@Param("page") Page page, PrintDeviceInfo printDeviceInfo) {
|
||||
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
||||
printDeviceInfo.setStoreId(nowAccountInfo.getStoreId());
|
||||
return this.printDeviceInfoMapper.queryAllByLimit(page, printDeviceInfo);
|
||||
return this.printDeviceInfoMapper.queryAllByLimit(page, printDeviceInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -63,6 +64,12 @@ public class PrintDeviceInfoServiceImpl implements PrintDeviceInfoService {
|
||||
if (printDeviceInfo.getAcquiesce()) {
|
||||
printDeviceInfoMapper.updateIsAcquiesce(nowAccountInfo.getStoreId());
|
||||
}
|
||||
//查询设备终端号是否存在
|
||||
PrintDeviceInfo printDeviceInfo1 = printDeviceInfoMapper.selectOne(new LambdaQueryWrapper<PrintDeviceInfo>()
|
||||
.eq(PrintDeviceInfo::getMachineCode, printDeviceInfo.getMachineCode()));
|
||||
if (printDeviceInfo1 != null) {
|
||||
throw new RuntimeException("设备终端号已存在");
|
||||
}
|
||||
this.printDeviceInfoMapper.insert(printDeviceInfo);
|
||||
return printDeviceInfo;
|
||||
}
|
||||
|
@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.fuint.business.userManager.entity.UserBalance;
|
||||
import com.fuint.business.userManager.vo.LJUserVo;
|
||||
import com.fuint.business.userManager.vo.UserBalanceVo;
|
||||
import com.fuint.business.userManager.vo.UserBlanceUniVo;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@ -64,7 +65,7 @@ public interface UserBalanceService extends IService<UserBalance> {
|
||||
* @return
|
||||
*/
|
||||
UserBalance getUserBalance();
|
||||
UserBalance getUserBalanceApplet(UserBalance userBalance);
|
||||
UserBlanceUniVo getUserBalanceApplet(UserBalance userBalance);
|
||||
|
||||
int initBalance(Integer userId , Integer chainStoreId);
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
package com.fuint.business.userManager.service.impl;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
@ -22,6 +23,7 @@ import com.fuint.business.userManager.service.LJUserGradeService;
|
||||
import com.fuint.business.userManager.service.UserBalanceService;
|
||||
import com.fuint.business.userManager.vo.LJUserVo;
|
||||
import com.fuint.business.userManager.vo.UserBalanceVo;
|
||||
import com.fuint.business.userManager.vo.UserBlanceUniVo;
|
||||
import com.fuint.common.dto.AccountInfo;
|
||||
import com.fuint.common.util.RedisLock;
|
||||
import com.fuint.common.util.TokenUtil;
|
||||
@ -318,13 +320,15 @@ public class UserBalanceServiceImpl extends ServiceImpl<UserBalanceMapper, UserB
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public UserBalance getUserBalanceApplet(UserBalance userBalance) {
|
||||
public UserBlanceUniVo getUserBalanceApplet(UserBalance userBalance) {
|
||||
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
||||
QueryWrapper queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("mt_user_id",nowAccountInfo.getId());
|
||||
queryWrapper.eq("chain_store_id",userBalance.getChainStoreId());
|
||||
UserBalance balance = baseMapper.selectOne(queryWrapper);
|
||||
return balance;
|
||||
UserBlanceUniVo userBlanceUniVo = BeanUtil.copyProperties(balance, UserBlanceUniVo.class);
|
||||
userBlanceUniVo.setAllBalance(balance.getCardBalance()+balance.getGiveAmount());
|
||||
return userBlanceUniVo;
|
||||
}
|
||||
/**
|
||||
* 初始化用户余额信息
|
||||
|
@ -0,0 +1,10 @@
|
||||
package com.fuint.business.userManager.vo;
|
||||
|
||||
import com.fuint.business.userManager.entity.UserBalance;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class UserBlanceUniVo extends UserBalance {
|
||||
//总余额
|
||||
private Double allBalance;
|
||||
}
|
@ -44,6 +44,7 @@ public class RedissonConfig {
|
||||
public RedissonClient redissonClient()
|
||||
{
|
||||
Config config = new Config();
|
||||
config.useSingleServer().setPassword(password);
|
||||
config.useSingleServer().setAddress("redis://" + host + ":" + port); // 更多.set
|
||||
return Redisson.create(config);
|
||||
}
|
||||
|
@ -0,0 +1,19 @@
|
||||
package com.fuint.repository.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.fuint.repository.model.MtStaff;
|
||||
import com.fuint.repository.model.NewMtStaff;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 店铺员工表 Mapper 接口
|
||||
*
|
||||
* Created by FSQ
|
||||
* CopyRight https://www.fuint.cn
|
||||
*/
|
||||
@Mapper
|
||||
public interface NewMtStaffMapper extends BaseMapper<NewMtStaff> {
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
package com.fuint.repository.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 店铺员工表
|
||||
*
|
||||
* Created by FSQ
|
||||
* CopyRight https://www.fuint.cn
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@TableName("mt_staff")
|
||||
@ApiModel(value = "MtStaff对象", description = "店铺员工表")
|
||||
public class NewMtStaff implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Integer id; // 自增ID
|
||||
private Integer storeId; // 店铺ID
|
||||
private Integer userId; // 用户ID
|
||||
private String mobile; // 手机号码
|
||||
private String realName; // 真实姓名
|
||||
private Date createTime; // 创建时间
|
||||
private Date updateTime; // 更新时间
|
||||
private String description; // 备注
|
||||
private String createBy; // 创建用户
|
||||
private String updateBy; // 修改用户
|
||||
private String isRefuel; // 一键加油,显示、隐藏
|
||||
private String handoverMode; // 交班模式
|
||||
private String handoverPrem; // 交班权限
|
||||
private String handoverOut; // 交班退出
|
||||
private String record; // 交班记录
|
||||
private String merchantStatus; // 交班商户号,启用;禁用
|
||||
private String screen; // 员工筛选,启用;禁用
|
||||
private String posPrem; // POS权限,存放json数据
|
||||
private String appletPrem; // 小程序权限,存放json数据
|
||||
private String notice; // 收款通知
|
||||
private String oilGunId; // 模板油枪号
|
||||
private String timeFrame; // 时间范围
|
||||
private String refund; // 退款权限
|
||||
private String transaction; // 交易统计
|
||||
private String auditPrem; // 审核权限
|
||||
private String writeOff; // 核销权限
|
||||
private String specialPrem; // 特殊权限
|
||||
private String official; // 公众号状态
|
||||
private String status; // 员工状态
|
||||
private String pos; // POS加油员状态
|
||||
private String roleId; // 角色ID
|
||||
private String refundPassword; // 退款密码
|
||||
private String writeOffCode; // 核销码
|
||||
private String staffCode; // 员工码
|
||||
private String ifDelete; // 是否删除
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user