Browse Source

h后台管理系统添加地图

master
HY 3 months ago
parent
commit
ba0214ed52
23 changed files with 13104 additions and 55 deletions
  1. +2
    -2
      admin-hanhai-vue/.env.development
  2. +1
    -1
      admin-hanhai-vue/.env.production
  3. +1
    -1
      admin-hanhai-vue/.env.test
  4. +2
    -0
      admin-hanhai-vue/package.json
  5. +2
    -1
      admin-hanhai-vue/src/config/index.js
  6. +2
    -0
      admin-hanhai-vue/src/main.js
  7. +1
    -1
      admin-hanhai-vue/src/views/xcx/ClockInConfList.vue
  8. +6
    -6
      admin-hanhai-vue/src/views/xcx/ClockInProjectItemList.vue
  9. +10
    -8
      admin-hanhai-vue/src/views/xcx/ClockInProjectList.vue
  10. +9
    -9
      admin-hanhai-vue/src/views/xcx/ClockinAuthList.vue
  11. +18
    -18
      admin-hanhai-vue/src/views/xcx/ClockinLogList.vue
  12. +6
    -6
      admin-hanhai-vue/src/views/xcx/ClockinTeamList.vue
  13. +23
    -2
      admin-hanhai-vue/src/views/xcx/modules/ClockInProjectForm.vue
  14. +235
    -0
      admin-hanhai-vue/src/views/xcx/modules/TencentMapPicker.vue
  15. +12766
    -0
      admin-hanhai-vue/yarn.lock
  16. +2
    -0
      jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/clockInproject/entity/ClockInProject.java
  17. +2
    -0
      jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/clockInprojectitem/entity/ClockInProjectItem.java
  18. +2
    -0
      jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/clockinauth/entity/ClockinAuth.java
  19. +2
    -0
      jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/clockinconf/entity/ClockInConf.java
  20. +2
    -0
      jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/clockinlog/entity/ClockinLog.java
  21. +2
    -0
      jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/clockinteam/entity/ClockinTeam.java
  22. +2
    -0
      jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/clockinteamlog/entity/ClockinTeamLog.java
  23. +6
    -0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/xcx/clockin/service/impl/ClockinServiceImpl.java

+ 2
- 2
admin-hanhai-vue/.env.development View File

@ -1,7 +1,7 @@
NODE_ENV=development
VUE_APP_API_BASE_URL=http://127.0.0.1:8081/clockin-api/
VUE_APP_API_BASE_URL=https://clockin.java996.icu/clockin-api/
VUE_APP_CAS_BASE_URL=http://cas.example.org:8443/cas
VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview
VUE_APP_MAP_KEY=WPKBZ-OKICI-ZAIGE-U6TQ4-RPQIV-OXBJO
# 微应用列表必须VUE_APP_SUB_开头,jeecg-app-1为子应用的项目名称,也是子应用的路由父路径
VUE_APP_SUB_jeecg-app-1 = '//localhost:8092'

+ 1
- 1
admin-hanhai-vue/.env.production View File

@ -2,6 +2,6 @@ NODE_ENV=production
VUE_APP_API_BASE_URL=https://clockin.java996.icu/clockin-api/
VUE_APP_CAS_BASE_URL=http://cas.example.org:8443/cas
VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview
VUE_APP_MAP_KEY=WPKBZ-OKICI-ZAIGE-U6TQ4-RPQIV-OXBJO
# 微应用列表必须VUE_APP_SUB_开头,jeecg-app-1为子应用的项目名称,也是子应用的路由父路径
VUE_APP_SUB_jeecg-app-1 = '//localhost:8092'

+ 1
- 1
admin-hanhai-vue/.env.test View File

@ -2,6 +2,6 @@ NODE_ENV=test
VUE_APP_API_BASE_URL=https://clockin.java996.icu/clockin-api/
VUE_APP_CAS_BASE_URL=http://cas.example.org:8443/cas
VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview
VUE_APP_MAP_KEY=WPKBZ-OKICI-ZAIGE-U6TQ4-RPQIV-OXBJO
# 微应用列表必须VUE_APP_SUB_开头,jeecg-app-1为子应用的项目名称,也是子应用的路由父路径
VUE_APP_SUB_jeecg-app-1 = '//localhost:8092'

+ 2
- 0
admin-hanhai-vue/package.json View File

@ -10,6 +10,7 @@
"lint": "vue-cli-service lint"
},
"dependencies": {
"@amap/amap-jsapi-loader": "^1.0.1",
"@antv/data-set": "^0.11.4",
"@jeecg/antd-online-mini": "3.1.0-beta",
"@tinymce/tinymce-vue": "2.1.0",
@ -35,6 +36,7 @@
"vue-area-linkage": "^5.1.0",
"vue-cropper": "^0.5.4",
"vue-i18n": "^8.7.0",
"vue-jsonp": "^2.0.0",
"vue-loader": "^15.7.0",
"vue-ls": "^3.2.0",
"vue-photo-preview": "^1.1.3",


+ 2
- 1
admin-hanhai-vue/src/config/index.js View File

@ -7,4 +7,5 @@ window._CONFIG['domianURL'] = Vue.prototype.API_BASE_URL
window._CONFIG['casPrefixUrl'] = window._CONFIG.VUE_APP_CAS_BASE_URL?window._CONFIG.VUE_APP_CAS_BASE_URL:process.env.VUE_APP_CAS_BASE_URL
window._CONFIG['onlinePreviewDomainURL'] = window._CONFIG.VUE_APP_ONLINE_BASE_URL?window._CONFIG.VUE_APP_ONLINE_BASE_URL:process.env.VUE_APP_ONLINE_BASE_URL
window._CONFIG['staticDomainURL'] = Vue.prototype.API_BASE_URL + '/sys/common/static'
window._CONFIG['pdfDomainURL'] = Vue.prototype.API_BASE_URL+ '/sys/common/pdf/pdfPreviewIframe'
window._CONFIG['pdfDomainURL'] = Vue.prototype.API_BASE_URL+ '/sys/common/pdf/pdfPreviewIframe'
window._CONFIG['qqMapKey'] = process.env.VUE_APP_MAP_KEY

+ 2
- 0
admin-hanhai-vue/src/main.js View File

@ -49,6 +49,8 @@ import '@/components/jeecg/JVxeTable/install'
import '@/components/JVxeCells/install'
//表单验证
import { rules } from '@/utils/rules'
import { VueJsonp } from 'vue-jsonp'
Vue.use(VueJsonp)
Vue.prototype.rules = rules
Vue.config.productionTip = false
Vue.use(Storage, config.storageOptions)


+ 1
- 1
admin-hanhai-vue/src/views/xcx/ClockInConfList.vue View File

@ -22,7 +22,7 @@
<!-- <a-menu slot="overlay">-->
<!-- <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>-->
<!-- </a-menu>-->
<a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
<!-- <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>-->
</a-dropdown>
</div>


+ 6
- 6
admin-hanhai-vue/src/views/xcx/ClockInProjectItemList.vue View File

@ -1,12 +1,12 @@
<template>
<a-card :bordered="false">
<!-- 查询区域 -->
<div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24">
</a-row>
</a-form>
</div>
<!-- <div class="table-page-search-wrapper">-->
<!-- <a-form layout="inline" @keyup.enter.native="searchQuery">-->
<!-- <a-row :gutter="24">-->
<!-- </a-row>-->
<!-- </a-form>-->
<!-- </div>-->
<!-- 查询区域-END -->
<!-- 操作按钮区域 -->


+ 10
- 8
admin-hanhai-vue/src/views/xcx/ClockInProjectList.vue View File

@ -3,12 +3,12 @@
<a-col :md="leftColMd" :sm="24" style="margin-bottom: 20px">
<a-card :bordered="false">
<!-- 查询区域 -->
<div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24">
</a-row>
</a-form>
</div>
<!-- <div class="table-page-search-wrapper">-->
<!-- <a-form layout="inline" @keyup.enter.native="searchQuery">-->
<!-- <a-row :gutter="24">-->
<!-- </a-row>-->
<!-- </a-form>-->
<!-- </div>-->
<!-- 查询区域-END -->
<!-- 操作按钮区域 -->
@ -78,6 +78,9 @@
<a-dropdown>
<a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
<a-menu slot="overlay">
<!-- <a-menu-item>-->
<!-- <a @click="handleLocation(record)">定位</a>-->
<!-- </a-menu-item>-->
<a-menu-item>
<a @click="handleDetail(record)">详情</a>
</a-menu-item>
@ -180,7 +183,6 @@
</div>
<!-- 表单区域 -->
<clock-in-project-item-modal ref="modalForm2" @ok="modalFormOk2"></clock-in-project-item-modal>
<!-- <Select-User-Modal ref="selectUserModal" @selectFinished="selectOK"></Select-User-Modal>-->
</a-card>
</a-col>
@ -397,7 +399,7 @@
// let params = this.getQueryParams2()//
// params.orderId = this.currentRoleId
let params = {
orderId: this.currentRoleId
projectId: this.currentRoleId
}
this.loading2 = true
getAction(this.url.detailList, params).then((res) => {


+ 9
- 9
admin-hanhai-vue/src/views/xcx/ClockinAuthList.vue View File

@ -1,17 +1,17 @@
<template>
<a-card :bordered="false">
<!-- 查询区域 -->
<div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24">
</a-row>
</a-form>
</div>
<!-- <div class="table-page-search-wrapper">-->
<!-- <a-form layout="inline" @keyup.enter.native="searchQuery">-->
<!-- <a-row :gutter="24">-->
<!-- </a-row>-->
<!-- </a-form>-->
<!-- </div>-->
<!-- 查询区域-END -->
<!-- 操作按钮区域 -->
<div class="table-operator">
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
<!-- <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>-->
<!-- <a-button type="primary" icon="download" @click="handleExportXls('clockin_auth')">导出</a-button>-->
<!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">-->
<!-- <a-button type="primary" icon="import">导入</a-button>-->
@ -68,9 +68,9 @@
</template>
<span slot="action" slot-scope="text, record">
<a @click="handleEdit(record)">编辑</a>
<!-- <a @click="handleEdit(record)">编辑</a>-->
<a-divider type="vertical" />
<!-- <a-divider type="vertical" />-->
<a-dropdown>
<a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
<a-menu slot="overlay">


+ 18
- 18
admin-hanhai-vue/src/views/xcx/ClockinLogList.vue View File

@ -1,17 +1,17 @@
<template>
<a-card :bordered="false">
<!-- 查询区域 -->
<div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24">
</a-row>
</a-form>
</div>
<!-- <div class="table-page-search-wrapper">-->
<!-- <a-form layout="inline" @keyup.enter.native="searchQuery">-->
<!-- <a-row :gutter="24">-->
<!-- </a-row>-->
<!-- </a-form>-->
<!-- </div>-->
<!-- 查询区域-END -->
<!-- 操作按钮区域 -->
<div class="table-operator">
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
<!-- <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>-->
<!-- <a-button type="primary" icon="download" @click="handleExportXls('clockin_log')">导出</a-button>-->
<!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">-->
<!-- <a-button type="primary" icon="import">导入</a-button>-->
@ -19,10 +19,10 @@
<!-- 高级查询区域 -->
<!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>-->
<a-dropdown v-if="selectedRowKeys.length > 0">
<a-menu slot="overlay">
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
</a-menu>
<a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
<!-- <a-menu slot="overlay">-->
<!-- <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>-->
<!-- </a-menu>-->
<!-- <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>-->
</a-dropdown>
</div>
@ -68,20 +68,20 @@
</template>
<span slot="action" slot-scope="text, record">
<a @click="handleEdit(record)">编辑</a>
<!-- <a @click="handleEdit(record)">编辑</a>-->
<a-divider type="vertical" />
<!-- <a-divider type="vertical" />-->
<a-dropdown>
<a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
<a-menu slot="overlay">
<a-menu-item>
<a @click="handleDetail(record)">详情</a>
</a-menu-item>
<a-menu-item>
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
<a>删除</a>
</a-popconfirm>
</a-menu-item>
<!-- <a-menu-item>-->
<!-- <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">-->
<!-- <a>删除</a>-->
<!-- </a-popconfirm>-->
<!-- </a-menu-item>-->
</a-menu>
</a-dropdown>
</span>


+ 6
- 6
admin-hanhai-vue/src/views/xcx/ClockinTeamList.vue View File

@ -1,12 +1,12 @@
<template>
<a-card :bordered="false">
<!-- 查询区域 -->
<div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24">
</a-row>
</a-form>
</div>
<!-- <div class="table-page-search-wrapper">-->
<!-- <a-form layout="inline" @keyup.enter.native="searchQuery">-->
<!-- <a-row :gutter="24">-->
<!-- </a-row>-->
<!-- </a-form>-->
<!-- </div>-->
<!-- 查询区域-END -->
<!-- 操作按钮区域 -->


+ 23
- 2
admin-hanhai-vue/src/views/xcx/modules/ClockInProjectForm.vue View File

@ -21,6 +21,7 @@
<a-col :span="24">
<a-form-model-item label="经度" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="lon">
<a-input v-model="model.lon" placeholder="请输入经度" ></a-input>
</a-form-model-item>
</a-col>
<a-col :span="24">
@ -28,6 +29,15 @@
<a-input v-model="model.lat" placeholder="请输入纬度" ></a-input>
</a-form-model-item>
</a-col>
<a-col :span="24">
<a-form-model-item label="地图选择位置" :labelCol="labelCol" :wrapperCol="wrapperCol" >
<TencentMapPicker
:latitude="model.lat"
:longitude="model.lon"
@onLocationSelected="handleLocationSelected"
/>
</a-form-model-item>
</a-col>
<a-col :span="24">
<a-form-model-item label="打卡距离(单位米)" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="distance">
<a-input v-model="model.distance" placeholder="请输入打卡距离(单位米)" />
@ -35,7 +45,7 @@
</a-col>
<a-col :span="24">
<a-form-model-item label="团队编号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="teamId">
<j-dict-select-tag type="list" v-model="model.teamId" dictCode="clockin_team,name,id" placeholder="请选择团队编号" />
<j-dict-select-tag type="list" v-model="model.teamId" dictCode="clockin_team,name,id,del_flag=0" placeholder="请选择团队编号" />
</a-form-model-item>
</a-col>
<a-col :span="24">
@ -53,11 +63,14 @@
import { httpAction, getAction } from '@/api/manage'
import { validateDuplicateValue } from '@/utils/util'
import TencentMapPicker from './TencentMapPicker.vue';
export default {
name: 'ClockInProjectForm',
components: {
TencentMapPicker
},
props: {
//
disabled: {
@ -99,6 +112,11 @@
this.modelDefault = JSON.parse(JSON.stringify(this.model));
},
methods: {
handleLocationSelected({latitude, longitude}) {
console.log('event',latitude, longitude)
this.model.lat = latitude;
this.model.lon = longitude;
},
add () {
this.edit(this.modelDefault);
},
@ -106,6 +124,9 @@
this.model = Object.assign({}, record);
this.visible = true;
},
selLocation(location){
console.log(location)
},
submitForm () {
const that = this;
//


+ 235
- 0
admin-hanhai-vue/src/views/xcx/modules/TencentMapPicker.vue View File

@ -0,0 +1,235 @@
<template>
<div>
<div class="map-box">
<div class="map" ref="map" style="height: 400px" ></div>
<div class="map-search">
<div>
<a-input-search id="place" v-model="searchValue" placeholder="请输入详细地址" enter-button @search="searchAddress(searchValue)" />
</div>
<div>
<ul v-if="kwData.length">
<li v-for="(item, index) in kwData" :key="index" @click="selectKeyword(item)">{{ item.address }}</li>
</ul>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: 'TencentMapPicker',
props: {
latitude: {
type: Number|String,
default: 0
},
longitude: {
type: Number|String,
default: 0
}
},
watch: {
latitude(newVal, oldVal) {
console.info(`newVal`,newVal,`oldVal`,oldVal)
if (newVal) {
this.form.latitude = newVal
// this.$nextTick(()=>{
// this.map.setCenter(new window.TMap.LatLng(this.form.latitude, this.form.longitude));
// })
}
},
longitude(newVal, oldVal) {
console.info(`newVal`,newVal,`oldVal`,oldVal)
if (newVal) {
this.form.longitude = newVal
// this.$nextTick(()=>{
// this.map.setCenter(new window.TMap.LatLng(this.form.latitude, this.form.longitude));
// })
}
}
},
data() {
return {
searchValue: '', //
form: {
longitude: 116.397128,
latitude: 39.916527
},
kwData:[]
}
},
mounted() {
let that = this
if (that.script) return;
that.script = document.createElement('script');
that.script.type = 'text/javascript';
that.script.src = `//map.qq.com/api/gljs?v=1.exp&libraries=service&key=WPKBZ-OKICI-ZAIGE-U6TQ4-RPQIV-OXBJO`;
document.head.appendChild(that.script);
that.script.onload = () => {
window.initMap = that.initMap;
that.$nextTick(() => {
that.initMap();
});
};
},
methods: {
//
initMap() {
//
this.searchEr = new window.TMap.service.Search({ pageSize: 15 });
//
this.map = new window.TMap.Map(this.$refs.map, {
backgroundColor: '#f7f7f7',
mapStyleId: 'style1',
zoom: 14,
mapTypeControlOptions: {
mapTypeIds: [],
},
draggableCursor: 'crosshair',
center: new window.TMap.LatLng(this.form.latitude, this.form.longitude),
});
//
this.markerLayer = new window.TMap.MultiMarker({
map: this.map,
geometries: [],
});
//
this.geocoder = new window.TMap.service.Geocoder();
const setMarker = () => {
const latlng = new window.TMap.LatLng(this.form.latitude, this.form.longitude);
this.markerLayer.setGeometries([]);
let geometries = this.markerLayer.getGeometries();
geometries.push({
id: '-1',
position: latlng,
});
this.markerLayer.updateGeometries(geometries);
};
this.map.on('click', (e) => {
this.form.longitude = e.latLng.getLng(); //
this.form.latitude = e.latLng.getLat(); //
setMarker();
this.getAddressFormat();
});
if (this.form.longitude) {
this.map.setCenter(new window.TMap.LatLng(this.form.latitude, this.form.longitude));
setMarker();
}
},
selectKeyword(event){
this.map.setCenter(new window.TMap.LatLng(event.location.lat, event.location.lng));
this.kwData = []
},
//
searchAddress(keyword = '') {
if (!keyword) return;
this.$jsonp('https://apis.map.qq.com/ws/place/v1/suggestion', {
key: 'WPKBZ-OKICI-ZAIGE-U6TQ4-RPQIV-OXBJO',
output: 'jsonp',
keyword: keyword,
}).then((res) => {
console.log(`res`,res)
if (res.status === 0) {
this.kwData = res.data
} else {
this.kwData = []
}
}).catch((e) => {
console.log(e)
})
this.markerLayer.setGeometries([]);
this.searchEr.searchRectangle({
keyword,
bounds: this.map.getBounds(),
})
.then((result) => {
console.info(`result`,result)
const { location = {} } = result.data[0] || {};
const { lat = 39.916527, lng = 116.397128 } = location;
this.map.setCenter(new window.TMap.LatLng(lat, lng));
result.data.forEach((item, index) => {
let geometries = this.markerLayer.getGeometries();
//
geometries.push({
id: String(index),
position: item.location,
});
//
this.markerLayer.updateGeometries(geometries);
});
});
},
getAddressFormat() {
const { longitude, latitude } = this.form;
this.geocoder
.getAddress({
location: new window.TMap.LatLng(latitude, longitude),
})
.then((res) => {
const {
formatted_addresses: { recommend = '' },
} = res.result || {};
this.searchValue = recommend
this.form.hotelDetailAddress = recommend;
this.$emit('onLocationSelected', this.form);
console.log(this.form);
});
},
}
}
</script>
<style>
.map-box {
position: relative;
}
.map-search {
z-index: 1000;
display: flex;
flex-direction: column;
position: absolute;
top: 20px;
left: 20px;
width: 300px;
}
button {
border-radius: 0;
}
.icons {
display: flex;
align-items: center;
justify-content: space-between;
}
.time {
margin-top: 15px;
width: 100%;
font-size: 12px;
flex-wrap: wrap;
height: 70%;
}
ul{
background: white;
list-style-type: none;
padding-left: 0px;
height: 280px;
overflow: scroll;
}
li{
padding-left: 6px;
font-size: 10px;
text-align: left;
height: 40px;
line-height: 15px;
display: flex;
align-items: center;
}
li:hover{
cursor: pointer;
background: #f5f5f5;
}
</style>

+ 12766
- 0
admin-hanhai-vue/yarn.lock
File diff suppressed because it is too large
View File


+ 2
- 0
jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/clockInproject/entity/ClockInProject.java View File

@ -6,6 +6,7 @@ import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
@ -55,6 +56,7 @@ public class ClockInProject implements Serializable {
/**打卡距离(单位米)*/
private Integer distance;
/**是否删除*/
@TableLogic
@Excel(name = "是否删除", width = 15, dicCode = "is_delete")
@Dict(dicCode = "is_delete")
@ApiModelProperty(value = "是否删除")


+ 2
- 0
jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/clockInprojectitem/entity/ClockInProjectItem.java View File

@ -6,6 +6,7 @@ import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
@ -57,6 +58,7 @@ public class ClockInProjectItem implements Serializable {
@ApiModelProperty(value = "排序")
private java.lang.Integer sort;
/**是否删除*/
@TableLogic
@Excel(name = "是否删除", width = 15, dicCode = "is_delete")
@Dict(dicCode = "is_delete")
@ApiModelProperty(value = "是否删除")


+ 2
- 0
jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/clockinauth/entity/ClockinAuth.java View File

@ -6,6 +6,7 @@ import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
@ -53,6 +54,7 @@ public class ClockinAuth implements Serializable {
@ApiModelProperty(value = "状态 0待审核 1审核通过 2审核未通过")
private java.lang.Integer status;
/**是否删除*/
@TableLogic
@Excel(name = "是否删除", width = 15, dicCode = "is_delete")
@Dict(dicCode = "is_delete")
@ApiModelProperty(value = "是否删除")


+ 2
- 0
jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/clockinconf/entity/ClockInConf.java View File

@ -6,6 +6,7 @@ import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
@ -48,6 +49,7 @@ public class ClockInConf implements Serializable {
@ApiModelProperty(value = "说明")
private java.lang.String info;
/**是否删除*/
@TableLogic
@Excel(name = "是否删除", width = 15, dicCode = "is_delete")
@Dict(dicCode = "is_delete")
@ApiModelProperty(value = "是否删除")


+ 2
- 0
jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/clockinlog/entity/ClockinLog.java View File

@ -6,6 +6,7 @@ import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
@ -56,6 +57,7 @@ public class ClockinLog implements Serializable {
@ApiModelProperty(value = "纬度")
private java.lang.String lat;
/**是否删除*/
@TableLogic
@Excel(name = "是否删除", width = 15, dicCode = "is_delete")
@Dict(dicCode = "is_delete")
@ApiModelProperty(value = "是否删除")


+ 2
- 0
jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/clockinteam/entity/ClockinTeam.java View File

@ -6,6 +6,7 @@ import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
@ -44,6 +45,7 @@ public class ClockinTeam implements Serializable {
@ApiModelProperty(value = "排序")
private java.lang.Integer sort;
/**是否删除*/
@TableLogic
@Excel(name = "是否删除", width = 15, dicCode = "is_delete")
@Dict(dicCode = "is_delete")
@ApiModelProperty(value = "是否删除")


+ 2
- 0
jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/clockinteamlog/entity/ClockinTeamLog.java View File

@ -6,6 +6,7 @@ import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
@ -54,6 +55,7 @@ public class ClockinTeamLog implements Serializable {
@ApiModelProperty(value = "审核状态 0待审核 1审核通过 2审核未通过")
private java.lang.Integer status;
/**是否删除*/
@TableLogic
@Excel(name = "是否删除", width = 15, dicCode = "is_delete")
@Dict(dicCode = "is_delete")
@ApiModelProperty(value = "是否删除")


+ 6
- 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/xcx/clockin/service/impl/ClockinServiceImpl.java View File

@ -62,10 +62,16 @@ public class ClockinServiceImpl implements IClockinService {
.eq(ClockinTeamLog::getDelFlag, 0)
.eq(ClockinTeamLog::getUserId, hanHaiMember.getId())
.one();
if(clockinTeamLog == null){
throw new JeecgBootException("未绑定团队,请先绑定团队");
}
ClockInProject clockInProject = clockInProjectService.lambdaQuery()
.eq(ClockInProject::getDelFlag, 0)
.eq(ClockInProject::getTeamId, clockinTeamLog.getTeamId())
.one();
if(clockInProject == null){
throw new JeecgBootException("当前团队未配置项目,无需打卡");
}
Integer distance = clockInProjectService.getDistance(clockInReq.getLon(), clockInProject.getLat(), clockInProject.getId());
if(distance > clockInProject.getDistance()){
throw new JeecgBootException("不在有效打卡距离内");


Loading…
Cancel
Save