已添加2个文件
已删除1个文件
已修改31个文件
已重命名2个文件
| | |
| | | export function create (data) { |
| | | return request.post('/visitsAdmin/cloudService/business/member/create', data) |
| | | } |
| | | export function memberList (data) { |
| | | return request.post('/visitsAdmin/cloudService/business/member/list', data) |
| | | } |
| | | |
| | | // ä¿®æ¹ |
| | | export function updateById (data) { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <GlobalWindow |
| | | :title="title" |
| | | width="60%" |
| | | :visible.sync="visible" |
| | | :confirm-working="isWorking" |
| | | @confirm="confirm" |
| | | > |
| | | <el-form :model="form" ref="form" :rules="rules"> |
| | | <el-form-item label="å§å" prop="name"> |
| | | <el-input v-model="form.name" placeholder="请è¾å
¥å§å" v-trim/> |
| | | </el-form-item> |
| | | <el-form-item label="æå±ç»ç»" prop="companyId"> |
| | | <el-cascader |
| | | v-model="form.company" |
| | | :options="department" |
| | | @change="handleChangeCompany" |
| | | :show-all-levels="false" |
| | | clearable |
| | | :props="departprops" |
| | | ></el-cascader> |
| | | </el-form-item> |
| | | <el-form-item label="ææºå·" prop="phone"> |
| | | <el-input v-model="form.phone" placeholder="请è¾å
¥ææºå·" v-trim/> |
| | | </el-form-item> |
| | | <el-form-item label="身份è¯å·" prop="idcardNo" v-if="form.id ==null"> |
| | | <el-input v-model="form.idcardNo" placeholder="请è¾å
¥èº«ä»½è¯å·" v-trim/> |
| | | </el-form-item> |
| | | <el-form-item label="ä¿®æ¹èº«ä»½è¯å·" prop="idcardNoNew" v-if="form.id !=null"> |
| | | <el-input v-model="form.idcardNoNew" placeholder="å¯ä¿®æ¹èº«ä»½è¯å·" v-trim/> |
| | | <div v-if="form.id !=null"> |
| | | ï¼æ³¨ï¼å½å身份è¯å·ä¸º<span style="color: red">ã{{form.idcardDecode}}ã</span>ï¼å¦éä¿®æ¹ï¼è¯·å¨è¾å
¥æ å¡«åæ°ç身份è¯å·!ï¼ |
| | | </div> |
| | | </el-form-item> |
| | | <el-form-item label="å·¥å·" prop="code"> |
| | | <el-input v-model="form.code" placeholder="请è¾å
¥å工工å·" v-trim/> |
| | | </el-form-item> |
| | | <el-form-item label="人è¸ç
§ç" prop="faceImgFull"> |
| | | <UploadAvatarImage |
| | | :file="{ 'imgurlfull': form.faceImgFull, 'imgurl': form.faceImg }" |
| | | :uploadData="uploadData" |
| | | @uploadSuccess="uploadAvatarSuccess" |
| | | @uploadEnd="isUploading = false" |
| | | @uploadBegin="isUploading = true" |
| | | /> |
| | | </el-form-item> |
| | | </el-form> |
| | | </GlobalWindow> |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import UploadAvatarImage from '@/components/common/UploadAvatarImage' |
| | | import {checkMobile, validIdCardNo, validIdCardNoNew} from '@/utils/form' |
| | | export default { |
| | | name: 'OperaCompanyWindow', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow, UploadAvatarImage }, |
| | | data () { |
| | | return { |
| | | uploadData: { |
| | | folder: 'member' |
| | | }, |
| | | departprops: { |
| | | label: 'name', |
| | | value: 'id', |
| | | checkStrictly: true |
| | | }, |
| | | department: [], |
| | | // è¡¨åæ°æ® |
| | | form: { |
| | | id: null, |
| | | name: '', |
| | | type: '', |
| | | company: [], |
| | | code: '', |
| | | idcardNo: '', |
| | | idcardNoNew: '', |
| | | linkName: '', |
| | | idcardDecode: '', |
| | | companyId: null, |
| | | idcardType: 0, |
| | | phone: '', |
| | | faceImg: '', |
| | | faceImgFull: '' |
| | | }, |
| | | // éªè¯è§å |
| | | rules: { |
| | | name: [{ required: true, message: '请è¾å
¥åå·¥å§å', trigger: 'blur' }], |
| | | phone: [{ required: true, validator: checkMobile, trigger: 'blur' }], |
| | | companyId: [{ required: true, message: 'è¯·éæ©æå±ç»ç»' }], |
| | | idcardNo: [{ required: true, validator: validIdCardNo, message: '请è¾å
¥èº«ä»½è¯å·', trigger: 'blur' }], |
| | | idcardNoNew: [{ required: false, validator: validIdCardNoNew, trigger: 'blur' }] |
| | | } |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | api: '/business/member.js', |
| | | 'field.id': 'id' |
| | | }) |
| | | }, |
| | | methods: { |
| | | handleChangeCompany (value) { |
| | | if (this.form.company && this.form.company.length > 1) { |
| | | this.form.companyId = this.form.company[this.form.company.length - 1] |
| | | } |
| | | }, |
| | | /** |
| | | * æå¼çªå£ |
| | | * @title çªå£æ é¢ |
| | | * @target ç¼è¾ç对象 |
| | | */ |
| | | open (title, target, depart) { |
| | | this.title = title |
| | | this.department = depart |
| | | this.visible = true |
| | | // æ°å»º |
| | | if (target == null) { |
| | | this.$nextTick(() => { |
| | | this.$refs.form.resetFields() |
| | | this.form[this.configData['field.id']] = null |
| | | this.form.company = [] |
| | | }) |
| | | return |
| | | } |
| | | // ç¼è¾ |
| | | var that = this |
| | | this.$nextTick(() => { |
| | | for (const key in this.form) { |
| | | this.form[key] = target[key] |
| | | this.form.idcardNo = '' |
| | | } |
| | | this.form.company =[] |
| | | if (target.companyId && target.companyPath) { |
| | | var array = target.companyPath.split('/') |
| | | array.forEach(item => { |
| | | if (item && item != null && item != '') { |
| | | that.form.company.push(parseInt(item)) |
| | | } |
| | | }) |
| | | } |
| | | console.log(that.form.company) |
| | | }) |
| | | }, |
| | | // ä¸ä¼ å¾ç |
| | | uploadAvatarSuccess (file) { |
| | | this.form.faceImg = file.imgurl |
| | | this.form.faceImgFull = file.imgurlfull |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | // éªè¯ææºå·ç |
| | | export function checkMobile (rule, value, callback) { |
| | | if (value == null || value.trim() === '') { |
| | | callback() |
| | | callback(new Error('请è¾å
¥æ£ç¡®çææºå·')) |
| | | return |
| | | } |
| | | if (!/^1\d{10}$/.test(value)) { |
| | |
| | | callback() |
| | | } |
| | | |
| | | |
| | | export function numRule(rule, value, callback) { |
| | | export function numRule (rule, value, callback) { |
| | | // debugger |
| | | if (value == null || value < 0 || !value) { |
| | | callback(new Error()) |
| | |
| | | callback() |
| | | } |
| | | } |
| | | export function arrayRule(rule, value, callback) { |
| | | export function arrayRule (rule, value, callback) { |
| | | // debugger |
| | | if (value == null || value.length <= 0 || !value) { |
| | | callback(new Error()) |
| | |
| | | } |
| | | return |
| | | } |
| | | let re = /^[0-9A-HJ-NPQRTUWXY]{2}\d{6}[0-9A-HJ-NPQRTUWXY]{10}$/ |
| | | const re = /^[0-9A-HJ-NPQRTUWXY]{2}\d{6}[0-9A-HJ-NPQRTUWXY]{10}$/ |
| | | var result = re.test(value) |
| | | if(!result) { |
| | | if (!result) { |
| | | callback(new Error('请è¾å
¥æ£ç¡®ç社ä¼ä¿¡ç¨ä»£ç ')) |
| | | } else { |
| | | callback() |
| | | } |
| | | } |
| | | |
| | | |
| | | export function validIdCardNo (rule, value, callback) { |
| | | const pattern = /^[1-9]\d{5}(18|19|20)?\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])\d{3}(\d|[Xx])$/ |
| | | if (value == null || value.trim() ==='') { |
| | | callback(new Error('请è¾å
¥èº«ä»½è¯å·')) |
| | | } else if (!pattern.test(value)) { |
| | | callback(new Error('请è¾å
¥æ£ç¡®ç身份è¯å·')) |
| | | } else { |
| | | callback() |
| | | } |
| | | } |
| | | export function validIdCardNoNew (rule, value, callback) { |
| | | const pattern = /^[1-9]\d{5}(18|19|20)?\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])\d{3}(\d|[Xx])$/ |
| | | if (value == null || value.trim() ==='') { |
| | | callback() |
| | | } else if (!pattern.test(value)) { |
| | | callback(new Error('请è¾å
¥æ£ç¡®ç身份è¯å·')) |
| | | } else { |
| | | callback() |
| | | } |
| | | } |
| | |
| | | </template> |
| | | <!-- è¡¨æ ¼åå页 --> |
| | | <template v-slot:table-wrap> |
| | | <ul class="toolbar" v-permissions="['business:member:delete','business:member:sync']"> |
| | | <ul class="toolbar" v-permissions="['business:member:delete','business:member:create']"> |
| | | <!-- <li><el-button type="primary">é¨ç¦ææ</el-button></li>--> |
| | | <!-- |
| | | <li><el-button type="primary" v-permissions="['business:member:sync']" :loading="loading" @click="synchronous()">忥</el-button></li> |
| | | <li><el-button @click="deleteByIdInBatch" icon="el-icon-delete" v-permissions="['business:member:delete']">å é¤</el-button></li> |
| | | --> |
| | | <li><el-button type="primary" @click="$refs.OperaMemberWindow.open('æ°å»ºåå·¥',null,department)" icon="el-icon-plus" v-permissions="['business:member:create']">æ°å»ºåå·¥</el-button></li> |
| | | <li><el-button type="danger" @click="deleteByIdInBatch" icon="el-icon-delete" v-permissions="['business:member:delete']">æ¹éå é¤</el-button></li> |
| | | </ul> |
| | | <el-table |
| | | v-loading="isWorking.search" |
| | |
| | | <el-table-column type="selection" width="55"></el-table-column> |
| | | <el-table-column prop="name" label="å§å" min-width="100px"></el-table-column> |
| | | <el-table-column prop="phone" label="ææºå·" min-width="100px"></el-table-column> |
| | | <el-table-column prop="idcardDecode" label="身份è¯å·" min-width="100px"></el-table-column> |
| | | <el-table-column label="æ§å«" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.sex == 1">ç·</span> |
| | |
| | | <el-table-column fixed="right" label="人è¸ä¿¡æ¯" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <el-image |
| | | v-if="row.faceImg" |
| | | v-if="row.faceImgFull" |
| | | style="width: 60px; height: 60px" |
| | | :src="row.faceImg" |
| | | :preview-src-list="[row.faceImg]"> |
| | | :src="row.faceImgFull" |
| | | :preview-src-list="[row.faceImgFull]"> |
| | | </el-image> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="empower(row.id)" v-permissions="['business:empower:create']">éæ°ææ</el-button> |
| | | <el-button type="text" icon="el-icon-edit" @click="$refs.OperaMemberWindow.open('ç¼è¾å工信æ¯',row,department)" v-permissions="['business:empower:update']">ç¼è¾</el-button> |
| | | <el-button type="text" icon="el-icon-delete" @click="empower(row.id)" v-permissions="['business:empower:delete']">å é¤</el-button> |
| | | <el-button type="text" icon="el-icon-plus" @click="empower(row.id)" v-permissions="['business:empower:create']">éæ°ææ</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | </pagination> |
| | | <!-- æ¥ç人åå¼å¡è®°å½ --> |
| | | <cardOpeningRecord ref="cardOpeningRecord" @success="handlePageChange" /> |
| | | <OperaMemberWindow ref="OperaMemberWindow" @success="handlePageChange" /> |
| | | </template> |
| | | </TableLayout1> |
| | | </template> |
| | |
| | | import Pagination from '@/components/common/Pagination' |
| | | import cardOpeningRecord from '@/components/business/cardOpeningRecord' |
| | | import Tree from '@/components/common/Tree' |
| | | import OperaMemberWindow from '@/components/business/OperaMemberWindow' |
| | | import { fetchList } from '@/api/business/company' |
| | | import { memberSync, roleAuth } from '@/api/business/member' |
| | | export default { |
| | | name: 'internalMember', |
| | | extends: BaseTable, |
| | | components: { TableLayout1, Pagination, Tree, cardOpeningRecord }, |
| | | components: { TableLayout1, Pagination, Tree, cardOpeningRecord,OperaMemberWindow }, |
| | | data () { |
| | | return { |
| | | TreeList: [], |
| | |
| | | hasFace: '' |
| | | }, |
| | | loading:false, |
| | | companyTree: [] |
| | | companyTree: [], |
| | | department:[] |
| | | } |
| | | }, |
| | | created () { |
| | |
| | | this.companyTree = res |
| | | // this.searchForm.erpOrgId = res[0].erpId |
| | | this.search() |
| | | this.department = this.getDepartmentTree(res) |
| | | } |
| | | }) |
| | | }, |
| | | getDepartmentTree(tree) { |
| | | if(tree ==null){ |
| | | return [] |
| | | } |
| | | return tree.map(item => { |
| | | let newItem = {...item} |
| | | if(newItem){ |
| | | newItem.children=newItem.childList |
| | | } |
| | | if (item.children && item.children.length == 0) { |
| | | this.$delete( newItem, 'children' ) |
| | | } else { |
| | | newItem.children = this.getDepartmentTree(newItem.children) |
| | | } |
| | | return newItem |
| | | }); |
| | | }, |
| | | // åæ¥ä¿¡æ¯ |
| | | async synchronous () { |
| | | this.$dialog.actionConfirm('该æä½é触åå
¨åä¿¡æ¯æ´æ°åéæ°ä¸åï¼è¯·è°¨æ
æä½', 'æ¨ç¡®è®¤å
¨é忥å
é¨äººåä¿¡æ¯åï¼') |
| | |
| | | import OperaBookingsDetailWindow from '@/views/meeting/components/OperaBookingsDetailWindow' |
| | | import { findList } from '@/api/meeting/rooms' |
| | | import { getSystemDictData } from '@/api/system/dictData' |
| | | import { fetchTree } from '@/api/system/department' |
| | | import { fetchList } from '@/api/business/company' |
| | | import { cancelById, bookingsDetail } from '@/api/meeting/bookings' |
| | | export default { |
| | | name: 'Bookings', |
| | |
| | | isdeleted: '', |
| | | remark: '', |
| | | name: '', |
| | | roomId: '', |
| | | startTime: '', |
| | | endTime: '', |
| | | content: '' |
| | |
| | | 'field.id': 'id', |
| | | 'field.main': 'id' |
| | | }) |
| | | fetchTree() |
| | | fetchList(1) |
| | | .then(res => { |
| | | this.department = this.newTree(res) |
| | | }) |
| | |
| | | }, |
| | | methods: { |
| | | newTree(tree) { |
| | | if(tree ==null){ |
| | | return [] |
| | | } |
| | | return tree.map(item => { |
| | | let newItem = {...item} |
| | | if (item.children.length == 0) { |
| | | if(newItem){ |
| | | newItem.children=newItem.childList |
| | | } |
| | | if (item.children && item.children.length == 0) { |
| | | this.$delete( newItem, 'children' ) |
| | | } else { |
| | | newItem.children = this.newTree(newItem.children) |
| | |
| | | v-for="item in userList()" |
| | | :key="item.id" |
| | | :value="item.id" |
| | | |
| | | :label="item.department?`${item.department.name}-${item.realname}`:item.realname" |
| | | :label="item.companyId?`${item.companyName}-${item.companyName}`:item.realname" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | id: null, |
| | | sysList: [], |
| | | projectList: [], |
| | | createDate: null, |
| | | createDate: '', |
| | | editor: '', |
| | | editDate: null, |
| | | isdeleted: 0, |
| | |
| | | v-for="item in userList" |
| | | :key="item.id" |
| | | :value="item.id" |
| | | :label="item.department?`${item.department.name}-${item.realname}`:item.realname" |
| | | :label="item.companyId?`${item.companyName}-${item.companyName}`:item.realname" |
| | | ></el-option> |
| | | <!-- :label="`${item.department.name}-${item.realname}`" --> |
| | | <!-- <el-option :key="1" :value="1" label="ç¦ç¨" /> --> |
| | |
| | | queryWrapper.selectAll(Bookings.class); |
| | | queryWrapper.selectAs(Rooms::getName, Bookings::getRoomName); |
| | | queryWrapper.selectAs(SystemUser::getRealname, Bookings::getRealName); |
| | | queryWrapper.selectAs(SystemDepartment::getName, Bookings::getDepartmentName); |
| | | queryWrapper.selectAs(Company::getName, Bookings::getDepartmentName); |
| | | |
| | | queryWrapper.leftJoin(Rooms.class, Rooms::getId, Bookings::getRoomId); |
| | | queryWrapper.leftJoin(SystemUser.class, SystemUser::getId, Bookings::getCreator); |
| | | |
| | | queryWrapper.leftJoin(SystemDepartmentUser.class, SystemDepartmentUser::getUserId, Bookings::getCreator); |
| | | queryWrapper.leftJoin(SystemDepartment.class, SystemDepartment::getId, SystemDepartmentUser::getDepartmentId); |
| | | |
| | | queryWrapper.leftJoin(Company.class,Company::getId,SystemUser::getCompanyId); |
| | | queryWrapper.orderByDesc(Bookings::getCreateDate); |
| | | queryWrapper.eq(Bookings::getIsdeleted, MeetConstants.ZERO); |
| | | |
| | |
| | | queryWrapper.like(StringUtils.isNotBlank(pageWrap.getModel().getName()), Bookings::getName, pageWrap.getModel().getName()); |
| | | queryWrapper.eq(pageWrap.getModel().getStatus() != null, Bookings::getStatus, pageWrap.getModel().getStatus()); |
| | | queryWrapper.like(StringUtils.isNotBlank(pageWrap.getModel().getRealName()), SystemUser::getRealname, pageWrap.getModel().getRealName()); |
| | | queryWrapper.eq(pageWrap.getModel().getDepartmentId() != null, SystemDepartment::getId, pageWrap.getModel().getDepartmentId()); |
| | | queryWrapper.eq(pageWrap.getModel().getDepartmentId() != null, SystemUser::getId, pageWrap.getModel().getDepartmentId()); |
| | | |
| | | if (pageWrap.getModel().getStartTime() != null) { |
| | | queryWrapper.ge(Bookings::getStartTime, pageWrap.getModel().getStartTime()); |
| | |
| | | queryWrapper.selectAll(Bookings.class); |
| | | queryWrapper.selectAs(Rooms::getName, Bookings::getRoomName); |
| | | queryWrapper.selectAs(SystemUser::getRealname, Bookings::getRealName); |
| | | queryWrapper.selectAs(SystemDepartment::getName, Bookings::getDepartmentName); |
| | | queryWrapper.selectAs(Company::getName, Bookings::getDepartmentName); |
| | | queryWrapper.leftJoin(Rooms.class, Rooms::getId, Bookings::getRoomId); |
| | | queryWrapper.leftJoin(SystemUser.class, SystemUser::getId, Bookings::getCreator); |
| | | queryWrapper.leftJoin(SystemDepartmentUser.class, SystemDepartmentUser::getUserId, Bookings::getCreator); |
| | | queryWrapper.leftJoin(SystemDepartment.class, SystemDepartment::getId, SystemDepartmentUser::getDepartmentId); |
| | | queryWrapper.leftJoin(Company.class,Company::getId,SystemUser::getCompanyId); |
| | | queryWrapper.eq(Bookings::getIsdeleted, MeetConstants.ZERO); |
| | | queryWrapper.eq(queryParam.getId() != null, Bookings::getId, queryParam.getId()); |
| | | queryWrapper.eq(queryParam.getRoomId() != null, Bookings::getRoomId, queryParam.getRoomId()); |
| | |
| | | |
| | | lambdaWrapper.selectAll(Bookings.class) |
| | | .selectAs(SystemUser::getRealname, Bookings::getRealName) |
| | | .selectAs(SystemDepartment::getName, Bookings::getDepartmentName) |
| | | .selectAs(Company::getName, Bookings::getDepartmentName) |
| | | .selectAs(Rooms::getName, Bookings::getRoomName) |
| | | .select("CASE DAYOFWEEK(t.START_TIME)\n" + |
| | | "\tWHEN 1 THEN \t\"æææ¥\" \tWHEN 2 THEN \"ææä¸\"\n" + |
| | |
| | | // .leftJoin(RoomTime.class, RoomTime::getId, BookingTime::getTimeId) |
| | | .leftJoin(SystemUser.class, SystemUser::getId, Bookings::getCreator) |
| | | .leftJoin(Rooms.class, Rooms::getId, Bookings::getRoomId) |
| | | .leftJoin(SystemDepartmentUser.class, SystemDepartmentUser::getUserId, Bookings::getCreator) |
| | | .leftJoin(SystemDepartment.class, SystemDepartment::getId, SystemDepartmentUser::getDepartmentId) |
| | | .leftJoin(Company.class,Company::getId,SystemUser::getCompanyId) |
| | | .eq(Objects.nonNull(roomId), Bookings::getRoomId, roomId) |
| | | .eq(Bookings::getIsdeleted, MeetConstants.ZERO) |
| | | .eq(Bookings::getStatus, MeetConstants.ZERO) |
| | |
| | | ${AnsiColor.BLUE} |
| | | ================================================================================ |
| | | |
| | | 欢è¿ä½¿ç¨ä¼å¨æ¡æ¶ï¼ååºç¨çï¼ |
| | | 欢è¿ä½¿ç¨è±ç±³æ¡æ¶ï¼ååºç¨çï¼ |
| | | Version :: 1.0 |
| | | |
| | | ââââââââ ââ ââ ââ |
| | | ââââââââ âââ âââ ââââ |
| | | âââ âââ âââ ââââââ |
| | | ââââââââ ââââ ââ ââ ââââ |
| | | âââââââ ââââ ââ ââââââââââ |
| | | âââ ââââââ âââââââââââ |
| | | âââââââââ ââââ âââ âââ |
| | | ââââââââ ââ ââ ââ |
| | | ââââââââ ââ ââ |
| | | ââââââââ ââ ââââââ ââ ââ |
| | | âââ ââââ âââ ââââ ââ ââââ |
| | | âââ âââ âââ ââââââ ââââ |
| | | âââ âââ âââ ââââ ââââ |
| | | âââ ââ âââ âââ âââ |
| | | ââââââââââ âââ âââ âââ |
| | | ââââââââ ââ ââ ââ |
| | | |
| | | å¯å¨ç«¯å£: ${server.port} å¯å¨ç¯å¢: ${project.env} æ¥å¿ç级: ${logback.level} å¯ç¨Swagger: ${swagger.enabled} |
| | | |
ÎļþÃû´Ó server/visits/dmvisit_service/src/main/java/com/doumee/dao/business/CompanyMapper.java ÐÞ¸Ä |
| | |
| | | package com.doumee.dao.business; |
| | | package com.doumee.dao.business.dao; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.doumee.dao.business.model.Company; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business.dao.join; |
| | | |
| | | import com.doumee.dao.business.model.Company; |
| | | import com.github.yulichang.base.mapper.MPJJoinMapper; |
| | | |
| | | /** |
| | | * @author T14 |
| | | */ |
| | | //@Repository |
| | | public interface CompanyJoinMapper extends MPJJoinMapper<Company> { |
| | | } |
ÎļþÃû´Ó server/visits/dmvisit_service/src/main/java/com/doumee/dao/business/model/Company.java ÐÞ¸Ä |
| | |
| | | package com.doumee.dao.business.model; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.doumee.core.annotation.excel.ExcelColumn; |
| | | import com.doumee.core.model.LoginUserModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import lombok.Data; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | |
| | | @ApiModelProperty(value = "海康é¨é¨çº§å«è·¯å¾", example = "1") |
| | | @ExcelColumn(name="海康é¨é¨çº§å«è·¯å¾") |
| | | private String hkCompanyPath; |
| | | @ApiModelProperty(value = "èªå»ºé¨é¨ç¼ç 级å«è·¯å¾", example = "1") |
| | | @ExcelColumn(name="èªå»ºé¨é¨ç¼ç 级å«è·¯å¾") |
| | | private String companyPath; |
| | | @ApiModelProperty(value = "èªå»ºé¨é¨çº§å«è·¯å¾", example = "1") |
| | | @ExcelColumn(name="èªå»ºé¨é¨çº§å«è·¯å¾") |
| | | private String companyPath; |
| | | private String companyNamePath; |
| | | @ApiModelProperty(value = "ç¶çº§é¨é¨çº§å«è·¯å¾", example = "1") |
| | | @TableField(exist = false) |
| | | private String parentCompanyPath; |
| | |
| | | |
| | | @ApiModelProperty(value = "0 å¯ç¨ 1 ç¦ç¨") |
| | | private Integer status; |
| | | @ApiModelProperty(value = "ä¼ä¸ç¼ç ï¼å
³ècompanyï¼") |
| | | private Integer companyId; |
| | | @ApiModelProperty(value = "0 å¯ç¨ 1 ç¦ç¨") |
| | | @TableField(exist = false) |
| | | private String companyName; |
| | | |
| | | } |
| | |
| | | @Override |
| | | public PageData<SystemUserListVO> findPage(PageWrap<QuerySystemUserDTO> pageWrap) { |
| | | // æ ¹é¨é¨æ¡ä»¶å¤çï¼éæ¥è¯¢æ ¹é¨é¨ä¸ææé¨é¨çç¨æ·ï¼ |
| | | if (pageWrap.getModel().getRootDeptId() != null) { |
| | | /* if (pageWrap.getModel().getRootDeptId() != null) { |
| | | pageWrap.getModel().setDepartmentIds(getDeptIds(pageWrap.getModel().getRootDeptId())); |
| | | } else { |
| | | List<SystemDepartment> list = systemDepartmentService.findList(new QueryWrapper<>()); |
| | | List<Integer> collect = list.stream().map(s -> s.getId()).collect(Collectors.toList()); |
| | | pageWrap.getModel().setDepartmentIds(collect); |
| | | } |
| | | }*/ |
| | | // æ§è¡æ¥è¯¢ |
| | | PageHelper.startPage(pageWrap.getPage(), pageWrap.getCapacity()); |
| | | List<SystemUserListVO> userList = systemUserMapper.selectManageList(pageWrap.getModel(), pageWrap.getOrderByClause()); |
| | |
| | | <!-- æ¥è¯¢ç¨æ·å表 --> |
| | | <resultMap id="SystemUserListVO" type="com.doumee.dao.system.vo.SystemUserListVO" autoMapping="true"> |
| | | <id column="ID" property="id"/> |
| | | <association property="department" javaType="com.doumee.dao.system.model.SystemDepartment"> |
| | | <!-- <association property="department" javaType="com.doumee.dao.system.model.SystemDepartment"> |
| | | <result column="DEPARTMENT_ID" property="id"/> |
| | | <result column="DEPARTMENT_NAME" property="name"/> |
| | | </association> |
| | | </association>--> |
| | | <association property="createUserInfo" javaType="com.doumee.dao.system.model.SystemUser"> |
| | | <result column="CREATE_USER_ID" property="id"/> |
| | | <result column="CREATE_USER_NAME" property="username"/> |
| | |
| | | usr.ID, usr.BIRTHDAY, usr.EMAIL, usr.EMP_NO, usr.MOBILE, usr.AVATAR, usr.USERNAME, usr.REALNAME, usr.SEX, usr.FIXED, usr.CREATE_TIME, usr.UPDATE_TIME, |
| | | sd.ID AS DEPARTMENT_ID, sd.`NAME` AS DEPARTMENT_NAME,usr.wechat_name,usr.status,usr.OPENID,usr.type, |
| | | create_user.ID CREATE_USER_ID, create_user.`USERNAME` CREATE_USER_NAME, create_user.`REALNAME` CREATE_REAL_NAME, |
| | | update_user.ID UPDETE_USER_ID, update_user.`USERNAME` UPDATE_USER_NAME, create_user.`REALNAME` UPDATE_REAL_NAME |
| | | update_user.ID UPDETE_USER_ID, update_user.`USERNAME` UPDATE_USER_NAME, create_user.`REALNAME` UPDATE_REAL_NAME, |
| | | sd.name as companyName |
| | | FROM `SYSTEM_USER` usr |
| | | LEFT JOIN `SYSTEM_USER` create_user ON create_user.ID = usr.CREATE_USER |
| | | LEFT JOIN `SYSTEM_USER` update_user ON update_user.ID = usr.UPDATE_USER |
| | | -- LEFT JOIN `SYSTEM_POSITION_USER` spu ON spu.USER_ID = usr.ID AND spu.DELETED = 0 |
| | | -- LEFT JOIN `SYSTEM_POSITION` sp ON sp.ID = spu.POSITION_ID AND sp.DELETED = 0 |
| | | LEFT JOIN `SYSTEM_DEPARTMENT_USER` sdu ON sdu.USER_ID = usr.ID AND sdu.DELETED = 0 |
| | | LEFT JOIN `SYSTEM_DEPARTMENT` sd ON sd.ID = sdu.DEPARTMENT_ID AND sd.DELETED = 0 |
| | | LEFT JOIN `company` sd ON sd.ID = usr.COMPANY_ID AND sd.ISDELETED = 0 |
| | | <if test="dto.roleId != null"> |
| | | RIGHT JOIN system_user_role sur on sur.USER_ID = usr.ID and sur.ROLE_ID = #{dto.roleId} |
| | | </if> |
| | |
| | | <!-- AND spu.POSITION_ID = #{dto.positionId}--> |
| | | <!-- </if>--> |
| | | <if test="dto.strictDeptId != null"> |
| | | AND sdu.DEPARTMENT_ID = #{dto.strictDeptId} |
| | | AND sd.ID = #{dto.strictDeptId} |
| | | </if> |
| | | <if test="dto.departmentIds != null and dto.departmentIds.size > 0"> |
| | | AND sdu.DEPARTMENT_ID IN |
| | | AND sd.ID IN |
| | | <foreach collection="dto.departmentIds" open="(" close=")" separator="," item="id"> |
| | | #{id} |
| | | </foreach> |
| | |
| | | @ApiOperation("å建å³å¡å
¬å¸") |
| | | @PostMapping("/createLaborServices") |
| | | @CloudRequiredPermission("business:company:create") |
| | | public ApiResponse<Integer> createLaborServices(@RequestBody Company company,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | public ApiResponse<Integer> createLaborServices(@RequestBody Company company, @RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | company.setLoginUserInfo(this.getLoginUser(token)); |
| | | return ApiResponse.success(companyService.createLaborServices(company)); |
| | | } |
| | |
| | | @ApiOperation("æ°å»º") |
| | | @PostMapping("/create") |
| | | @CloudRequiredPermission("business:member:create") |
| | | public ApiResponse create(@RequestBody Member member) { |
| | | return ApiResponse.success(memberService.create(member)); |
| | | public ApiResponse create(@RequestBody Member member,@RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | if(Constants.formatIntegerNum(dataSyncConfig.getOrgUserDataOrigin()) == DataSyncConfig.origin.self){ |
| | | member.setLoginUserInfo(this.getLoginUser(token)); |
| | | Member insert = memberService.create(member); |
| | | //å建人è¸ä¿¡æ¯ |
| | | return ApiResponse.success("æä½æåï¼"); |
| | | }else{ |
| | | return ApiResponse.failed("对ä¸èµ·ï¼æ æéæä½ï¼"); |
| | | } |
| | | } |
| | | |
| | | @PreventRepeat |
| | |
| | | @ApiOperation("æ ¹æ®ID ç¦å¯ç¨ ") |
| | | @PostMapping("/updateStatusById") |
| | | @CloudRequiredPermission("business:member:update") |
| | | public ApiResponse updateStatusById(@RequestBody Member member){ |
| | | public ApiResponse updateStatusById(@RequestBody Member member,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | memberService.updateStatusById(member); |
| | | return ApiResponse.success(null); |
| | | } |
| | |
| | | @ApiOperation("人åç§»é¤/è§£å»") |
| | | @PostMapping("/updateRemoveStatusById") |
| | | @CloudRequiredPermission("business:member:update") |
| | | public ApiResponse updateRemoveStatusById(@RequestBody List<Member> list){ |
| | | public ApiResponse updateRemoveStatusById(@RequestBody List<Member> list,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | if(list.size()>0){ |
| | | memberService.updateRemoveStatusById(list); |
| | | return ApiResponse.success(null); |
| | |
| | | @ApiOperation("人åæé»/å»ç»") |
| | | @PostMapping("/updateVisitsStatusById") |
| | | @CloudRequiredPermission("business:member:update") |
| | | public ApiResponse updateVisitsStatusById(@RequestBody Member member){ |
| | | public ApiResponse updateVisitsStatusById(@RequestBody Member member,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | member.setLoginUserInfo(this.getLoginUser(token)); |
| | | memberService.updateVisitsStatusById(member); |
| | | return ApiResponse.success(null); |
| | | } |
| | |
| | | @ApiOperation("æ¯å¦å¯æè®¿ç¶æä¿®æ¹") |
| | | @PostMapping("/updateCanVisitById") |
| | | @CloudRequiredPermission("business:member:update") |
| | | public ApiResponse updateCanVisitById(@RequestBody Member member){ |
| | | public ApiResponse updateCanVisitById(@RequestBody Member member,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | memberService.updateCanVisitById(member); |
| | | return ApiResponse.success(null); |
| | | } |
| | |
| | | public ApiResponse<PageData<Member>> findPage (@RequestBody PageWrap<Member> pageWrap,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | return ApiResponse.success(memberService.findPage(pageWrap)); |
| | | } |
| | | @ApiOperation("æ¥è¯¢å
¨é¨") |
| | | @PostMapping("/list") |
| | | @CloudRequiredPermission("business:member:query") |
| | | public ApiResponse<List<Member>> findPage (@RequestBody Member model,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | return ApiResponse.success(memberService.findList(model)); |
| | | } |
| | | |
| | | @ApiOperation("å页å³å¡ç¨æ·ä¿¡æ¯æ¥è¯¢") |
| | | @PostMapping("/findLaborMemberInfoPage") |
| | | @CloudRequiredPermission("business:member:query") |
| | | public ApiResponse<PageData<MemberInfoDTO>> findLaborMemberInfoPage(@RequestBody PageWrap<MemberInfoDTO> pageWrap){ |
| | | public ApiResponse<PageData<MemberInfoDTO>> findLaborMemberInfoPage(@RequestBody PageWrap<MemberInfoDTO> pageWrap,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | return ApiResponse.success(memberService.findLaborMemberInfoPage(pageWrap)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("å页æ¥è¯¢å
é¨äººåä¿¡æ¯") |
| | | @PostMapping("/findMemberInfoPage") |
| | | @CloudRequiredPermission("business:member:query") |
| | | public ApiResponse<PageData<MemberInfoDTO>> findMemberInfoPage(@RequestBody PageWrap<MemberQuery> pageWrap){ |
| | | public ApiResponse<PageData<MemberInfoDTO>> findMemberInfoPage(@RequestBody PageWrap<MemberQuery> pageWrap,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | if(pageWrap.getModel().getType().equals(Constants.memberType.visitor)){ |
| | | return ApiResponse.success(memberService.findVisitPage(pageWrap)); |
| | | }else if(pageWrap.getModel().getType().equals(Constants.memberType.internal)){ |
| | |
| | | * @return |
| | | */ |
| | | public static String getRootOrg() { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.rootOrg); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, "", null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog("",result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.rootOrg,null); |
| | | } |
| | | |
| | | |
| | |
| | | * @return |
| | | */ |
| | | public static String editOrg(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.editOrg); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.editOrg,body); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return |
| | | */ |
| | | public static String addBatchOrg(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.addBatchOrg); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.addBatchOrg,body); |
| | | } |
| | | /** |
| | | * å é¤ç»ç»ä¿¡æ¯ |
| | |
| | | * @return |
| | | */ |
| | | public static String delOrg(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.delBatchOrg); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.delBatchOrg,body); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return |
| | | */ |
| | | public static String addUser(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.addUser); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.addUser,body); |
| | | } |
| | | |
| | | |
| | |
| | | * @return |
| | | */ |
| | | public static String addBatchUser(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.addBatchUser); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.addBatchUser,body); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return |
| | | */ |
| | | public static String delBatchUser(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.delBatchUser); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.delBatchUser,body); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return |
| | | */ |
| | | public static String editUser(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.editUser); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.editUser,body); |
| | | } |
| | | /** |
| | | * æ·»å 人è¸ä¿¡æ¯ |
| | |
| | | * @return |
| | | */ |
| | | public static String addFace(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.addFace); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.addFace,body); |
| | | } |
| | | /** |
| | | * ç¼è¾äººè¸ä¿¡æ¯ |
| | |
| | | * @return |
| | | */ |
| | | public static String editFace(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.editFace); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.editFace,body); |
| | | } |
| | | /** |
| | | * å é¤äººè¸ä¿¡æ¯ |
| | |
| | | * @return |
| | | */ |
| | | public static String delFace(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.delFace); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.delFace,body); |
| | | } |
| | | /** |
| | | * å
¨éè·å车åºä¿¡æ¯ |
| | |
| | | * @return |
| | | */ |
| | | public static String parkList(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.getParkList); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.getParkList,body); |
| | | } |
| | | /** |
| | | * æ ¹æ®è½¦åºç¼ç æ¥è¯¢åºå
¥å£å表 |
| | |
| | | * @return |
| | | */ |
| | | public static String entranceList(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.getEntranceList); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.getEntranceList,body); |
| | | } |
| | | /** |
| | | * 车è¾é¢çº¦ |
| | |
| | | * @return |
| | | */ |
| | | public static String parkAddition(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.parkAddition); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.parkAddition,body); |
| | | } |
| | | /** |
| | | * 车è¾åæ¶é¢çº¦ |
| | |
| | | * @return |
| | | */ |
| | | public static String parkDeletion(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.parkDeletion); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.parkDeletion,body); |
| | | } |
| | | /** |
| | | * åºå®è½¦è¾å
å¼ï¼å
æï¼ |
| | |
| | | * @return |
| | | */ |
| | | public static String carChargeAddtion(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.carChargeAddtion); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.carChargeAddtion,body); |
| | | } |
| | | /** |
| | | * åºå®è½¦è¾åæ¶å
æ |
| | |
| | | * @return |
| | | */ |
| | | public static String carChargeDeletion(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.carChargeDeletion); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.carChargeDeletion,body); |
| | | } |
| | | |
| | | |
| | |
| | | * @return |
| | | */ |
| | | public static InputStream getVisitPicture(String body) throws Exception{ |
| | | |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.visitPicture); |
| | | //åæ°æ ¹æ®æ¥å£å®é
æ
åµè®¾ç½® |
| | | HttpResponse resp = ArtemisHttpUtil.doPostStringImgArtemis( path, body, null, null,"application/json",null); |
| | |
| | | * @return |
| | | */ |
| | | public static String doorSearch(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.doorSearch); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.doorSearch,body); |
| | | } |
| | | /** |
| | | * è·åé¨ç¦è®¾å¤å表 |
| | |
| | | * @return |
| | | */ |
| | | public static String acsDeviceList(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.acsDeviceList); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.acsDeviceList,body); |
| | | } |
| | | /** |
| | | * å¢éè·åé¨ç¦è®¾å¤å表 |
| | |
| | | * @return |
| | | */ |
| | | public static String acsDeviceTimeRangeList(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.acsDeviceList); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.acsDeviceList,body); |
| | | } |
| | | /** |
| | | * 访客é¢çº¦ |
| | |
| | | * @return |
| | | */ |
| | | public static String visitAppiontment(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.visitAppiontment); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.visitAppiontment,body); |
| | | } |
| | | /** |
| | | * 访客å
ç»è®°é¢çº¦ |
| | |
| | | * @return |
| | | */ |
| | | public static String visitAppiontmentMDJ(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.visitAppiontmentMDJ); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.visitAppiontmentMDJ,body); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return |
| | | */ |
| | | public static String visitCancel(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.visitCancel); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.visitCancel,body); |
| | | } |
| | | |
| | | public static String startDoPostStringArtemis(String pathStr,String body){ |
| | | Map<String, String> path = getPath(pathStr); |
| | | Map<String, String> header = new HashMap<>(); |
| | | header.put("tagId", UUID.randomUUID().toString().replace("-", "")); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", header);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return result; |
| | | |
| | | } |
| | | /** |
| | | * ç¾ç¦»è®¿å®¢é¢çº¦ |
| | |
| | | * @return |
| | | */ |
| | | public static String visitOut(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.visitOut); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.visitOut,body); |
| | | } |
| | | /** |
| | | * 访客æéç» |
| | |
| | | * @return |
| | | */ |
| | | public static String privilegeGroup(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.privilegeGroup); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.privilegeGroup,body); |
| | | } |
| | | /** |
| | | * äºä»¶è®¢é
|
| | |
| | | * @return |
| | | */ |
| | | public static String eventSub(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.eventSub); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.eventSub,body); |
| | | } |
| | | /** |
| | | * åæ¶äºä»¶è®¢é
|
| | |
| | | * @return |
| | | */ |
| | | public static String cancelEventSub(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.cancelEventSub); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.cancelEventSub,body); |
| | | } |
| | | /** |
| | | * å建ä¸å¡éæéä¸è½½ä»»å¡ |
| | |
| | | * @return |
| | | */ |
| | | public static String taskAddition(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.taskAddition); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.taskAddition,body); |
| | | } |
| | | /** |
| | | * æ¥è¯¢ä¸å¡éæéæ¥è¯¢è®¾å¤ééç人åæéä¸è½½è¯¦æ
æ»æ°v2 |
| | |
| | | * @return |
| | | */ |
| | | public static String taskProgress(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.taskProgress); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.taskProgress,body); |
| | | } |
| | | /** |
| | | * æ¥è¯¢ä¸å¡éæéä¸è½½ä»»å¡è¿åº¦ |
| | |
| | | * @return |
| | | */ |
| | | public static String taskProgressNum(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.taskProgressNum); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.taskProgressNum,body); |
| | | } |
| | | /** |
| | | * ä¸å¡éæéä¸è½½ä»»å¡ä¸æ·»å æ°æ®_æ ¹æ®äººåä¸è®¾å¤ééæå®ä¸è½½ |
| | |
| | | * @return |
| | | */ |
| | | public static String taskDataAddition(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.taskDataAddition); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.taskDataAddition,body); |
| | | } |
| | | /** |
| | | * ä¸å¡éå¼å§ä¸è½½ä»»å¡ |
| | |
| | | * @return |
| | | */ |
| | | public static String taskStart(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.taskStart); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.taskStart,body); |
| | | } |
| | | /** |
| | | * æ¥è¯¢æéæ¡ç®å表 |
| | |
| | | * @return |
| | | */ |
| | | public static String authItemList(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.authItemList); |
| | | Map<String, String> header = new HashMap<>(); |
| | | header.put("tagId", UUID.randomUUID().toString().replace("-", "")); |
| | | // header.put("tagId", "frs"); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", header);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.authItemList,body); |
| | | } |
| | | /** |
| | | * æ¹éå¼å¡ |
| | |
| | | * @return |
| | | */ |
| | | public static String cardBingding(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.cardBingding); |
| | | Map<String, String> header = new HashMap<>(); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", header);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.cardBingding,body); |
| | | } |
| | | /** |
| | | * éå¡ |
| | |
| | | * @return |
| | | */ |
| | | public static String cardDeletion(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.cardDeletion); |
| | | Map<String, String> header = new HashMap<>(); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", header);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.cardDeletion,body); |
| | | } |
| | | /** |
| | | * æ¹éæå¤± |
| | |
| | | * @return |
| | | */ |
| | | public static String cardLoss(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.cardLoss); |
| | | Map<String, String> header = new HashMap<>(); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", header);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.cardLoss,body); |
| | | } |
| | | /** |
| | | * æ¹éè§£æ |
| | |
| | | * @return |
| | | */ |
| | | public static String cardUnloss(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.cardUnloss); |
| | | Map<String, String> header = new HashMap<>(); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", header);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.cardUnloss,body); |
| | | } |
| | | /** |
| | | * æ¥è¯¢è®¾å¤ééç人åæéä¸è½½è¯¦æ
|
| | |
| | | * @return |
| | | */ |
| | | public static String taskPersoDetail(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.taskPersoDetail); |
| | | Map<String, String> header = new HashMap<>(); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", header);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.taskPersoDetail,body); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return |
| | | */ |
| | | public static String visitingRecords(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.visitingRecords); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.visitingRecords,body); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return |
| | | */ |
| | | public static String appointmentRecords(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.appointmentRecords); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.appointmentRecords,body); |
| | | } |
| | | /** |
| | | * è·åå
¨éç»ç»å表 |
| | |
| | | * @return |
| | | */ |
| | | public static String orgAllList(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.orgAllList); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.orgAllList,body); |
| | | } |
| | | /** |
| | | * è·åå
¨éç¨æ·å表 |
| | |
| | | * @return |
| | | */ |
| | | public static String userAllList(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.userAllList); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.userAllList,body); |
| | | } |
| | | /** |
| | | * è·åå
¨éç¨æ·å表2(æ ¹æ®æ¡ä»¶å页æ¥è¯¢ï¼ |
| | |
| | | * @return |
| | | */ |
| | | public static String personList(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.personList); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.personList,body); |
| | | } |
| | | /** |
| | | * å¢éè·åç»ç»å表 |
| | |
| | | * @return |
| | | */ |
| | | public static String orgTimeRangeList(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.orgTimeRangeList); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.orgTimeRangeList,body); |
| | | } |
| | | /** |
| | | * å¢éè·åç¨æ·å表 |
| | |
| | | * @return |
| | | */ |
| | | public static String userTimeRangeList(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.userTimeRangeList); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.userTimeRangeList,body); |
| | | } |
| | | /** |
| | | * å¢éè·å车è¾å表 |
| | |
| | | * @return |
| | | */ |
| | | public static String vehicleTimeRangeList(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.vehicleTimeRangeList); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.vehicleTimeRangeList,body); |
| | | } |
| | | /** |
| | | * å
¨éè·å车è¾å表 |
| | |
| | | * @return |
| | | */ |
| | | public static String vehicleList(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.vehicleList); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.vehicleList,body); |
| | | } |
| | | /** |
| | | * å车åºè¿è½¦è®°å½æ¥è¯¢ |
| | |
| | | * @return |
| | | */ |
| | | public static String parkCrossRecords(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.parkCrossRecords); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.parkCrossRecords,body); |
| | | } |
| | | /** |
| | | * å车åºè¿è½¦è®°å½æ¥è¯¢ |
| | | * 人è¸è¯å |
| | | * @param body |
| | | * @return |
| | | */ |
| | | public static String facePictureCheck(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.facePictureCheck); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.facePictureCheck,body); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return |
| | | */ |
| | | public static String acsDeviceStatus(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.acsDeviceStatus); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.acsDeviceStatus,body); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return |
| | | */ |
| | | public static String tempCarInRecords(String body) { |
| | | Map<String, String> path = getPath(HKConstants.InterfacePath.tempCarInRecords); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请æ±application/jsonç±»ååæ° |
| | | saveInterfaceLog(body,result,path); |
| | | return result; |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.tempCarInRecords,body); |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "å¥åº·ç ") |
| | | private String imgurl; |
| | | @ApiModelProperty(value = "人è¸ç
§ç宿´") |
| | | private String faceImgFull; |
| | | |
| | | @ApiModelProperty(value = "å¥åº·ç 宿´") |
| | | private String imgurlFull; |
| | | |
| | | @ApiModelProperty(value = "ç±»å 0å³å¡è®¿å®¢ 1æ®é访客 2å
é¨äººå") |
| | | private Integer type; |
| | |
| | | |
| | | @ApiModelProperty(value = "é¨ç¦ç»åç§°") |
| | | private List<String> roleNames; |
| | | |
| | | @ApiModelProperty(value = "ç»ç»ç¼ç è·¯å¾") |
| | | private String companyPath; |
| | | @ApiModelProperty(value = "ç»ç»è·¯å¾") |
| | | private String companyNamePath; |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.doumee.core.annotation.excel.ExcelColumn; |
| | | import com.doumee.core.model.LoginUserModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | |
| | | @Data |
| | | @ApiModel("人åä¿¡æ¯è¡¨") |
| | | @TableName("`member`") |
| | | public class Member { |
| | | public class Member extends LoginUserModel { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | @ApiModelProperty(value = "主é®", example = "1") |
| | |
| | | @ApiModelProperty(value = "ç»ç»åç§°") |
| | | @TableField(exist = false) |
| | | private String companyName; |
| | | @ApiModelProperty(value = "ç»ç»ç¼ç è·¯å¾") |
| | | @TableField(exist = false) |
| | | private String companyPath; |
| | | @ApiModelProperty(value = "ç»ç»è·¯å¾") |
| | | @TableField(exist = false) |
| | | private String companyNamePath; |
| | | @ApiModelProperty(value = "ç»ç»æµ·åº·ç¼ç ") |
| | | @TableField(exist = false) |
| | | private String hkOrgId; |
| | |
| | | @ExcelColumn(name="é¨ç¦æææç»æ",index= 6,dateFormat = "yyyy-MM-dd") |
| | | private Date endTime; |
| | | |
| | | |
| | | @ApiModelProperty(value = "人è¸ç
§ç宿´å°å") |
| | | @TableField(exist = false) |
| | | private String faceImgFull; |
| | | } |
| | |
| | | import com.doumee.dao.admin.request.UpdateCompanySortDTO; |
| | | import com.doumee.dao.admin.response.CompanyDTO; |
| | | import com.doumee.dao.business.model.Company; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | * @param member å®ä½å¯¹è±¡ |
| | | * @return Integer |
| | | */ |
| | | Integer create(Member member); |
| | | Member create(Member member); |
| | | |
| | | /** |
| | | * |
| | |
| | | * @param member å®ä½å¯¹è±¡ |
| | | */ |
| | | void updateById(Member member); |
| | | void updateFace(Member member); |
| | | boolean updateFace(Member member); |
| | | |
| | | |
| | | /** |
| | |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.admin.request.UpdateCompanySortDTO; |
| | | import com.doumee.dao.admin.response.CompanyDTO; |
| | | import com.doumee.dao.business.CompanyMapper; |
| | | import com.doumee.dao.business.MemberMapper; |
| | | import com.doumee.dao.business.join.CompanyJoinMapper; |
| | | import com.doumee.dao.business.model.Category; |
| | | import com.doumee.dao.business.dao.CompanyMapper; |
| | | import com.doumee.dao.business.dao.join.CompanyJoinMapper; |
| | | import com.doumee.dao.business.model.Company; |
| | | import com.doumee.dao.business.model.Member; |
| | | import com.doumee.dao.business.vo.CompanyTree; |
| | | import com.doumee.dao.system.model.SystemUser; |
| | | import com.doumee.service.business.CompanyService; |
| | | import com.doumee.dao.business.vo.CompanyTree; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import org.apache.commons.collections.CollectionUtils; |
| | | import org.apache.commons.lang3.StringUtils; |
| | |
| | | user = company.getLoginUserInfo(); |
| | | } |
| | | String rootOrgId = systemDictDataBiz.queryByCode(Constants.HK_PARAM,Constants.HK_ROOTORG_CODE).getCode(); |
| | | company.setCompanyPath(company.getName());//åç§°è·¯å¾ |
| | | company.setCompanyPath(company.getId()+"/");//åç§°è·¯å¾ |
| | | company.setCompanyNamePath(company.getName());//åç§°è·¯å¾ |
| | | company.setHkParentId(rootOrgId); |
| | | if(company.getParentId() !=null){ |
| | | Company parent = findById(company.getParentId()); |
| | |
| | | throw new BusinessException(ResponseStatus.DATA_EXISTS.getCode(), "对ä¸èµ·ï¼ç¶çº§ç»ç»ä¿¡æ¯å°æªåæ¥ä¸åæå~"); |
| | | } |
| | | company.setHkParentId(parent.getHkId()); |
| | | company.setCompanyPath(parent.getCompanyPath()+"/"+company.getName()); |
| | | company.setCompanyPath(parent.getCompanyPath()+company.getId()+"/"); |
| | | company.setCompanyNamePath(parent.getCompanyNamePath()+"/"+company.getName()); |
| | | } |
| | | company.setHkCompanyPath(company.getCompanyPath()); |
| | | company.setCreateDate(new Date()); |
| | |
| | | package com.doumee.service.business.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.doumee.core.constants.ResponseStatus; |
| | | import com.doumee.core.exception.BusinessException; |
| | | import com.doumee.core.haikang.model.HKConstants; |
| | | import com.doumee.core.haikang.model.param.BaseResponse; |
| | | import com.doumee.core.haikang.model.param.request.AcsDeviceListRequest; |
| | | import com.doumee.core.haikang.model.param.respose.AcsDeviceInfoResponse; |
| | | import com.doumee.core.haikang.model.param.respose.AcsDeviceListResponse; |
| | | import com.doumee.core.haikang.service.HKService; |
| | | 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.DeviceMapper; |
| | | import com.doumee.dao.business.model.Company; |
| | | import com.doumee.dao.business.model.Device; |
| | | import com.doumee.dao.business.model.Retention; |
| | | import com.doumee.service.business.DeviceService; |
| | | 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.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.scheduling.annotation.Async; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * 设å¤ä¿¡æ¯è¡¨Serviceå®ç° |
| | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.Date; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.admin.response.MemberInfoDTO; |
| | | import com.doumee.dao.business.EmpowerMapper; |
| | | import com.doumee.dao.business.join.EmpowerJoinMapper; |
| | | import com.doumee.dao.business.model.Company; |
| | |
| | | import com.doumee.core.exception.BusinessException; |
| | | import com.doumee.core.haikang.model.HKConstants; |
| | | import com.doumee.core.haikang.model.param.BaseResponse; |
| | | import com.doumee.core.haikang.model.param.request.UserAddRequest; |
| | | import com.doumee.core.haikang.model.param.request.UserDelRequest; |
| | | import com.doumee.core.haikang.model.param.respose.UserAddResponse; |
| | | import com.doumee.core.haikang.model.param.respose.UserDelResponse; |
| | | import com.doumee.core.haikang.service.HKService; |
| | | import com.doumee.core.model.LoginUserInfo; |
| | |
| | | import com.doumee.dao.admin.response.MemberInfoDTO; |
| | | import com.doumee.dao.admin.response.StagingDataVO; |
| | | import com.doumee.dao.business.*; |
| | | import com.doumee.dao.business.dao.CompanyMapper; |
| | | import com.doumee.dao.business.join.MemberJoinMapper; |
| | | import com.doumee.dao.business.join.RetentionJoinMapper; |
| | | import com.doumee.dao.business.join.UserActionJoinMapper; |
| | | import com.doumee.dao.business.model.*; |
| | | import com.doumee.dao.system.SystemUserMapper; |
| | | import com.doumee.dao.system.model.SystemDepartment; |
| | | import com.doumee.dao.system.model.SystemDepartmentUser; |
| | | import com.doumee.dao.system.model.SystemDictData; |
| | | import com.doumee.dao.system.model.SystemUser; |
| | | import com.doumee.dao.web.reqeust.AccountLoginDTO; |
| | | import com.doumee.dao.web.reqeust.CheckVisitedDTO; |
| | | import com.doumee.dao.web.reqeust.VisitMemberDTO; |
| | |
| | | import com.doumee.service.business.impl.hksync.ferp.HkSyncOrgUserToHKServiceImpl; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import org.apache.commons.collections.CollectionUtils; |
| | | import org.apache.commons.lang3.RandomStringUtils; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.shiro.SecurityUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | |
| | | |
| | | @Autowired |
| | | private VisitsMapper visitsMapper; |
| | | @Autowired |
| | | private SystemUserMapper systemUserMapper; |
| | | |
| | | |
| | | @Override |
| | | public Integer create(Member member) { |
| | | memberMapper.insert(member); |
| | | return member.getId(); |
| | | @Transactional(rollbackFor = {BusinessException.class,Exception.class}) |
| | | public Member create(Member member) { |
| | | LoginUserInfo loginUserInfo = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | if(loginUserInfo == null){ |
| | | loginUserInfo = member.getLoginUserInfo(); |
| | | } |
| | | isMemberParamValid(member); |
| | | //è·ååºçæ¥æ |
| | | //è±ææä½ |
| | | Member insert = initAddMemberModel(member,loginUserInfo); |
| | | //æµ·åº·äººåæ°å¢ä¸å¡ |
| | | if(dealHkUserBiz(insert)){ |
| | | try { |
| | | memberMapper.insert(insert); |
| | | //å建系ç»ç»éè´¦å·ï¼é»è®¤æ ä»»ä½è§è²ï¼ |
| | | createSystemUser(insert); |
| | | }catch (Exception e){ |
| | | //妿åçå¼å¸¸ï¼å é¤å·²ç»å建ç人åä¿¡æ¯ |
| | | deleteHkUserBiz(insert.getHkId()); |
| | | throw new BusinessException(ResponseStatus.SERVER_ERROR.getCode(),"对ä¸èµ·ï¼åå·¥ä¿¡æ¯æ°å»ºå¤±è´¥ï¼è¯·ç¨åéè¯ï¼"); |
| | | } |
| | | }else{ |
| | | throw new BusinessException(ResponseStatus.SERVER_ERROR.getCode(),"对ä¸èµ·ï¼å工信æ¯åæ¥å®é²å¹³å°å¤±è´¥ï¼è¯·ç¨åéè¯ï¼"); |
| | | } |
| | | return insert; |
| | | } |
| | | private void createSystemUser(Member insert) { |
| | | SystemUser user = new SystemUser(); |
| | | // çæå¯ç ç |
| | | String salt = RandomStringUtils.randomAlphabetic(6); |
| | | // çæå¯ç |
| | | user.setPassword(Utils.Secure.encryptPassword(systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.INITIAL_PASSWORD).getCode(), salt)); |
| | | user.setSalt(salt); |
| | | |
| | | // åå»ºç¨æ·è®°å½ |
| | | user.setType(insert.getType()); |
| | | user.setUsername(insert.getPhone()); |
| | | user.setEmpNo(insert.getCode()); |
| | | user.setRealname(insert.getName()); |
| | | user.setCompanyId(insert.getCompanyId()); |
| | | user.setMobile(insert.getPhone()); |
| | | user.setCreateTime(insert.getCreateDate()); |
| | | user.setCreateUser(insert.getCreator()); |
| | | user.setUpdateUser(insert.getEditor()); |
| | | user.setUpdateTime(insert.getEditDate()); |
| | | user.setMemberId(insert.getId()); |
| | | user.setDeleted(Boolean.FALSE); |
| | | user.setFixed(Boolean.FALSE); |
| | | user.setStatus(Constants.ZERO); |
| | | systemUserMapper.insert(user); |
| | | } |
| | | |
| | | private Member initAddMemberModel(Member member, LoginUserInfo loginUserInfo) { |
| | | Member insert= new Member(); |
| | | insert.setCreator(loginUserInfo.getId()); |
| | | insert.setCreateDate(new Date()); |
| | | insert.setEditor(loginUserInfo.getId()); |
| | | insert.setEditDate(new Date()); |
| | | insert.setIsdeleted(Constants.ZERO); |
| | | insert.setCompanyId(member.getCompanyId()); |
| | | insert.setFaceImg(member.getFaceImg()); |
| | | insert.setImgurl(member.getImgurl()); |
| | | insert.setCode(member.getCode()); |
| | | insert.setType(Constants.TWO); |
| | | insert.setHkDate(new Date()); |
| | | insert.setName(member.getName()); |
| | | insert.setHkStatus(Constants.ONE); |
| | | insert.setSex(IdcardUtil.getGenderByIdCard(member.getIdcardNo()) ==1?Constants.TWO:Constants.ONE);//æ ¹æ®èº«ä»½è¯å·è·åæ§å« |
| | | insert.setBirthday( DateUtil.parse(IdcardUtil.getBirthByIdCard(member.getIdcardNo()), "yyyyMMdd")); |
| | | insert.setPhone(member.getPhone()); |
| | | insert.setIdcardNo(DESUtil.encrypt(Constants.EDS_PWD, member.getIdcardNo()));//身份è¯å·å å¯ |
| | | insert.setIdcardDecode( Constants.getTuominStr(member.getIdcardNo())); |
| | | insert.setStatus(Constants.ZERO); |
| | | return insert; |
| | | } |
| | | |
| | | /** |
| | | * å 餿µ·åº·äººåä¿¡æ¯ |
| | | * @param hkId |
| | | */ |
| | | private void deleteHkUserBiz(String hkId) { |
| | | UserDelRequest request = new UserDelRequest(); |
| | | request.setPersonIds(new String[]{hkId}); |
| | | BaseResponse<List<UserDelResponse>> result = HKService.delBatchUser(request); |
| | | } |
| | | |
| | | /** |
| | | * æµ·åº·äººåæ°å¢ä¸å¡ |
| | | * @param insert |
| | | * @return |
| | | */ |
| | | private boolean dealHkUserBiz(Member insert) { |
| | | String path = systemDictDataBiz.queryByCode(Constants.FTP,Constants.FTP_RESOURCE_PATH).getCode() |
| | | +systemDictDataBiz.queryByCode(Constants.FTP,Constants.MEMBER_IMG).getCode(); |
| | | Company company = companyMapper.selectById(insert.getCompanyId()); |
| | | if(company == null || Constants.equalsInteger(company.getIsdeleted(),Constants.ONE)){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对ä¸èµ·ï¼è¯¥ç»ç»ä¿¡æ¯å·²è¢«å é¤ï¼è¯·å·æ°é¡µé¢éè¯ï¼"); |
| | | } |
| | | if(StringUtils.isBlank(company.getHkId())){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对ä¸èµ·ï¼è¯¥ç»ç»ä¿¡æ¯æªåæ¥å®é²å¹³å°ï¼è¯·å
åå¾ãç»ç»ç®¡çãèåè¿è¡ç»´æ¤ï¼"); |
| | | } |
| | | insert.setHkOrgId(company.getHkId()); |
| | | UserAddRequest hkAddRequest = HkSyncOrgUserToHKServiceImpl.getUserAddModel(insert,path,Constants.ZERO); |
| | | if(hkAddRequest == null){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对ä¸èµ·ï¼äººè¸ç
§çæè¯¯ï¼è¯·å°è¯éæ°ä¸ä¼ ï¼"); |
| | | } |
| | | //å¤çæ°å¢æ°æ® |
| | | BaseResponse<UserAddResponse> result = HKService.addUser(hkAddRequest); |
| | | if(result!=null && StringUtils.equals(result.getCode(),HKConstants.RESPONSE_SUCCEE) && result.getData()!=null){ |
| | | insert.setHkId(hkAddRequest.getPersonId()); |
| | | insert.setFaceId(result.getData().getFaceId()); |
| | | if(StringUtils.isNotBlank(insert.getFaceId())){ |
| | | insert.setFaceStatus(Constants.ONE); |
| | | }else{ |
| | | insert.setFaceStatus(Constants.ZERO); |
| | | } |
| | | return true; |
| | | }else if(result!=null ){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对ä¸èµ·ï¼åæ¥å®é²å¹³å°å¤±è´¥ã"+result.getMsg()+"ãï¼è¯·è系管çåï¼"); |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | private void isMemberParamValid(Member member) { |
| | | if (!PhoneUtil.isPhone(member.getPhone())){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"çµè¯å·ç æ ¼å¼æè¯¯"); |
| | | } |
| | | if (!IdcardUtil.isValidCard(member.getIdcardNo())){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"身份è¯å·æ ¼å¼æè¯¯"); |
| | | } |
| | | |
| | | SystemUser systemUser = new SystemUser(); |
| | | SystemUser queryUserDto = new SystemUser(); |
| | | queryUserDto.setUsername(member.getPhone()); |
| | | queryUserDto.setDeleted(Boolean.FALSE); |
| | | SystemUser user = systemUserMapper.selectOne(new QueryWrapper<>(queryUserDto).last("limit 1")); |
| | | if (user != null) { |
| | | throw new BusinessException(ResponseStatus.DATA_EXISTS.getCode(), "ææºå·ã"+systemUser.getUsername()+"ã已被使ç¨ï¼ä¸è½éå¤"); |
| | | } |
| | | // éªè¯å·¥å· |
| | | if (StringUtils.isNotBlank(member.getCode())) { |
| | | queryUserDto = new SystemUser(); |
| | | queryUserDto.setDeleted(Boolean.FALSE); |
| | | queryUserDto.setEmpNo(member.getCode()); |
| | | user = systemUserMapper.selectOne(new QueryWrapper<>(queryUserDto).last("limit 1")); |
| | | if (user != null) { |
| | | throw new BusinessException(ResponseStatus.DATA_EXISTS.getCode(), "å·¥å·ã"+member.getCode()+"ãå·²åå¨"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | @Transactional |
| | | @Override |
| | | public Integer laborMemberCreate(LaborMemberDTO member) { |
| | | |
| | | LoginUserInfo loginUserInfo = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | |
| | | if (PhoneUtil.isPhone(member.getPhone())){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"çµè¯å·ç æ ¼å¼æè¯¯"); |
| | | } |
| | |
| | | memberMapper.updateById(member); |
| | | } |
| | | @Override |
| | | public void updateFace(Member member) { |
| | | public boolean updateFace(Member member) { |
| | | QueryWrapper<Member> wrapper = new QueryWrapper<>(member); |
| | | wrapper.lambda().ne(Member::getRemark,"人è¸å·²åæ¥ææ°"); |
| | | List<Member> list =memberMapper.selectList(wrapper); |
| | |
| | | update.setRemark("人è¸å·²åæ¥ææ°"); |
| | | update.setFaceStatus(Constants.ONE); |
| | | memberMapper.updateById(update); |
| | | return true; |
| | | } |
| | | } |
| | | } |
| | | return false; |
| | | } |
| | | @Override |
| | | public void delHkForce(Member member) { |
| | |
| | | queryWrapper.eq(Member::getCompanyId,member.getCompanyId()); |
| | | } |
| | | queryWrapper.eq(Member::getIsdeleted,Constants.ZERO); |
| | | |
| | | List<Member> list = memberJoinMapper.selectJoinList(Member.class,queryWrapper); |
| | | if(list!=null){ |
| | | for(Member m : list){ |
| | |
| | | .having(pageWrap.getModel().getTrainTimeEndTime()!=null,"trainTimeEndTime < "+ DateUtil.format(end,"yyyy-MM-dd HH:mm:ss")); |
| | | IPage<MemberInfoDTO> memberIPage = memberJoinMapper.selectJoinPage(page, MemberInfoDTO.class,queryWrapper); |
| | | if (!CollectionUtils.isEmpty(memberIPage.getRecords())){ |
| | | memberIPage.getRecords().forEach(s->s.setSex(IdcardUtil.getGenderByIdCard(s.getIdcardDecode()))); |
| | | memberIPage.getRecords().forEach(s->s.setSex(IdcardUtil.getGenderByIdCard(s.getIdcardDecode()) ==1?Constants.TWO:Constants.ONE)); |
| | | } |
| | | return PageData.from(memberIPage); |
| | | } |
| | |
| | | |
| | | queryWrapper.selectAll(Member.class); |
| | | queryWrapper.selectAs(Company::getName,Member::getCompanyName); |
| | | queryWrapper.selectAs(Company::getCompanyNamePath,Member::getCompanyNamePath); |
| | | queryWrapper.selectAs(Company::getCompanyPath,Member::getCompanyPath); |
| | | queryWrapper.select(" ( select count(1) from member_card mc where mc.isdeleted = 0 and mc.member_id = t.id ) as memberCardCount "); |
| | | queryWrapper.leftJoin(Company.class,Company::getId,Member::getCompanyId); |
| | | queryWrapper.in(Objects.nonNull(pageWrap.getModel().getCompanyIds())&&pageWrap.getModel().getCompanyIds().size()>0, |
| | |
| | | memberInfoDTO.setRoleNames(this.dealRoleDatas(memberInfoDTO.getRoleId(),deviceRoleList)); |
| | | //æ¼æ¥åç¼ |
| | | if(StringUtils.isNotBlank(memberInfoDTO.getFaceImg())){ |
| | | memberInfoDTO.setFaceImg(prefixUrl + memberInfoDTO.getFaceImg()); |
| | | memberInfoDTO.setFaceImgFull(prefixUrl + memberInfoDTO.getFaceImg()); |
| | | } |
| | | if(StringUtils.isNotBlank(memberInfoDTO.getImgurl())){ |
| | | memberInfoDTO.setImgurl(prefixUrl + memberInfoDTO.getImgurl()); |
| | | memberInfoDTO.setImgurlFull(prefixUrl + memberInfoDTO.getImgurl()); |
| | | } |
| | | } |
| | | } |
| | |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.CompanyMapper; |
| | | import com.doumee.dao.business.MemberMapper; |
| | | import com.doumee.dao.business.ProblemLogMapper; |
| | | import com.doumee.dao.business.dao.CompanyMapper; |
| | | import com.doumee.dao.business.join.ProblemLogJoinMapper; |
| | | import com.doumee.dao.business.model.Company; |
| | | import com.doumee.dao.business.model.Member; |
| | |
| | | import com.baomidou.mybatisplus.core.toolkit.Constants; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.TrainTimeMapper; |
| | | import com.doumee.dao.business.join.TrainTimeJoinMapper; |
| | | import com.doumee.dao.business.model.Company; |
| | | import com.doumee.dao.business.model.Member; |
| | | import com.doumee.dao.business.model.TrainTime; |
| | | import com.doumee.dao.business.model.Visits; |
| | | import com.doumee.dao.system.model.SystemUser; |
| | | import com.doumee.service.business.TrainTimeService; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | |
| | | |
| | | 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.UserActionMapper; |
| | | import com.doumee.dao.business.join.UserActionJoinMapper; |
| | | import com.doumee.dao.business.model.Company; |
| | | import com.doumee.dao.business.model.Member; |
| | | import com.doumee.dao.business.model.ParkBook; |
| | | import com.doumee.dao.business.model.UserAction; |
| | | import com.doumee.dao.system.model.SystemUser; |
| | | import com.doumee.service.business.UserActionService; |
| | |
| | | import com.doumee.core.wx.wxPlat.WxPlatNotice; |
| | | import com.doumee.dao.admin.response.MemberInfoDTO; |
| | | import com.doumee.dao.business.*; |
| | | import com.doumee.dao.business.dao.CompanyMapper; |
| | | import com.doumee.dao.business.join.DeviceJoinMapper; |
| | | import com.doumee.dao.business.join.VisitEventJoinMapper; |
| | | import com.doumee.dao.business.join.VisitsJoinMapper; |
| | |
| | | import com.doumee.core.utils.redis.RedisUtil; |
| | | import com.doumee.core.wx.wxPlat.WxPlatNotice; |
| | | import com.doumee.dao.business.*; |
| | | import com.doumee.dao.business.dao.CompanyMapper; |
| | | import com.doumee.dao.business.join.CarEventJoinMapper; |
| | | import com.doumee.dao.business.join.DeviceEventJoinMapper; |
| | | import com.doumee.dao.business.join.VisitEventJoinMapper; |
| | |
| | | import com.doumee.core.utils.DateUtil; |
| | | import com.doumee.core.utils.ImageBase64Util; |
| | | import com.doumee.dao.business.*; |
| | | import com.doumee.dao.business.dao.CompanyMapper; |
| | | import com.doumee.dao.business.join.MemberJoinMapper; |
| | | import com.doumee.dao.business.model.*; |
| | | import com.doumee.service.business.ext.ERPSyncService; |
| | |
| | | } |
| | | } |
| | | |
| | | private UserAddRequest getUserAddModel(Member c,String path,int type) { |
| | | public static UserAddRequest getUserAddModel(Member c,String path,int type) { |
| | | UserAddRequest model = new UserAddRequest(); |
| | | model.setOrgIndexCode(c.getHkOrgId()); |
| | | model.setJobNo(c.getCode()); |
| | | model.setPhoneNo(c.getPhone()); |
| | | model.setCertificateNo(DESUtil.decrypt(Constants.EDS_PWD, c.getIdcardNo())); |
| | | model.setCertificateType(HKConstants.CertificateType.SHENFENZHENG.getKey()+""); |
| | | model.setPersonId(type == 0 ?UUID.randomUUID().toString().replace("-", ""):c.getHkId()); |
| | |
| | | } |
| | | face.setFaceData(imageBase); |
| | | model.getFaces().add(face); |
| | | |
| | | } |
| | | return model; |
| | | } |
| | |
| | | import com.doumee.core.utils.DESUtil; |
| | | import com.doumee.core.utils.DateUtil; |
| | | import com.doumee.dao.business.*; |
| | | import com.doumee.dao.business.dao.CompanyMapper; |
| | | import com.doumee.dao.business.model.*; |
| | | import com.doumee.service.business.impl.hksync.HkSyncBaseServiceImpl; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | import com.doumee.core.utils.DateUtil; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.*; |
| | | import com.doumee.dao.business.dao.CompanyMapper; |
| | | import com.doumee.dao.business.model.Cars; |
| | | import com.doumee.dao.business.model.Member; |
| | | import com.doumee.dao.business.model.Visits; |
| | |
| | | import com.doumee.core.utils.DESUtil; |
| | | import com.doumee.core.utils.DateUtil; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.CompanyMapper; |
| | | import com.doumee.dao.business.MemberMapper; |
| | | import com.doumee.dao.business.VisitsMapper; |
| | | import com.doumee.dao.business.dao.CompanyMapper; |
| | | import com.doumee.dao.business.model.Member; |
| | | import com.doumee.dao.business.model.Visits; |
| | | import com.doumee.service.business.impl.hksync.HkSyncBaseServiceImpl; |