Merge branch 'master' of http://139.186.142.91:10010/r/productDev/dmvisit
已添加40个文件
已重命名2个文件
已修改132个文件
已删除8个文件
| | |
| | | # å¼åç¯å¢é
ç½® |
| | | NODE_ENV = 'development' |
| | | |
| | | VUE_APP_API_URL = 'http://192.168.0.135:10010' |
| | | VUE_APP_API_URL = 'http://localhost:10010' |
| | | #VUE_APP_API_URL = 'http://192.168.0.173/admin_interface' |
| | |
| | | </div> |
| | | <div class="item"> |
| | | <div class="label">ç®çå°ç±»å«</div> |
| | | <div class="value status-green" v-if="model.type === 0">ãå¸å
ç¨è½¦ã</div> |
| | | <spdivan class="value status-red" v-if="model.type === 1">ãå¸å
ç¨è½¦ã</spdivan> |
| | | <div class="value status-green" v-if="model.type == 0">ãå¸å
ç¨è½¦ã</div> |
| | | <div class="value status-red" v-if="model.type == 1">ãå¸å¤ç¨è½¦ã</div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="label">ç®çå°</div> |
| | |
| | | @confirm="confirm" |
| | | > |
| | | <el-form :model="form" ref="form" :rules="rules"> |
| | | <el-form-item label="ç¨æ·å" prop="username" required> |
| | | <el-form-item label="ç¨æ·å" prop="username" required v-if="form.id ==null"> |
| | | <el-input v-model="form.username" placeholder="请è¾å
¥ç¨æ·å" v-trim maxlength="50"/> |
| | | </el-form-item> |
| | | <el-form-item label="å§å" prop="realname" required> |
| | |
| | | this.form.id = null |
| | | this.form.departmentId = null |
| | | this.form.positionIds = [] |
| | | this.form.username=null |
| | | }) |
| | | return |
| | | } |
| | |
| | | direction |
| | | }) |
| | | .then(() => { |
| | | if (direction === 'top') { |
| | | /* if (direction === 'top') { |
| | | menuPool.splice(menuIndex, 0, menuPool.splice(menuIndex - 1, 1)[0]) |
| | | } else { |
| | | menuPool.splice(menuIndex, 0, menuPool.splice(menuIndex + 1, 1)[0]) |
| | | } |
| | | }*/ |
| | | this.search() |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | |
| | | <span v-if="row.sex === 2">女</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="status" label="ç¶æ" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="(row.status || 0) === 0" style="color: green">æ£å¸¸</span> |
| | | <span v-else style="color: red">å¼å¸¸</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="è¯ä»¶ç±»å" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.idcardType === 0">身份è¯</span> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platform:create', 'æ°å»ºæå°ä¿¡æ¯è¡¨', 'æå°ä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platform:delete', 'å 餿å°ä¿¡æ¯è¡¨', 'æå°ä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platform:update', 'ä¿®æ¹æå°ä¿¡æ¯è¡¨', 'æå°ä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platform:query', 'æ¥è¯¢æå°ä¿¡æ¯è¡¨', 'æå°ä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platform:exportExcel', 'å¯¼åºæå°ä¿¡æ¯è¡¨(Excel)', 'æå°ä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformbooks:create', 'æ°å»ºæå°å
¥åé¢çº¦ä¿¡æ¯è¡¨', 'æå°å
¥åé¢çº¦ä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformbooks:delete', 'å 餿å°å
¥åé¢çº¦ä¿¡æ¯è¡¨', 'æå°å
¥åé¢çº¦ä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformbooks:update', 'ä¿®æ¹æå°å
¥åé¢çº¦ä¿¡æ¯è¡¨', 'æå°å
¥åé¢çº¦ä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformbooks:query', 'æ¥è¯¢æå°å
¥åé¢çº¦ä¿¡æ¯è¡¨', 'æå°å
¥åé¢çº¦ä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformbooks:exportExcel', 'å¯¼åºæå°å
¥åé¢çº¦ä¿¡æ¯è¡¨(Excel)', 'æå°å
¥åé¢çº¦ä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformbroadcastlog:create', 'æ°å»ºæå°_LEDå广ææéä¸åè®°å½', 'æå°_LEDå广ææéä¸åè®°å½', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformbroadcastlog:delete', 'å 餿å°_LEDå广ææéä¸åè®°å½', 'æå°_LEDå广ææéä¸åè®°å½', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformbroadcastlog:update', 'ä¿®æ¹æå°_LEDå广ææéä¸åè®°å½', 'æå°_LEDå广ææéä¸åè®°å½', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformbroadcastlog:query', 'æ¥è¯¢æå°_LEDå广ææéä¸åè®°å½', 'æå°_LEDå广ææéä¸åè®°å½', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformbroadcastlog:exportExcel', 'å¯¼åºæå°_LEDå广ææéä¸åè®°å½(Excel)', 'æå°_LEDå广ææéä¸åè®°å½', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformdevice:create', 'æ°å»ºæå°_å
³èçæ§ç¹LEDå广æä¿¡æ¯è¡¨', 'æå°_å
³èçæ§ç¹LEDå广æä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformdevice:delete', 'å 餿å°_å
³èçæ§ç¹LEDå广æä¿¡æ¯è¡¨', 'æå°_å
³èçæ§ç¹LEDå广æä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformdevice:update', 'ä¿®æ¹æå°_å
³èçæ§ç¹LEDå广æä¿¡æ¯è¡¨', 'æå°_å
³èçæ§ç¹LEDå广æä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformdevice:query', 'æ¥è¯¢æå°_å
³èçæ§ç¹LEDå广æä¿¡æ¯è¡¨', 'æå°_å
³èçæ§ç¹LEDå广æä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformdevice:exportExcel', 'å¯¼åºæå°_å
³èçæ§ç¹LEDå广æä¿¡æ¯è¡¨(Excel)', 'æå°_å
³èçæ§ç¹LEDå广æä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformgroup:create', 'æ°å»ºæå°_åç»ä¿¡æ¯è¡¨', 'æå°_åç»ä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformgroup:delete', 'å 餿å°_åç»ä¿¡æ¯è¡¨', 'æå°_åç»ä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformgroup:update', 'ä¿®æ¹æå°_åç»ä¿¡æ¯è¡¨', 'æå°_åç»ä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformgroup:query', 'æ¥è¯¢æå°_åç»ä¿¡æ¯è¡¨', 'æå°_åç»ä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformgroup:exportExcel', 'å¯¼åºæå°_åç»ä¿¡æ¯è¡¨(Excel)', 'æå°_åç»ä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platforminterfacelog:create', 'æ°å»ºä½ä¸è°åº¦å¹³å°æ¥å£äº¤äºè®°å½', 'ä½ä¸è°åº¦å¹³å°æ¥å£äº¤äºè®°å½', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platforminterfacelog:delete', 'å é¤ä½ä¸è°åº¦å¹³å°æ¥å£äº¤äºè®°å½', 'ä½ä¸è°åº¦å¹³å°æ¥å£äº¤äºè®°å½', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platforminterfacelog:update', 'ä¿®æ¹ä½ä¸è°åº¦å¹³å°æ¥å£äº¤äºè®°å½', 'ä½ä¸è°åº¦å¹³å°æ¥å£äº¤äºè®°å½', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platforminterfacelog:query', 'æ¥è¯¢ä½ä¸è°åº¦å¹³å°æ¥å£äº¤äºè®°å½', 'ä½ä¸è°åº¦å¹³å°æ¥å£äº¤äºè®°å½', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platforminterfacelog:exportExcel', '导åºä½ä¸è°åº¦å¹³å°æ¥å£äº¤äºè®°å½(Excel)', 'ä½ä¸è°åº¦å¹³å°æ¥å£äº¤äºè®°å½', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformjob:create', 'æ°å»ºæå°è°åº¦ä½ä¸ä¿¡æ¯è¡¨', 'æå°è°åº¦ä½ä¸ä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformjob:delete', 'å 餿å°è°åº¦ä½ä¸ä¿¡æ¯è¡¨', 'æå°è°åº¦ä½ä¸ä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformjob:update', 'ä¿®æ¹æå°è°åº¦ä½ä¸ä¿¡æ¯è¡¨', 'æå°è°åº¦ä½ä¸ä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformjob:query', 'æ¥è¯¢æå°è°åº¦ä½ä¸ä¿¡æ¯è¡¨', 'æå°è°åº¦ä½ä¸ä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformjob:exportExcel', 'å¯¼åºæå°è°åº¦ä½ä¸ä¿¡æ¯è¡¨(Excel)', 'æå°è°åº¦ä½ä¸ä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformlog:create', 'æ°å»ºæå°_ä½ä¸æä½åå²è¡¨', 'æå°_ä½ä¸æä½åå²è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformlog:delete', 'å 餿å°_ä½ä¸æä½åå²è¡¨', 'æå°_ä½ä¸æä½åå²è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformlog:update', 'ä¿®æ¹æå°_ä½ä¸æä½åå²è¡¨', 'æå°_ä½ä¸æä½åå²è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformlog:query', 'æ¥è¯¢æå°_ä½ä¸æä½åå²è¡¨', 'æå°_ä½ä¸æä½åå²è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformlog:exportExcel', 'å¯¼åºæå°_ä½ä¸æä½åå²è¡¨(Excel)', 'æå°_ä½ä¸æä½åå²è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformqueue:create', 'æ°å»ºæå°_å«å·æéä¿¡æ¯è¡¨', 'æå°_å«å·æéä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformqueue:delete', 'å 餿å°_å«å·æéä¿¡æ¯è¡¨', 'æå°_å«å·æéä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformqueue:update', 'ä¿®æ¹æå°_å«å·æéä¿¡æ¯è¡¨', 'æå°_å«å·æéä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformqueue:query', 'æ¥è¯¢æå°_å«å·æéä¿¡æ¯è¡¨', 'æå°_å«å·æéä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformqueue:exportExcel', 'å¯¼åºæå°_å«å·æéä¿¡æ¯è¡¨(Excel)', 'æå°_å«å·æéä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformshowparam:create', 'æ°å»ºæå°_æ¾ç¤ºé
置信æ¯è¡¨', 'æå°_æ¾ç¤ºé
置信æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformshowparam:delete', 'å 餿å°_æ¾ç¤ºé
置信æ¯è¡¨', 'æå°_æ¾ç¤ºé
置信æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformshowparam:update', 'ä¿®æ¹æå°_æ¾ç¤ºé
置信æ¯è¡¨', 'æå°_æ¾ç¤ºé
置信æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformshowparam:query', 'æ¥è¯¢æå°_æ¾ç¤ºé
置信æ¯è¡¨', 'æå°_æ¾ç¤ºé
置信æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformshowparam:exportExcel', 'å¯¼åºæå°_æ¾ç¤ºé
置信æ¯è¡¨(Excel)', 'æå°_æ¾ç¤ºé
置信æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformwmsdetail:create', 'æ°å»ºæå°_WMSä½ä¸éç¥åæç»', 'æå°_WMSä½ä¸éç¥åæç»', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformwmsdetail:delete', 'å 餿å°_WMSä½ä¸éç¥åæç»', 'æå°_WMSä½ä¸éç¥åæç»', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformwmsdetail:update', 'ä¿®æ¹æå°_WMSä½ä¸éç¥åæç»', 'æå°_WMSä½ä¸éç¥åæç»', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformwmsdetail:query', 'æ¥è¯¢æå°_WMSä½ä¸éç¥åæç»', 'æå°_WMSä½ä¸éç¥åæç»', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformwmsdetail:exportExcel', 'å¯¼åºæå°_WMSä½ä¸éç¥åæç»(Excel)', 'æå°_WMSä½ä¸éç¥åæç»', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformwmsjob:create', 'æ°å»ºæå°_WMSä½ä¸éç¥åè¡æ°æ®', 'æå°_WMSä½ä¸éç¥åè¡æ°æ®', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformwmsjob:delete', 'å 餿å°_WMSä½ä¸éç¥åè¡æ°æ®', 'æå°_WMSä½ä¸éç¥åè¡æ°æ®', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformwmsjob:update', 'ä¿®æ¹æå°_WMSä½ä¸éç¥åè¡æ°æ®', 'æå°_WMSä½ä¸éç¥åè¡æ°æ®', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformwmsjob:query', 'æ¥è¯¢æå°_WMSä½ä¸éç¥åè¡æ°æ®', 'æå°_WMSä½ä¸éç¥åè¡æ°æ®', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `MODULE`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformwmsjob:exportExcel', 'å¯¼åºæå°_WMSä½ä¸éç¥åè¡æ°æ®(Excel)', 'æå°_WMSä½ä¸éç¥åè¡æ°æ®', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | |
| | |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.DateUtil; |
| | | import com.doumee.core.utils.QrCodeUtils; |
| | | import com.doumee.dao.admin.request.BusinessOverDTO; |
| | | import com.doumee.dao.business.model.Bookings; |
| | | import com.doumee.dao.web.request.BookingsRequest; |
| | | import com.doumee.dao.web.request.MeetingPageRequest; |
| | |
| | | @ApiOperation(value = "彿ä¼è®®è¡¨", notes = "彿ä¼è®®è¡¨") |
| | | @GetMapping("/monthMeeting") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "ç¨æ·tokenå¼", required = true), |
| | | @ApiImplicitParam(paramType = "query", dataType = "String", name = "yearMonth", value = "å¹´æ yyyy-MM", required = true) |
| | | }) |
| | | public ApiResponse<List<MonthDataResponse>> monthDay(@RequestParam String yearMonth) { |
| | |
| | | |
| | | @ApiOperation("æçä¼è®®å表") |
| | | @PostMapping("/myMeetingPage") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "ç¨æ·tokenå¼", required = true), |
| | | }) |
| | | public ApiResponse<IPage<MeetingListResponse>> myMeetingPage(@RequestBody PageWrap<MeetingPageRequest> pageWrap) { |
| | | LoginUserInfo user = getLoginUser(null); |
| | | pageWrap.getModel().setUserId(user.getId()); |
| | |
| | | @ApiOperation("ä¼è®®è¯¦æ
") |
| | | @GetMapping("/meetingDetail") |
| | | @ApiImplicitParams({ |
| | | // @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "ç¨æ·tokenå¼", required = true), |
| | | @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "id", value = "ä¼è®®ä¸»é®", required = true), |
| | | }) |
| | | public ApiResponse<MeetingDetailResponse> meetingDetail(@RequestParam Integer id) { |
| | |
| | | @ApiOperation("è·åä¼è®®å¼é¨äºç»´ç ") |
| | | @GetMapping("/getQrCode") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "ç¨æ·tokenå¼", required = true), |
| | | @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "id", value = "ä¼è®®ä¸»é®", required = true), |
| | | }) |
| | | public ApiResponse<String> getQrCode(@RequestParam Integer id) { |
| | |
| | | @ApiOperation("è·åä¼è®®å¼é¨äºç»´ç -å¾çæµ") |
| | | @GetMapping("/getQrCodeImg") |
| | | @ApiImplicitParams({ |
| | | // @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "ç¨æ·tokenå¼", required = true), |
| | | @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "id", value = "ä¼è®®ä¸»é®", required = true), |
| | | @ApiImplicitParam(paramType = "query", dataType = "String", name = "token", value = "ç¨æ·tokenå¼", required = true), |
| | | }) |
| | | public void getQrCodeImg(@RequestParam Integer id,@RequestParam String token, HttpServletResponse response) throws Exception { |
| | | LoginUserInfo user = getLoginUser(null); |
| | |
| | | |
| | | @ApiOperation("ä¼è®®é¢çº¦") |
| | | @PostMapping("/reservationMeeting") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "ç¨æ·tokenå¼", required = true), |
| | | }) |
| | | public ApiResponse<Integer> reservationMeeting(@RequestBody BookingsRequest bookingsRequest) { |
| | | LoginUserInfo user = getLoginUser(null); |
| | | bookingsRequest.setCreator(user.getId()); |
| | |
| | | } |
| | | |
| | | @ApiOperation("åæ¶ä¼è®®é¢çº¦") |
| | | @GetMapping("/reservationCancel") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "ç¨æ·tokenå¼", required = true), |
| | | @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "id", value = "ä¼è®®ä¸»é®", required = true), |
| | | }) |
| | | public ApiResponse reservationCancel(@RequestParam Integer id) { |
| | | @PostMapping("/reservationCancel") |
| | | public ApiResponse reservationCancel(@RequestBody BusinessOverDTO businessOverDTO) { |
| | | LoginUserInfo user = getLoginUser(null); |
| | | bookingsService.reservationCancel(id,user.getId()); |
| | | businessOverDTO.setUserId(user.getId()); |
| | | bookingsService.reservationCancel(businessOverDTO); |
| | | return ApiResponse.success("æä½æå"); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("æåç»æä¼è®®") |
| | | @PostMapping("/reservationOver") |
| | | public ApiResponse reservationOver(@RequestBody BusinessOverDTO businessOverDTO) { |
| | | LoginUserInfo user = getLoginUser(null); |
| | | businessOverDTO.setUserId(user.getId()); |
| | | bookingsService.reservationOver(businessOverDTO); |
| | | return ApiResponse.success("æä½æå"); |
| | | } |
| | | |
| | |
| | | bookquery.eq(Bookings::getIsdeleted, Constants.ZERO); |
| | | bookquery.eq(Bookings::getStatus, Constants.ZERO); |
| | | bookquery.apply("DATE_FORMAT(t.START_TIME,'%Y-%m-%d') = DATE_FORMAT(now(),'%Y-%m-%d') " ); |
| | | Integer todayBookingsNum= bookingsJoinMapper.selectCount(bookquery); |
| | | Long todayBookingsNum= bookingsJoinMapper.selectCount(bookquery); |
| | | json.put("todayBookingsNum",todayBookingsNum); |
| | | |
| | | //仿¥ä¼è®®æ¶é¿ï¼å°æ¶ï¼ |
| | |
| | | MPJLambdaWrapper<Rooms> rm1 = new MPJLambdaWrapper<>(); |
| | | rm1.eq(Rooms::getIsdeleted, Constants.ZERO); |
| | | rm1.eq(Rooms::getStatus, Constants.ZERO); |
| | | Integer roomNum= roomsJoinMapper.selectCount(rm1); |
| | | Long roomNum= roomsJoinMapper.selectCount(rm1); |
| | | json.put("roomNum",roomNum); |
| | | |
| | | //åå·¥æ°é |
| | |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.DateUtil; |
| | | import com.doumee.core.utils.QrCodeUtils; |
| | | import com.doumee.dao.admin.request.BusinessOverDTO; |
| | | import com.doumee.dao.business.model.Bookings; |
| | | import com.doumee.dao.web.request.BookingsRequest; |
| | | import com.doumee.dao.web.request.MeetingPageRequest; |
| | |
| | | return ApiResponse.success("æä½æå",bookingsService.reservationMeeting(bookingsRequest)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("åæ¶ä¼è®®é¢çº¦") |
| | | @GetMapping("/reservationCancel") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "ç¨æ·tokenå¼", required = true), |
| | | @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "id", value = "ä¼è®®ä¸»é®", required = true), |
| | | }) |
| | | public ApiResponse reservationCancel(@RequestParam Integer id,@RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | // LoginUserInfo user = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | @PostMapping("/reservationCancel") |
| | | public ApiResponse reservationCancel(@RequestBody BusinessOverDTO businessOverDTO, @RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | LoginUserInfo user = getLoginUser(token); |
| | | bookingsService.reservationCancel(id,user.getId()); |
| | | businessOverDTO.setUserId(user.getId()) ; |
| | | bookingsService.reservationCancel(businessOverDTO); |
| | | return ApiResponse.success("æä½æå"); |
| | | } |
| | | |
| | | @ApiOperation("æåç»æä¼è®®") |
| | | @PostMapping("/reservationOver") |
| | | public ApiResponse reservationOver(@RequestBody BusinessOverDTO businessOverDTO,@RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | LoginUserInfo user = getLoginUser(token); |
| | | businessOverDTO.setUserId(user.getId()); |
| | | bookingsService.reservationOver(businessOverDTO); |
| | | return ApiResponse.success("æä½æå"); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.DateUtil; |
| | | import com.doumee.dao.admin.request.BusinessOverDTO; |
| | | import com.doumee.dao.business.model.Bookings; |
| | | import com.doumee.dao.system.vo.UserResponse; |
| | | import com.doumee.dao.web.request.BookingsRequest; |
| | |
| | | } |
| | | |
| | | @ApiOperation("åæ¶ä¼è®®é¢çº¦") |
| | | @GetMapping("/reservationCancel") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "id", value = "ä¼è®®ä¸»é®", required = true), |
| | | }) |
| | | public ApiResponse reservationCancel(@RequestParam Integer id,@RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | @PostMapping("/reservationCancel") |
| | | public ApiResponse reservationCancel(@RequestBody BusinessOverDTO businessOverDTO,@RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | LoginUserInfo user = getLoginUser(token); |
| | | bookingsService.reservationCancel(id,user.getId()); |
| | | businessOverDTO.setUserId(user.getId()); |
| | | bookingsService.reservationCancel(businessOverDTO); |
| | | return ApiResponse.success("æä½æå"); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("æåç»æä¼è®®") |
| | | @PostMapping("/reservationOver") |
| | | public ApiResponse reservationOver(@RequestBody BusinessOverDTO businessOverDTO,@RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | LoginUserInfo user = getLoginUser(token); |
| | | businessOverDTO.setUserId(user.getId()); |
| | | bookingsService.reservationOver(businessOverDTO); |
| | | return ApiResponse.success("æä½æå"); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.config.Jwt.JwtTokenUtil; |
| | | import com.doumee.core.annotation.trace.Trace; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.LoginUserInfo; |
| | |
| | | config: |
| | | server-addr: http://175.27.187.84:8848 #é
ç½®Nacoså°å |
| | | namespace: dmvisit |
| | | # namespace: dev_renkang |
| | | username: nacos |
| | | password: nacos |
| | | # file-extension: yaml |
| | |
| | | # data-id: com.doumee.meeting.admin |
| | | discovery: |
| | | server-addr: http://175.27.187.84:8848 #é
ç½®Nacoså°å |
| | | # namespace: dev_renkang |
| | | namespace: dmvisit |
| | | username: nacos |
| | | password: nacos |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.admin.request; |
| | | |
| | | import com.doumee.core.constants.ResponseStatus; |
| | | import com.doumee.core.exception.BusinessException; |
| | | import com.doumee.core.utils.DESUtil; |
| | | import com.doumee.dao.admin.response.DevWgResponseParam; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | |
| | | @Data |
| | | @ApiModel("ä¼è®®ç»æè¯·æ±ç±»") |
| | | public class BusinessOverDTO { |
| | | @ApiModelProperty(value = "ä¸å¡ä¸»é®") |
| | | private Integer id ; |
| | | @ApiModelProperty(value = "ä¸å¡æä½å¤æ³¨") |
| | | private String businessRemark; |
| | | @ApiModelProperty(value = "ç¨æ·ä¸»é®",required = true) |
| | | private Integer userId ; |
| | | |
| | | } |
| | |
| | | |
| | | @Select(" select a.id , a.START_TIME , a.END_TIME , b.`NAME` as roomName , a.`NAME` as meetingName ,date_format(a.START_TIME,'%Y-%m-%d') as meetingDate , a.START_TIME as startTime, a.status ," + |
| | | " CONCAT(date_format(a.START_TIME,'%H:%i') , ' ~ ',date_format(a.END_TIME,'%H:%i')) as meetingTime, c.REALNAME as bookingUser ," + |
| | | " CASE WHEN a.START_TIME > now() and a.`STATUS` = 0 THEN 1 WHEN a.END_TIME < now() or a.`STATUS` = 1 THEN 3 ELSE 2 END meetingStatus , b.IMGURL as imgUrl ," + |
| | | " CASE WHEN a.START_TIME > now() AND a.`STATUS` = 0 THEN 1 WHEN a.END_TIME < now() AND a.`STATUS` = 0 THEN 3 WHEN a.`STATUS` = 1 THEN 5 ELSE 2 END meetingStatus ," + |
| | | " b.IMGURL as imgUrl ," + |
| | | " a.remark " + |
| | | " from meeting_book a inner join meeting_rooms b on a.ROOM_ID = b.ID " + |
| | | " inner join system_user c on a.CREATOR = c.id " + |
| | |
| | | |
| | | @Select(" select a.id , a.START_TIME , a.END_TIME , b.id as roomId, b.`NAME` as roomName , a.`NAME` as meetingName ,date_format(a.START_TIME,'%Yå¹´%mæ%dæ¥') as meetingDate ," + |
| | | " CONCAT(date_format(a.START_TIME,'%H:%i') , ' ~ ',date_format(a.END_TIME,'%H:%i')) as meetingTime, c.REALNAME as bookingUserName ," + |
| | | " CASE WHEN a.START_TIME > now() and a.`STATUS` = 0 THEN 1 WHEN a.END_TIME < now() or a.`STATUS` = 1 THEN 3 ELSE 2 END meetingStatus ," + |
| | | " CASE WHEN a.START_TIME > now() AND a.`STATUS` = 0 THEN 1 WHEN a.END_TIME < now() AND a.`STATUS` = 0 THEN 3 WHEN a.`STATUS` = 1 THEN 5 ELSE 2 END meetingStatus ," + |
| | | " a.CONTENT as meetingContent, c.MOBILE as bookingUserMobile , e.`NAME` as bookingUserDepartment , a.CREATOR as bookingUserId , a.remark " + |
| | | " from meeting_book a inner join meeting_rooms b on a.ROOM_ID = b.ID " + |
| | | " inner join system_user c on a.CREATOR = c.id " + |
| | | " inner join system_department_user d on c.id = d.USER_ID " + |
| | | " INNER JOIN system_department e on d.DEPARTMENT_ID = e.ID " + |
| | | " left join system_user c on a.CREATOR = c.id " + |
| | | " left join system_department_user d on c.id = d.USER_ID " + |
| | | " left JOIN system_department e on d.DEPARTMENT_ID = e.ID " + |
| | | " where a.id = #{id} ") |
| | | MeetingDetailResponse meetingDetail(@Param("id") Integer id); |
| | | |
| | |
| | | package com.doumee.dao.business.model; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.doumee.core.annotation.excel.ExcelColumn; |
| | | import com.doumee.core.model.LoginUserModel; |
| | | import io.swagger.annotations.ApiModel; |
| | |
| | | @ExcelColumn(name="æ¶é´æ®µç¼ç ï¼å
³èroom_time表ï¼") |
| | | private Integer timeId; |
| | | |
| | | @ApiModelProperty(value = "ç»ææ¶é´ HH:mm",hidden = true) |
| | | @TableField(exist = false) |
| | | private String endTime; |
| | | } |
| | |
| | | @ApiModelProperty(value = "ä¼è®®å
容") |
| | | private String content; |
| | | |
| | | @ApiModelProperty(value = "ç¶æ 0å¯ç¨ 1ç¦ç¨") |
| | | @ApiModelProperty(value = "ç¶æ 0å·²é¢çº¦ 1å·²æ¤é 2å·²ç»æ ") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "åæ¶äºº") |
| | |
| | | @ApiModelProperty(value = "åééç¥ï¼0=æªåé 1=å·²åé") |
| | | private Integer sendNotice; |
| | | |
| | | @ApiModelProperty(value = "忶夿³¨") |
| | | private String cancelInfo; |
| | | |
| | | @ApiModelProperty(value = "æåç»æäºº") |
| | | private Integer doneUserId; |
| | | |
| | | @ApiModelProperty(value = "æåç»ææ¶é´") |
| | | private Date doneDate; |
| | | |
| | | @ApiModelProperty(value = "忶夿³¨") |
| | | private String doneInfo; |
| | | |
| | | @ApiModelProperty(value = "é¢çº¦äºº") |
| | | @TableField(exist = false) |
| | |
| | | @ApiModelProperty(value = "weekday") |
| | | @TableField(exist = false) |
| | | private String weekday; |
| | | |
| | | @ApiModelProperty(value = "ä¼è®®ç¶æ: 1=æªå¼å§ï¼2=è¿è¡ä¸ï¼3=å·²ç»æ ; 4=å³å°å¼å§; 5=å·²æ¤é") |
| | | @TableField(exist = false) |
| | | private Integer meetingStatus; |
| | | } |
| | |
| | | @ExcelColumn(name="弿¾å¼å§æ¶é´") |
| | | private String startTime; |
| | | |
| | | @ApiModelProperty(value = "å¼åç»ææ¶é´") |
| | | @ExcelColumn(name="å¼åç»ææ¶é´") |
| | | @ApiModelProperty(value = "弿¾ç»ææ¶é´") |
| | | @ExcelColumn(name="弿¾ç»ææ¶é´") |
| | | private String endTime; |
| | | |
| | | @ApiModelProperty(value = "ç¶æ 0å¯é 1ä¸å¯é ", example = "1") |
| | |
| | | |
| | | @ApiModelProperty(value = "ä¼è®®å®¤ä¸»é®") |
| | | private Integer roomsId; |
| | | |
| | | @ApiModelProperty(value = "ä¼è®®ç¶æ: 1=æªå¼å§ï¼2=è¿è¡ä¸ï¼3=å·²ç»æ ; 4=å³å°å¼å§; 5=å·²æ¤é") |
| | | private Integer meetingStatus; |
| | | |
| | | |
| | | } |
| | |
| | | import com.doumee.core.model.LoginUserInfo; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.admin.request.BusinessOverDTO; |
| | | import com.doumee.dao.admin.response.DevWgResponseParam; |
| | | import com.doumee.dao.business.model.Bookings; |
| | | import com.doumee.dao.business.vo.RoomStatisticsVo; |
| | |
| | | * @param id |
| | | * @param userId |
| | | */ |
| | | void reservationCancel(Integer id,Integer userId); |
| | | void reservationCancel(BusinessOverDTO businessOverDTO); |
| | | |
| | | |
| | | /** |
| | |
| | | void sendBookingsNotice(); |
| | | |
| | | IPage<UserResponse> getUserPage(PageWrap<UserPageRequest> pageWrap); |
| | | |
| | | void reservationOver(BusinessOverDTO businessOverDTO); |
| | | } |
| | |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.core.wx.MeetConstants; |
| | | import com.doumee.core.wx.SendWxMessage; |
| | | import com.doumee.dao.admin.request.BusinessOverDTO; |
| | | import com.doumee.dao.admin.request.QrOpenDoorDto; |
| | | import com.doumee.dao.admin.response.DevWgResponseParam; |
| | | import com.doumee.dao.business.*; |
| | |
| | | bookquery.selectAs(BookingTime::getTimeId, Bookings::getRoomTimeId); |
| | | bookquery.selectAs(BookingTime::getId, Bookings::getBookingTimeId); |
| | | bookquery.eq(Bookings::getIsdeleted, MeetConstants.ZERO); |
| | | bookquery.eq(BookingTime::getIsdeleted, MeetConstants.ZERO); |
| | | bookquery.eq(Bookings::getRoomId, bookings.getRoomId()); |
| | | bookquery.eq(Bookings::getStatus, MeetConstants.ZERO); |
| | | //bookquery.ge(Bookings::getStartTime, bookings.getStartTime()); |
| | |
| | | List<Bookings> bookList = bookingsJoinMapper.selectJoinList(Bookings.class, bookquery); |
| | | for (int i = 0; i < bookings.getBookingTimeList().size(); i++) { |
| | | BookingTime s = bookings.getBookingTimeList().get(i); |
| | | RoomTime roomTime = roomTimeJoinMapper.selectById(s.getTimeId()); |
| | | if(Objects.isNull(roomTime)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"å卿ªæ¥è¯¢å°çé
ç½®æ¥æï¼è¯·å·æ°éè¯"); |
| | | } |
| | | String endRoomTime = gsDate + " " + roomTime.getEndTime()+":00"; |
| | | if(DateUtil.StringToDate(endRoomTime, "yyyy-MM-dd HH:mm:ss").getTime()<=System.currentTimeMillis()){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),endRoomTime + "å·²è¶
è¿å½åæ¶é´ï¼æ æ³è¿è¡é¢çº¦"); |
| | | } |
| | | if (!Objects.isNull(bookList) && bookList.size() > MeetConstants.ZERO) { |
| | | List<Bookings> detailDataDtoStream = |
| | | bookList.stream().filter(a -> MeetConstants.equalsInteger(s.getTimeId(), a.getRoomTimeId()) |
| | |
| | | .filter(a -> MeetConstants.equalsInteger(a.getRoomTimeId(), s.getTimeId())) |
| | | .collect(Collectors.toList()); |
| | | if (chriList.size() > 0) { |
| | | RoomTime roomTime = roomTimeJoinMapper.selectById(s.getTimeId()); |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(), "该ä¼è®®ï¼" + roomTime.getStartTime() + "-" + roomTime.getEndTime() + "æ¶é´æ®µå
已被使ç¨"); |
| | | } |
| | | } else { |
| | |
| | | .filter(a -> MeetConstants.equalsInteger(a.getRoomTimeId(), s.getTimeId())) |
| | | .collect(Collectors.toList()); |
| | | if (chriList.size() > 0) { |
| | | RoomTime roomTime = roomTimeJoinMapper.selectById(s.getTimeId()); |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(), "该ä¼è®®ï¼" + roomTime.getStartTime() + "-" + roomTime.getEndTime() + "æ¶é´æ®µå
已被使ç¨"); |
| | | } |
| | | } |
| | |
| | | |
| | | |
| | | bookings.getBookingTimeList().stream().forEach(s -> { |
| | | s.setId(null); |
| | | s.setCreator(user.getId()); |
| | | s.setCreateDate(new Date()); |
| | | s.setIsdeleted(MeetConstants.ZERO); |
| | | s.setBookingId(bookings.getId()); |
| | | bookingTimeJoinMapper.insert(s); |
| | | }); |
| | | |
| | | |
| | | } |
| | | |
| | | public void updateManager(Bookings bookings, LoginUserInfo user) { |
| | |
| | | userRel.setIsdeleted(MeetConstants.ONE); |
| | | userRelJoinMapper.update(userRel, updateWrapper); |
| | | } |
| | | bookings.getSysList().stream().forEach(s -> { |
| | | s.setIsdeleted(MeetConstants.ZERO); |
| | | s.setCreateDate(new Date()); |
| | | s.setCreator(user.getId()); |
| | | s.setUserId(s.getUserId()); |
| | | s.setObjId(bookings.getId()); |
| | | s.setObjType(MeetConstants.ONE); |
| | | userRelJoinMapper.insert(s); |
| | | }); |
| | | |
| | | if(com.github.xiaoymin.knife4j.core.util.CollectionUtils.isNotEmpty(bookings.getSysList())){ |
| | | bookings.getSysList().stream().forEach(s -> { |
| | | s.setId(null); |
| | | s.setIsdeleted(MeetConstants.ZERO); |
| | | s.setCreateDate(new Date()); |
| | | s.setCreator(user.getId()); |
| | | s.setUserId(s.getUserId()); |
| | | s.setObjId(bookings.getId()); |
| | | s.setObjType(MeetConstants.ONE); |
| | | userRelJoinMapper.insert(s); |
| | | }); |
| | | } |
| | | } |
| | | |
| | | public void updateProjectRel(Bookings rooms, LoginUserInfo user) { |
| | |
| | | projectRelJoinMapper.update(projectRel, updateWrapper); |
| | | |
| | | rooms.getProjectList().stream().forEach(s -> { |
| | | |
| | | s.setId(null); |
| | | s.setIsdeleted(MeetConstants.ZERO); |
| | | s.setCreateDate(new Date()); |
| | | s.setCreator(user.getId()); |
| | |
| | | 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, SystemUser::getId, pageWrap.getModel().getDepartmentId()); |
| | | queryWrapper.eq(pageWrap.getModel().getDepartmentId() != null, Company::getId, pageWrap.getModel().getDepartmentId()); |
| | | |
| | | if (pageWrap.getModel().getStartTime() != null) { |
| | | queryWrapper.ge(Bookings::getStartTime, pageWrap.getModel().getStartTime()); |
| | |
| | | SimpleDateFormat format1 = new SimpleDateFormat("HH:mm"); |
| | | IPage<Bookings> result = bookingsJoinMapper.selectJoinPage(page, Bookings.class, queryWrapper); |
| | | result.getRecords().stream().forEach(s -> { |
| | | if(s.getStartTime().getTime()>System.currentTimeMillis()&&s.getStatus().equals(Constants.ZERO)){ |
| | | s.setMeetingStatus(Constants.ONE); |
| | | }else if(s.getEndTime().getTime()<System.currentTimeMillis()||Constants.equalsInteger(s.getStatus(),Constants.ONE) || Constants.equalsInteger(s.getStatus(),Constants.TWO) ){ |
| | | s.setMeetingStatus(Constants.THREE); |
| | | }else{ |
| | | s.setMeetingStatus(Constants.TWO); |
| | | } |
| | | MPJLambdaWrapper<Multifile> bookquery = new MPJLambdaWrapper<>(); |
| | | bookquery.eq(Multifile::getIsdeleted, MeetConstants.ZERO); |
| | | bookquery.eq(Multifile::getObjId, s.getId()); |
| | |
| | | */ |
| | | @Override |
| | | public IPage<MeetingListResponse> getMyMeetingPage(PageWrap<MeetingPageRequest> pageWrap) { |
| | | IPage<MeetingListResponse> page = bookingsMapper.myMeetingPage(pageWrap.toPage(), new QueryWrapper<MeetingListResponse>() |
| | | |
| | | QueryWrapper queryWrapper = new QueryWrapper<MeetingListResponse>() |
| | | .and(StringUtils.isNotBlank(pageWrap.getModel().getRoomsName()), |
| | | j -> j.like("a.NAME",pageWrap.getModel().getRoomsName()).or() |
| | | .like(" b.NAME", pageWrap.getModel().getRoomsName())) |
| | | .exists(pageWrap.getModel().getQueryType().equals(MeetConstants.ONE) && !Objects.isNull(pageWrap.getModel().getUserId()), |
| | | " select 1 from meeting_user_rel u where a.id = u.OBJ_ID and u.USER_ID = '" + pageWrap.getModel().getUserId() + "' and u.ISDELETED = 0 and OBJ_TYPE = 1 ") |
| | | .eq(pageWrap.getModel().getQueryType().equals(MeetConstants.TWO) && !Objects.isNull(pageWrap.getModel().getUserId()), "a.CREATOR", pageWrap.getModel().getUserId()) |
| | | .like(StringUtils.isNotBlank(pageWrap.getModel().getQueryDate()), "a.START_TIME", pageWrap.getModel().getQueryDate()) |
| | | .eq(!Objects.isNull(pageWrap.getModel().getRoomsId()), "b.id", pageWrap.getModel().getRoomsId()) |
| | | .apply(!Objects.isNull(pageWrap.getModel().getStatus()) && pageWrap.getModel().getStatus().equals(MeetConstants.ONE), " now() < a.END_TIME and a.STATUS = 0 ") |
| | | .and(!Objects.isNull(pageWrap.getModel().getStatus()) && pageWrap.getModel().getStatus().equals(MeetConstants.TWO), |
| | | j -> j.apply("now() >= a.END_TIME ").or() |
| | | .eq(" a.STATUS", MeetConstants.ONE)) |
| | | .eq("b.ISDELETED",MeetConstants.ZERO) |
| | | .eq("b.STATUS",MeetConstants.ZERO) |
| | | .eq("a.ISDELETED",MeetConstants.ZERO) |
| | | .orderByDesc(!Objects.isNull(pageWrap.getModel().getStatus())&&pageWrap.getModel().getStatus().equals(MeetConstants.TWO),"a.START_TIME") |
| | | .orderByAsc(Objects.isNull(pageWrap.getModel().getStatus())||pageWrap.getModel().getStatus().equals(MeetConstants.ONE),"a.START_TIME") |
| | | ); |
| | | .exists(pageWrap.getModel().getQueryType().equals(MeetConstants.ONE) && !Objects.isNull(pageWrap.getModel().getUserId()), |
| | | " select 1 from meeting_user_rel u where a.id = u.OBJ_ID and u.USER_ID = '" + pageWrap.getModel().getUserId() + "' and u.ISDELETED = 0 and OBJ_TYPE = 1 ") |
| | | .eq(pageWrap.getModel().getQueryType().equals(MeetConstants.TWO) && !Objects.isNull(pageWrap.getModel().getUserId()), "a.CREATOR", pageWrap.getModel().getUserId()) |
| | | .like(StringUtils.isNotBlank(pageWrap.getModel().getQueryDate()), "a.START_TIME", pageWrap.getModel().getQueryDate()) |
| | | .eq(!Objects.isNull(pageWrap.getModel().getRoomsId()), "b.id", pageWrap.getModel().getRoomsId()) |
| | | .apply(!Objects.isNull(pageWrap.getModel().getStatus()) && pageWrap.getModel().getStatus().equals(MeetConstants.ONE), " now() < a.END_TIME and a.STATUS = 0 ") |
| | | .and(!Objects.isNull(pageWrap.getModel().getStatus()) && pageWrap.getModel().getStatus().equals(MeetConstants.TWO), |
| | | j -> j.apply("now() >= a.END_TIME ").or() |
| | | .eq(" a.STATUS", MeetConstants.ONE)) |
| | | .eq("b.ISDELETED",MeetConstants.ZERO) |
| | | .eq("b.STATUS",MeetConstants.ZERO) |
| | | .eq("a.ISDELETED",MeetConstants.ZERO) |
| | | .apply(Objects.nonNull(pageWrap.getModel().getMeetingStatus()) |
| | | &&Constants.equalsInteger(pageWrap.getModel().getMeetingStatus(),Constants.ONE), |
| | | " now() > a.START_TIME and a.status = 0 " |
| | | ) |
| | | .apply(Objects.nonNull(pageWrap.getModel().getMeetingStatus()) |
| | | &&Constants.equalsInteger(pageWrap.getModel().getMeetingStatus(),Constants.TWO), |
| | | " now() >= a.START_TIME and a.END_TIME >= now() " |
| | | ) |
| | | .apply(Objects.nonNull(pageWrap.getModel().getMeetingStatus()) |
| | | &&Constants.equalsInteger(pageWrap.getModel().getMeetingStatus(),Constants.THREE), |
| | | " now() > a.END_TIME or a.status = 2 " |
| | | ) |
| | | .apply(Objects.nonNull(pageWrap.getModel().getMeetingStatus()) |
| | | &&Constants.equalsInteger(pageWrap.getModel().getMeetingStatus(),Constants.FOUR), |
| | | " now() > a.START_TIME and SUBDATE(NOW(), INTERVAL 120 MINUTE) > a.START_TIME " |
| | | ) |
| | | .apply(Objects.nonNull(pageWrap.getModel().getMeetingStatus()) |
| | | &&Constants.equalsInteger(pageWrap.getModel().getMeetingStatus(),Constants.FIVE), |
| | | " a.STATUS = 1 " |
| | | ) |
| | | // .orderByDesc(!Objects.isNull(pageWrap.getModel().getStatus())&&pageWrap.getModel().getStatus().equals(MeetConstants.TWO),"a.START_TIME") |
| | | // .orderByAsc(Objects.isNull(pageWrap.getModel().getStatus())||pageWrap.getModel().getStatus().equals(MeetConstants.ONE),"a.START_TIME") |
| | | .orderByDesc( Constants.equalsInteger(pageWrap.getModel().getQueryType(),MeetConstants.TWO),"a.CREATE_DATE") |
| | | .orderByAsc(Constants.equalsInteger(pageWrap.getModel().getQueryType(),MeetConstants.ONE),"a.START_TIME"); |
| | | |
| | | IPage<MeetingListResponse> page = bookingsMapper.myMeetingPage(pageWrap.toPage(), queryWrapper); |
| | | String path = systemDictDataBiz.queryByCode(MeetConstants.FTP, MeetConstants.FTP_RESOURCE_PATH).getCode() + systemDictDataBiz.queryByCode(MeetConstants.FTP, MeetConstants.PROJECTS).getCode(); |
| | | page.getRecords().forEach(i -> { |
| | | i.setPrefixUrl(path); |
| | | if(i.getMeetingStatus().equals(Constants.ZERO)){ |
| | | if(i.getStatus()==Constants.ONE){ |
| | | i.setMeetingStatus(5); |
| | | }else{ |
| | | //å¼å§å5åé 大äºå½åæ¶é´ åæ¾ç¤ºå³å°å¼å§ |
| | | if(DateUtil.afterMinutesDate(i.getStartTime(),-5).getTime()>System.currentTimeMillis()){ |
| | | if(i.getMeetingStatus()==Constants.ONE){ |
| | | //å¼å§å120åé 大äºå½åæ¶é´ åæ¾ç¤ºå³å°å¼å§ |
| | | if(DateUtil.afterMinutesDate(i.getStartTime(),-120).getTime()>System.currentTimeMillis()){ |
| | | i.setMeetingStatus(4); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | }); |
| | |
| | | |
| | | /** |
| | | * ä¼è®®é¢çº¦è®°å½åæ¶ |
| | | * |
| | | * @param id |
| | | * @param userId |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = {Exception.class,BusinessException.class}) |
| | | public void reservationCancel(Integer id, Integer userId) { |
| | | Bookings bookings = bookingsMapper.selectById(id); |
| | | public void reservationCancel(BusinessOverDTO businessOverDTO) { |
| | | Bookings bookings = bookingsMapper.selectById(businessOverDTO.getId()); |
| | | if (Objects.isNull(bookings)) { |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(), "æªæ¥è¯¢å°é¢çº¦è®°å½"); |
| | | } |
| | | if (!bookings.getCreator().equals(userId)) { |
| | | if (!bookings.getCreator().equals(businessOverDTO.getUserId())) { |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(), "éä½ çé¢çº¦è®°å½,æ æ³è¿è¡åæ¶"); |
| | | } |
| | | if (System.currentTimeMillis() > bookings.getStartTime().getTime()) { |
| | |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(), "æ¬æ¬¡æä½å¤±è´¥,é¢çº¦ç¶æå·²æµè½¬"); |
| | | } |
| | | bookings.setCancelTime(new Date()); |
| | | bookings.setCancelUser(userId); |
| | | bookings.setCancelUser(businessOverDTO.getUserId()); |
| | | bookings.setCancelInfo(businessOverDTO.getBusinessRemark()); |
| | | bookings.setStatus(MeetConstants.ONE); |
| | | bookings.setEditDate(new Date()); |
| | | bookings.setEditor(userId); |
| | | bookings.setEditor(businessOverDTO.getUserId()); |
| | | bookingsMapper.updateById(bookings); |
| | | //åæ¶ä¼è®® åéåæ¶éç¥ |
| | | this.sendNotice(bookings, 3); |
| | |
| | | sendWxMessage.bookingsCancel(systemUserMapper.selectById(bookings.getCreator()), bookings, roomsMapper.selectById(bookings.getRoomId())); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = {Exception.class,BusinessException.class}) |
| | | public void reservationOver(BusinessOverDTO businessOverDTO) { |
| | | if(Objects.isNull(businessOverDTO) |
| | | || Objects.isNull(businessOverDTO.getUserId()) |
| | | || Objects.isNull(businessOverDTO.getId()) |
| | | ){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | Bookings bookings = bookingsMapper.selectById(businessOverDTO.getId()); |
| | | if (Objects.isNull(bookings)) { |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(), "æªæ¥è¯¢å°é¢çº¦è®°å½"); |
| | | } |
| | | Long userRelList = userRelMapper.selectCount(new QueryWrapper<UserRel>().lambda() |
| | | .eq(UserRel::getIsdeleted,Constants.ZERO) |
| | | .eq(UserRel::getObjId,bookings.getRoomId()) |
| | | .eq(UserRel::getObjType,Constants.ONE) |
| | | .eq(UserRel::getUserId,businessOverDTO.getUserId())); |
| | | |
| | | if (!bookings.getCreator().equals(businessOverDTO.getUserId()) && userRelList <= 0) { |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(), "éä½ çé¢çº¦è®°å½,æ æ³è¿è¡è¯¥æä½"); |
| | | } |
| | | if (System.currentTimeMillis() < bookings.getStartTime().getTime()) { |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(), "ä¼è®®æªå¼å§,æ æ³è¿è¡ç»æï¼å¦é该æä½è¯·ä½¿ç¨åæ¶åè½"); |
| | | } |
| | | if (System.currentTimeMillis() > bookings.getEndTime().getTime()) { |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(), "ä¼è®®å·²ç»æï¼æ æ³è¿è¡è¯¥æä½"); |
| | | } |
| | | if(!bookings.getStatus().equals(MeetConstants.ZERO)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(), "æ¬æ¬¡æä½å¤±è´¥,ä¼è®®ç¶æå·²æµè½¬"); |
| | | } |
| | | bookings.setDoneDate(new Date()); |
| | | bookings.setDoneUserId(businessOverDTO.getUserId()); |
| | | bookings.setStatus(MeetConstants.TWO); |
| | | bookings.setEditDate(new Date()); |
| | | bookings.setEditor(businessOverDTO.getUserId()); |
| | | bookingsMapper.updateById(bookings); |
| | | |
| | | //æ¥è¯¢ææçé¢çº¦æ¶é´ |
| | | List<BookingTime> bookingTimeList = bookingTimeJoinMapper.selectJoinList(BookingTime.class, |
| | | new MPJLambdaWrapper<BookingTime>() |
| | | .selectAll(BookingTime.class) |
| | | .selectAs(RoomTime::getEndTime,BookingTime::getEndTime) |
| | | .leftJoin(RoomTime.class,RoomTime::getId,BookingTime::getTimeId) |
| | | .eq(BookingTime::getBookingId,bookings.getId())); |
| | | //è·åå½å¤© åªæå½å¤©æ¥æå
å¯ä»¥å¤ç |
| | | String today = DateUtil.dateToString(new Date(),"yyyy-mm-dd"); |
| | | //å¾ªç¯æ è®°æ°æ®ä¸ºå·²å é¤ ä¸åå ç¨ |
| | | for (BookingTime bookingTime:bookingTimeList) { |
| | | if(DateUtil.getDateFromString(today + " " + bookingTime.getEndTime() +":00").getTime()>System.currentTimeMillis()){ |
| | | bookingTime.setIsdeleted(Constants.ZERO); |
| | | bookingTimeJoinMapper.updateById(bookingTime); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 宿¶åéä¼è®® å³å°å¼å§éç¥ |
| | |
| | | Notices notices = new Notices(noticeObjectType,bookings.getId(),noticeObjectType.getInfo(),bookings.getCreator(), Constants.ZERO); |
| | | noticeList.add(notices); |
| | | if(noticeList.size()>0){ |
| | | noticesMapper.insertBatchSomeColumn(noticeList); |
| | | noticesMapper.insert(noticeList); |
| | | } |
| | | } |
| | | |
| | |
| | | public IPage<UserResponse> getUserPage(PageWrap<UserPageRequest> pageWrap) { |
| | | IPage<UserResponse> page = systemUserMapper.getUserPage(pageWrap.toPage(),new QueryWrapper<UserResponse>() |
| | | .and(StringUtils.isNotBlank(pageWrap.getModel().getKeyword()), i -> i.like("c.realName", pageWrap.getModel().getKeyword()) |
| | | .or().like("e.name", pageWrap.getModel().getKeyword()) |
| | | .or().like("d.COMPANY_NAME_PATH", pageWrap.getModel().getKeyword()) |
| | | ) |
| | | .eq("c.DELETED",0) |
| | | .eq("c.status",0) |
| | |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | 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.core.wx.MeetConstants; |
| | | import com.doumee.dao.business.ProjectsMapper; |
| | |
| | | public Integer create(Projects projects) { |
| | | |
| | | Projects insert = new Projects(); |
| | | insert.setIsdeleted(Constants.ZERO); |
| | | insert.setCreator(projects.getCreator()); |
| | | insert.setEditor(projects.getEditor()); |
| | | insert.setName(projects.getName()); |
| | |
| | | bookquery.selectAs(BookingTime::getTimeId, Bookings::getRoomTimeId); |
| | | bookquery.selectAs(BookingTime::getId, Bookings::getBookingTimeId); |
| | | bookquery.eq(Bookings::getIsdeleted, Constants.ZERO); |
| | | bookquery.eq(BookingTime::getIsdeleted, Constants.ZERO); |
| | | bookquery.eq(Bookings::getRoomId, roomTime.getRoomId()); |
| | | bookquery.eq(Bookings::getStatus,Constants.ZERO); |
| | | bookquery.apply("DATE_FORMAT(t.START_TIME,'%Y-%m-%d') = DATE_FORMAT('" + DateUtil.dateToString(roomTime.getYudingDate(), "yyyy-MM-dd") + "','%Y-%m-%d') "); |
| | |
| | | driver-class-name: com.mysql.cj.jdbc.Driver |
| | | type: com.alibaba.druid.pool.DruidDataSource |
| | | |
| | | jackson: |
| | | time-zone: GMT+8 |
| | | date-format: yyyy-MM-dd HH:mm:ss |
| | | |
| | | #rocketmq: |
| | | # namesrvAddr: rmq-cn-pe335rcnn06.cn-shanghai.rmq.aliyuncs.com:8080 |
| | | # groupId: GID-wakatest |
| | | # topic: waka-test |
| | | # username: 4derRb4Sw5EkqUMI |
| | | # password: v50N97wf4av8Q8I4 |
| | | # |
| | | #knife4j: |
| | | # enable: true |
| | | # basic: |
| | | # enable: true |
| | | # username: admin |
| | | # password: test@168.com |
| | | # password: 111111 |
| | | |
| | | debug_model: true |
| | | |
| | |
| | | description: ${project.name}æ¥å£ææ¡£ |
| | | enabled: true |
| | | # ç¦ç¨swaggeræ¶çéå®åå°å |
| | | redirect-uri: / |
| | | redirect-uri: / |
| | | |
| | | ########################微信æ¯ä»ç¸å
³é
ç½®######################## |
| | | wx: |
| | | pay: |
| | | appId: wxfab6da18632e28de |
| | | appSecret: 4ee3b22afa90287834319fc3c1635271 |
| | | mchId: 1229817002 |
| | | mchKey: u4TSNtv0wFP7WRfnxBgijYOtRhS9FvlM |
| | | notifyUrl: https://dmtest.ahapp.net/smartmeeting_interface/web/api/wxPayNotify |
| | | keyPath: /usr/local/apiclient_cert.p12 |
| | | |
| | | tencent: |
| | | map: |
| | | remoteHost: https://apis.map.qq.com |
| | | appKey: 3AYBZ-I5R3V-2BVP3-UWBDQ-ETBM5-B2BBQ |
| | | |
| | | |
| | | ########################宿¶å¼å¯é
ç½®######################## |
| | | timing: true |
| | | |
| | | des_pwd: 123456SDFKDJF |
| | | |
| | | ## MQTT## |
| | | mqtt: |
| | | host: tcp://192.168.10.198:1883 |
| | | userName: root |
| | | passWord: 123456 |
| | | qos: 1 |
| | | clientId: ClientId_local #ClientId_localå¿
é¡»å¯ä¸ æ¯å¦ä½ å·²ç»å®äºå«ABC é£ä½ å°±ä¸ç´å«ABC å
¶ä»å°æ¹å°±ä¸è¦ä½¿ç¨ABCäº |
| | | timeout: 10 |
| | | keepalive: 20 |
| | | topic1: A/pick/warn/# #ç¬¦å·æ¯ä»£è¡¨æ´ä¸ªwarnä¸é¢çå
¨é¨åä¸»é¢ æ²¡æçè§£çè¯ å¯ä»¥ç¾åº¦ä»ç»çè§£ä¸ä¸ |
| | | topic2: A/cmd/resp |
| | | topic3: ABCF |
| | | topic4: ABCH |
| | |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-parent</artifactId> |
| | | <version>2.3.12.RELEASE</version> |
| | | <relativePath/> |
| | | </parent> |
| | | <properties> |
| | | <java.version>1.8</java.version> |
| | |
| | | import com.doumee.service.system.SystemLoginService; |
| | | import com.doumee.service.system.SystemUserService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.server.reactive.ServerHttpRequest; |
| | |
| | | password: nacos |
| | | discovery: |
| | | server-addr: http://175.27.187.84:8848 #é
ç½®Nacoså°å |
| | | # namespace: dmvisit |
| | | namespace: dmvisit |
| | | # namespace: dev_renkang |
| | | username: nacos |
| | | password: nacos |
| | | gateway: |
| | |
| | | <swagger.bootstrap-ui.version>1.9.6</swagger.bootstrap-ui.version> |
| | | <fastjson.version>1.2.70</fastjson.version> |
| | | <druid.version>1.2.0</druid.version> |
| | | <mybatis.plus.version>3.4.2</mybatis.plus.version> |
| | | <mybatis.plus.version>3.5.7</mybatis.plus.version> |
| | | <apache.shiro.version>1.7.0</apache.shiro.version> |
| | | <oshi.version>5.7.0</oshi.version> |
| | | <jna.version>5.7.0</jna.version> |
| | |
| | | <dependency> |
| | | <groupId>com.github.pagehelper</groupId> |
| | | <artifactId>pagehelper-spring-boot-starter</artifactId> |
| | | <version>1.3.0</version> |
| | | <!--使ç¨spring boot2æ´å pagehelper-spring-boot-starterå¿
é¡»æé¤ä¸ä¸ä¾èµ |
| | | å 为pagehelper-spring-boot-starterä¹å·²ç»å¨pomä¾èµäºmybatisä¸mybatis-spring |
| | | æä»¥ä¼ä¸mybatis-plus-boot-starterä¸çmybatisä¸mybatis-springåçå²çª |
| | | --> |
| | | <exclusions> |
| | | <exclusion> |
| | | <groupId>org.mybatis</groupId> |
| | | <artifactId>mybatis</artifactId> |
| | | </exclusion> |
| | | <exclusion> |
| | | <groupId>org.mybatis</groupId> |
| | | <artifactId>mybatis-spring</artifactId> |
| | | </exclusion> |
| | | <!-- è§£å³jsqlparser ä¾èµçæ¬å²çª--> |
| | | <exclusion> |
| | | <artifactId>jsqlparser</artifactId> |
| | | <groupId>com.github.jsqlparser</groupId> |
| | | </exclusion> |
| | | </exclusions> |
| | | <version>2.1.0</version> |
| | | </dependency> |
| | | |
| | | <!-- <dependency> |
| | | <groupId>com.github.pagehelper</groupId> |
| | | <artifactId>pagehelper-spring-boot-starter</artifactId> |
| | | <version>1.3.0</version> |
| | | <!–使ç¨spring boot2æ´å pagehelper-spring-boot-starterå¿
é¡»æé¤ä¸ä¸ä¾èµ |
| | | å 为pagehelper-spring-boot-starterä¹å·²ç»å¨pomä¾èµäºmybatisä¸mybatis-spring |
| | | æä»¥ä¼ä¸mybatis-plus-boot-starterä¸çmybatisä¸mybatis-springåçå²çª |
| | | –> |
| | | <exclusions> |
| | | <exclusion> |
| | | <groupId>org.mybatis</groupId> |
| | | <artifactId>mybatis</artifactId> |
| | | </exclusion> |
| | | <exclusion> |
| | | <groupId>org.mybatis</groupId> |
| | | <artifactId>mybatis-spring</artifactId> |
| | | </exclusion> |
| | | <!– è§£å³jsqlparser ä¾èµçæ¬å²çª–> |
| | | <!–<exclusion> |
| | | <artifactId>jsqlparser</artifactId> |
| | | <groupId>com.github.jsqlparser</groupId> |
| | | </exclusion>–> |
| | | </exclusions> |
| | | </dependency>--> |
| | | <!-- è¿æ¥æ± --> |
| | | <dependency> |
| | | <groupId>com.alibaba</groupId> |
| | |
| | | interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL)); |
| | | return interceptor; |
| | | } |
| | | @Bean |
| | | public EasySqlInjector sqlInjector() { |
| | | return new EasySqlInjector(); |
| | | } |
| | | |
| | | } |
| | |
| | | NOT_ALLOWED(5110, "ä¸å
许çæä½"), |
| | | TOKEN_EXCEED_TIME(5111, "TOKENè¿æ"), |
| | | NO_LOGIN(5112, "æªç»å½"), |
| | | NO_ALLOW_LOGIN(5113, "è¯¥ç±»ç¨æ·ä¸å
许ç»å½"), |
| | | ; |
| | | |
| | | private int code; |
| | |
| | | import com.doumee.dao.system.model.SystemPermission; |
| | | import com.doumee.dao.system.model.SystemRole; |
| | | import com.doumee.dao.system.model.SystemUser; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.beans.BeanUtils; |
| | | |
| | |
| | | private String sessionId; |
| | | |
| | | private Date loginDate; |
| | | @ApiModelProperty(value = "è´¦æ·æ¥æºï¼0=åå°æ·»å ï¼ 2=叿ºæ³¨å") |
| | | private Integer source; |
| | | |
| | | private List<String> roles; |
| | | |
| | |
| | | public static final String ERP ="ERP" ; |
| | | public static final Integer THREE =3 ; |
| | | public static final Integer FOUR =4 ; |
| | | public static final Integer FIVE =5 ; |
| | | public static final String ORG_USER_ORIGIN = "ORG_USER_ORIGIN"; |
| | | public static final String VIRTUAL_CARD_INDEX = "02098469790"; |
| | | public static final String RETRY_CONNECT_NUM ="RETRY_CONNECT_NUM" ; |
| | |
| | | |
| | | |
| | | public interface memberType{ |
| | | int lw_visitor = 0;//å³å¡è®¿å®¢ |
| | | int driver = 0;//叿ºäººå |
| | | int visitor = 1;//æ®é访客 |
| | | int internal = 2;//å
é¨äººå |
| | | } |
| | |
| | | */ |
| | | public interface CompanyMapper extends BaseMapper<Company> { |
| | | |
| | | void insertBatchSomeColumn(List<Company> addList); |
| | | } |
| | |
| | | */ |
| | | public interface MultifileMapper extends BaseMapper<Multifile> { |
| | | |
| | | void insertBatchSomeColumn(List<Multifile> fileList); |
| | | } |
| | |
| | | List<SystemUserListVO> selectManageList(@Param("dto") QuerySystemUserDTO dto, @Param("orderByClause") String orderByClause); |
| | | |
| | | |
| | | void insertBatchSomeColumn(List<SystemUser> userList); |
| | | |
| | | |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.system.dto; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * @author Eva.Caesar Liu |
| | | * @date 2023/05/04 18:21 |
| | | */ |
| | | @Data |
| | | @ApiModel("微信ç»å½ææåæ°") |
| | | public class LoginAuthDTO implements Serializable { |
| | | |
| | | @ApiModelProperty(value = "ç¼ç ") |
| | | private String code; |
| | | |
| | | @ApiModelProperty(value = "ç±»å") |
| | | private Integer soucre; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.system.dto; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * @author Eva.Caesar Liu |
| | | * @date 2023/05/04 18:21 |
| | | */ |
| | | @Data |
| | | @ApiModel("å
¬ä¼å·ç»å½åæ°") |
| | | public class LoginByOpenidDTO implements Serializable { |
| | | |
| | | @ApiModelProperty(value = "userId" , hidden = true) |
| | | private Integer userId; |
| | | } |
| | |
| | | package com.doumee.dao.system.dto; |
| | | |
| | | import com.doumee.core.annotation.excel.ExcelColumn; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.util.Date; |
| | | |
| | |
| | | private Integer queryType; |
| | | |
| | | @ApiModelProperty(value = "å¼å§æ¥æ") |
| | | @JsonFormat(pattern="yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private Date startDate; |
| | | |
| | | @ApiModelProperty(value = "ç»ææ¥æ") |
| | | @JsonFormat(pattern="yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private Date endDate; |
| | | |
| | | @ApiModelProperty(value = "0è®¿å®¢å®¡æ¹ 1访客æ¥å¤ 2ç¨è½¦å®¡æ¹ 3鿣å¤ç 4ç©æµè½¦å®¡æ¹ 5ç³»ç»ç³»ç»") |
| | |
| | | */ |
| | | public interface NoticesJoinMapper extends MPJJoinMapper<Notices> { |
| | | |
| | | void insertBatchSomeColumn(List<Notices> noticeList); |
| | | } |
| | |
| | | @ExcelColumn(name="å
³èåæ°3") |
| | | private String param3; |
| | | |
| | | @ApiModelProperty(value = "å
³èåæ°4") |
| | | @ApiModelProperty(value = "æä½äºº") |
| | | @ExcelColumn(name="å
³èåæ°4") |
| | | private String param4; |
| | | |
| | |
| | | private Integer status; |
| | | @ApiModelProperty(value = "ä¼ä¸ç¼ç ï¼å
³ècompanyï¼") |
| | | private Integer companyId; |
| | | @ApiModelProperty(value = "0 å¯ç¨ 1 ç¦ç¨") |
| | | @ApiModelProperty(value = "è´¦æ·æ¥æºï¼0=åå°æ·»å ï¼ 2=叿ºæ³¨å") |
| | | private Integer source; |
| | | @ApiModelProperty(value = "å
¬å¸åç§°") |
| | | @TableField(exist = false) |
| | | private String companyName; |
| | | @ApiModelProperty(value = "æ°æ®æéå
é¨é¨ç¼ç éå") |
| | |
| | | package com.doumee.service.system; |
| | | |
| | | import com.doumee.core.model.LoginUserInfo; |
| | | import com.doumee.dao.system.dto.LoginByOpenidDTO; |
| | | import com.doumee.dao.system.dto.LoginDTO; |
| | | import org.springframework.http.server.reactive.ServerHttpRequest; |
| | | |
| | |
| | | * @date 2023/03/21 14:49 |
| | | */ |
| | | String loginByPassword (LoginDTO dto, HttpServletRequest request); |
| | | |
| | | LoginUserInfo loginByPasswordNew (LoginDTO dto, ServerHttpRequest request); |
| | | |
| | | /** |
| | | * æ ¹æ® openIdç»å½ |
| | | * @param userId |
| | | * @param request |
| | | * @return |
| | | */ |
| | | String loginByUserId(Integer userId); |
| | | } |
| | |
| | | if(noticesDTO.getQueryType().equals(Constants.ZERO)){ |
| | | queryWrapper.eq(Notices::getStatus,Constants.ZERO); |
| | | queryWrapper.eq(Notices::getSendacopy,Constants.ZERO); |
| | | queryWrapper.eq(Notices::getParam2,Constants.ZERO); |
| | | queryWrapper.eq(Notices::getUserId, noticesDTO.getMemberId()); |
| | | } else if(noticesDTO.getQueryType().equals(Constants.ONE)){ |
| | | queryWrapper.eq(Notices::getStatus,Constants.ONE); |
| | | queryWrapper.eq(Notices::getSendacopy,Constants.ZERO); |
| | | queryWrapper.eq(Notices::getParam4,noticesDTO.getMemberId()); |
| | | } else if(noticesDTO.getQueryType().equals(Constants.TWO)){ |
| | | queryWrapper.eq(Notices::getParam3, noticesDTO.getMemberId()); |
| | | } else if (noticesDTO.getQueryType().equals(Constants.THREE)) { |
| | |
| | | package com.doumee.service.system.impl; |
| | | |
| | | import com.doumee.config.jwt.JwtTokenUtil; |
| | | import com.doumee.core.exception.BusinessException; |
| | | import com.doumee.core.model.LoginUserInfo; |
| | | import com.doumee.core.constants.ResponseStatus; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.dao.CompanyMapper; |
| | | import com.doumee.dao.business.model.Company; |
| | | import com.doumee.dao.system.dto.LoginByOpenidDTO; |
| | | import com.doumee.dao.system.dto.LoginDTO; |
| | | import com.doumee.dao.system.model.*; |
| | | import com.doumee.service.common.CaptchaService; |
| | | import com.doumee.service.system.*; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.shiro.SecurityUtils; |
| | |
| | | import org.springframework.http.server.reactive.ServerHttpRequest; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | |
| | | |
| | | @Autowired |
| | | private CompanyMapper companyMapper; |
| | | |
| | | @Resource |
| | | private JwtTokenUtil jwtTokenUtil; |
| | | |
| | | |
| | | |
| | | @Override |
| | | public String loginByPassword(LoginDTO dto, HttpServletRequest request) { |
| | |
| | | throw new BusinessException(ResponseStatus.ACCOUNT_INCORRECT.getCode(),"对ä¸èµ·ï¼éªè¯ç 䏿£ç¡®ï¼"); |
| | | } |
| | | } |
| | | |
| | | // æ ¹æ®ç¨æ·åæ¥è¯¢ç¨æ·å¯¹è±¡ |
| | | SystemUser queryDto = new SystemUser(); |
| | | queryDto.setUsername(dto.getUsername()); |
| | |
| | | SystemUser user = systemUserService.findOne(queryDto); |
| | | if (user == null) { |
| | | throw new BusinessException(ResponseStatus.ACCOUNT_INCORRECT); |
| | | } |
| | | if(!Constants.equalsInteger(user.getSource(),Constants.ZERO)){ |
| | | throw new BusinessException(ResponseStatus.NO_ALLOW_LOGIN); |
| | | } |
| | | String pwd = Utils.Secure.encryptPassword(new String(dto.getPassword()), user.getSalt()); |
| | | // æ¯è¾å¯ç |
| | |
| | | return userInfo; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * å
é¨äººå ä¸ å¸æº æ ¹æ®codeæ¥è¯¢openIdåè¿è¡ç»å½æ¥å£ |
| | | * @return |
| | | */ |
| | | @Override |
| | | public String loginByUserId(Integer userId) { |
| | | SystemLoginLog loginLog = new SystemLoginLog(); |
| | | loginLog.setLoginTime(new Date()); |
| | | loginLog.setSystemVersion(systemVersion); |
| | | loginLog.setLocation(Utils.Location.getLocationString(loginLog.getIp())); |
| | | loginLog.setServerIp(Utils.Server.getIP()); |
| | | |
| | | // æ ¹æ®ç¨æ·åæ¥è¯¢ç¨æ·å¯¹è±¡ |
| | | SystemUser user = systemUserService.findById(userId); |
| | | if (user == null) { |
| | | throw new BusinessException(ResponseStatus.ACCOUNT_INCORRECT); |
| | | } |
| | | Company company = new Company(); |
| | | if(Objects.nonNull(user.getCompanyId())){ |
| | | company = companyMapper.selectById(user.getCompanyId()); |
| | | } |
| | | // è·åç»å½ç¨æ·ä¿¡æ¯ |
| | | List<SystemRole> roles = systemRoleService.findByUserId(user.getId()); |
| | | List<SystemPermission> permissions = systemPermissionService.findByUserId(user.getId()); |
| | | |
| | | SystemRole rt = new SystemRole(); |
| | | rt.setDeleted(Boolean.FALSE); |
| | | //æ°æ®é¨é¨æééå |
| | | user.setCompanyIdList(systemDataPermissionService.selectHighRole(new SystemDataPermission(),rt,user)); |
| | | |
| | | LoginUserInfo userInfo = LoginUserInfo.from(user, roles, permissions,company,null); |
| | | String token = jwtTokenUtil.generateToken(userInfo); |
| | | |
| | | return token; |
| | | } |
| | | |
| | | } |
| | |
| | | spring: |
| | | # æ°æ®æºé
ç½® |
| | | datasource: |
| | | url: jdbc:mysql://sh-cdb-aiskr3vy.sql.tencentcdb.com:62443/dm_visit?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai |
| | | url: jdbc:mysql://sh-cdb-aiskr3vy.sql.tencentcdb.com:62443/antaiwuliu?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai |
| | | username: doumee |
| | | password: rtjgfEr@&0c0m |
| | | driver-class-name: com.mysql.cj.jdbc.Driver |
| | | type: com.alibaba.druid.pool.DruidDataSource |
| | | |
| | | jackson: |
| | | time-zone: GMT+8 |
| | | date-format: yyyy-MM-dd HH:mm:ss |
| | | redis: |
| | | # database: 0 |
| | | host: 127.0.0.1 |
| | | port: 6379 |
| | | password: |
| | | timeout: 5000 # è¿æ¥æ± ä¸çæå°ç©ºé²è¿æ¥ |
| | | jackson: |
| | | time-zone: GMT+8 |
| | | date-format: yyyy-MM-dd HH:mm:ss |
| | | |
| | | #rocketmq: |
| | | # namesrvAddr: rmq-cn-pe335rcnn06.cn-shanghai.rmq.aliyuncs.com:8080 |
| | | # groupId: GID-wakatest |
| | |
| | | # username: 4derRb4Sw5EkqUMI |
| | | # password: v50N97wf4av8Q8I4 |
| | | |
| | | #knife4j: |
| | | # enable: true |
| | | # basic: |
| | | # enable: true |
| | | knife4j: |
| | | enable: true |
| | | basic: |
| | | enable: true |
| | | # username: admin |
| | | # password: 111111 |
| | | |
| | | debug_model: true |
| | | |
| | | # Swaggeré
ç½® |
| | | swagger: |
| | | host: dmtest.ahapp.net |
| | | title: ${project.name}æ¥å£ææ¡£ |
| | | description: ${project.name}æ¥å£ææ¡£ |
| | | enabled: true |
| | | context-path: /erp_api |
| | | # ç¦ç¨swaggeræ¶çéå®åå°å |
| | | redirect-uri: / |
| | | |
| | | ########################åæ¥æ°æ®æ¨¡å¼ ######################## |
| | | data-sync: |
| | | org-user-data-origin: 1 #ç»ç»æ°æ® 0èªå»º 2以海康为主 1åæERPç³»ç» |
| | | visitor-data-origin: 1 #è®¿å®¢æ°æ® 0èªå»º 2以海康为主 1åæERPç³»ç» |
| | | need-deal-img: true #æ¯å¦éè¦å¤çå¾çæ°æ® |
| | | |
| | | |
| | | # Swaggeré
ç½® |
| | | swagger: |
| | | host: 127.0.0.1 |
| | | title: ${project.name}æ¥å£ææ¡£ |
| | | description: ${project.name}æ¥å£ææ¡£ |
| | | enabled: true |
| | | context-path: |
| | | # ç¦ç¨swaggeræ¶çéå®åå°å |
| | | redirect-uri: / |
| | | |
| | | ########################微信æ¯ä»ç¸å
³é
ç½®######################## |
| | | wx: |
| | |
| | | appKey: 3AYBZ-I5R3V-2BVP3-UWBDQ-ETBM5-B2BBQ |
| | | |
| | | |
| | | |
| | | des_pwd: 123456SDFKDJF |
| | | |
| | | ## MQTT## |
| | |
| | | spring: |
| | | profiles: |
| | | active: dev |
| | | active: test |
| | | application: |
| | | name: systemTimer |
| | | # å®å
¨é
ç½® |
| | |
| | | <modelVersion>4.0.0</modelVersion> |
| | | <parent> |
| | | <groupId>com.doumee</groupId> |
| | | <artifactId>dmvisit</artifactId> |
| | | <artifactId>visits</artifactId> |
| | | <version>1.0.0-SNAPSHOT</version> |
| | | </parent> |
| | | |
| | |
| | | spring: |
| | | profiles: |
| | | active: dev |
| | | active: test |
| | | application: |
| | | name: visitsTimer |
| | | # å®å
¨é
ç½® |
| | |
| | | <property name="log.path" value="logs/visitsTimer"></property> |
| | | <property name="log.fileSize" value="100MB"></property> |
| | | <property name="log.historyDays" value="7"></property> |
| | | |
| | | <appender name="fileInfoLog" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| | | <filter class="ch.qos.logback.classic.filter.LevelFilter"> |
| | | <level>ERROR</level> |
| | |
| | | for (String id : idArray ){ |
| | | idList.add(Integer.valueOf(id)); |
| | | } |
| | | memberService.deleteByIdInBatch(idList,this.getLoginUser(null)); |
| | | memberService.deleteByIdInBatch(idList,this.getLoginUser(token)); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | |
| | | memberService.batchRemoveBlock(idList,1,this.getLoginUser(token)); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | |
| | | |
| | | @ApiOperation("æ¯å¦å¯æè®¿ç¶æä¿®æ¹") |
| | | @PostMapping("/updateCanVisitById") |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.cloud.admin; |
| | | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.core.annotation.excel.ExcelExporter; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.business.model.PlatformBooks; |
| | | import com.doumee.service.business.PlatformBooksService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | @Api(tags = "æå°å
¥åé¢çº¦ä¿¡æ¯è¡¨") |
| | | @RestController |
| | | @RequestMapping(Constants.CLOUD_SERVICE_URL_INDEX+"/business/platformBooks") |
| | | public class PlatformBooksCloudController extends BaseController { |
| | | |
| | | @Autowired |
| | | private PlatformBooksService platformBooksService; |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("æ°å»º") |
| | | @PostMapping("/create") |
| | | @RequiresPermissions("business:platformbooks:create") |
| | | public ApiResponse create(@RequestBody PlatformBooks platformBooks) { |
| | | return ApiResponse.success(platformBooksService.create(platformBooks)); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDå é¤") |
| | | @GetMapping("/delete/{id}") |
| | | @RequiresPermissions("business:platformbooks:delete") |
| | | public ApiResponse deleteById(@PathVariable Integer id) { |
| | | platformBooksService.deleteById(id); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("æ¹éå é¤") |
| | | @GetMapping("/delete/batch") |
| | | @RequiresPermissions("business:platformbooks:delete") |
| | | public ApiResponse deleteByIdInBatch(@RequestParam String ids) { |
| | | String [] idArray = ids.split(","); |
| | | List<Integer> idList = new ArrayList<>(); |
| | | for (String id : idArray) { |
| | | idList.add(Integer.valueOf(id)); |
| | | } |
| | | platformBooksService.deleteByIdInBatch(idList); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDä¿®æ¹") |
| | | @PostMapping("/updateById") |
| | | @RequiresPermissions("business:platformbooks:update") |
| | | public ApiResponse updateById(@RequestBody PlatformBooks platformBooks) { |
| | | platformBooksService.updateById(platformBooks); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("å页æ¥è¯¢") |
| | | @PostMapping("/page") |
| | | @RequiresPermissions("business:platformbooks:query") |
| | | public ApiResponse<PageData<PlatformBooks>> findPage (@RequestBody PageWrap<PlatformBooks> pageWrap) { |
| | | return ApiResponse.success(platformBooksService.findPage(pageWrap)); |
| | | } |
| | | |
| | | @ApiOperation("导åºExcel") |
| | | @PostMapping("/exportExcel") |
| | | @RequiresPermissions("business:platformbooks:exportExcel") |
| | | public void exportExcel (@RequestBody PageWrap<PlatformBooks> pageWrap, HttpServletResponse response) { |
| | | ExcelExporter.build(PlatformBooks.class).export(platformBooksService.findPage(pageWrap).getRecords(), "æå°å
¥åé¢çº¦ä¿¡æ¯è¡¨", response); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDæ¥è¯¢") |
| | | @GetMapping("/{id}") |
| | | @RequiresPermissions("business:platformbooks:query") |
| | | public ApiResponse findById(@PathVariable Integer id) { |
| | | return ApiResponse.success(platformBooksService.findById(id)); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.cloud.admin; |
| | | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.core.annotation.excel.ExcelExporter; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.business.model.PlatformBroadcastLog; |
| | | import com.doumee.service.business.PlatformBroadcastLogService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | @Api(tags = "æå°_LEDå广ææéä¸åè®°å½") |
| | | @RestController |
| | | @RequestMapping(Constants.CLOUD_SERVICE_URL_INDEX+"/business/platformBroadcastLog") |
| | | public class PlatformBroadcastLogCloudController extends BaseController { |
| | | |
| | | @Autowired |
| | | private PlatformBroadcastLogService platformBroadcastLogService; |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("æ°å»º") |
| | | @PostMapping("/create") |
| | | @RequiresPermissions("business:platformbroadcastlog:create") |
| | | public ApiResponse create(@RequestBody PlatformBroadcastLog platformBroadcastLog) { |
| | | return ApiResponse.success(platformBroadcastLogService.create(platformBroadcastLog)); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDå é¤") |
| | | @GetMapping("/delete/{id}") |
| | | @RequiresPermissions("business:platformbroadcastlog:delete") |
| | | public ApiResponse deleteById(@PathVariable Integer id) { |
| | | platformBroadcastLogService.deleteById(id); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("æ¹éå é¤") |
| | | @GetMapping("/delete/batch") |
| | | @RequiresPermissions("business:platformbroadcastlog:delete") |
| | | public ApiResponse deleteByIdInBatch(@RequestParam String ids) { |
| | | String [] idArray = ids.split(","); |
| | | List<Integer> idList = new ArrayList<>(); |
| | | for (String id : idArray) { |
| | | idList.add(Integer.valueOf(id)); |
| | | } |
| | | platformBroadcastLogService.deleteByIdInBatch(idList); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDä¿®æ¹") |
| | | @PostMapping("/updateById") |
| | | @RequiresPermissions("business:platformbroadcastlog:update") |
| | | public ApiResponse updateById(@RequestBody PlatformBroadcastLog platformBroadcastLog) { |
| | | platformBroadcastLogService.updateById(platformBroadcastLog); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("å页æ¥è¯¢") |
| | | @PostMapping("/page") |
| | | @RequiresPermissions("business:platformbroadcastlog:query") |
| | | public ApiResponse<PageData<PlatformBroadcastLog>> findPage (@RequestBody PageWrap<PlatformBroadcastLog> pageWrap) { |
| | | return ApiResponse.success(platformBroadcastLogService.findPage(pageWrap)); |
| | | } |
| | | |
| | | @ApiOperation("导åºExcel") |
| | | @PostMapping("/exportExcel") |
| | | @RequiresPermissions("business:platformbroadcastlog:exportExcel") |
| | | public void exportExcel (@RequestBody PageWrap<PlatformBroadcastLog> pageWrap, HttpServletResponse response) { |
| | | ExcelExporter.build(PlatformBroadcastLog.class).export(platformBroadcastLogService.findPage(pageWrap).getRecords(), "æå°_LEDå广ææéä¸åè®°å½", response); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDæ¥è¯¢") |
| | | @GetMapping("/{id}") |
| | | @RequiresPermissions("business:platformbroadcastlog:query") |
| | | public ApiResponse findById(@PathVariable Integer id) { |
| | | return ApiResponse.success(platformBroadcastLogService.findById(id)); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.cloud.admin; |
| | | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.core.annotation.excel.ExcelExporter; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.business.model.PlatformDevice; |
| | | import com.doumee.service.business.PlatformDeviceService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | @Api(tags = "æå°_å
³èçæ§ç¹LEDå广æä¿¡æ¯è¡¨") |
| | | @RestController |
| | | @RequestMapping(Constants.CLOUD_SERVICE_URL_INDEX+"/business/platformDevice") |
| | | public class PlatformDeviceCloudController extends BaseController { |
| | | |
| | | @Autowired |
| | | private PlatformDeviceService platformDeviceService; |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("æ°å»º") |
| | | @PostMapping("/create") |
| | | @RequiresPermissions("business:platformdevice:create") |
| | | public ApiResponse create(@RequestBody PlatformDevice platformDevice) { |
| | | return ApiResponse.success(platformDeviceService.create(platformDevice)); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDå é¤") |
| | | @GetMapping("/delete/{id}") |
| | | @RequiresPermissions("business:platformdevice:delete") |
| | | public ApiResponse deleteById(@PathVariable Integer id) { |
| | | platformDeviceService.deleteById(id); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("æ¹éå é¤") |
| | | @GetMapping("/delete/batch") |
| | | @RequiresPermissions("business:platformdevice:delete") |
| | | public ApiResponse deleteByIdInBatch(@RequestParam String ids) { |
| | | String [] idArray = ids.split(","); |
| | | List<Integer> idList = new ArrayList<>(); |
| | | for (String id : idArray) { |
| | | idList.add(Integer.valueOf(id)); |
| | | } |
| | | platformDeviceService.deleteByIdInBatch(idList); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDä¿®æ¹") |
| | | @PostMapping("/updateById") |
| | | @RequiresPermissions("business:platformdevice:update") |
| | | public ApiResponse updateById(@RequestBody PlatformDevice platformDevice) { |
| | | platformDeviceService.updateById(platformDevice); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("å页æ¥è¯¢") |
| | | @PostMapping("/page") |
| | | @RequiresPermissions("business:platformdevice:query") |
| | | public ApiResponse<PageData<PlatformDevice>> findPage (@RequestBody PageWrap<PlatformDevice> pageWrap) { |
| | | return ApiResponse.success(platformDeviceService.findPage(pageWrap)); |
| | | } |
| | | |
| | | @ApiOperation("导åºExcel") |
| | | @PostMapping("/exportExcel") |
| | | @RequiresPermissions("business:platformdevice:exportExcel") |
| | | public void exportExcel (@RequestBody PageWrap<PlatformDevice> pageWrap, HttpServletResponse response) { |
| | | ExcelExporter.build(PlatformDevice.class).export(platformDeviceService.findPage(pageWrap).getRecords(), "æå°_å
³èçæ§ç¹LEDå广æä¿¡æ¯è¡¨", response); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDæ¥è¯¢") |
| | | @GetMapping("/{id}") |
| | | @RequiresPermissions("business:platformdevice:query") |
| | | public ApiResponse findById(@PathVariable Integer id) { |
| | | return ApiResponse.success(platformDeviceService.findById(id)); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.cloud.admin; |
| | | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.core.annotation.excel.ExcelExporter; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.business.model.PlatformWmsDetail; |
| | | import com.doumee.service.business.PlatformWmsDetailService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | @Api(tags = "æå°_WMSä½ä¸éç¥åæç»") |
| | | @RestController |
| | | @RequestMapping(Constants.CLOUD_SERVICE_URL_INDEX+"/business/platformWmsDetail") |
| | | public class PlatformWmsDetailCloudController extends BaseController { |
| | | |
| | | @Autowired |
| | | private PlatformWmsDetailService platformWmsDetailService; |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("æ°å»º") |
| | | @PostMapping("/create") |
| | | @RequiresPermissions("business:platformwmsdetail:create") |
| | | public ApiResponse create(@RequestBody PlatformWmsDetail platformWmsDetail) { |
| | | return ApiResponse.success(platformWmsDetailService.create(platformWmsDetail)); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDå é¤") |
| | | @GetMapping("/delete/{id}") |
| | | @RequiresPermissions("business:platformwmsdetail:delete") |
| | | public ApiResponse deleteById(@PathVariable Integer id) { |
| | | platformWmsDetailService.deleteById(id); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("æ¹éå é¤") |
| | | @GetMapping("/delete/batch") |
| | | @RequiresPermissions("business:platformwmsdetail:delete") |
| | | public ApiResponse deleteByIdInBatch(@RequestParam String ids) { |
| | | String [] idArray = ids.split(","); |
| | | List<Integer> idList = new ArrayList<>(); |
| | | for (String id : idArray) { |
| | | idList.add(Integer.valueOf(id)); |
| | | } |
| | | platformWmsDetailService.deleteByIdInBatch(idList); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDä¿®æ¹") |
| | | @PostMapping("/updateById") |
| | | @RequiresPermissions("business:platformwmsdetail:update") |
| | | public ApiResponse updateById(@RequestBody PlatformWmsDetail platformWmsDetail) { |
| | | platformWmsDetailService.updateById(platformWmsDetail); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("å页æ¥è¯¢") |
| | | @PostMapping("/page") |
| | | @RequiresPermissions("business:platformwmsdetail:query") |
| | | public ApiResponse<PageData<PlatformWmsDetail>> findPage (@RequestBody PageWrap<PlatformWmsDetail> pageWrap) { |
| | | return ApiResponse.success(platformWmsDetailService.findPage(pageWrap)); |
| | | } |
| | | |
| | | @ApiOperation("导åºExcel") |
| | | @PostMapping("/exportExcel") |
| | | @RequiresPermissions("business:platformwmsdetail:exportExcel") |
| | | public void exportExcel (@RequestBody PageWrap<PlatformWmsDetail> pageWrap, HttpServletResponse response) { |
| | | ExcelExporter.build(PlatformWmsDetail.class).export(platformWmsDetailService.findPage(pageWrap).getRecords(), "æå°_WMSä½ä¸éç¥åæç»", response); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDæ¥è¯¢") |
| | | @GetMapping("/{id}") |
| | | @RequiresPermissions("business:platformwmsdetail:query") |
| | | public ApiResponse findById(@PathVariable Integer id) { |
| | | return ApiResponse.success(platformWmsDetailService.findById(id)); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.cloud.admin; |
| | | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.core.annotation.excel.ExcelExporter; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.business.model.PlatformWmsJob; |
| | | import com.doumee.service.business.PlatformWmsJobService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | @Api(tags = "æå°_WMSä½ä¸éç¥åè¡æ°æ®") |
| | | @RestController |
| | | @RequestMapping(Constants.CLOUD_SERVICE_URL_INDEX+"/business/platformWmsJob") |
| | | public class PlatformWmsJobCloudController extends BaseController { |
| | | |
| | | @Autowired |
| | | private PlatformWmsJobService platformWmsJobService; |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("æ°å»º") |
| | | @PostMapping("/create") |
| | | @RequiresPermissions("business:platformwmsjob:create") |
| | | public ApiResponse create(@RequestBody PlatformWmsJob platformWmsJob) { |
| | | return ApiResponse.success(platformWmsJobService.create(platformWmsJob)); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDå é¤") |
| | | @GetMapping("/delete/{id}") |
| | | @RequiresPermissions("business:platformwmsjob:delete") |
| | | public ApiResponse deleteById(@PathVariable Integer id) { |
| | | platformWmsJobService.deleteById(id); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("æ¹éå é¤") |
| | | @GetMapping("/delete/batch") |
| | | @RequiresPermissions("business:platformwmsjob:delete") |
| | | public ApiResponse deleteByIdInBatch(@RequestParam String ids) { |
| | | String [] idArray = ids.split(","); |
| | | List<Integer> idList = new ArrayList<>(); |
| | | for (String id : idArray) { |
| | | idList.add(Integer.valueOf(id)); |
| | | } |
| | | platformWmsJobService.deleteByIdInBatch(idList); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDä¿®æ¹") |
| | | @PostMapping("/updateById") |
| | | @RequiresPermissions("business:platformwmsjob:update") |
| | | public ApiResponse updateById(@RequestBody PlatformWmsJob platformWmsJob) { |
| | | platformWmsJobService.updateById(platformWmsJob); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("å页æ¥è¯¢") |
| | | @PostMapping("/page") |
| | | @RequiresPermissions("business:platformwmsjob:query") |
| | | public ApiResponse<PageData<PlatformWmsJob>> findPage (@RequestBody PageWrap<PlatformWmsJob> pageWrap) { |
| | | return ApiResponse.success(platformWmsJobService.findPage(pageWrap)); |
| | | } |
| | | |
| | | @ApiOperation("导åºExcel") |
| | | @PostMapping("/exportExcel") |
| | | @RequiresPermissions("business:platformwmsjob:exportExcel") |
| | | public void exportExcel (@RequestBody PageWrap<PlatformWmsJob> pageWrap, HttpServletResponse response) { |
| | | ExcelExporter.build(PlatformWmsJob.class).export(platformWmsJobService.findPage(pageWrap).getRecords(), "æå°_WMSä½ä¸éç¥åè¡æ°æ®", response); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDæ¥è¯¢") |
| | | @GetMapping("/{id}") |
| | | @RequiresPermissions("business:platformwmsjob:query") |
| | | public ApiResponse findById(@PathVariable Integer id) { |
| | | return ApiResponse.success(platformWmsJobService.findById(id)); |
| | | } |
| | | } |
| | |
| | | @PostMapping("/page") |
| | | @CloudRequiredPermission("business:visits:query") |
| | | public ApiResponse<PageData<Visits>> findPage (@RequestBody PageWrap<Visits> pageWrap,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | pageWrap.getModel().setMemberId(getLoginUser(token).getMemberId()); |
| | | pageWrap.getModel().setReceptMemberId(getLoginUser(token).getMemberId()); |
| | | return ApiResponse.success(visitsService.findPage(pageWrap)); |
| | | } |
| | | |
| | |
| | | return ApiResponse.success(visitsService.retentionPage(pageWrap)); |
| | | } |
| | | |
| | | @ApiOperation(value = "PCç«¯è®¿å®¢è®°å½æäº¤", notes = "访客æäº¤") |
| | | @PostMapping("/createFk") |
| | | public ApiResponse createFk(@RequestBody Visits visits) { |
| | | visits.setSourceType(Constants.ZERO); |
| | | return ApiResponse.success("æ¥è¯¢æå", visitsService.createFk(visits,false,Constants.ONE)); |
| | | } |
| | | |
| | | |
| | | |
| | | @ApiOperation(value = "访客æ¥å¤", notes = "访客æ¥å¤") |
| | |
| | | String endType = originname.substring(originname.lastIndexOf("."), originname.length()); |
| | | String date = DateUtil.getNowShortDate(); |
| | | String fName = date + "/" + UUID.randomUUID() + endType; |
| | | String fileName = folder + "/" + fName; |
| | | String fileName = folder + fName; |
| | | boolean r = ftp.uploadInputstreamBatch(is, fileName, Constants.equalsInteger(index ,fileList.size()),index); |
| | | if (r) { |
| | | JSONObject fileJSON = new JSONObject(); |
| | |
| | | package com.doumee.cloud.web; |
| | | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.cloud.web.ApiController; |
| | | import com.doumee.config.annotation.LoginNoRequired; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.annotation.trace.Trace; |
| | |
| | | @PostMapping("/createVisit") |
| | | public ApiResponse createVisit(@RequestBody Visits visits,@RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | visits.setCreateMemberId(getLoginUser(token).getMemberId()); |
| | | return ApiResponse.success("æ¥è¯¢æå", visitsService.createFk(visits,false)); |
| | | return ApiResponse.success("æ¥è¯¢æå", visitsService.createFk(visits,false,Constants.ZERO)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å®¡æ¹æµè®°å½å®¡æ¹", notes = "å
é¨äººå") |
| | |
| | | package com.doumee.cloud.web; |
| | | |
| | | import com.doumee.cloud.web.ApiController; |
| | | import com.doumee.config.annotation.LoginNoRequired; |
| | | import com.doumee.core.annotation.trace.Trace; |
| | | import com.doumee.core.model.ApiResponse; |
| | |
| | | @LoginNoRequired |
| | | @RequestMapping(Constants.CLOUD_SERVICE_URL_INDEX+"/web/problem") |
| | | @Slf4j |
| | | public class ProblemWebController extends ApiController { |
| | | public class ProblemWebController { |
| | | |
| | | @Autowired |
| | | private ProblemsService problemsService; |
| | |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.server.ServerWebExchange; |
| | | |
| | | import javax.validation.Valid; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * Created by IntelliJ IDEA. |
| | |
| | | @ApiOperation(value = "访客微信ææ", notes = "访客微信ææè·åopenId") |
| | | @GetMapping("/wxAuthorize") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", dataType = "String", name = "code", value = "ææç ", required = true) |
| | | @ApiImplicitParam(paramType = "query", dataType = "String", name = "code", value = "ææç ", required = true), |
| | | @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "source", value = "æ¥æº:0=叿ºï¼1=访客ï¼2=å
é¨åå·¥", required = true) |
| | | }) |
| | | public ApiResponse<WxAuthorizeVO> wxAuthorize(@RequestParam String code) { |
| | | WxAuthorizeVO wxAuthorizeVO = memberService.wxAuthorize(code); |
| | | public ApiResponse<WxAuthorizeVO> wxAuthorize(@RequestParam String code,@RequestParam Integer source) { |
| | | WxAuthorizeVO wxAuthorizeVO = memberService.wxAuthorize(code,source); |
| | | return ApiResponse.success("æ¥è¯¢æå",wxAuthorizeVO); |
| | | } |
| | | |
| | |
| | | @PostMapping("/createFk") |
| | | public ApiResponse createFk(@RequestBody Visits visits) { |
| | | visits.setSourceType(Constants.ZERO); |
| | | return ApiResponse.success("æ¥è¯¢æå", visitsService.createFk(visits,false)); |
| | | return ApiResponse.success("æ¥è¯¢æå", visitsService.createFk(visits,false,Constants.ZERO)); |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | @ApiOperation(value = "访客记å½è¯¦æ
", notes = "访客记å½è¯¦æ
") |
| | | @GetMapping("/detail") |
| | | public ApiResponse<VisitDetailVO> detail(@RequestParam Integer id) { |
| | | return ApiResponse.success("æ¥è¯¢æå", visitsService.getVisitDetail(id,null)); |
| | | public ApiResponse<VisitDetailVO> detail(@RequestParam Integer id,@RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | LoginUserInfo loginUserInfo = getLoginUser(token); |
| | | return ApiResponse.success("æ¥è¯¢æå", visitsService.getVisitDetail(id, Objects.isNull(loginUserInfo)?null:loginUserInfo.getMemberId())); |
| | | } |
| | | |
| | | |
| | |
| | | # data-id: com.doumee.meeting.admin |
| | | discovery: |
| | | server-addr: http://175.27.187.84:8848 #é
ç½®Nacoså°å |
| | | # namespace: dmvisit |
| | | namespace: dmvisit |
| | | username: nacos |
| | | password: nacos |
| | |
| | | private Long lwCount; |
| | | |
| | | @ApiModelProperty(value = "å¨åºè½¦è¾") |
| | | private Integer presenceCarCount; |
| | | private Long presenceCarCount; |
| | | |
| | | @ApiModelProperty(value = "é¢çº¦è½¦è¾") |
| | | private Integer visitorCarCount; |
| | | private Long visitorCarCount; |
| | | |
| | | @ApiModelProperty(value = "é¿æè½¦è¾") |
| | | private Integer longCarCount; |
| | | private Long longCarCount; |
| | | |
| | | @ApiModelProperty(value = "ä¾åºåæ°é") |
| | | private Integer supplierCount; |
| | | private Long supplierCount; |
| | | |
| | | @ApiModelProperty(value = "å³å¡å
¬å¸äººåæ°") |
| | | private List<Map<String,Object>> companyUsers; |
| | |
| | | */ |
| | | public interface ApproveMapper extends BaseMapper<Approve> { |
| | | |
| | | void insertBatchSomeColumn(List<Approve> list); |
| | | |
| | | |
| | | } |
| | |
| | | */ |
| | | public interface ApproveParamMapper extends BaseMapper<ApproveParam> { |
| | | |
| | | void insertBatchSomeColumn(List<ApproveParam> paramList); |
| | | } |
| | |
| | | */ |
| | | public interface CarEventMapper extends BaseMapper<CarEvent> { |
| | | |
| | | void insertBatchSomeColumn(List<CarEvent> list); |
| | | } |
| | |
| | | */ |
| | | public interface CarsMapper extends BaseMapper<Cars> { |
| | | |
| | | void insertBatchSomeColumn(List<Cars> allHkList); |
| | | } |
| | |
| | | * @date 2023/11/30 15:33 |
| | | */ |
| | | public interface DeviceEventMapper extends BaseMapper<DeviceEvent> { |
| | | void insertBatchSomeColumn(List<DeviceEvent> addList); |
| | | } |
| | |
| | | */ |
| | | public interface DeviceMapper extends BaseMapper<Device> { |
| | | |
| | | Integer insertBatchSomeColumn(Collection<Device> entityList); |
| | | |
| | | } |
| | |
| | | */ |
| | | public interface DeviceRoleMapper extends BaseMapper<DeviceRole> { |
| | | |
| | | void insertBatchSomeColumn(List<DeviceRole> addList); |
| | | } |
| | |
| | | */ |
| | | public interface EmpowerMapper extends BaseMapper<Empower> { |
| | | |
| | | void insertBatchSomeColumn(List<Empower> list); |
| | | } |
| | |
| | | * @date 2023/11/30 15:33 |
| | | */ |
| | | public interface MemberCardMapper extends BaseMapper<MemberCard> { |
| | | |
| | | void insertBatchSomeColumn(List<MemberCard> list); |
| | | } |
| | |
| | | */ |
| | | public interface MemberMapper extends MPJBaseMapper<Member> { |
| | | |
| | | void insertBatchSomeColumn(List<Member> list); |
| | | } |
| | |
| | | */ |
| | | public interface MemberRoleMapper extends BaseMapper<MemberRole> { |
| | | |
| | | void insertBatchSomeColumn(List<MemberRole> list); |
| | | |
| | | } |
| | |
| | | */ |
| | | public interface ParkBookMapper extends BaseMapper<ParkBook> { |
| | | |
| | | void insertBatchSomeColumn(List<ParkBook> list); |
| | | } |
| | |
| | | */ |
| | | public interface ParksMapper extends BaseMapper<Parks> { |
| | | |
| | | void insertBatchSomeColumn(List<Parks> addList); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.doumee.dao.business.model.PlatformBooks; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | public interface PlatformBooksMapper extends BaseMapper<PlatformBooks> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.doumee.dao.business.model.PlatformBroadcastLog; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | public interface PlatformBroadcastLogMapper extends BaseMapper<PlatformBroadcastLog> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.doumee.dao.business.model.PlatformDevice; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | public interface PlatformDeviceMapper extends BaseMapper<PlatformDevice> { |
| | | |
| | | } |
| | |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @since 2024/04/28 16:06 |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | public interface PlatformGroupMapper extends BaseMapper<PlatformGroup> { |
| | | |
| | |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @since 2024/04/28 16:06 |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | public interface PlatformInterfaceLogMapper extends BaseMapper<PlatformInterfaceLog> { |
| | | |
| | |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @since 2024/04/28 16:06 |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | public interface PlatformJobMapper extends BaseMapper<PlatformJob> { |
| | | |
| | |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @since 2024/04/28 16:06 |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | public interface PlatformLogMapper extends BaseMapper<PlatformLog> { |
| | | |
| | |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @since 2024/04/28 16:06 |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | public interface PlatformMapper extends BaseMapper<Platform> { |
| | | |
| | |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @since 2024/04/28 16:06 |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | public interface PlatformQueueMapper extends BaseMapper<PlatformQueue> { |
| | | |
| | |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @since 2024/04/28 16:06 |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | public interface PlatformShowParamMapper extends BaseMapper<PlatformShowParam> { |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.doumee.dao.business.model.PlatformWmsDetail; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | public interface PlatformWmsDetailMapper extends BaseMapper<PlatformWmsDetail> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.doumee.dao.business.model.PlatformWmsJob; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | public interface PlatformWmsJobMapper extends BaseMapper<PlatformWmsJob> { |
| | | |
| | | } |
| | |
| | | * @date 2023/11/30 15:33 |
| | | */ |
| | | public interface RetentionMapper extends BaseMapper<Retention> { |
| | | |
| | | void insertBatchSomeColumn(List<Retention> retentionList); |
| | | } |
| | |
| | | */ |
| | | public interface TrainTimeMapper extends BaseMapper<TrainTime> { |
| | | |
| | | void insertBatchSomeColumn(List<TrainTime> newList); |
| | | } |
| | |
| | | */ |
| | | public interface VisitEventMapper extends BaseMapper<VisitEvent> { |
| | | |
| | | void insertBatchSomeColumn(List<VisitEvent> list); |
| | | } |
| | |
| | | */ |
| | | public interface VisitsMapper extends BaseMapper<Visits> { |
| | | |
| | | void insertBatchSomeColumn(List<Visits> withUserList); |
| | | } |
| | |
| | | */ |
| | | public interface ApproveJoinMapper extends MPJJoinMapper<Approve> { |
| | | |
| | | void insertBatchSomeColumn(List<Approve> list); |
| | | |
| | | |
| | | } |
| | |
| | | * @date 2023/11/30 15:33 |
| | | */ |
| | | public interface EmpowerJoinMapper extends MPJJoinMapper<Empower> { |
| | | void insertBatchSomeColumn(List<Empower> list); |
| | | } |
| | |
| | | @ExcelColumn(name="ç³è¯·äººç¼ç (å
³èmember)") |
| | | private Integer memberId; |
| | | |
| | | @ApiModelProperty(value = "叿ºç¼ç ï¼å
³ècar_driverï¼", example = "1") |
| | | @ExcelColumn(name="叿ºç¼ç ï¼å
³ècar_driverï¼") |
| | | @ApiModelProperty(value = "叿ºç¼ç ï¼å
³èmemberIdï¼", example = "1") |
| | | @ExcelColumn(name="叿ºç¼ç ï¼å
³èmemberIdï¼") |
| | | private Integer driverId; |
| | | |
| | | @ApiModelProperty(value = "叿ºå§å", example = "1") |
| | |
| | | @ExcelColumn(name="å¥åº·ç ") |
| | | private String imgurl; |
| | | |
| | | @ApiModelProperty(value = "ç±»å 0å³å¡è®¿å®¢ 1æ®é访客 2å
é¨äººå", example = "1") |
| | | @ExcelColumn(name="ç±»å 0å³å¡è®¿å®¢ 1æ®é访客 2å
é¨äººå") |
| | | @ApiModelProperty(value = "ç±»å 0叿ºäººå 1æ®é访客 2å
é¨äººå", example = "1") |
| | | @ExcelColumn(name="ç±»å 0叿ºäººå 1æ®é访客 2å
é¨äººå") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty(value = "访客åç§°/å
é¨äººå") |
| | |
| | | @ApiModelProperty(value = "è¯ä»¶ç±»å 0èº«ä»½è¯ 1港澳è¯ä»¶ 2æ¤ç
§", example = "1") |
| | | @ExcelColumn(name="è¯ä»¶ç±»å 0èº«ä»½è¯ 1港澳è¯ä»¶ 2æ¤ç
§") |
| | | private Integer idcardType; |
| | | @ApiModelProperty(value = "æ¯å¦æ¯ç©æµå¸æº 0䏿¯ 1æ¯", example = "1") |
| | | @ExcelColumn(name="æ¯å¦æ¯ç©æµå¸æº 0䏿¯ 1æ¯") |
| | | private Integer isDriver; |
| | | |
| | | @ApiModelProperty(value = "å·¥å·") |
| | | @ExcelColumn(name="å·¥å·") |
| | |
| | | @ApiModelProperty(value = "è§è²ç¼ç æ¥è¯¢") |
| | | @TableField(exist = false) |
| | | private String roleIdParam; |
| | | |
| | | @ApiModelProperty(value = "åç¼å°å") |
| | | @TableField(exist = false) |
| | | private String prefixUrl; |
| | | |
| | | @ApiModelProperty(value = "ææé¨ç¦ç»ç¼ç éå,ã访客端ãå¯ä¸æ è¯",hidden = true ) |
| | | @TableField(exist = false) |
| | | private Integer[] roleIds; |
| | |
| | | @ApiModelProperty(value = "æææç±»å 0é¿æææ 1èªå®ä¹",hidden = true ) |
| | | @TableField(exist = false) |
| | | private Integer timeType; |
| | | |
| | | //ææ ä½¿ç¨ |
| | | @ApiModelProperty(value = "å§å/ææºå·/å·¥å·") |
| | | @TableField(exist = false) |
| | | private String keyword; |
| | | |
| | | |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦æäººè¸ï¼0=æ ï¼1=æï¼") |
| | | @TableField(exist = false) |
| | | private Integer isFace; |
| | | |
| | | @ApiModelProperty(value = "è®¿é®æ¬¡æ°") |
| | | @TableField(exist = false) |
| | | private Integer visitTimes; |
| | | |
| | | @ApiModelProperty(value = "æåè®¿é®æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date lastVisitDate; |
| | | |
| | | @ApiModelProperty(value = "é¨ç¦æææå¼å§") |
| | | @ExcelColumn(name="é¨ç¦æææå¼å§",index= 5,dateFormat = "yyyy-MM-dd") |
| | | private Date startTime; |
| | | @ApiModelProperty(value = "ç¼ç éå") |
| | | @TableField(exist = false) |
| | | private List<Integer> idList; |
| | | |
| | | @ApiModelProperty(value = "é¨ç¦æææç»æ", example = "1") |
| | | @ExcelColumn(name="é¨ç¦æææç»æ",index= 6,dateFormat = "yyyy-MM-dd") |
| | | private Date endTime; |
| | | |
| | | @ApiModelProperty(value = "人è¸ç
§ç宿´å°å") |
| | | @TableField(exist = false) |
| | | private String faceImgFull; |
| | |
| | | @ApiModelProperty(value = "é¨ç¦è§è²åç§°") |
| | | @TableField(exist = false) |
| | | private String roleName; |
| | | @ApiModelProperty(value = "æåæä½å
容") |
| | | @TableField(exist = false) |
| | | private String optRemark; |
| | | @ApiModelProperty(value = "å¹è®å¼å§æ¶é´") |
| | | @TableField(exist = false) |
| | | private Date trainStartTime; |
| | | @ApiModelProperty(value = "å¹è®ç»ææ¶é´") |
| | | @TableField(exist = false) |
| | | private Date trainEndTime; |
| | | |
| | | @ApiModelProperty(value = "é¨ç¦ç»åç§°éå") |
| | | @TableField(exist = false) |
| | | private List<String> roleNames; |
| | |
| | | package com.doumee.dao.business.model; |
| | | |
| | | 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 lombok.Data; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import java.util.Date; |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * æå°ä¿¡æ¯è¡¨ |
| | | * @author æ±è¹è¹ |
| | | * @since 2024/04/28 16:06 |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | @Data |
| | | @ApiModel("æå°ä¿¡æ¯è¡¨") |
| | | @TableName("`platform`") |
| | | public class Platform extends LoginUserModel { |
| | | public class Platform { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | @ApiModelProperty(value = "主é®", example = "1") |
| | |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @ExcelColumn(name="å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date createDate; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°äººç¼ç ", example = "1") |
| | |
| | | |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @ExcelColumn(name="æ´æ°æ¶é´") |
| | | private Date editDate; |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date editDate; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦å é¤0å¦ 1æ¯", example = "1") |
| | | @ExcelColumn(name="æ¯å¦å é¤0å¦ 1æ¯") |
| | |
| | | @ExcelColumn(name="å·¥ä½ç»ææ¶é´") |
| | | private String endTime; |
| | | |
| | | @ApiModelProperty(value = "å
³èæå°çæ§ç¹è®¾å¤ç¼ç (å
³èdevices)ï¼å¤ä¸ªç¨è±æéå·éå¼") |
| | | @ExcelColumn(name="å
³èæå°çæ§ç¹è®¾å¤ç¼ç (å
³èdevices)ï¼å¤ä¸ªç¨è±æéå·éå¼") |
| | | private String deviceIds; |
| | | |
| | | @ApiModelProperty(value = "å
³èæå°å±å¹ç¼ç éåï¼å
³èdevicesï¼ï¼å¤ä¸ªç¨è±æéå·éå¼") |
| | | @ExcelColumn(name="å
³èæå°å±å¹ç¼ç éåï¼å
³èdevicesï¼ï¼å¤ä¸ªç¨è±æéå·éå¼") |
| | | private String screenIds; |
| | | |
| | | @ApiModelProperty(value = "åæ¶ä½ä¸æ°é", example = "1") |
| | | @ExcelColumn(name="åæ¶ä½ä¸æ°é") |
| | | private Integer workingNum; |
| | |
| | | |
| | | @ApiModelProperty(value = "æåäºä»¶æ¨éæ¶é´") |
| | | @ExcelColumn(name="æåäºä»¶æ¨éæ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date lastEventTime; |
| | | |
| | | @ApiModelProperty(value = "çæ§ç¹åç§°ï¼å¤ä¸ªç¨è±æéå·éå¼") |
| | |
| | | @ExcelColumn(name="æå°å±å¹åç§°ï¼å¤ä¸ªç¨è±æéå·éå¼") |
| | | private String screenName; |
| | | |
| | | @ApiModelProperty(value = "海康æ è¯") |
| | | @ExcelColumn(name="海康æ è¯") |
| | | private String hkId; |
| | | |
| | | @ApiModelProperty(value = "å
³èæ¿ç§å
¬å¸") |
| | | @ExcelColumn(name="å
³èæ¿ç§å
¬å¸") |
| | | private String companys; |
| | | |
| | | @ApiModelProperty(value = "Xåæ ", example = "1") |
| | | @ExcelColumn(name="Xåæ ") |
| | | private BigDecimal xpos; |
| | | |
| | | @ApiModelProperty(value = "Yåæ ", example = "1") |
| | | @ExcelColumn(name="Yåæ ") |
| | | private BigDecimal ypos; |
| | | |
| | | @ApiModelProperty(value = "宽度", example = "1") |
| | | @ExcelColumn(name="宽度") |
| | | private BigDecimal width; |
| | | |
| | | @ApiModelProperty(value = "é«åº¦", example = "1") |
| | | @ExcelColumn(name="é«åº¦") |
| | | private BigDecimal height; |
| | | |
| | | @ApiModelProperty(value = "è§åº¦", example = "1") |
| | | @ExcelColumn(name="è§åº¦") |
| | | private BigDecimal angle; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business.model; |
| | | |
| | | import com.doumee.core.annotation.excel.ExcelColumn; |
| | | 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.math.BigDecimal; |
| | | |
| | | /** |
| | | * æå°å
¥åé¢çº¦ä¿¡æ¯è¡¨ |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | @Data |
| | | @ApiModel("æå°å
¥åé¢çº¦ä¿¡æ¯è¡¨") |
| | | @TableName("`platform_books`") |
| | | public class PlatformBooks { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | @ApiModelProperty(value = "主é®", example = "1") |
| | | @ExcelColumn(name="主é®") |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty(value = "å建人ç¼ç ", example = "1") |
| | | @ExcelColumn(name="å建人ç¼ç ") |
| | | private Integer creator; |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @ExcelColumn(name="å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date createDate; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°äººç¼ç ", example = "1") |
| | | @ExcelColumn(name="æ´æ°äººç¼ç ") |
| | | private Integer editor; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @ExcelColumn(name="æ´æ°æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date editDate; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦å é¤0å¦ 1æ¯", example = "1") |
| | | @ExcelColumn(name="æ¯å¦å é¤0å¦ 1æ¯") |
| | | private Integer isdeleted; |
| | | |
| | | @ApiModelProperty(value = "åç§°") |
| | | @ExcelColumn(name="åç§°") |
| | | private String name; |
| | | |
| | | @ApiModelProperty(value = "夿³¨") |
| | | @ExcelColumn(name="夿³¨") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty(value = "ç¶æ 0å¾
å®¡æ¹ 1审æ¹ä¸ 2审æ¹éè¿ 3审æ¹ä¸éè¿", example = "1") |
| | | @ExcelColumn(name="ç¶æ 0å¾
å®¡æ¹ 1审æ¹ä¸ 2审æ¹éè¿ 3审æ¹ä¸éè¿") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "ååå·") |
| | | @ExcelColumn(name="ååå·") |
| | | private String contractNum; |
| | | |
| | | @ApiModelProperty(value = "é¢è®¡å°åºæ¶é´") |
| | | @ExcelColumn(name="é¢è®¡å°åºæ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date arriveDate; |
| | | |
| | | @ApiModelProperty(value = "å
¥åºç±»å 0æ´æç 1ä»¶ç", example = "1") |
| | | @ExcelColumn(name="å
¥åºç±»å 0æ´æç 1ä»¶ç") |
| | | private Integer inType; |
| | | |
| | | @ApiModelProperty(value = "æ»è¿è¾é", example = "1") |
| | | @ExcelColumn(name="æ»è¿è¾é") |
| | | private BigDecimal totalNum; |
| | | |
| | | @ApiModelProperty(value = "å车çå·") |
| | | @ExcelColumn(name="å车çå·") |
| | | private String carCodeFront; |
| | | |
| | | @ApiModelProperty(value = "å车çå·") |
| | | @ExcelColumn(name="å车çå·") |
| | | private String carCodeBack; |
| | | |
| | | @ApiModelProperty(value = "叿ºç¼ç ", example = "1") |
| | | @ExcelColumn(name="叿ºç¼ç ") |
| | | private Integer driverId; |
| | | |
| | | @ApiModelProperty(value = "叿ºå§å") |
| | | @ExcelColumn(name="叿ºå§å") |
| | | private String driverName; |
| | | |
| | | @ApiModelProperty(value = "车çå·") |
| | | @ExcelColumn(name="车çå·") |
| | | private String plateNum; |
| | | |
| | | @ApiModelProperty(value = "叿ºææºå·") |
| | | @ExcelColumn(name="叿ºææºå·") |
| | | private String drivierPhone; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business.model; |
| | | |
| | | import com.doumee.core.annotation.excel.ExcelColumn; |
| | | 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; |
| | | |
| | | /** |
| | | * æå°_LEDå广ææéä¸åè®°å½ |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | @Data |
| | | @ApiModel("æå°_LEDå广ææéä¸åè®°å½") |
| | | @TableName("`platform_broadcast_log`") |
| | | public class PlatformBroadcastLog { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | @ApiModelProperty(value = "主é®", example = "1") |
| | | @ExcelColumn(name="主é®") |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty(value = "å建人ç¼ç ", example = "1") |
| | | @ExcelColumn(name="å建人ç¼ç ") |
| | | private Integer creator; |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @ExcelColumn(name="å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date createDate; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°äººç¼ç ", example = "1") |
| | | @ExcelColumn(name="æ´æ°äººç¼ç ") |
| | | private Integer editor; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @ExcelColumn(name="æ´æ°æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date editDate; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦å é¤0å¦ 1æ¯", example = "1") |
| | | @ExcelColumn(name="æ¯å¦å é¤0å¦ 1æ¯") |
| | | private Integer isdeleted; |
| | | |
| | | @ApiModelProperty(value = "åç§°") |
| | | @ExcelColumn(name="åç§°") |
| | | private String name; |
| | | |
| | | @ApiModelProperty(value = "夿³¨") |
| | | @ExcelColumn(name="夿³¨") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty(value = "å
³è对象ç¼ç ") |
| | | @ExcelColumn(name="å
³è对象ç¼ç ") |
| | | private String objId; |
| | | |
| | | @ApiModelProperty(value = "å
³è对象类å 0æå°ä½ä¸", example = "1") |
| | | @ExcelColumn(name="å
³è对象类å 0æå°ä½ä¸") |
| | | private Integer objType; |
| | | |
| | | @ApiModelProperty(value = "æé次æ°", example = "1") |
| | | @ExcelColumn(name="æé次æ°") |
| | | private Integer num; |
| | | |
| | | @ApiModelProperty(value = "设å¤ç¼ç ") |
| | | @ExcelColumn(name="设å¤ç¼ç ") |
| | | private String ids; |
| | | |
| | | @ApiModelProperty(value = "æéå
容") |
| | | @ExcelColumn(name="æéå
容") |
| | | private String info; |
| | | |
| | | @ApiModelProperty(value = "海康ç¼ç ") |
| | | @ExcelColumn(name="海康ç¼ç ") |
| | | private String hkId; |
| | | |
| | | @ApiModelProperty(value = "æéä¸åç¶æ 0å¾
ä¸å 1ä¸åä¸ 2ä¸åæå 3ä¸å失败", example = "1") |
| | | @ExcelColumn(name="æéä¸åç¶æ 0å¾
ä¸å 1ä¸åä¸ 2ä¸åæå 3ä¸å失败") |
| | | private Integer hkStatus; |
| | | |
| | | @ApiModelProperty(value = "æéä¸åæ¶é´") |
| | | @ExcelColumn(name="æéä¸åæ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date hkDate; |
| | | |
| | | @ApiModelProperty(value = "æéä¸å夿³¨") |
| | | @ExcelColumn(name="æéä¸å夿³¨") |
| | | private String hkInfo; |
| | | |
| | | @ApiModelProperty(value = "ä¸å¡ç±»å 0æå°æéå«å·", example = "1") |
| | | @ExcelColumn(name="ä¸å¡ç±»å 0æå°æéå«å·") |
| | | private Integer bizType; |
| | | |
| | | @ApiModelProperty(value = "ç±»å 0广æ 1LED", example = "1") |
| | | @ExcelColumn(name="ç±»å 0广æ 1LED") |
| | | private Integer deviceType; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business.model; |
| | | |
| | | import com.doumee.core.annotation.excel.ExcelColumn; |
| | | 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; |
| | | |
| | | /** |
| | | * æå°_å
³èçæ§ç¹LEDå广æä¿¡æ¯è¡¨ |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | @Data |
| | | @ApiModel("æå°_å
³èçæ§ç¹LEDå广æä¿¡æ¯è¡¨") |
| | | @TableName("`platform_device`") |
| | | public class PlatformDevice { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | @ApiModelProperty(value = "主é®", example = "1") |
| | | @ExcelColumn(name="主é®") |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty(value = "å建人ç¼ç ", example = "1") |
| | | @ExcelColumn(name="å建人ç¼ç ") |
| | | private Integer creator; |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @ExcelColumn(name="å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date createDate; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°äººç¼ç ", example = "1") |
| | | @ExcelColumn(name="æ´æ°äººç¼ç ") |
| | | private Integer editor; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @ExcelColumn(name="æ´æ°æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date editDate; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦å é¤0å¦ 1æ¯", example = "1") |
| | | @ExcelColumn(name="æ¯å¦å é¤0å¦ 1æ¯") |
| | | private Integer isdeleted; |
| | | |
| | | @ApiModelProperty(value = "夿³¨") |
| | | @ExcelColumn(name="夿³¨") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty(value = "æå°ç¼ç ï¼å
³èplatforms)", example = "1") |
| | | @ExcelColumn(name="æå°ç¼ç ï¼å
³èplatforms)") |
| | | private Integer platformId; |
| | | |
| | | @ApiModelProperty(value = "è®¾å¤æµ·åº·æ è¯") |
| | | @ExcelColumn(name="è®¾å¤æµ·åº·æ è¯") |
| | | private String hkId; |
| | | |
| | | @ApiModelProperty(value = "设å¤ç¼ç ï¼å
³èdevice)") |
| | | @ExcelColumn(name="设å¤ç¼ç ï¼å
³èdevice)") |
| | | private String deviceId; |
| | | |
| | | @ApiModelProperty(value = "æåºç ", example = "1") |
| | | @ExcelColumn(name="æåºç ") |
| | | private Integer sortnum; |
| | | |
| | | @ApiModelProperty(value = "设å¤ç±»å 0LED 1çæ§ç¹ 2广æ", example = "1") |
| | | @ExcelColumn(name="设å¤ç±»å 0LED 1çæ§ç¹ 2广æ") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty(value = "设å¤åç§°") |
| | | @ExcelColumn(name="设å¤åç§°") |
| | | private String name; |
| | | |
| | | @ApiModelProperty(value = "设å¤ç¶æ 0å¨çº¿ 1离线", example = "1") |
| | | @ExcelColumn(name="设å¤ç¶æ 0å¨çº¿ 1离线") |
| | | private Integer status; |
| | | |
| | | } |
| | |
| | | package com.doumee.dao.business.model; |
| | | |
| | | 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; |
| | |
| | | /** |
| | | * æå°_åç»ä¿¡æ¯è¡¨ |
| | | * @author æ±è¹è¹ |
| | | * @since 2024/04/28 16:06 |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | @Data |
| | | @ApiModel("æå°_åç»ä¿¡æ¯è¡¨") |
| | | @TableName("`platform_group`") |
| | | public class PlatformGroup extends LoginUserModel { |
| | | public class PlatformGroup { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | @ApiModelProperty(value = "主é®", example = "1") |
| | |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @ExcelColumn(name="å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date createDate; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°äººç¼ç ", example = "1") |
| | |
| | | |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @ExcelColumn(name="æ´æ°æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date editDate; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦å é¤0å¦ 1æ¯", example = "1") |
| | |
| | | package com.doumee.dao.business.model; |
| | | |
| | | 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; |
| | |
| | | /** |
| | | * ä½ä¸è°åº¦å¹³å°æ¥å£äº¤äºè®°å½ |
| | | * @author æ±è¹è¹ |
| | | * @since 2024/04/28 16:06 |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | @Data |
| | | @ApiModel("ä½ä¸è°åº¦å¹³å°æ¥å£äº¤äºè®°å½") |
| | | @TableName("`platform_interface_log`") |
| | | public class PlatformInterfaceLog extends LoginUserModel { |
| | | public class PlatformInterfaceLog { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | @ApiModelProperty(value = "主é®", example = "1") |
| | |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @ExcelColumn(name="å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date createDate; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°äººç¼ç ", example = "1") |
| | |
| | | |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @ExcelColumn(name="æ´æ°æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date editDate; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦å é¤0å¦ 1æ¯", example = "1") |
| | |
| | | |
| | | @ApiModelProperty(value = "å°åä¿¡æ¯") |
| | | @ExcelColumn(name="å°åä¿¡æ¯") |
| | | private String url; |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date url; |
| | | |
| | | @ApiModelProperty(value = "请æ±åæ°") |
| | | @ExcelColumn(name="请æ±åæ°") |
| | |
| | | @ExcelColumn(name="å
³è对象ç¼ç ï¼å¤ä¸ªç¨è±æéå·éå¼ï¼") |
| | | private String objId; |
| | | |
| | | @ApiModelProperty(value = "å¼å§æ¶é´") |
| | | @TableField(exist = false) |
| | | private Date startDate; |
| | | |
| | | @ApiModelProperty(value = "ç»ææ¶é´") |
| | | @TableField(exist = false) |
| | | private Date endDate; |
| | | } |
| | |
| | | package com.doumee.dao.business.model; |
| | | |
| | | 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; |
| | |
| | | /** |
| | | * æå°è°åº¦ä½ä¸ä¿¡æ¯è¡¨ |
| | | * @author æ±è¹è¹ |
| | | * @since 2024/04/28 16:06 |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | @Data |
| | | @ApiModel("æå°è°åº¦ä½ä¸ä¿¡æ¯è¡¨") |
| | | @TableName("`platform_job`") |
| | | public class PlatformJob extends LoginUserModel { |
| | | public class PlatformJob { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | @ApiModelProperty(value = "主é®", example = "1") |
| | |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @ExcelColumn(name="å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date createDate; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°äººç¼ç ", example = "1") |
| | |
| | | |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @ExcelColumn(name="æ´æ°æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date editDate; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦å é¤0å¦ 1æ¯", example = "1") |
| | |
| | | @ExcelColumn(name="夿³¨") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty(value = "ç¶æ 0å¾
确认 1å¾
ç¾å° 2çå¾
å«å· 3å«å·ä¸ 4ä½ä¸ä¸ 5ä½ä¸å®æ 6å¼å¸¸æèµ· 7æå°çå¾
8å·²ä½åº", example = "1") |
| | | @ExcelColumn(name="ç¶æ 0å¾
确认 1å¾
ç¾å° 2çå¾
å«å· 3å«å·ä¸ 4ä½ä¸ä¸ 5ä½ä¸å®æ 6å¼å¸¸æèµ· 7æå°çå¾
8å·²ä½åº") |
| | | @ApiModelProperty(value = "ç¶æ 0å¾
确认 1å¾
ç¾å° 2çå¾
å«å· 3å
¥åçå¾
4å·²å«å· 5ä½ä¸ä¸ 6ä½ä¸å®æ 7è½¬ç§»ä¸ 8å¼å¸¸æèµ· 9å·²ææç¦»å 10已离å 11 å·²è¿å·", example = "1") |
| | | @ExcelColumn(name="ç¶æ 0å¾
确认 1å¾
ç¾å° 2çå¾
å«å· 3å
¥åçå¾
4å·²å«å· 5ä½ä¸ä¸ 6ä½ä¸å®æ 7è½¬ç§»ä¸ 8å¼å¸¸æèµ· 9å·²ææç¦»å 10已离å 11 å·²è¿å·") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "æåºç ", example = "1") |
| | |
| | | |
| | | @ApiModelProperty(value = "ä½ä¸åå·") |
| | | @ExcelColumn(name="ä½ä¸åå·") |
| | | private String startTime; |
| | | private String code; |
| | | |
| | | @ApiModelProperty(value = "ä½ä¸å¯ä¸æ è¯") |
| | | @ExcelColumn(name="ä½ä¸å¯ä¸æ è¯") |
| | | private String endTime; |
| | | @ApiModelProperty(value = "ä½ä¸å¯ä¸æ è¯(æ¿è¿åå·ï¼") |
| | | @ExcelColumn(name="ä½ä¸å¯ä¸æ è¯(æ¿è¿åå·ï¼") |
| | | private String billCode; |
| | | |
| | | @ApiModelProperty(value = "叿ºç¼ç ", example = "1") |
| | | @ExcelColumn(name="叿ºç¼ç ") |
| | | private Integer deviceIds; |
| | | private Integer driverId; |
| | | |
| | | @ApiModelProperty(value = "叿ºå§å") |
| | | @ExcelColumn(name="叿ºå§å") |
| | | private String screenIds; |
| | | private String driverName; |
| | | |
| | | @ApiModelProperty(value = "车çå·") |
| | | @ExcelColumn(name="车çå·") |
| | | private String plateNum; |
| | | |
| | | @ApiModelProperty(value = "叿ºææºå·") |
| | | @ExcelColumn(name="叿ºææºå·") |
| | | private String workingNum; |
| | | |
| | | @ApiModelProperty(value = "广ææé次æ°", example = "1") |
| | | @ExcelColumn(name="广ææé次æ°") |
| | | private Integer broadcastNum; |
| | | |
| | | @ApiModelProperty(value = "广æè®¾å¤ç¼ç ") |
| | | @ExcelColumn(name="广æè®¾å¤ç¼ç ") |
| | | private String broadcastIds; |
| | | |
| | | @ApiModelProperty(value = "广ææéå
容") |
| | | @ExcelColumn(name="广ææéå
容") |
| | | private String broadcastInfo; |
| | | |
| | | @ApiModelProperty(value = "广ææéä¸åç¶æ 0å¾
ä¸å 1ä¸åä¸ 2ä¸åæå 3ä¸å失败", example = "1") |
| | | @ExcelColumn(name="广ææéä¸åç¶æ 0å¾
ä¸å 1ä¸åä¸ 2ä¸åæå 3ä¸å失败") |
| | | private Integer broadcastHkstatus; |
| | | |
| | | @ApiModelProperty(value = "广ææéä¸åæ¶é´") |
| | | @ExcelColumn(name="广ææéä¸åæ¶é´") |
| | | private Date broadcastHkdate; |
| | | |
| | | @ApiModelProperty(value = "广ææéä¸å夿³¨") |
| | | @ExcelColumn(name="广ææéä¸å夿³¨") |
| | | private String broadcastHkinfo; |
| | | private String drivierPhone; |
| | | |
| | | @ApiModelProperty(value = "ç¾å°æ¶é´") |
| | | @ExcelColumn(name="ç¾å°æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date signDate; |
| | | |
| | | @ApiModelProperty(value = "ç¾å°æ¹å¼ 0appç¾å° 1æ«ç ç¾å°", example = "1") |
| | |
| | | @ExcelColumn(name="ç¾å°è·ç¦»(ç±³ï¼") |
| | | private BigDecimal signDistance; |
| | | |
| | | @ApiModelProperty(value = "åé
æå°ç¼ç ï¼å
³èplatform)", example = "1") |
| | | @ExcelColumn(name="åé
æå°ç¼ç ï¼å
³èplatform)") |
| | | @ApiModelProperty(value = "ä½ä¸æå°åç§°éåï¼å¤ä¸ªä½¿ç¨è±æéå·éå¼") |
| | | @ExcelColumn(name="ä½ä¸æå°åç§°éåï¼å¤ä¸ªä½¿ç¨è±æéå·éå¼") |
| | | private String platformNames; |
| | | |
| | | @ApiModelProperty(value = "ä½ä¸æå°ç¼ç éåï¼å¤ä¸ªä½¿ç¨è±æéå·éå¼") |
| | | @ExcelColumn(name="ä½ä¸æå°ç¼ç éåï¼å¤ä¸ªä½¿ç¨è±æéå·éå¼") |
| | | private String platforms; |
| | | |
| | | @ApiModelProperty(value = "æè¿åé
æå°ç¼ç ï¼å
³èplatform)", example = "1") |
| | | @ExcelColumn(name="æè¿åé
æå°ç¼ç ï¼å
³èplatform)") |
| | | private Integer platformId; |
| | | |
| | | @ApiModelProperty(value = "éç¥å
¥åçå¾
æ¶é´") |
| | | @ExcelColumn(name="éç¥å
¥åçå¾
æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date inwaitDate; |
| | | |
| | | @ApiModelProperty(value = "éç¥å
¥åçå¾
æä½äººç¼ç ", example = "1") |
| | | @ExcelColumn(name="éç¥å
¥åçå¾
æä½äººç¼ç ") |
| | | private Integer inwaitUserId; |
| | | |
| | | @ApiModelProperty(value = "å«å·æ¶é´") |
| | | @ExcelColumn(name="å«å·æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date callDate; |
| | | |
| | | @ApiModelProperty(value = "å«å·äººç¼ç ", example = "1") |
| | |
| | | |
| | | @ApiModelProperty(value = "å¼å§ä½ä¸æ¶é´") |
| | | @ExcelColumn(name="å¼å§ä½ä¸æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date startDate; |
| | | |
| | | @ApiModelProperty(value = "ä½ä¸å®ææ¶é´ï¼æç»æ¶é´ï¼") |
| | | @ExcelColumn(name="ä½ä¸å®ææ¶é´ï¼æç»æ¶é´ï¼") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date doneDate; |
| | | |
| | | @ApiModelProperty(value = "å¼å¸¸æèµ·æ¶é´") |
| | | @ExcelColumn(name="å¼å¸¸æèµ·æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date errorDate; |
| | | |
| | | @ApiModelProperty(value = "å¼å¸¸æèµ·äººç¼ç ", example = "1") |
| | |
| | | |
| | | @ApiModelProperty(value = "æå°è½¬äº¤æ¶é´") |
| | | @ExcelColumn(name="æå°è½¬äº¤æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date transPlatformDate; |
| | | |
| | | @ApiModelProperty(value = "æå°è½¬äº¤å¤ç人", example = "1") |
| | |
| | | |
| | | @ApiModelProperty(value = "车è¾è¿åæ¶é´") |
| | | @ExcelColumn(name="车è¾è¿åæ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date inDate; |
| | | |
| | | @ApiModelProperty(value = "车è¾ç¦»åæ¶é´") |
| | | @ExcelColumn(name="车è¾ç¦»åæ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date outDate; |
| | | |
| | | @ApiModelProperty(value = "ç¦»åæ¹å¼ 0èªå¨ç¦»å 1æå¨ç¦»åº", example = "1") |
| | |
| | | |
| | | @ApiModelProperty(value = "车è¾ç¦»åä¸åæ¶é´") |
| | | @ExcelColumn(name="车è¾ç¦»åä¸åæ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date outHkdate; |
| | | |
| | | @ApiModelProperty(value = "车è¾ç¦»åä¸å夿³¨") |
| | |
| | | |
| | | @ApiModelProperty(value = "车è¾è¿åä¸åæ¶é´") |
| | | @ExcelColumn(name="车è¾è¿åä¸åæ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date inHkdate; |
| | | |
| | | @ApiModelProperty(value = "ä½ä¸ç±»å 0èªæè½¦å¸è´§ 1èªæè½¦è£
è´§ 2å¤å车å¸è´§ 3å¤å车è£
è´§ 4å¸å
¬å¸å¤å车å¸è´§", example = "1") |
| | |
| | | |
| | | @ApiModelProperty(value = "ä½åºæ¶é´") |
| | | @ExcelColumn(name="ä½åºæ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date cancelDate; |
| | | |
| | | @ApiModelProperty(value = "ä½åºå¤ç人ç¼ç ", example = "1") |
| | |
| | | @ExcelColumn(name="å
¥åäºç±") |
| | | private String reason; |
| | | |
| | | @ApiModelProperty(value = "ååå·") |
| | | @ExcelColumn(name="ååå·") |
| | | private String contractNum; |
| | | |
| | | @ApiModelProperty(value = "é¢è®¡å°åºæ¶é´") |
| | | @ExcelColumn(name="é¢è®¡å°åºæ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date arriveDate; |
| | | |
| | | @ApiModelProperty(value = "å
¥åºç±»å 0æ´æç 1ä»¶ç", example = "1") |
| | | @ExcelColumn(name="å
¥åºç±»å 0æ´æç 1ä»¶ç") |
| | | private Integer inType; |
| | | |
| | | @ApiModelProperty(value = "æ»è¿è¾é", example = "1") |
| | | @ExcelColumn(name="æ»è¿è¾é") |
| | | private BigDecimal totalNum; |
| | | |
| | | } |
| | |
| | | package com.doumee.dao.business.model; |
| | | |
| | | 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; |
| | |
| | | /** |
| | | * æå°_ä½ä¸æä½åå²è¡¨ |
| | | * @author æ±è¹è¹ |
| | | * @since 2024/04/28 16:06 |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | @Data |
| | | @ApiModel("æå°_ä½ä¸æä½åå²è¡¨") |
| | | @TableName("`platform_log`") |
| | | public class PlatformLog extends LoginUserModel { |
| | | public class PlatformLog { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | @ApiModelProperty(value = "主é®", example = "1") |
| | |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @ExcelColumn(name="å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date createDate; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°äººç¼ç ", example = "1") |
| | |
| | | |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @ExcelColumn(name="æ´æ°æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date editDate; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦å é¤0å¦ 1æ¯", example = "1") |
| | |
| | | @ExcelColumn(name="ç®ä»") |
| | | private String content; |
| | | |
| | | @ApiModelProperty(value = "æä½ç±»å 0ä¸åä»»å¡ 1叿ºç¾å° 2å®¡æ ¸éè¿ 3审æ¹ä¸éè¿ 4å«å· 5转交æå° 6æèµ· 7叿ºè¿å 8叿ºç¦»å 9ä½ä¸ä½åºåæ¶ 10ä½ä¸å®æ", example = "1") |
| | | @ExcelColumn(name="æä½ç±»å 0ä¸åä»»å¡ 1叿ºç¾å° 2å®¡æ ¸éè¿ 3审æ¹ä¸éè¿ 4å«å· 5转交æå° 6æèµ· 7叿ºè¿å 8叿ºç¦»å 9ä½ä¸ä½åºåæ¶ 10ä½ä¸å®æ") |
| | | @ApiModelProperty(value = "æä½ç±»å 0ä»»å¡å建 1叿ºç¡®è®¤ä»»å¡ 2叿ºç¾å° 3å
¥åçå¾
4æå°å«å· 5å¼å§ä½ä¸ 6ä½ä¸å®æ 7æå°è½¬ç§» 8ä»»å¡æèµ· 9ä¸åææç¦»å 10离å", example = "1") |
| | | @ExcelColumn(name="æä½ç±»å 0ä»»å¡å建 1叿ºç¡®è®¤ä»»å¡ 2叿ºç¾å° 3å
¥åçå¾
4æå°å«å· 5å¼å§ä½ä¸ 6ä½ä¸å®æ 7æå°è½¬ç§» 8ä»»å¡æèµ· 9ä¸åææç¦»å 10离å") |
| | | private Integer objType; |
| | | |
| | | @ApiModelProperty(value = "å
³è对象ç¼ç ") |
| | |
| | | @ExcelColumn(name="æä½åå
容") |
| | | private String afterContent; |
| | | |
| | | @ApiModelProperty(value = "åæ°1") |
| | | @ExcelColumn(name="åæ°1") |
| | | private String param1; |
| | | |
| | | @ApiModelProperty(value = "åæ°2") |
| | | @ExcelColumn(name="åæ°2") |
| | | private String param2; |
| | | |
| | | @ApiModelProperty(value = "åæ°3") |
| | | @ExcelColumn(name="åæ°3") |
| | | private String param3; |
| | | |
| | | @ApiModelProperty(value = "åæ°4") |
| | | @ExcelColumn(name="åæ°4") |
| | | private String param4; |
| | | |
| | | } |
| | |
| | | package com.doumee.dao.business.model; |
| | | |
| | | 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; |
| | |
| | | /** |
| | | * æå°_å«å·æéä¿¡æ¯è¡¨ |
| | | * @author æ±è¹è¹ |
| | | * @since 2024/04/28 16:06 |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | @Data |
| | | @ApiModel("æå°_å«å·æéä¿¡æ¯è¡¨") |
| | | @TableName("`platform_queue`") |
| | | public class PlatformQueue extends LoginUserModel { |
| | | public class PlatformQueue { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | @ApiModelProperty(value = "主é®", example = "1") |
| | |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @ExcelColumn(name="å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date createDate; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°äººç¼ç ", example = "1") |
| | |
| | | |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @ExcelColumn(name="æ´æ°æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date editDate; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦å é¤0å¦ 1æ¯", example = "1") |
| | |
| | | @ExcelColumn(name="æå°ä½ä¸ç¼ç ï¼å
³èplatform_job)") |
| | | private Integer jobId; |
| | | |
| | | @ApiModelProperty(value = "æ é¢") |
| | | @ExcelColumn(name="æ é¢") |
| | | private String title; |
| | | |
| | | @ApiModelProperty(value = "ç®ä»") |
| | | @ExcelColumn(name="ç®ä»") |
| | | private String content; |
| | |
| | | @ExcelColumn(name="ç¶æ 0çå¾
ä¸ 1å«å·ä¸ 2ä½ä¸ä¸") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "å
³è对象ç¼ç 0ä½ä¸", example = "1") |
| | | @ExcelColumn(name="å
³è对象ç¼ç 0ä½ä¸") |
| | | @ApiModelProperty(value = "å
³è对象ç¼ç 0æå°ä½ä¸", example = "1") |
| | | @ExcelColumn(name="å
³è对象ç¼ç 0æå°ä½ä¸") |
| | | private Integer objType; |
| | | |
| | | @ApiModelProperty(value = "å
³è对象ç¼ç ", example = "1") |
| | |
| | | package com.doumee.dao.business.model; |
| | | |
| | | 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; |
| | |
| | | /** |
| | | * æå°_æ¾ç¤ºé
置信æ¯è¡¨ |
| | | * @author æ±è¹è¹ |
| | | * @since 2024/04/28 16:06 |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | @Data |
| | | @ApiModel("æå°_æ¾ç¤ºé
置信æ¯è¡¨") |
| | | @TableName("`platform_show_param`") |
| | | public class PlatformShowParam extends LoginUserModel { |
| | | public class PlatformShowParam { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | @ApiModelProperty(value = "主é®", example = "1") |
| | |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @ExcelColumn(name="å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date createDate; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°äººç¼ç ", example = "1") |
| | |
| | | |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @ExcelColumn(name="æ´æ°æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date editDate; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦å é¤0å¦ 1æ¯", example = "1") |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business.model; |
| | | |
| | | import com.doumee.core.annotation.excel.ExcelColumn; |
| | | 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.math.BigDecimal; |
| | | |
| | | /** |
| | | * æå°_WMSä½ä¸éç¥åæç» |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | @Data |
| | | @ApiModel("æå°_WMSä½ä¸éç¥åæç»") |
| | | @TableName("`platform_wms_detail`") |
| | | public class PlatformWmsDetail { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | @ApiModelProperty(value = "主é®", example = "1") |
| | | @ExcelColumn(name="主é®") |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty(value = "å建人ç¼ç ", example = "1") |
| | | @ExcelColumn(name="å建人ç¼ç ") |
| | | private Integer creator; |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @ExcelColumn(name="å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date createDate; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°äººç¼ç ", example = "1") |
| | | @ExcelColumn(name="æ´æ°äººç¼ç ") |
| | | private Integer editor; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @ExcelColumn(name="æ´æ°æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date editDate; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦å é¤0å¦ 1æ¯", example = "1") |
| | | @ExcelColumn(name="æ¯å¦å é¤0å¦ 1æ¯") |
| | | private Integer isdeleted; |
| | | |
| | | @ApiModelProperty(value = "夿³¨") |
| | | @ExcelColumn(name="夿³¨") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty(value = "è¡æ°æ®ç¼ç ï¼å
³èplatform_wms_job)", example = "1") |
| | | @ExcelColumn(name="è¡æ°æ®ç¼ç ï¼å
³èplatform_wms_job)") |
| | | private Integer jobId; |
| | | |
| | | @ApiModelProperty(value = "éç¥åå·") |
| | | @ExcelColumn(name="éç¥åå·") |
| | | private String iocode; |
| | | |
| | | @ApiModelProperty(value = "ç©æåç§°") |
| | | @ExcelColumn(name="ç©æåç§°") |
| | | private String materialName; |
| | | |
| | | @ApiModelProperty(value = "ä¾åºå") |
| | | @ExcelColumn(name="ä¾åºå") |
| | | private String inRepertotyCode; |
| | | |
| | | @ApiModelProperty(value = "è®¡åæ¶è´§æ°é", example = "1") |
| | | @ExcelColumn(name="è®¡åæ¶è´§æ°é") |
| | | private BigDecimal ioQty; |
| | | |
| | | @ApiModelProperty(value = "ç©æè½¬æ¢ç") |
| | | @ExcelColumn(name="ç©æè½¬æ¢ç") |
| | | private String rate; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business.model; |
| | | |
| | | import com.doumee.core.annotation.excel.ExcelColumn; |
| | | 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; |
| | | |
| | | /** |
| | | * æå°_WMSä½ä¸éç¥åè¡æ°æ® |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | @Data |
| | | @ApiModel("æå°_WMSä½ä¸éç¥åè¡æ°æ®") |
| | | @TableName("`platform_wms_job`") |
| | | public class PlatformWmsJob { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | @ApiModelProperty(value = "主é®", example = "1") |
| | | @ExcelColumn(name="主é®") |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty(value = "å建人ç¼ç ", example = "1") |
| | | @ExcelColumn(name="å建人ç¼ç ") |
| | | private Integer creator; |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @ExcelColumn(name="å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date createDate; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°äººç¼ç ", example = "1") |
| | | @ExcelColumn(name="æ´æ°äººç¼ç ") |
| | | private Integer editor; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @ExcelColumn(name="æ´æ°æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date editDate; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦å é¤0å¦ 1æ¯", example = "1") |
| | | @ExcelColumn(name="æ¯å¦å é¤0å¦ 1æ¯") |
| | | private Integer isdeleted; |
| | | |
| | | @ApiModelProperty(value = "夿³¨") |
| | | @ExcelColumn(name="夿³¨") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty(value = "æå°ä½ä¸ç¼ç ï¼å
³èplatform_job)", example = "1") |
| | | @ExcelColumn(name="æå°ä½ä¸ç¼ç ï¼å
³èplatform_job)") |
| | | private Integer jobId; |
| | | |
| | | @ApiModelProperty(value = "éç¥åå·") |
| | | @ExcelColumn(name="éç¥åå·") |
| | | private String iocode; |
| | | |
| | | @ApiModelProperty(value = "ä½ä¸ç±»å 0å
¥åº 1åºåº", example = "1") |
| | | @ExcelColumn(name="ä½ä¸ç±»å 0å
¥åº 1åºåº") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty(value = "叿ºçµè¯") |
| | | @ExcelColumn(name="叿ºçµè¯") |
| | | private String driverPhone; |
| | | |
| | | @ApiModelProperty(value = "叿ºå§å") |
| | | @ExcelColumn(name="叿ºå§å") |
| | | private String driverName; |
| | | |
| | | @ApiModelProperty(value = "æ¿è¿å") |
| | | @ExcelColumn(name="æ¿è¿å") |
| | | private String carrierName; |
| | | |
| | | @ApiModelProperty(value = "æ¿è¿åå·") |
| | | @ExcelColumn(name="æ¿è¿åå·") |
| | | private String carryBillCode; |
| | | |
| | | @ApiModelProperty(value = "éç¥åå»ºæ¥æ") |
| | | @ExcelColumn(name="éç¥åå»ºæ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date ioCreatedate; |
| | | |
| | | @ApiModelProperty(value = "ç¶æ 0æªå¤ç 1å·²å¤ç 2已忶", example = "1") |
| | | @ExcelColumn(name="ç¶æ 0æªå¤ç 1å·²å¤ç 2已忶") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "åæ¶æ¶é´") |
| | | @ExcelColumn(name="åæ¶æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date cancelDate; |
| | | |
| | | @ApiModelProperty(value = "忶夿³¨") |
| | | @ExcelColumn(name="忶夿³¨") |
| | | private String cancelInfo; |
| | | |
| | | @ApiModelProperty(value = "车çå·") |
| | | @ExcelColumn(name="车çå·") |
| | | private String plateNumber; |
| | | |
| | | @ApiModelProperty(value = "æ¶è´§å°") |
| | | @ExcelColumn(name="æ¶è´§å°") |
| | | private String repertotyAddress; |
| | | |
| | | @ApiModelProperty(value = "ååå·`") |
| | | @ExcelColumn(name="ååå·`") |
| | | private String contractNum; |
| | | |
| | | } |
| | |
| | | @ApiModelProperty(value = "æ¯å¦å ç¨") |
| | | private Integer isUse; |
| | | |
| | | @ApiModelProperty(value = "ç¨è½¦è®°å½ä¸»é®") |
| | | private Integer carUseBookId; |
| | | |
| | | } |
| | |
| | | private Long noticeDealNum; |
| | | |
| | | @ApiModelProperty(value = "æåèµ·çå¾
åæ°é") |
| | | private Integer noticeCreateNum; |
| | | private Long noticeCreateNum; |
| | | |
| | | @ApiModelProperty(value = "æéçå¾
åæ°é") |
| | | private Long noticeCopyNum; |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Data |
| | | public class VisitDetailVO { |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private Date createTime; |
| | | |
| | | @ApiModelProperty(value = "审æ¹ç¶æ") |
| | | private Integer status; |
| | |
| | | @ApiModelProperty(value = "审æ¹ä¿¡æ¯æ°æ®") |
| | | private ApproveDataVO approveDateVO; |
| | | |
| | | @ApiModelProperty(value = "è¯ä»¶ç±»å 0èº«ä»½è¯ 1港澳è¯ä»¶ 2æ¤ç
§", example = "1") |
| | | private Integer idcardType; |
| | | |
| | | |
| | | } |
| | |
| | | import com.doumee.dao.web.reqeust.VisitMemberDTO; |
| | | import com.doumee.dao.web.response.MemberVO; |
| | | import com.doumee.dao.web.response.WxAuthorizeVO; |
| | | import org.springframework.http.server.reactive.ServerHttpRequest; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.util.List; |
| | |
| | | * @param code |
| | | * @return |
| | | */ |
| | | WxAuthorizeVO wxAuthorize(String code); |
| | | WxAuthorizeVO wxAuthorize(String code,Integer source); |
| | | |
| | | |
| | | |
| | | List<MemberVO> getVisitedMember(CheckVisitedDTO checkVisitedDTO); |
| | | |
| | | |
| | | /** |
| | | * è´¦å·å¯ç |
| | | * å
é¨äººå/å³å¡è®¿å®¢ç»å½ |
| | | * @param accountLoginDTO |
| | | * @return |
| | | */ |
| | | WxAuthorizeVO accountLogin(AccountLoginDTO accountLoginDTO); |
| | | |
| | | /** |
| | | * å
é¨å¯æè®¿äººåå页 |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.service.business; |
| | | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.model.PlatformBooks; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æå°å
¥åé¢çº¦ä¿¡æ¯è¡¨Serviceå®ä¹ |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | public interface PlatformBooksService { |
| | | |
| | | /** |
| | | * å建 |
| | | * |
| | | * @param platformBooks å®ä½å¯¹è±¡ |
| | | * @return Integer |
| | | */ |
| | | Integer create(PlatformBooks platformBooks); |
| | | |
| | | /** |
| | | * 主é®å é¤ |
| | | * |
| | | * @param id ä¸»é® |
| | | */ |
| | | void deleteById(Integer id); |
| | | |
| | | /** |
| | | * å é¤ |
| | | * |
| | | * @param platformBooks å®ä½å¯¹è±¡ |
| | | */ |
| | | void delete(PlatformBooks platformBooks); |
| | | |
| | | /** |
| | | * æ¹é主é®å é¤ |
| | | * |
| | | * @param ids 主é®é |
| | | */ |
| | | void deleteByIdInBatch(List<Integer> ids); |
| | | |
| | | /** |
| | | * 䏻鮿´æ° |
| | | * |
| | | * @param platformBooks å®ä½å¯¹è±¡ |
| | | */ |
| | | void updateById(PlatformBooks platformBooks); |
| | | |
| | | /** |
| | | * æ¹é䏻鮿´æ° |
| | | * |
| | | * @param platformBookss å®ä½é |
| | | */ |
| | | void updateByIdInBatch(List<PlatformBooks> platformBookss); |
| | | |
| | | /** |
| | | * 䏻鮿¥è¯¢ |
| | | * |
| | | * @param id ä¸»é® |
| | | * @return PlatformBooks |
| | | */ |
| | | PlatformBooks findById(Integer id); |
| | | |
| | | /** |
| | | * æ¡ä»¶æ¥è¯¢åæ¡è®°å½ |
| | | * |
| | | * @param platformBooks å®ä½å¯¹è±¡ |
| | | * @return PlatformBooks |
| | | */ |
| | | PlatformBooks findOne(PlatformBooks platformBooks); |
| | | |
| | | /** |
| | | * æ¡ä»¶æ¥è¯¢ |
| | | * |
| | | * @param platformBooks å®ä½å¯¹è±¡ |
| | | * @return List<PlatformBooks> |
| | | */ |
| | | List<PlatformBooks> findList(PlatformBooks platformBooks); |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * |
| | | * @param pageWrap å页对象 |
| | | * @return PageData<PlatformBooks> |
| | | */ |
| | | PageData<PlatformBooks> findPage(PageWrap<PlatformBooks> pageWrap); |
| | | |
| | | /** |
| | | * æ¡ä»¶ç»è®¡ |
| | | * |
| | | * @param platformBooks å®ä½å¯¹è±¡ |
| | | * @return long |
| | | */ |
| | | long count(PlatformBooks platformBooks); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.service.business; |
| | | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.model.PlatformBroadcastLog; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æå°_LEDå广ææéä¸åè®°å½Serviceå®ä¹ |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | public interface PlatformBroadcastLogService { |
| | | |
| | | /** |
| | | * å建 |
| | | * |
| | | * @param platformBroadcastLog å®ä½å¯¹è±¡ |
| | | * @return Integer |
| | | */ |
| | | Integer create(PlatformBroadcastLog platformBroadcastLog); |
| | | |
| | | /** |
| | | * 主é®å é¤ |
| | | * |
| | | * @param id ä¸»é® |
| | | */ |
| | | void deleteById(Integer id); |
| | | |
| | | /** |
| | | * å é¤ |
| | | * |
| | | * @param platformBroadcastLog å®ä½å¯¹è±¡ |
| | | */ |
| | | void delete(PlatformBroadcastLog platformBroadcastLog); |
| | | |
| | | /** |
| | | * æ¹é主é®å é¤ |
| | | * |
| | | * @param ids 主é®é |
| | | */ |
| | | void deleteByIdInBatch(List<Integer> ids); |
| | | |
| | | /** |
| | | * 䏻鮿´æ° |
| | | * |
| | | * @param platformBroadcastLog å®ä½å¯¹è±¡ |
| | | */ |
| | | void updateById(PlatformBroadcastLog platformBroadcastLog); |
| | | |
| | | /** |
| | | * æ¹é䏻鮿´æ° |
| | | * |
| | | * @param platformBroadcastLogs å®ä½é |
| | | */ |
| | | void updateByIdInBatch(List<PlatformBroadcastLog> platformBroadcastLogs); |
| | | |
| | | /** |
| | | * 䏻鮿¥è¯¢ |
| | | * |
| | | * @param id ä¸»é® |
| | | * @return PlatformBroadcastLog |
| | | */ |
| | | PlatformBroadcastLog findById(Integer id); |
| | | |
| | | /** |
| | | * æ¡ä»¶æ¥è¯¢åæ¡è®°å½ |
| | | * |
| | | * @param platformBroadcastLog å®ä½å¯¹è±¡ |
| | | * @return PlatformBroadcastLog |
| | | */ |
| | | PlatformBroadcastLog findOne(PlatformBroadcastLog platformBroadcastLog); |
| | | |
| | | /** |
| | | * æ¡ä»¶æ¥è¯¢ |
| | | * |
| | | * @param platformBroadcastLog å®ä½å¯¹è±¡ |
| | | * @return List<PlatformBroadcastLog> |
| | | */ |
| | | List<PlatformBroadcastLog> findList(PlatformBroadcastLog platformBroadcastLog); |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * |
| | | * @param pageWrap å页对象 |
| | | * @return PageData<PlatformBroadcastLog> |
| | | */ |
| | | PageData<PlatformBroadcastLog> findPage(PageWrap<PlatformBroadcastLog> pageWrap); |
| | | |
| | | /** |
| | | * æ¡ä»¶ç»è®¡ |
| | | * |
| | | * @param platformBroadcastLog å®ä½å¯¹è±¡ |
| | | * @return long |
| | | */ |
| | | long count(PlatformBroadcastLog platformBroadcastLog); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.service.business; |
| | | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.model.PlatformDevice; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æå°_å
³èçæ§ç¹LEDå广æä¿¡æ¯è¡¨Serviceå®ä¹ |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | public interface PlatformDeviceService { |
| | | |
| | | /** |
| | | * å建 |
| | | * |
| | | * @param platformDevice å®ä½å¯¹è±¡ |
| | | * @return Integer |
| | | */ |
| | | Integer create(PlatformDevice platformDevice); |
| | | |
| | | /** |
| | | * 主é®å é¤ |
| | | * |
| | | * @param id ä¸»é® |
| | | */ |
| | | void deleteById(Integer id); |
| | | |
| | | /** |
| | | * å é¤ |
| | | * |
| | | * @param platformDevice å®ä½å¯¹è±¡ |
| | | */ |
| | | void delete(PlatformDevice platformDevice); |
| | | |
| | | /** |
| | | * æ¹é主é®å é¤ |
| | | * |
| | | * @param ids 主é®é |
| | | */ |
| | | void deleteByIdInBatch(List<Integer> ids); |
| | | |
| | | /** |
| | | * 䏻鮿´æ° |
| | | * |
| | | * @param platformDevice å®ä½å¯¹è±¡ |
| | | */ |
| | | void updateById(PlatformDevice platformDevice); |
| | | |
| | | /** |
| | | * æ¹é䏻鮿´æ° |
| | | * |
| | | * @param platformDevices å®ä½é |
| | | */ |
| | | void updateByIdInBatch(List<PlatformDevice> platformDevices); |
| | | |
| | | /** |
| | | * 䏻鮿¥è¯¢ |
| | | * |
| | | * @param id ä¸»é® |
| | | * @return PlatformDevice |
| | | */ |
| | | PlatformDevice findById(Integer id); |
| | | |
| | | /** |
| | | * æ¡ä»¶æ¥è¯¢åæ¡è®°å½ |
| | | * |
| | | * @param platformDevice å®ä½å¯¹è±¡ |
| | | * @return PlatformDevice |
| | | */ |
| | | PlatformDevice findOne(PlatformDevice platformDevice); |
| | | |
| | | /** |
| | | * æ¡ä»¶æ¥è¯¢ |
| | | * |
| | | * @param platformDevice å®ä½å¯¹è±¡ |
| | | * @return List<PlatformDevice> |
| | | */ |
| | | List<PlatformDevice> findList(PlatformDevice platformDevice); |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * |
| | | * @param pageWrap å页对象 |
| | | * @return PageData<PlatformDevice> |
| | | */ |
| | | PageData<PlatformDevice> findPage(PageWrap<PlatformDevice> pageWrap); |
| | | |
| | | /** |
| | | * æ¡ä»¶ç»è®¡ |
| | | * |
| | | * @param platformDevice å®ä½å¯¹è±¡ |
| | | * @return long |
| | | */ |
| | | long count(PlatformDevice platformDevice); |
| | | } |
| | |
| | | /** |
| | | * æå°_åç»ä¿¡æ¯è¡¨Serviceå®ä¹ |
| | | * @author æ±è¹è¹ |
| | | * @since 2024/04/28 16:06 |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | public interface PlatformGroupService { |
| | | |
| | |
| | | /** |
| | | * ä½ä¸è°åº¦å¹³å°æ¥å£äº¤äºè®°å½Serviceå®ä¹ |
| | | * @author æ±è¹è¹ |
| | | * @since 2024/04/28 16:06 |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | public interface PlatformInterfaceLogService { |
| | | |
| | |
| | | * @return long |
| | | */ |
| | | long count(PlatformInterfaceLog platformInterfaceLog); |
| | | |
| | | void clearThreeMonthLog(); |
| | | } |
| | |
| | | /** |
| | | * æå°è°åº¦ä½ä¸ä¿¡æ¯è¡¨Serviceå®ä¹ |
| | | * @author æ±è¹è¹ |
| | | * @since 2024/04/28 16:06 |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | public interface PlatformJobService { |
| | | |
| | |
| | | /** |
| | | * æå°_ä½ä¸æä½åå²è¡¨Serviceå®ä¹ |
| | | * @author æ±è¹è¹ |
| | | * @since 2024/04/28 16:06 |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | public interface PlatformLogService { |
| | | |
| | |
| | | /** |
| | | * æå°_å«å·æéä¿¡æ¯è¡¨Serviceå®ä¹ |
| | | * @author æ±è¹è¹ |
| | | * @since 2024/04/28 16:06 |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | public interface PlatformQueueService { |
| | | |
| | |
| | | /** |
| | | * æå°ä¿¡æ¯è¡¨Serviceå®ä¹ |
| | | * @author æ±è¹è¹ |
| | | * @since 2024/04/28 16:06 |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | public interface PlatformService { |
| | | |
| | |
| | | /** |
| | | * æå°_æ¾ç¤ºé
置信æ¯è¡¨Serviceå®ä¹ |
| | | * @author æ±è¹è¹ |
| | | * @since 2024/04/28 16:06 |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | public interface PlatformShowParamService { |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.service.business; |
| | | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.model.PlatformWmsDetail; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æå°_WMSä½ä¸éç¥åæç»Serviceå®ä¹ |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | public interface PlatformWmsDetailService { |
| | | |
| | | /** |
| | | * å建 |
| | | * |
| | | * @param platformWmsDetail å®ä½å¯¹è±¡ |
| | | * @return Integer |
| | | */ |
| | | Integer create(PlatformWmsDetail platformWmsDetail); |
| | | |
| | | /** |
| | | * 主é®å é¤ |
| | | * |
| | | * @param id ä¸»é® |
| | | */ |
| | | void deleteById(Integer id); |
| | | |
| | | /** |
| | | * å é¤ |
| | | * |
| | | * @param platformWmsDetail å®ä½å¯¹è±¡ |
| | | */ |
| | | void delete(PlatformWmsDetail platformWmsDetail); |
| | | |
| | | /** |
| | | * æ¹é主é®å é¤ |
| | | * |
| | | * @param ids 主é®é |
| | | */ |
| | | void deleteByIdInBatch(List<Integer> ids); |
| | | |
| | | /** |
| | | * 䏻鮿´æ° |
| | | * |
| | | * @param platformWmsDetail å®ä½å¯¹è±¡ |
| | | */ |
| | | void updateById(PlatformWmsDetail platformWmsDetail); |
| | | |
| | | /** |
| | | * æ¹é䏻鮿´æ° |
| | | * |
| | | * @param platformWmsDetails å®ä½é |
| | | */ |
| | | void updateByIdInBatch(List<PlatformWmsDetail> platformWmsDetails); |
| | | |
| | | /** |
| | | * 䏻鮿¥è¯¢ |
| | | * |
| | | * @param id ä¸»é® |
| | | * @return PlatformWmsDetail |
| | | */ |
| | | PlatformWmsDetail findById(Integer id); |
| | | |
| | | /** |
| | | * æ¡ä»¶æ¥è¯¢åæ¡è®°å½ |
| | | * |
| | | * @param platformWmsDetail å®ä½å¯¹è±¡ |
| | | * @return PlatformWmsDetail |
| | | */ |
| | | PlatformWmsDetail findOne(PlatformWmsDetail platformWmsDetail); |
| | | |
| | | /** |
| | | * æ¡ä»¶æ¥è¯¢ |
| | | * |
| | | * @param platformWmsDetail å®ä½å¯¹è±¡ |
| | | * @return List<PlatformWmsDetail> |
| | | */ |
| | | List<PlatformWmsDetail> findList(PlatformWmsDetail platformWmsDetail); |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * |
| | | * @param pageWrap å页对象 |
| | | * @return PageData<PlatformWmsDetail> |
| | | */ |
| | | PageData<PlatformWmsDetail> findPage(PageWrap<PlatformWmsDetail> pageWrap); |
| | | |
| | | /** |
| | | * æ¡ä»¶ç»è®¡ |
| | | * |
| | | * @param platformWmsDetail å®ä½å¯¹è±¡ |
| | | * @return long |
| | | */ |
| | | long count(PlatformWmsDetail platformWmsDetail); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.service.business; |
| | | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.model.PlatformWmsJob; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æå°_WMSä½ä¸éç¥åè¡æ°æ®Serviceå®ä¹ |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | public interface PlatformWmsJobService { |
| | | |
| | | /** |
| | | * å建 |
| | | * |
| | | * @param platformWmsJob å®ä½å¯¹è±¡ |
| | | * @return Integer |
| | | */ |
| | | Integer create(PlatformWmsJob platformWmsJob); |
| | | |
| | | /** |
| | | * 主é®å é¤ |
| | | * |
| | | * @param id ä¸»é® |
| | | */ |
| | | void deleteById(Integer id); |
| | | |
| | | /** |
| | | * å é¤ |
| | | * |
| | | * @param platformWmsJob å®ä½å¯¹è±¡ |
| | | */ |
| | | void delete(PlatformWmsJob platformWmsJob); |
| | | |
| | | /** |
| | | * æ¹é主é®å é¤ |
| | | * |
| | | * @param ids 主é®é |
| | | */ |
| | | void deleteByIdInBatch(List<Integer> ids); |
| | | |
| | | /** |
| | | * 䏻鮿´æ° |
| | | * |
| | | * @param platformWmsJob å®ä½å¯¹è±¡ |
| | | */ |
| | | void updateById(PlatformWmsJob platformWmsJob); |
| | | |
| | | /** |
| | | * æ¹é䏻鮿´æ° |
| | | * |
| | | * @param platformWmsJobs å®ä½é |
| | | */ |
| | | void updateByIdInBatch(List<PlatformWmsJob> platformWmsJobs); |
| | | |
| | | /** |
| | | * 䏻鮿¥è¯¢ |
| | | * |
| | | * @param id ä¸»é® |
| | | * @return PlatformWmsJob |
| | | */ |
| | | PlatformWmsJob findById(Integer id); |
| | | |
| | | /** |
| | | * æ¡ä»¶æ¥è¯¢åæ¡è®°å½ |
| | | * |
| | | * @param platformWmsJob å®ä½å¯¹è±¡ |
| | | * @return PlatformWmsJob |
| | | */ |
| | | PlatformWmsJob findOne(PlatformWmsJob platformWmsJob); |
| | | |
| | | /** |
| | | * æ¡ä»¶æ¥è¯¢ |
| | | * |
| | | * @param platformWmsJob å®ä½å¯¹è±¡ |
| | | * @return List<PlatformWmsJob> |
| | | */ |
| | | List<PlatformWmsJob> findList(PlatformWmsJob platformWmsJob); |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * |
| | | * @param pageWrap å页对象 |
| | | * @return PageData<PlatformWmsJob> |
| | | */ |
| | | PageData<PlatformWmsJob> findPage(PageWrap<PlatformWmsJob> pageWrap); |
| | | |
| | | /** |
| | | * æ¡ä»¶ç»è®¡ |
| | | * |
| | | * @param platformWmsJob å®ä½å¯¹è±¡ |
| | | * @return long |
| | | */ |
| | | long count(PlatformWmsJob platformWmsJob); |
| | | } |
| | |
| | | import com.doumee.dao.web.reqeust.VisitRecordDTO; |
| | | import com.doumee.dao.web.response.VisitDetailVO; |
| | | import com.doumee.dao.web.response.VisitRecordVO; |
| | | import io.swagger.models.auth.In; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | */ |
| | | Integer create(Visits visits); |
| | | |
| | | Integer createFk(Visits visits,Boolean isERP); |
| | | Integer createFk(Visits visits, Boolean isERP, Integer source); |
| | | |
| | | /** |
| | | * 访客æ¥å¤ |
| | |
| | | * @param accessSecret |
| | | * @return |
| | | */ |
| | | AccessTokenResponse createERPToken(String accessKey, String accessSecret); |
| | | // AccessTokenResponse createERPToken(String accessKey, String accessSecret); |
| | | |
| | | |
| | | /** |
| | |
| | | package com.doumee.service.business.impl; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.extension.api.R; |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.core.constants.ResponseStatus; |
| | | import com.doumee.core.exception.BusinessException; |
| | |
| | | import org.apache.xpath.operations.Bool; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | |
| | | &&Constants.equalsInteger(i.getSendacopy(),Constants.ZERO) |
| | | ).count() |
| | | ); |
| | | //å·²å¤çæ°æ® |
| | | internalHomeVO.setNoticeDealNum( |
| | | noticesList.stream().filter(i->Constants.equalsInteger(i.getUserId(),memberId) |
| | | &&StringUtils.equals(i.getParam4(),i.getUserId().toString()) |
| | | &&Constants.equalsInteger(i.getStatus(),Constants.ONE) |
| | | &&Constants.equalsInteger(i.getSendacopy(),Constants.ZERO) |
| | | ).count() |
| | | ); |
| | | |
| | | //æåèµ·çæ°æ® |
| | | internalHomeVO.setNoticeCreateNum( |
| | | noticesJoinMapper.selectCount(new QueryWrapper<Notices>().lambda().eq(Notices::getParam3,memberId)) |
| | | ); |
| | | |
| | | //æéæçæ°æ® |
| | | internalHomeVO.setNoticeCopyNum( |
| | | noticesList.stream().filter(i->Constants.equalsInteger(i.getUserId(),memberId) |
| | | &&Constants.equalsInteger(i.getSendacopy(),Constants.ONE) |
| | |
| | | .ge(noticesDTO.getStartDate() != null, Notices::getCreateDate, Utils.Date.getStart(noticesDTO.getStartDate() )) |
| | | .le(noticesDTO.getEndDate() != null, Notices::getCreateDate, Utils.Date.getEnd(noticesDTO.getEndDate() )) |
| | | .eq(noticesDTO.getType() != null, Notices::getType, noticesDTO.getType()) |
| | | .eq(Notices::getUserId,noticesDTO.getMemberId()).orderByDesc(Notices::getCreateDate) |
| | | .eq(Notices::getUserId,noticesDTO.getMemberId()) |
| | | .orderByDesc(Notices::getCreateDate) |
| | | ); |
| | | internalHomeVO.setTaskNum(noticesList.size()); |
| | | if(CollectionUtils.isNotEmpty(noticesList)){ |
| | |
| | | if(CollectionUtils.isNotEmpty(approveCopyList)){ |
| | | this.organizeApproveCopyData(approveTempl,approveParamList,businessId,approveList); |
| | | } |
| | | approveMapper.insertBatchSomeColumn(approveList); |
| | | approveJoinMapper.insert(approveList); |
| | | // approveJoinMapper.insert(approveList); |
| | | |
| | | } |
| | | |
| | |
| | | createUserApprove.setIsdeleted(Constants.ZERO); |
| | | createUserApprove.setTemplatId(approveTempl.getId()); |
| | | createUserApprove.setChekorId(createMember.getId()); |
| | | createUserApprove.setCheckDate(createUserApprove.getCreateDate()); |
| | | createUserApprove.setStatus(Constants.approveStatus.pass); |
| | | createUserApprove.setTitle("åèµ·ç³è¯·"); |
| | | createUserApprove.setStatusInfo(""); |
| | |
| | | approve.setChekorId(memberId); |
| | | approve.setStatus(i==0?Constants.ONE:Constants.ZERO); |
| | | approve.setStatusInfo(i==0?"审æ¹ä¸":"å¾
审æ¹"); |
| | | approve.setTitle("审æ¹äºº"); |
| | | approve.setIsEndCheck((i+1) == approveParamList.size()?Constants.ONE:Constants.ZERO); |
| | | approve.setObjId(businessId); |
| | | approve.setLevel(i+1); |
| | |
| | | if(CollectionUtils.isNotEmpty(memberList)){ |
| | | userIds.addAll(memberList.stream().map(m->m.getId()).collect(Collectors.toList())); |
| | | } |
| | | //å
¬å¡ç¨è½¦ é»è®¤å å
¥ 叿ºæé |
| | | if(approveTempl.getType()==Constants.THREE||approveTempl.getType()==Constants.FOUR){ |
| | | CarUseBook carUseBook = carUseBookMapper.selectById(businessId); |
| | | if(Objects.isNull(carUseBook)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"为æ¥è¯¢å°ç¨è½¦ç³è¯·ä¿¡æ¯"); |
| | | } |
| | | CarDriver carDriver = carDriverMapper.selectById(carUseBook.getDriverId()); |
| | | if(Objects.isNull(carDriver)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"为æ¥è¯¢å°å¸æºä¿¡æ¯"); |
| | | } |
| | | userIds.add(carDriver.getMemberId()); |
| | | } |
| | | //å
¬å¡ç¨è½¦ é»è®¤å å
¥ 叿ºæé 2024å¹´6æ28æ¥16:49:08 叿ºæéä¿®æ¹å° 审æ¹ä¸å¡æ¶è¿è¡åé |
| | | // if(approveTempl.getType()==Constants.THREE||approveTempl.getType()==Constants.FOUR){ |
| | | // CarUseBook carUseBook = carUseBookMapper.selectById(businessId); |
| | | // if(Objects.isNull(carUseBook)){ |
| | | // throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"为æ¥è¯¢å°ç¨è½¦ç³è¯·ä¿¡æ¯"); |
| | | // } |
| | | // CarDriver carDriver = carDriverMapper.selectById(carUseBook.getDriverId()); |
| | | // if(Objects.isNull(carDriver)){ |
| | | // throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"为æ¥è¯¢å°å¸æºä¿¡æ¯"); |
| | | // } |
| | | // userIds.add(carDriver.getMemberId()); |
| | | // } |
| | | |
| | | if(CollectionUtils.isNotEmpty(userIds)){ |
| | | for (Integer memberId:userIds) { |
| | |
| | | for(Approve level:levelList){ |
| | | List<Approve> tlist = getLevelInfoFromList(level,approveGroupList); |
| | | approveDateVO.getApproveList().addAll(tlist); |
| | | if(tlist.size() ==0 |
| | | ||Constants.equalsInteger(Constants.approveStatus.unPass, tlist.get(0).getStatus()) |
| | | ||Constants.equalsInteger(Constants.approveStatus.cancel, tlist.get(0).getStatus())){ |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | waitModel.setApproveList(copyList); |
| | | approveDateVO.getApproveList().add(waitModel); |
| | | } |
| | | System.out.println(JSONObject.toJSONString(approveDateVO)); |
| | | return approveDateVO; |
| | | } |
| | | |
| | |
| | | ||Constants.equalsInteger(level.getStatus(),Constants.approveStatus.pass)){ |
| | | waitModel.setMemberName(waitList.size() +"人ä¼ç¾"); |
| | | } |
| | | if(CollectionUtils.isNotEmpty(waitList)){ |
| | | waitModel.setCreateDate(waitList.get(Constants.ZERO).getCreateDate()); |
| | | } |
| | | waitModel.setApproveList(waitList); |
| | | list.add(waitModel); |
| | | }else if(waitList.size()>0){ |
| | |
| | | if(passList.size()>0){ |
| | | approveList.addAll(otherPassList); |
| | | } |
| | | waitModel.setMemberName("å·²æé"+ approveList.size() +"人"); |
| | | if(CollectionUtils.isNotEmpty(approveList)){ |
| | | waitModel.setCreateDate(approveList.get(Constants.ZERO).getCreateDate()); |
| | | } |
| | | if(Constants.equalsInteger(waitModel.getStatus(),Constants.approveStatus.pass)){ |
| | | waitModel.setMemberName("å·²æé"+ approveList.size() +"人"); |
| | | }else if(Constants.equalsInteger(waitModel.getStatus(),Constants.approveStatus.wait)){ |
| | | waitModel.setMemberName("å¤çä¸"); |
| | | } |
| | | waitModel.setApproveList(approveList); |
| | | list.add(waitModel); |
| | | } |
| | | //å¦ææ¯æç¾ |
| | | // if(otherPassList.size()>0){ |
| | | // Approve waitModel = new Approve(); |
| | | // waitModel.setApproveType(Constants.ONE); |
| | | // waitModel.setStatusInfo(StringUtils.defaultString(level.getTitle(),"审æ¹äºº")+"ï¼æéæç¾å®¡æ¹äººï¼"); |
| | | // waitModel.setStatus(Constants.ONE); |
| | | // waitModel.setApproveList(otherPassList); |
| | | // list.add(waitModel); |
| | | // } |
| | | } |
| | | |
| | | |
| | |
| | | }else if(Constants.equalsInteger(Constants.approveStatus.auditIng,approve.getStatus())||Constants.equalsInteger(Constants.approveStatus.wait,approve.getStatus())){ |
| | | waitList.add(approve); |
| | | }else if(Constants.equalsInteger(Constants.approveStatus.unPass,approve.getStatus())){ |
| | | refuseModel = approve; |
| | | BeanUtils.copyProperties(approve,refuseModel); |
| | | } |
| | | } |
| | | } |
| | |
| | | .eq(Notices::getUserId,approve.getChekorId()) |
| | | .eq(Notices::getSendacopy,Constants.ZERO) |
| | | .eq(Notices::getIsdeleted,Constants.ZERO) |
| | | .last(" limit 1 ") |
| | | ); |
| | | if(Objects.isNull(notices)){ |
| | | log.info("æªæ¥è¯¢å°éç¥è®°å½"); |
| | |
| | | approve.setCheorId(approveDTO.getLoginUserInfo().getMemberId().toString()); |
| | | approve.setCheckorName(approveDTO.getLoginUserInfo().getRealname()); |
| | | approve.setCheckDate(new Date()); |
| | | approve.setStatusInfo(approveDTO.getStatus()==Constants.TWO?"å·²åæ":approveDTO.getCheckInfo()); |
| | | approve.setStatusInfo(approveDTO.getStatus()==Constants.TWO?"å·²åæ":"已驳å"); |
| | | //æ¬çº§ææ å¾
审æ¹è®°å½ |
| | | List<Approve> approveList = approveJoinMapper.selectJoinList(Approve.class, |
| | | new MPJLambdaWrapper<Approve>() |
| | |
| | | Boolean dealBusinessBean = false; |
| | | //审æ¹é©³åæ
åµ |
| | | if(approveDTO.getStatus().equals(Constants.THREE)){ |
| | | dealBusinessBean = true; |
| | | //ä¿®æ¹å
¶ä»ææå¾
审æ¹å审æ¹ä¸è®°å½æ°æ® |
| | | approveJoinMapper.update(null,new UpdateWrapper<Approve>() |
| | | .lambda() |
| | | .set(Approve::getStatus,Constants.approveStatus.otherUnPass) |
| | | .set(Approve::getCheckDate,new Date()) |
| | | .in(Approve::getStatus,Constants.approveStatus.auditIng,Constants.approveStatus.wait) |
| | | .eq(Approve::getObjId,approve.getObjId()) |
| | | .eq(Approve::getObjType,approve.getObjType()) |
| | |
| | | //ä¿®æ¹èªå·±çéç¥è®°å½ |
| | | noticesJoinMapper.update(null,new UpdateWrapper<Notices>().lambda() |
| | | .set(Notices::getEditDate,new Date()) |
| | | .set(Notices::getParam4,approveDTO.getLoginUserInfo().getMemberId()) |
| | | .set(Notices::getReaded,Constants.ONE) |
| | | .set(Notices::getParam2,approve.getStatus()) |
| | | .set(Notices::getParam2,Constants.TWO) |
| | | .set(Notices::getStatus,Constants.ONE) |
| | | .eq(Notices::getId,notices.getId()) |
| | | ); |
| | | //ä¿®æ¹ æªå¤çç éç¥æ°æ® 为æé |
| | |
| | | noticesJoinMapper.update(null,new UpdateWrapper<Notices>().lambda() |
| | | .set(Notices::getEditDate,new Date()) |
| | | .set(Notices::getSendacopy,Constants.ONE) |
| | | .set(Notices::getParam2,approve.getStatus()) |
| | | .set(Notices::getStatus,Constants.ONE) |
| | | .set(Notices::getParam2,Constants.TWO) |
| | | .eq(Notices::getObjId,notices.getObjId()) |
| | | .eq(Notices::getObjType,notices.getObjType()) |
| | | .eq(Notices::getReaded,Constants.ZERO) |
| | |
| | | ); |
| | | } |
| | | } |
| | | return; |
| | | }else{ |
| | | //å¤çå
¶ä»ä¸å¡æ°æ® |
| | | if((Constants.equalsInteger(approve.getApproveType(),Constants.ZERO) |
| | | || Constants.equalsInteger( approve.getApproveType(),Constants.TWO)) && Constants.equalsInteger(approve.getIsEndCheck(),Constants.ONE)){ |
| | | //æç¾ / å人审 ä¸ ç»å®¡ |
| | | approveJoinMapper.update(null,new UpdateWrapper<Approve>() |
| | | .lambda() |
| | | .set(Approve::getStatus,Constants.approveStatus.otherDeal) |
| | | .in(Approve::getId,approveList.stream().map(m->m.getId()).collect(Collectors.toList()))); |
| | | if(CollectionUtils.isNotEmpty(approveList)){ |
| | | approveJoinMapper.update(null,new UpdateWrapper<Approve>() |
| | | .lambda() |
| | | .set(Approve::getStatus,Constants.approveStatus.otherDeal) |
| | | .set(Approve::getCheckDate,new Date()) |
| | | .in(Approve::getId,approveList.stream().map(m->m.getId()).collect(Collectors.toList()))); |
| | | } |
| | | dealBusinessBean = true; |
| | | }else if((approve.getApproveType().equals(Constants.ZERO) |
| | | || approve.getApproveType().equals(Constants.TWO)) &&approve.getIsEndCheck()!=Constants.ONE){ |
| | | //æç¾ / å人审 éç»å®¡ åå¼å¯ä¸ä¸æ¥ä¸å¡æµç¨ |
| | | /**å¤çæ¬çº§æ°æ®**/ |
| | | approveJoinMapper.update(null,new UpdateWrapper<Approve>() |
| | | .lambda() |
| | | .set(Approve::getStatus,Constants.approveStatus.otherDeal) |
| | | .in(Approve::getId,approveList.stream().map(m->m.getId()).collect(Collectors.toList()))); |
| | | if(CollectionUtils.isNotEmpty(approveList)){ |
| | | approveJoinMapper.update(null,new UpdateWrapper<Approve>() |
| | | .lambda() |
| | | .set(Approve::getStatus,Constants.approveStatus.otherDeal) |
| | | .set(Approve::getCheckDate,new Date()) |
| | | .in(Approve::getId,approveList.stream().map(m->m.getId()).collect(Collectors.toList()))); |
| | | } |
| | | /**å¼å¯ä¸ä¸çº§å«çæ°æ®ä¸ºå¾
å®¡æ ¸**/ |
| | | approveJoinMapper.update(null,new UpdateWrapper<Approve>() |
| | | .lambda() |
| | | .set(Approve::getStatus,Constants.approveStatus.auditIng) |
| | | .set(Approve::getTitle,"审æ¹äºº") |
| | | .set(Approve::getCheckDate,new Date()) |
| | | .eq(Approve::getStatus,Constants.approveStatus.wait) |
| | | .eq(Approve::getObjId,approve.getObjId()) |
| | | .eq(Approve::getObjType,approve.getObjType()) |
| | | .eq(Approve::getLevel,(approve.getLevel()+1)) |
| | | ); |
| | | if(approveDTO.getObjType().equals(Constants.approveObjectType.cityUseCar)||approveDTO.getObjType().equals( |
| | | Constants.approveObjectType.unCityUseCar)){ |
| | | this.updDriver(approveDTO,approve,false); |
| | | } |
| | | }else if(approve.getApproveType().equals(Constants.ONE)){ |
| | | //ä¼ç¾ ä¸ç»å®¡ |
| | | //æ ä»äººå®¡æ¹çæ
åµ åä¿®æ¹æ°æ®ç¶æ |
| | |
| | | dealBusinessBean = true; |
| | | } |
| | | } |
| | | this.passNextNotices(dealBusinessBean,notices,approve,approveList,approveCopyList); |
| | | this.passNextNotices(dealBusinessBean,notices,approve,approveList,approveCopyList,approveDTO); |
| | | } |
| | | //å¤çä¸å¡æ°æ® |
| | | if(dealBusinessBean){ |
| | |
| | | * @param approve 审æ¹è®°å½ |
| | | * @param approveList å级å¾
å®¡æ¹æ°æ® |
| | | */ |
| | | public void passNextNotices(Boolean dealBusinessBean,Notices notices,Approve approve,List<Approve> approveList,List<Approve> copyList){ |
| | | public void passNextNotices(Boolean dealBusinessBean,Notices notices,Approve approve,List<Approve> approveList,List<Approve> copyList,ApproveDTO approveDTO){ |
| | | //1ãä¿®æ¹èªå·±çæ°æ®è®°å½ |
| | | noticesJoinMapper.update(null,new UpdateWrapper<Notices>().lambda() |
| | | .set(Notices::getEditDate,new Date()) |
| | | .set(Notices::getReaded,Constants.ONE) |
| | | .set(dealBusinessBean,Notices::getParam2,approve.getStatus()) |
| | | .set(Notices::getStatus,Constants.ONE) |
| | | .set(dealBusinessBean,Notices::getParam2,Constants.ONE) |
| | | .set(Notices::getParam4,approveDTO.getLoginUserInfo().getMemberId()) |
| | | .eq(Notices::getId,notices.getId()) |
| | | ); |
| | | if(Constants.equalsInteger(approve.getApproveType(),Constants.ZERO)){ |
| | |
| | | .set(Notices::getEditDate,new Date()) |
| | | .set(Notices::getReaded,Constants.ONE) |
| | | .set(Notices::getSendacopy,Constants.ONE) |
| | | .set(dealBusinessBean,Notices::getParam2,approve.getStatus()) |
| | | .set(Notices::getStatus,Constants.ONE) |
| | | .set(Notices::getParam4,approveDTO.getLoginUserInfo().getMemberId()) |
| | | .set(dealBusinessBean,Notices::getParam2,Constants.ONE) |
| | | .eq(Notices::getObjId,notices.getObjId()) |
| | | .eq(Notices::getObjType,notices.getObjType()) |
| | | .ne(Notices::getId,notices.getId()) |
| | |
| | | .eq(Approve::getType,Constants.ZERO) |
| | | .eq(Approve::getLevel,(approve.getLevel() + Constants.ONE)) |
| | | ); |
| | | if(CollectionUtils.isNotEmpty(nextApproveList)){ |
| | | if(CollectionUtils.isEmpty(nextApproveList)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"å®¡æ¹æµæ°æ®å¼å¸¸"); |
| | | } |
| | | Notices newNotices = new Notices(); |
| | |
| | | visitsMapper.updateById(visits); |
| | | }else if(approveDTO.getObjType().equals(Constants.approveObjectType.cityUseCar)||approveDTO.getObjType().equals( |
| | | Constants.approveObjectType.unCityUseCar)){ |
| | | // å¸å
å¤ç¨è½¦ç³è¯· |
| | | CarUseBook carUseBook = carUseBookMapper.selectById(approveDTO.getObjId()); |
| | | if(Objects.isNull(carUseBook)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"æªæ¥è¯¢å°ç¨è½¦è®°å½"); |
| | | } |
| | | carUseBook.setStatus(approveDTO.getStatus()); |
| | | carUseBook.setEditDate(new Date()); |
| | | carUseBook.setEditor(approveDTO.getLoginUserInfo().getMemberId()); |
| | | //妿é
置修æ¹å¸æº ä¸ å
¥åäºæ´æ¢å叿ºä¿¡æ¯ |
| | | if(approveDTO.getStatus()==Constants.TWO&&Constants.equalsInteger(approve.getDriverParam(),Constants.ONE)){ |
| | | CarDriver carDriver = carDriverMapper.selectById(approveDTO.getDriverId()); |
| | | if(Objects.isNull(carDriver)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"æªæ¥è¯¢å°å¸æºä¿¡æ¯"); |
| | | } |
| | | carUseBook.setDriverId(carDriver.getId()); |
| | | } |
| | | carUseBookMapper.updateById(carUseBook); |
| | | this.updDriver(approveDTO,approve,true); |
| | | }else if(approveDTO.getObjType().equals(Constants.approveObjectType.logisticsCarUse)){ |
| | | //TODO ç©æµè½¦é¢çº¦ |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | public void updDriver(ApproveDTO approveDTO,Approve approve,Boolean dealBusinessBean){ |
| | | // å¸å
å¤ç¨è½¦ç³è¯· |
| | | CarUseBook carUseBook = carUseBookMapper.selectById(approveDTO.getObjId()); |
| | | if(Objects.isNull(carUseBook)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"æªæ¥è¯¢å°ç¨è½¦è®°å½"); |
| | | } |
| | | if(dealBusinessBean){ |
| | | carUseBook.setStatus(approveDTO.getStatus()); |
| | | }else{ |
| | | if(Constants.equalsInteger(approveDTO.getStatus(),Constants.TWO)){ |
| | | carUseBook.setStatus(Constants.ONE); |
| | | } |
| | | } |
| | | carUseBook.setEditDate(new Date()); |
| | | carUseBook.setEditor(approveDTO.getLoginUserInfo().getMemberId()); |
| | | //妿é
置修æ¹å¸æº ä¸ å
¥åäºæ´æ¢å叿ºä¿¡æ¯ |
| | | if(approveDTO.getStatus()==Constants.TWO&&Constants.equalsInteger(approve.getDriverParam(),Constants.ONE)){ |
| | | CarDriver carDriver = carDriverMapper.selectOne(new QueryWrapper<CarDriver>().lambda() |
| | | .eq(CarDriver::getIsdeleted,Constants.ZERO) |
| | | .eq(CarDriver::getStatus,Constants.ZERO) |
| | | .eq(CarDriver::getMemberId,approveDTO.getDriverId())); |
| | | if(Objects.isNull(carDriver)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"æªæ¥è¯¢å°å¸æºä¿¡æ¯"); |
| | | } |
| | | carUseBook.setDriverId(carDriver.getMemberId()); |
| | | } |
| | | carUseBookMapper.updateById(carUseBook); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.ApproveParamMapper; |
| | | import com.doumee.dao.business.ApproveTemplMapper; |
| | | import com.doumee.dao.business.MemberMapper; |
| | | import com.doumee.dao.business.join.MemberJoinMapper; |
| | | import com.doumee.dao.business.model.*; |
| | | import com.doumee.dao.business.vo.ApproveParamDataVO; |
| | | import com.doumee.service.business.ApproveTemplService; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Optional; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * å®¡æ¹æ¨¡çä¿¡æ¯è¡¨Serviceå®ç° |
| | |
| | | approveParamMapper.delete(new UpdateWrapper<ApproveParam>().lambda() |
| | | .eq(ApproveParam::getTemplId,template.getId())); |
| | | //æ¹éæå
¥æ°çé
ç½® |
| | | approveParamMapper.insertBatchSomeColumn(model.getParamList()); |
| | | approveParamMapper.insert(model.getParamList()); |
| | | } |
| | | return 1; |
| | | } |
| | |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.time.LocalDateTime; |
| | |
| | | |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = {Exception.class,BusinessException.class}) |
| | | public Integer create(CarUseBook carUseBook) throws Exception { |
| | | if(Objects.isNull(carUseBook) |
| | | || Objects.isNull(carUseBook.getCarId()) |
| | | || Objects.isNull(carUseBook.getStartTime()) |
| | | || Objects.isNull(carUseBook.getEndTime()) |
| | | || Objects.isNull(carUseBook.getCreator()) |
| | | || Objects.isNull(carUseBook.getMemberId()) |
| | | || Objects.isNull(carUseBook.getPlanUseDate()) |
| | | || Objects.isNull(carUseBook.getType()) |
| | | || StringUtils.isEmpty(carUseBook.getMemberIds()) |
| | |
| | | || StringUtils.isEmpty(carUseBook.getAddr()) |
| | | ){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | if(Objects.nonNull(carUseBook.getCreator())&&Objects.isNull(carUseBook.getMemberId())){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"å½åç»å½ç¨æ·æ æ³è¿è¡è¯¥æä½!"); |
| | | } |
| | | if(carUseBook.getEndTime().getTime()<=System.currentTimeMillis()){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"éæ©æ¥æå¼å¸¸[ç»ææ¶é´å°äºå½åæ¶é´],è¯·å·æ°éè¯"); |
| | |
| | | if(Objects.isNull(cars)||!cars.getType().equals(Constants.ONE)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"车è¾ä¿¡æ¯å¼å¸¸"); |
| | | } |
| | | carUseBook.setCarCode(cars.getCode()); |
| | | //æ ¹æ®è½¦è¾æ¥è¯¢å¸æºä¿¡æ¯ |
| | | CarDriver carDriver = carDriverMapper.selectOne(new QueryWrapper<CarDriver>().lambda() |
| | | .eq(CarDriver::getCarId,cars.getId()) |
| | |
| | | } |
| | | } |
| | | approve.setCheckInfo(model.getCancelInfo()); |
| | | approve.setCheckDate(model.getCancelTime()); |
| | | approveList.add(approve); |
| | | } |
| | | model.setApproveDateVO(approveDataVO); |
| | |
| | | .or().like(CarUseBook::getEndTime,dateDay) |
| | | .or().apply(" START_TIME < '"+dateDay+" 00:00:00' and END_TIME > '"+dateDay+" 23:59:59' ")) |
| | | ); |
| | | if(com.github.xiaoymin.knife4j.core.util.CollectionUtils.isNotEmpty(carUseBookList)){ |
| | | for (DateIntervalVO dateIntervalVO:dateIntervalVOList) { |
| | | //夿æ¶é´æ¯å¦å¤§äºå½å |
| | | if(DateUtil.getDateFromString(dateIntervalVO.getEndTime()).getTime()<=System.currentTimeMillis()){ |
| | | dateIntervalVO.setIsUse(Constants.ONE); |
| | | continue; |
| | | } |
| | | for (DateIntervalVO dateIntervalVO:dateIntervalVOList) { |
| | | if(com.github.xiaoymin.knife4j.core.util.CollectionUtils.isNotEmpty(carUseBookList)){ |
| | | for (CarUseBook i:carUseBookList ) { |
| | | if( |
| | | (DateUtil.getDateFromString(dateIntervalVO.getStartTime()).getTime() <= i.getStartTime().getTime() && |
| | | i.getStartTime().getTime() < DateUtil.getDateFromString(dateIntervalVO.getEndTime()).getTime()) |
| | | || |
| | | (DateUtil.getDateFromString(dateIntervalVO.getStartTime()).getTime() < i.getEndTime().getTime() && |
| | | i.getEndTime().getTime() <= DateUtil.getDateFromString(dateIntervalVO.getEndTime()).getTime()) |
| | | || |
| | | (DateUtil.getDateFromString(dateIntervalVO.getStartTime()).getTime() >= i.getStartTime().getTime() && |
| | | DateUtil.getDateFromString(dateIntervalVO.getEndTime()).getTime() <= i.getEndTime().getTime()) |
| | | (DateUtil.getDateFromString(dateIntervalVO.getStartTime()).getTime() <= i.getStartTime().getTime() && |
| | | i.getStartTime().getTime() < DateUtil.getDateFromString(dateIntervalVO.getEndTime()).getTime()) |
| | | || |
| | | (DateUtil.getDateFromString(dateIntervalVO.getStartTime()).getTime() < i.getEndTime().getTime() && |
| | | i.getEndTime().getTime() <= DateUtil.getDateFromString(dateIntervalVO.getEndTime()).getTime()) |
| | | || |
| | | (DateUtil.getDateFromString(dateIntervalVO.getStartTime()).getTime() >= i.getStartTime().getTime() && |
| | | DateUtil.getDateFromString(dateIntervalVO.getEndTime()).getTime() <= i.getEndTime().getTime()) |
| | | ){ |
| | | dateIntervalVO.setCarUseBookId(i.getId()); |
| | | dateIntervalVO.setIsUse(Constants.ONE); |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | //夿æ¶é´æ¯å¦å¤§äºå½å |
| | | if(Constants.equalsInteger(dateIntervalVO.getIsUse(),Constants.ZERO) && DateUtil.getDateFromString(dateIntervalVO.getEndTime()).getTime()<=System.currentTimeMillis()){ |
| | | dateIntervalVO.setIsUse(Constants.ONE); |
| | | continue; |
| | | } |
| | | } |
| | | return dateIntervalVOList; |
| | |
| | | carUseBook.setCancelTime(new Date()); |
| | | carUseBook.setCancelStatus(Constants.ONE); |
| | | carUseBook.setStatus(Constants.FOUR); |
| | | carUseBook.setCancelUser(loginUserInfo.getId()); |
| | | carUseBook.setCancelUser(loginUserInfo.getMemberId()); |
| | | carUseBook.setCancelType(Constants.ONE); |
| | | if(loginUserInfo.getId().equals(carUseBook.getCreator())){ |
| | | carUseBook.setCancelType(Constants.ZERO); |
| | |
| | | if(companyJoinMapper.selectCount(new QueryWrapper<Company>().lambda() |
| | | .eq(Company::getIsdeleted,Constants.ZERO ) |
| | | .eq(Company::getType,Constants.ONE ) |
| | | .likeRight(Company::getCompanyPath,company.getCompanyPath())) >0){ |
| | | .ne(Company::getId,model.getId()) |
| | | .likeRight(Company::getCompanyPath,model.getCompanyPath())) >0){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(), "对ä¸èµ·ï¼ä¸çº§é¨é¨åå¨å
é¨ç»ç»ï¼è¯¥é¨é¨ä¸æ¯æåæ¢ä¸ºç¸å
³æ¹ç»ç»ï¼~"); |
| | | } |
| | | } |
| | |
| | | queryWrapper.leftJoin(SystemUser.class,SystemUser::getId,Company::getEditor); |
| | | queryWrapper.eq(Company::getIsdeleted,Constants.ZERO); |
| | | queryWrapper.eq(type!=null,Company::getType,type); |
| | | queryWrapper.orderByAsc(Company::getSortnum ); |
| | | queryWrapper.orderByAsc(true,"t.sortnum"); |
| | | List<Company> companyList = companyJoinMapper.selectJoinList(Company.class,queryWrapper); |
| | | //é
ç½®ç»å人åç±»åæ¥æºæ¹å¼ 0èªå»º 1ERP |
| | | CompanyTree treeBuild = new CompanyTree(companyList, dataSyncConfig.getOrgUserDataOrigin()); |
| | |
| | | if (currentMenuIndex - 1 < 0) { |
| | | return; |
| | | } |
| | | Company preMenu = companyPool.remove(currentMenuIndex - 1); |
| | | Company preMenu = companyPool.get(currentMenuIndex - 1); |
| | | companyPool.remove(currentMenuIndex - 1); |
| | | companyPool.add(currentMenuIndex, preMenu); |
| | | } |
| | | // ä¸ç§» |
| | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * 鿣åºåé
置类åä¿¡æ¯è¡¨Serviceå®ç° |
| | |
| | | LoginUserInfo loginUserInfo = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | if(loginUserInfo == null){ |
| | | loginUserInfo = model.getLoginUserInfo(); |
| | | } |
| | | if(hiddenDangerParamMapper.selectCount(new QueryWrapper<HiddenDangerParam>().lambda() |
| | | .eq(HiddenDangerParam::getType,model.getType()) |
| | | .eq(HiddenDangerParam::getName,model.getName()) |
| | | .eq(HiddenDangerParam::getIsdeleted,Constants.ZERO) |
| | | )>Constants.ZERO){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"对ä¸èµ·ï¼è¯¥åç§°å·²åå¨!"); |
| | | } |
| | | if(Constants.equalsInteger(model.getType(),Constants.ZERO)){ |
| | | //妿æ¯åºåé
ç½® |
| | |
| | | HiddenDangerParam hiddenDangerParam = hiddenDangerParamMapper.selectById(model.getId()); |
| | | if(hiddenDangerParam == null || Constants.equalsInteger(hiddenDangerParam.getIsdeleted(),Constants.ONE)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"对ä¸èµ·ï¼è¯¥é
置信æ¯ä¸åå¨ï¼è¯·è¿åå·æ°é¡µé¢éè¯ï¼"); |
| | | } |
| | | if(hiddenDangerParamMapper.selectCount(new QueryWrapper<HiddenDangerParam>().lambda() |
| | | .eq(HiddenDangerParam::getType,model.getType()) |
| | | .eq(HiddenDangerParam::getName,model.getName()) |
| | | .eq(HiddenDangerParam::getIsdeleted,Constants.ZERO) |
| | | .ne(HiddenDangerParam::getId,model.getId()) |
| | | )>Constants.ZERO){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"对ä¸èµ·ï¼è¯¥åç§°å·²åå¨!"); |
| | | } |
| | | if(Constants.equalsInteger(hiddenDangerParam.getType(),Constants.ZERO)){ |
| | | //妿æ¯åºåé
ç½®,æ ¡éªå®å
¨åä¿¡æ¯æ¯å¦æ£ç¡® |
| | |
| | | } |
| | | @Override |
| | | public List<Member> findHiddenAreaMemberList(HiddenDangerParam pageWrap) { |
| | | QueryWrapper<HiddenDangerParam> wrapper = new QueryWrapper<>(pageWrap); |
| | | pageWrap.setIsdeleted(Constants.ZERO); |
| | | HiddenDangerParam hiddenDangerParam = new HiddenDangerParam(); |
| | | hiddenDangerParam.setIsdeleted(Constants.ZERO); |
| | | if(Objects.nonNull(pageWrap.getId())){ |
| | | hiddenDangerParam.setId(pageWrap.getId()); |
| | | } |
| | | QueryWrapper<HiddenDangerParam> wrapper = new QueryWrapper<>(hiddenDangerParam); |
| | | List<HiddenDangerParam> list = hiddenDangerParamMapper.selectList(wrapper); |
| | | List<Member> memberList = new ArrayList<>(); |
| | | if(list!=null){ |
| | |
| | | .leftJoin(Company.class, Company::getId,Member::getCompanyId) |
| | | .eq(Member::getType,Constants.TWO) |
| | | .eq(Member::getIsdeleted,Constants.ZERO) |
| | | .like(StringUtils.isNotBlank(pageWrap.getName()),Member::getName,pageWrap.getName()) |
| | | .in(Member::getId,idList) |
| | | ); |
| | | } |
| | |
| | | if(Objects.isNull(hiddenDangerParam)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"æªæ¥è¯¢å°éæ£åºå"); |
| | | } |
| | | |
| | | HiddenDangerParam hiddenDangerCate = hiddenDangerParamMapper.selectById(hiddenDanger.getCateId()); |
| | | if(Objects.isNull(hiddenDangerCate)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"æªæ¥è¯¢å°éæ£ç±»å"); |
| | |
| | | .eq(pageWrap.getModel().getCheckInfo() != null, HiddenDanger::getCheckInfo, pageWrap.getModel().getCheckInfo()) |
| | | .eq(pageWrap.getModel().getCheckUserId() != null, HiddenDanger::getCheckUserId, pageWrap.getModel().getCheckUserId()) |
| | | .eq(pageWrap.getModel().getAreaName() != null, HiddenDanger::getAreaName, pageWrap.getModel().getAreaName()) |
| | | .like(pageWrap.getModel().getCompanyName() != null,"t4.company_name_path",pageWrap.getModel().getCompanyName()) |
| | | |
| | | .and(StringUtils.isNotBlank(pageWrap.getModel().getMemberName()), ms->ms.like(Member::getName,pageWrap.getModel().getMemberName()) |
| | | .or().like(Member::getPhone,pageWrap.getModel().getMemberName())) |
| | |
| | | } |
| | | } |
| | | if(fileList.size()>0){ |
| | | multifileMapper.insertBatchSomeColumn(fileList); |
| | | multifileMapper.insert(fileList); |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | import cn.hutool.core.util.IdcardUtil; |
| | | import cn.hutool.core.util.PhoneUtil; |
| | | import cn.hutool.http.HttpRequest; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.config.DataSyncConfig; |
| | | import com.doumee.config.Jwt.JwtPayLoad; |
| | | import com.doumee.config.Jwt.JwtTokenUtil; |
| | | import com.doumee.core.annotation.excel.ExcelImporter; |
| | | import com.doumee.core.constants.ResponseStatus; |
| | | import com.doumee.core.exception.BusinessException; |
| | |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.data.redis.core.RedisTemplate; |
| | | import org.springframework.http.server.reactive.ServerHttpRequest; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | |
| | | @Lazy |
| | | private SmsEmailService smsEmailService; |
| | | |
| | | @Autowired |
| | | private SystemLoginService systemLoginService; |
| | | |
| | | @Value("${debug_model}") |
| | | private Boolean isDebug; |
| | | @Override |
| | |
| | | systemUserMapper.update(null,new UpdateWrapper<SystemUser>().lambda() |
| | | .set(SystemUser::getUpdateUser,member.getLoginUserInfo().getId()) |
| | | .set(SystemUser::getUpdateTime,new Date()) |
| | | .set(StringUtils.isNotBlank(model.getFaceImg()),SystemUser::getAvatar,member.getFaceImg()) |
| | | .set(StringUtils.isNotBlank(model.getPhone()),SystemUser::getMobile,member.getPhone()) |
| | | .set(StringUtils.isNotBlank(model.getName()),SystemUser::getRealname,member.getName()) |
| | | .set(model.getCompanyId() !=null,SystemUser::getCompanyId,member.getCompanyId()) |
| | | .set(StringUtils.isNotBlank(model.getCode()),SystemUser::getEmpNo,member.getCode()) |
| | | .set(StringUtils.isNotBlank(member.getFaceImg()),SystemUser::getAvatar,member.getFaceImg()) |
| | | .set(StringUtils.isNotBlank(member.getPhone()),SystemUser::getMobile,member.getPhone()) |
| | | .set(StringUtils.isNotBlank(member.getPhone()),SystemUser::getUsername,member.getPhone()) |
| | | .set(StringUtils.isNotBlank(member.getName()),SystemUser::getRealname,member.getName()) |
| | | .set(member.getCompanyId() !=null,SystemUser::getCompanyId,member.getCompanyId()) |
| | | .set(StringUtils.isNotBlank(member.getCode()),SystemUser::getEmpNo,member.getCode()) |
| | | .eq(SystemUser::getMemberId,model.getId())); |
| | | } |
| | | if(Constants.equalsInteger(model.getCompanyType(),Constants.ZERO) |
| | |
| | | memberRole.setRoleId(deviceRole.getId()); |
| | | memberRoleList.add(memberRole); |
| | | } |
| | | memberRoleMapper.insertBatchSomeColumn(memberRoleList); |
| | | memberRoleMapper.insert(memberRoleList); |
| | | } |
| | | member.setRoleId(ids); |
| | | return 1; |
| | |
| | | } |
| | | for (Integer id:ids) { |
| | | Member member = memberMapper.selectById(id); |
| | | if(!Objects.isNull(member)&&member.getStatus()==Constants.ZERO){ |
| | | member.setStatus(Constants.TWO); |
| | | if(!Objects.isNull(member)&&member.getStatus()!=Constants.TWO){ |
| | | member.setStatus(Constants.TWO);//æ¢å¤æ£å¸¸ç¶æ |
| | | member.setEditor(loginUserInfo.getId()); |
| | | member.setEditDate(new Date()); |
| | | member.setAuthStatus(Constants.ZERO);//æªææ |
| | |
| | | member.setEditor(loginUserInfo.getId()); |
| | | //å é¤åå·¥é¨ç¦æé |
| | | cancelAllMemberEmpower(member,memberRoleMapper,empowerMapper); |
| | | |
| | | if(Constants.equalsInteger(type,Constants.ONE)){ |
| | | saveUserActionBiz(member,loginUserInfo,Constants.UserActionType.FREEZE,userActionJoinMapper,JSONObject.toJSONString(member)); |
| | | } |
| | |
| | | } |
| | | for (Integer id:ids) { |
| | | Member member = memberMapper.selectById(id); |
| | | if(!Objects.isNull(member)&&member.getStatus()==Constants.ZERO){ |
| | | member.setStatus(Constants.ONE);//æ¢å¤æ£å¸¸ç¶æ |
| | | if(!Objects.isNull(member)&&member.getStatus()==Constants.TWO){ |
| | | member.setStatus(Constants.ZERO);//æ¢å¤æ£å¸¸ç¶æ |
| | | member.setEditor(loginUserInfo.getId()); |
| | | member.setEditDate(new Date()); |
| | | member.setAuthStatus(Constants.ZERO);//æªææ |
| | |
| | | userAction.setType(type.getKey()); |
| | | userAction.setContent(content); |
| | | String info = type.getInfo(); |
| | | userAction.setRemark(info.replace("${param1}",user!=null?user.getRealname():"ç³»ç»").replace("${param2}", com.doumee.core.utils.DateUtil.getPlusTime2(updateMember.getEditDate()))); |
| | | userAction.setRemark(info.replace("${param1}",user!=null?user.getRealname():"ç³»ç»").replace("${param2}", com.doumee.core.utils.DateUtil.getPlusTime2(updateMember.getEditDate()!=null?updateMember.getEditDate():new Date()))); |
| | | userAction.setMemberId(updateMember.getId()+""); |
| | | userActionMapper.insert(userAction); |
| | | } |
| | |
| | | queryWrapper.eq(Member::getCompanyId,member.getCompanyId()); |
| | | } |
| | | queryWrapper.eq(Member::getIsdeleted,Constants.ZERO); |
| | | queryWrapper.eq(Member::getWorkStatus,Constants.ZERO); |
| | | List<Member> list = memberJoinMapper.selectJoinList(Member.class,queryWrapper); |
| | | // if(list!=null){ |
| | | // for(Member m : list){ |
| | |
| | | if(pageWrap.getModel().getType() != null){ |
| | | if(pageWrap.getModel().getType().equals(Constants.memberType.visitor)){ |
| | | queryWrapper.select(" * , (select v.COMPANY_NAME from visits v where v.MEMBER_ID = member.id and v.STATUS = 2 order by v.CREATE_DATE desc limit 1 ) as companyName , " + |
| | | " (select v.STARTTIME from visits v where v.MEMBER_ID = member.id and v.STATUS = 2 order by v.CREATE_DATE desc limit 1 ) as lastVisitDate , " + |
| | | " (select count(1) from visits v where v.MEMBER_ID = member.id and v.STATUS = 2 ) as visitTimes "); |
| | | } |
| | | } |
| | |
| | | public PageData<Member> findUnusualPage(PageWrap<MemberQuery> pageWrap) { |
| | | IPage<Member> page = new Page<>(pageWrap.getPage(), pageWrap.getCapacity()); |
| | | MPJLambdaWrapper<Member> queryWrapper = new MPJLambdaWrapper<>(); |
| | | int actiontype =Constants.equalsInteger(pageWrap.getModel().getType(),Constants.ONE)?Constants.UserActionType.BLACKLIST.getKey():Constants.UserActionType.FREEZE.getKey(); |
| | | queryWrapper.leftJoin(Company.class,Company::getId,Member::getCompanyId); |
| | | queryWrapper.selectAll(Member.class) |
| | | .selectAs(Company::getName,Member::getCompanyName) |
| | | .select(" (select ua.CREATE_DATE from user_action ua where ua.MEMBER_ID=t.id and ua.ISDELETED=0 order by ua.CREATE_DATE desc limit 1) as optTime") |
| | | .select(" (select s.REALNAME from user_action uac left join system_user s on uac.CREATOR = s.ID where uac.MEMBER_ID=t.id and uac.ISDELETED=0 order by uac.CREATE_DATE desc limit 1) as creatorName") |
| | | .select(" (select STARTTIME from visits v where v.MEMBER_ID=t.id and v.ISDELETED=0 order by CREATE_DATE desc limit 1) as visitsLastDate") |
| | | .selectAs(Company::getCompanyNamePath,Member::getCompanyName) |
| | | .select(" (select ua.remark from user_action ua where ua.MEMBER_ID=t.id and ua.ISDELETED=0 and ua.type="+actiontype+" order by ua.CREATE_DATE desc limit 1) as optRemark") |
| | | .eq(Member::getIsdeleted,Constants.ZERO); |
| | | queryWrapper.eq(Objects.nonNull(pageWrap.getModel().getCreaterId()),Member::getEditor,pageWrap.getModel().getCreaterId()); |
| | | queryWrapper.eq(Objects.nonNull(pageWrap.getModel().getType()),Member::getType,pageWrap.getModel().getType()); |
| | |
| | | list.add(model); |
| | | } |
| | | //导å
¥æ°å¢çææä¿¡æ¯ |
| | | empowerMapper.insertBatchSomeColumn(list); |
| | | empowerMapper.insert(list); |
| | | } |
| | | } |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public WxAuthorizeVO wxAuthorize(String code){ |
| | | public WxAuthorizeVO wxAuthorize(String code, Integer source){ |
| | | if(StringUtils.isBlank(code)||Objects.isNull(source)){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | String appId = systemDictDataBiz.queryByCode(Constants.WX_PLATFORM,Constants.WX_PLATFORM_APPID).getCode(); |
| | | String appSecret = systemDictDataBiz.queryByCode(Constants.WX_PLATFORM,Constants.WX_PLATFORM_SECRET).getCode(); |
| | | String getTokenUrl = WXConstant.GET_USER_INFO_URL.replace("CODE", code) |
| | | .replace("APPID", appId).replace("SECRET", appSecret); |
| | | JSONObject tokenJson = JSONObject.parseObject(HttpsUtil.get(getTokenUrl,true)); |
| | | String openId = null; |
| | | if(!Objects.isNull(tokenJson.get("access_token"))){ |
| | | openId = tokenJson.getString("openid"); |
| | | } |
| | | // JSONObject tokenJson = JSONObject.parseObject(HttpsUtil.get(getTokenUrl,true)); |
| | | String openId = code; |
| | | // if(!Objects.isNull(tokenJson.get("access_token"))){ |
| | | // openId = tokenJson.getString("openid"); |
| | | // } |
| | | // String openId = "12345"; |
| | | WxAuthorizeVO wxAuthorizeVO = new WxAuthorizeVO(); |
| | | wxAuthorizeVO.setOpenid(openId); |
| | |
| | | .selectAs(Company::getName,Member::getCompanyName) |
| | | .leftJoin(Company.class,Company::getId,Member::getCompanyId) |
| | | .eq(Member::getOpenid,openId) |
| | | .eq(Member::getType,source) |
| | | .eq(Member::getIsdeleted,Constants.ZERO) |
| | | .orderByDesc(Member::getCreateDate) |
| | | .last(" limit 1 ") |
| | |
| | | String prefixUrl = systemDictDataBiz.queryByCode(Constants.FTP,Constants.FTP_RESOURCE_PATH).getCode() + |
| | | systemDictDataBiz.queryByCode(Constants.FTP,Constants.MEMBER_IMG).getCode(); |
| | | member.setPrefixUrl(prefixUrl); |
| | | // JwtPayLoad payLoad = new JwtPayLoad(Integer.toString(member.getId())); |
| | | // String token = JwtTokenUtil.generateToken(payLoad); |
| | | // //åå¨tokenè³redis |
| | | // RedisUtil.addObject(redisTemplate,Constants.RedisKeys.INTERNAL_TOKEN+"_"+member.getId(),token,Constants.RedisKeys.EXPIRE_TIME); |
| | | // wxAuthorizeVO.setToken(token); |
| | | wxAuthorizeVO.setMember(member); |
| | | //叿º ä¸ å
é¨äººå æä¾token |
| | | if(Constants.equalsInteger(source,Constants.ZERO)||Constants.equalsInteger(source,Constants.TWO)){ |
| | | SystemUser systemUser = systemUserMapper.selectOne(new QueryWrapper<SystemUser>().lambda().eq(SystemUser::getMemberId,member.getId()) |
| | | .eq(SystemUser::getStatus,Constants.ZERO).last(" limit 1 ")); |
| | | if(Objects.nonNull(systemUser)){ |
| | | String token = systemLoginService.loginByUserId(systemUser.getId()); |
| | | wxAuthorizeVO.setToken(token); |
| | | } |
| | | } |
| | | } |
| | | return wxAuthorizeVO; |
| | | } |
| | |
| | | |
| | | |
| | | |
| | | @Override |
| | | public WxAuthorizeVO accountLogin(AccountLoginDTO accountLoginDTO){ |
| | | System.out.println(DESUtil.decrypt(Constants.EDS_PWD,"eIaPD5AR5DBuTBE9MW14QRG07IDKXCdh")); |
| | | if(accountLoginDTO.getAccount().length()!=18 |
| | | //&&!IdcardUtil.isValidCard(accountLoginDTO.getAccount()) |
| | | ){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "对ä¸èµ·ï¼èº«ä»½è¯å·ç æè¯¯ï¼è¯·æ ¸å®åéè¯ï¼"); |
| | | } |
| | | Member member = memberMapper.selectOne(new QueryWrapper<Member>().lambda() |
| | | .eq(Member::getIdcardNo, DESUtil.encrypt(Constants.EDS_PWD, accountLoginDTO.getAccount())) |
| | | .ne(Member::getType,Constants.memberType.visitor) |
| | | ); |
| | | if(Objects.isNull(member)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"æªæ¥è¯¢å°ç¨æ·,请è系管çå"); |
| | | } |
| | | if(member.getIsdeleted() == Constants.ONE){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"ç¨æ·å·²å é¤,请è系管çå"); |
| | | } |
| | | if(member.getStatus() != Constants.ZERO){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"ç¨æ·å·²ç¦ç¨,请è系管çå"); |
| | | } |
| | | String md5Password = DESUtil.encrypt(Constants.EDS_PWD, accountLoginDTO.getPassword()); |
| | | if(!md5Password.equals(member.getPassward())){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"è´¦æ·å¯ç é误!"); |
| | | } |
| | | if(StringUtils.isNotBlank(accountLoginDTO.getOpenId())){ |
| | | //å
æ¸
空åæè®¿å®¢çopenidç»å®å
³ç³» |
| | | memberMapper.update(null, new UpdateWrapper<Member>().lambda() |
| | | .ne(Member::getType,Constants.memberType.visitor) |
| | | .eq(Member::getOpenid,accountLoginDTO.getOpenId()) |
| | | .set(Member::getOpenid,null) |
| | | ); |
| | | //æ´æ°å½åç»å½ç¨æ· openId |
| | | member.setOpenid(accountLoginDTO.getOpenId()); |
| | | memberMapper.updateById(member); |
| | | } |
| | | WxAuthorizeVO wxAuthorizeVO = new WxAuthorizeVO(); |
| | | JwtPayLoad payLoad = new JwtPayLoad(Integer.toString(member.getId())); |
| | | String token = JwtTokenUtil.generateToken(payLoad); |
| | | //åå¨tokenè³redis |
| | | RedisUtil.addObject(redisTemplate,Constants.RedisKeys.INTERNAL_TOKEN+"_"+member.getId(),token,Constants.RedisKeys.EXPIRE_TIME); |
| | | wxAuthorizeVO.setToken(token); |
| | | return wxAuthorizeVO; |
| | | } |
| | | |
| | | |
| | | |
| | | @Override |
| | |
| | | List<Member> memberList = memberMapper.selectList(new QueryWrapper<Member>().lambda().eq(Member::getIsdeleted,Constants.ZERO)); |
| | | if(CollectionUtils.isNotEmpty(memberList)){ |
| | | stagingHeadVO.setWorkerCount(memberList.stream().filter(m->m.getType().equals(Constants.memberType.internal)).count()); |
| | | stagingHeadVO.setLwCount(memberList.stream().filter(m->m.getType().equals(Constants.memberType.lw_visitor)).count()); |
| | | stagingHeadVO.setLwCount(memberList.stream().filter(m->m.getType().equals(Constants.memberType.driver)).count()); |
| | | stagingHeadVO.setVisitorCount(memberList.stream().filter(m->m.getType().equals(Constants.memberType.visitor)).count()); |
| | | } |
| | | //å¨åºè½¦è¾ |
| | |
| | | new MPJLambdaWrapper<Member>() |
| | | .select("count(1) as memberCount, t1.name as companyName") |
| | | .leftJoin(Company.class,Company::getId,Member::getCompanyId) |
| | | .eq(Member::getType,Constants.memberType.lw_visitor) |
| | | .eq(Member::getType,Constants.memberType.driver) |
| | | .groupBy(Company::getId,Company::getName) |
| | | ); |
| | | List<Map<String,Object>> retentionMaps = retentionJoinMapper.selectMaps(new MPJLambdaWrapper<Retention>() |
| | |
| | | throw new BusinessException(ResponseStatus.SERVER_ERROR.getCode(),"对ä¸èµ·ï¼å工信æ¯ã"+insert.getName()+"ã忥å®é²å¹³å°å¤±è´¥ï¼è¯·ç¨åéè¯ï¼"); |
| | | } |
| | | } |
| | | memberMapper.insertBatchSomeColumn(newList); |
| | | memberMapper.insert(newList); |
| | | List<SystemUser> userList = new ArrayList<>(); |
| | | for(Member insert: newList){ |
| | | //å建系ç»ç»éè´¦å·ï¼é»è®¤æ ä»»ä½è§è²ï¼ |
| | |
| | | } |
| | | } |
| | | if(userList.size()>0){ |
| | | systemUserMapper.insertBatchSomeColumn(userList); |
| | | systemUserMapper.insert(userList); |
| | | } |
| | | }catch (Exception e){ |
| | | //妿åçå¼å¸¸ï¼å é¤å·²ç»å建ç人åä¿¡æ¯ |
| | |
| | | Member member = new Member(); |
| | | member.setCreateDate(new Date()); |
| | | member.setIsdeleted(Constants.ZERO); |
| | | member.setType(Constants.TWO); |
| | | member.setType(Constants.THREE); |
| | | member.setName(registerDriverDTO.getName()); |
| | | member.setPhone(registerDriverDTO.getPhone()); |
| | | member.setStatus(Constants.ZERO); |
| | |
| | | parkBook.setRemark("å¾
忥å®é²å¹³å°"); |
| | | parkBookList.add(parkBook); |
| | | } |
| | | parkBookMapper.insertBatchSomeColumn(parkBookList); |
| | | parkBookMapper.insert(parkBookList); |
| | | } |
| | | return 0; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.service.business.impl; |
| | | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.PlatformBooksMapper; |
| | | import com.doumee.dao.business.model.PlatformBooks; |
| | | import com.doumee.service.business.PlatformBooksService; |
| | | 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.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æå°å
¥åé¢çº¦ä¿¡æ¯è¡¨Serviceå®ç° |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | @Service |
| | | public class PlatformBooksServiceImpl implements PlatformBooksService { |
| | | |
| | | @Autowired |
| | | private PlatformBooksMapper platformBooksMapper; |
| | | |
| | | @Override |
| | | public Integer create(PlatformBooks platformBooks) { |
| | | platformBooksMapper.insert(platformBooks); |
| | | return platformBooks.getId(); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteById(Integer id) { |
| | | platformBooksMapper.deleteById(id); |
| | | } |
| | | |
| | | @Override |
| | | public void delete(PlatformBooks platformBooks) { |
| | | UpdateWrapper<PlatformBooks> deleteWrapper = new UpdateWrapper<>(platformBooks); |
| | | platformBooksMapper.delete(deleteWrapper); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteByIdInBatch(List<Integer> ids) { |
| | | if (CollectionUtils.isEmpty(ids)) { |
| | | return; |
| | | } |
| | | platformBooksMapper.deleteBatchIds(ids); |
| | | } |
| | | |
| | | @Override |
| | | public void updateById(PlatformBooks platformBooks) { |
| | | platformBooksMapper.updateById(platformBooks); |
| | | } |
| | | |
| | | @Override |
| | | public void updateByIdInBatch(List<PlatformBooks> platformBookss) { |
| | | if (CollectionUtils.isEmpty(platformBookss)) { |
| | | return; |
| | | } |
| | | for (PlatformBooks platformBooks: platformBookss) { |
| | | this.updateById(platformBooks); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public PlatformBooks findById(Integer id) { |
| | | return platformBooksMapper.selectById(id); |
| | | } |
| | | |
| | | @Override |
| | | public PlatformBooks findOne(PlatformBooks platformBooks) { |
| | | QueryWrapper<PlatformBooks> wrapper = new QueryWrapper<>(platformBooks); |
| | | return platformBooksMapper.selectOne(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public List<PlatformBooks> findList(PlatformBooks platformBooks) { |
| | | QueryWrapper<PlatformBooks> wrapper = new QueryWrapper<>(platformBooks); |
| | | return platformBooksMapper.selectList(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public PageData<PlatformBooks> findPage(PageWrap<PlatformBooks> pageWrap) { |
| | | IPage<PlatformBooks> page = new Page<>(pageWrap.getPage(), pageWrap.getCapacity()); |
| | | QueryWrapper<PlatformBooks> queryWrapper = new QueryWrapper<>(); |
| | | Utils.MP.blankToNull(pageWrap.getModel()); |
| | | queryWrapper.lambda() |
| | | .eq(pageWrap.getModel().getId() != null, PlatformBooks::getId, pageWrap.getModel().getId()) |
| | | .eq(pageWrap.getModel().getCreator() != null, PlatformBooks::getCreator, pageWrap.getModel().getCreator()) |
| | | .ge(pageWrap.getModel().getCreateDate() != null, PlatformBooks::getCreateDate, Utils.Date.getStart(pageWrap.getModel().getCreateDate())) |
| | | .le(pageWrap.getModel().getCreateDate() != null, PlatformBooks::getCreateDate, Utils.Date.getEnd(pageWrap.getModel().getCreateDate())) |
| | | .eq(pageWrap.getModel().getEditor() != null, PlatformBooks::getEditor, pageWrap.getModel().getEditor()) |
| | | .ge(pageWrap.getModel().getEditDate() != null, PlatformBooks::getEditDate, Utils.Date.getStart(pageWrap.getModel().getEditDate())) |
| | | .le(pageWrap.getModel().getEditDate() != null, PlatformBooks::getEditDate, Utils.Date.getEnd(pageWrap.getModel().getEditDate())) |
| | | .eq(pageWrap.getModel().getIsdeleted() != null, PlatformBooks::getIsdeleted, pageWrap.getModel().getIsdeleted()) |
| | | .eq(pageWrap.getModel().getName() != null, PlatformBooks::getName, pageWrap.getModel().getName()) |
| | | .eq(pageWrap.getModel().getRemark() != null, PlatformBooks::getRemark, pageWrap.getModel().getRemark()) |
| | | .eq(pageWrap.getModel().getStatus() != null, PlatformBooks::getStatus, pageWrap.getModel().getStatus()) |
| | | .eq(pageWrap.getModel().getContractNum() != null, PlatformBooks::getContractNum, pageWrap.getModel().getContractNum()) |
| | | .ge(pageWrap.getModel().getArriveDate() != null, PlatformBooks::getArriveDate, Utils.Date.getStart(pageWrap.getModel().getArriveDate())) |
| | | .le(pageWrap.getModel().getArriveDate() != null, PlatformBooks::getArriveDate, Utils.Date.getEnd(pageWrap.getModel().getArriveDate())) |
| | | .eq(pageWrap.getModel().getInType() != null, PlatformBooks::getInType, pageWrap.getModel().getInType()) |
| | | .eq(pageWrap.getModel().getTotalNum() != null, PlatformBooks::getTotalNum, pageWrap.getModel().getTotalNum()) |
| | | .eq(pageWrap.getModel().getCarCodeFront() != null, PlatformBooks::getCarCodeFront, pageWrap.getModel().getCarCodeFront()) |
| | | .eq(pageWrap.getModel().getCarCodeBack() != null, PlatformBooks::getCarCodeBack, pageWrap.getModel().getCarCodeBack()) |
| | | .eq(pageWrap.getModel().getDriverId() != null, PlatformBooks::getDriverId, pageWrap.getModel().getDriverId()) |
| | | .eq(pageWrap.getModel().getDriverName() != null, PlatformBooks::getDriverName, pageWrap.getModel().getDriverName()) |
| | | .eq(pageWrap.getModel().getPlateNum() != null, PlatformBooks::getPlateNum, pageWrap.getModel().getPlateNum()) |
| | | .eq(pageWrap.getModel().getDrivierPhone() != null, PlatformBooks::getDrivierPhone, pageWrap.getModel().getDrivierPhone()) |
| | | ; |
| | | for(PageWrap.SortData sortData: pageWrap.getSorts()) { |
| | | if (sortData.getDirection().equalsIgnoreCase(PageWrap.DESC)) { |
| | | queryWrapper.orderByDesc(sortData.getProperty()); |
| | | } else { |
| | | queryWrapper.orderByAsc(sortData.getProperty()); |
| | | } |
| | | } |
| | | return PageData.from(platformBooksMapper.selectPage(page, queryWrapper)); |
| | | } |
| | | |
| | | @Override |
| | | public long count(PlatformBooks platformBooks) { |
| | | QueryWrapper<PlatformBooks> wrapper = new QueryWrapper<>(platformBooks); |
| | | return platformBooksMapper.selectCount(wrapper); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.service.business.impl; |
| | | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.PlatformBroadcastLogMapper; |
| | | import com.doumee.dao.business.model.PlatformBroadcastLog; |
| | | import com.doumee.service.business.PlatformBroadcastLogService; |
| | | 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.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æå°_LEDå广ææéä¸åè®°å½Serviceå®ç° |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | @Service |
| | | public class PlatformBroadcastLogServiceImpl implements PlatformBroadcastLogService { |
| | | |
| | | @Autowired |
| | | private PlatformBroadcastLogMapper platformBroadcastLogMapper; |
| | | |
| | | @Override |
| | | public Integer create(PlatformBroadcastLog platformBroadcastLog) { |
| | | platformBroadcastLogMapper.insert(platformBroadcastLog); |
| | | return platformBroadcastLog.getId(); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteById(Integer id) { |
| | | platformBroadcastLogMapper.deleteById(id); |
| | | } |
| | | |
| | | @Override |
| | | public void delete(PlatformBroadcastLog platformBroadcastLog) { |
| | | UpdateWrapper<PlatformBroadcastLog> deleteWrapper = new UpdateWrapper<>(platformBroadcastLog); |
| | | platformBroadcastLogMapper.delete(deleteWrapper); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteByIdInBatch(List<Integer> ids) { |
| | | if (CollectionUtils.isEmpty(ids)) { |
| | | return; |
| | | } |
| | | platformBroadcastLogMapper.deleteBatchIds(ids); |
| | | } |
| | | |
| | | @Override |
| | | public void updateById(PlatformBroadcastLog platformBroadcastLog) { |
| | | platformBroadcastLogMapper.updateById(platformBroadcastLog); |
| | | } |
| | | |
| | | @Override |
| | | public void updateByIdInBatch(List<PlatformBroadcastLog> platformBroadcastLogs) { |
| | | if (CollectionUtils.isEmpty(platformBroadcastLogs)) { |
| | | return; |
| | | } |
| | | for (PlatformBroadcastLog platformBroadcastLog: platformBroadcastLogs) { |
| | | this.updateById(platformBroadcastLog); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public PlatformBroadcastLog findById(Integer id) { |
| | | return platformBroadcastLogMapper.selectById(id); |
| | | } |
| | | |
| | | @Override |
| | | public PlatformBroadcastLog findOne(PlatformBroadcastLog platformBroadcastLog) { |
| | | QueryWrapper<PlatformBroadcastLog> wrapper = new QueryWrapper<>(platformBroadcastLog); |
| | | return platformBroadcastLogMapper.selectOne(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public List<PlatformBroadcastLog> findList(PlatformBroadcastLog platformBroadcastLog) { |
| | | QueryWrapper<PlatformBroadcastLog> wrapper = new QueryWrapper<>(platformBroadcastLog); |
| | | return platformBroadcastLogMapper.selectList(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public PageData<PlatformBroadcastLog> findPage(PageWrap<PlatformBroadcastLog> pageWrap) { |
| | | IPage<PlatformBroadcastLog> page = new Page<>(pageWrap.getPage(), pageWrap.getCapacity()); |
| | | QueryWrapper<PlatformBroadcastLog> queryWrapper = new QueryWrapper<>(); |
| | | Utils.MP.blankToNull(pageWrap.getModel()); |
| | | queryWrapper.lambda() |
| | | .eq(pageWrap.getModel().getId() != null, PlatformBroadcastLog::getId, pageWrap.getModel().getId()) |
| | | .eq(pageWrap.getModel().getCreator() != null, PlatformBroadcastLog::getCreator, pageWrap.getModel().getCreator()) |
| | | .ge(pageWrap.getModel().getCreateDate() != null, PlatformBroadcastLog::getCreateDate, Utils.Date.getStart(pageWrap.getModel().getCreateDate())) |
| | | .le(pageWrap.getModel().getCreateDate() != null, PlatformBroadcastLog::getCreateDate, Utils.Date.getEnd(pageWrap.getModel().getCreateDate())) |
| | | .eq(pageWrap.getModel().getEditor() != null, PlatformBroadcastLog::getEditor, pageWrap.getModel().getEditor()) |
| | | .ge(pageWrap.getModel().getEditDate() != null, PlatformBroadcastLog::getEditDate, Utils.Date.getStart(pageWrap.getModel().getEditDate())) |
| | | .le(pageWrap.getModel().getEditDate() != null, PlatformBroadcastLog::getEditDate, Utils.Date.getEnd(pageWrap.getModel().getEditDate())) |
| | | .eq(pageWrap.getModel().getIsdeleted() != null, PlatformBroadcastLog::getIsdeleted, pageWrap.getModel().getIsdeleted()) |
| | | .eq(pageWrap.getModel().getName() != null, PlatformBroadcastLog::getName, pageWrap.getModel().getName()) |
| | | .eq(pageWrap.getModel().getRemark() != null, PlatformBroadcastLog::getRemark, pageWrap.getModel().getRemark()) |
| | | .eq(pageWrap.getModel().getObjId() != null, PlatformBroadcastLog::getObjId, pageWrap.getModel().getObjId()) |
| | | .eq(pageWrap.getModel().getObjType() != null, PlatformBroadcastLog::getObjType, pageWrap.getModel().getObjType()) |
| | | .eq(pageWrap.getModel().getNum() != null, PlatformBroadcastLog::getNum, pageWrap.getModel().getNum()) |
| | | .eq(pageWrap.getModel().getIds() != null, PlatformBroadcastLog::getIds, pageWrap.getModel().getIds()) |
| | | .eq(pageWrap.getModel().getInfo() != null, PlatformBroadcastLog::getInfo, pageWrap.getModel().getInfo()) |
| | | .eq(pageWrap.getModel().getHkId() != null, PlatformBroadcastLog::getHkId, pageWrap.getModel().getHkId()) |
| | | .eq(pageWrap.getModel().getHkStatus() != null, PlatformBroadcastLog::getHkStatus, pageWrap.getModel().getHkStatus()) |
| | | .ge(pageWrap.getModel().getHkDate() != null, PlatformBroadcastLog::getHkDate, Utils.Date.getStart(pageWrap.getModel().getHkDate())) |
| | | .le(pageWrap.getModel().getHkDate() != null, PlatformBroadcastLog::getHkDate, Utils.Date.getEnd(pageWrap.getModel().getHkDate())) |
| | | .eq(pageWrap.getModel().getHkInfo() != null, PlatformBroadcastLog::getHkInfo, pageWrap.getModel().getHkInfo()) |
| | | .eq(pageWrap.getModel().getBizType() != null, PlatformBroadcastLog::getBizType, pageWrap.getModel().getBizType()) |
| | | .eq(pageWrap.getModel().getDeviceType() != null, PlatformBroadcastLog::getDeviceType, pageWrap.getModel().getDeviceType()) |
| | | ; |
| | | for(PageWrap.SortData sortData: pageWrap.getSorts()) { |
| | | if (sortData.getDirection().equalsIgnoreCase(PageWrap.DESC)) { |
| | | queryWrapper.orderByDesc(sortData.getProperty()); |
| | | } else { |
| | | queryWrapper.orderByAsc(sortData.getProperty()); |
| | | } |
| | | } |
| | | return PageData.from(platformBroadcastLogMapper.selectPage(page, queryWrapper)); |
| | | } |
| | | |
| | | @Override |
| | | public long count(PlatformBroadcastLog platformBroadcastLog) { |
| | | QueryWrapper<PlatformBroadcastLog> wrapper = new QueryWrapper<>(platformBroadcastLog); |
| | | return platformBroadcastLogMapper.selectCount(wrapper); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.service.business.impl; |
| | | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.PlatformDeviceMapper; |
| | | import com.doumee.dao.business.model.PlatformDevice; |
| | | import com.doumee.service.business.PlatformDeviceService; |
| | | 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.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æå°_å
³èçæ§ç¹LEDå广æä¿¡æ¯è¡¨Serviceå®ç° |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | @Service |
| | | public class PlatformDeviceServiceImpl implements PlatformDeviceService { |
| | | |
| | | @Autowired |
| | | private PlatformDeviceMapper platformDeviceMapper; |
| | | |
| | | @Override |
| | | public Integer create(PlatformDevice platformDevice) { |
| | | platformDeviceMapper.insert(platformDevice); |
| | | return platformDevice.getId(); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteById(Integer id) { |
| | | platformDeviceMapper.deleteById(id); |
| | | } |
| | | |
| | | @Override |
| | | public void delete(PlatformDevice platformDevice) { |
| | | UpdateWrapper<PlatformDevice> deleteWrapper = new UpdateWrapper<>(platformDevice); |
| | | platformDeviceMapper.delete(deleteWrapper); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteByIdInBatch(List<Integer> ids) { |
| | | if (CollectionUtils.isEmpty(ids)) { |
| | | return; |
| | | } |
| | | platformDeviceMapper.deleteBatchIds(ids); |
| | | } |
| | | |
| | | @Override |
| | | public void updateById(PlatformDevice platformDevice) { |
| | | platformDeviceMapper.updateById(platformDevice); |
| | | } |
| | | |
| | | @Override |
| | | public void updateByIdInBatch(List<PlatformDevice> platformDevices) { |
| | | if (CollectionUtils.isEmpty(platformDevices)) { |
| | | return; |
| | | } |
| | | for (PlatformDevice platformDevice: platformDevices) { |
| | | this.updateById(platformDevice); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public PlatformDevice findById(Integer id) { |
| | | return platformDeviceMapper.selectById(id); |
| | | } |
| | | |
| | | @Override |
| | | public PlatformDevice findOne(PlatformDevice platformDevice) { |
| | | QueryWrapper<PlatformDevice> wrapper = new QueryWrapper<>(platformDevice); |
| | | return platformDeviceMapper.selectOne(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public List<PlatformDevice> findList(PlatformDevice platformDevice) { |
| | | QueryWrapper<PlatformDevice> wrapper = new QueryWrapper<>(platformDevice); |
| | | return platformDeviceMapper.selectList(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public PageData<PlatformDevice> findPage(PageWrap<PlatformDevice> pageWrap) { |
| | | IPage<PlatformDevice> page = new Page<>(pageWrap.getPage(), pageWrap.getCapacity()); |
| | | QueryWrapper<PlatformDevice> queryWrapper = new QueryWrapper<>(); |
| | | Utils.MP.blankToNull(pageWrap.getModel()); |
| | | queryWrapper.lambda() |
| | | .eq(pageWrap.getModel().getId() != null, PlatformDevice::getId, pageWrap.getModel().getId()) |
| | | .eq(pageWrap.getModel().getCreator() != null, PlatformDevice::getCreator, pageWrap.getModel().getCreator()) |
| | | .ge(pageWrap.getModel().getCreateDate() != null, PlatformDevice::getCreateDate, Utils.Date.getStart(pageWrap.getModel().getCreateDate())) |
| | | .le(pageWrap.getModel().getCreateDate() != null, PlatformDevice::getCreateDate, Utils.Date.getEnd(pageWrap.getModel().getCreateDate())) |
| | | .eq(pageWrap.getModel().getEditor() != null, PlatformDevice::getEditor, pageWrap.getModel().getEditor()) |
| | | .ge(pageWrap.getModel().getEditDate() != null, PlatformDevice::getEditDate, Utils.Date.getStart(pageWrap.getModel().getEditDate())) |
| | | .le(pageWrap.getModel().getEditDate() != null, PlatformDevice::getEditDate, Utils.Date.getEnd(pageWrap.getModel().getEditDate())) |
| | | .eq(pageWrap.getModel().getIsdeleted() != null, PlatformDevice::getIsdeleted, pageWrap.getModel().getIsdeleted()) |
| | | .eq(pageWrap.getModel().getRemark() != null, PlatformDevice::getRemark, pageWrap.getModel().getRemark()) |
| | | .eq(pageWrap.getModel().getPlatformId() != null, PlatformDevice::getPlatformId, pageWrap.getModel().getPlatformId()) |
| | | .eq(pageWrap.getModel().getHkId() != null, PlatformDevice::getHkId, pageWrap.getModel().getHkId()) |
| | | .eq(pageWrap.getModel().getDeviceId() != null, PlatformDevice::getDeviceId, pageWrap.getModel().getDeviceId()) |
| | | .eq(pageWrap.getModel().getSortnum() != null, PlatformDevice::getSortnum, pageWrap.getModel().getSortnum()) |
| | | .eq(pageWrap.getModel().getType() != null, PlatformDevice::getType, pageWrap.getModel().getType()) |
| | | .eq(pageWrap.getModel().getName() != null, PlatformDevice::getName, pageWrap.getModel().getName()) |
| | | .eq(pageWrap.getModel().getStatus() != null, PlatformDevice::getStatus, pageWrap.getModel().getStatus()) |
| | | ; |
| | | for(PageWrap.SortData sortData: pageWrap.getSorts()) { |
| | | if (sortData.getDirection().equalsIgnoreCase(PageWrap.DESC)) { |
| | | queryWrapper.orderByDesc(sortData.getProperty()); |
| | | } else { |
| | | queryWrapper.orderByAsc(sortData.getProperty()); |
| | | } |
| | | } |
| | | return PageData.from(platformDeviceMapper.selectPage(page, queryWrapper)); |
| | | } |
| | | |
| | | @Override |
| | | public long count(PlatformDevice platformDevice) { |
| | | QueryWrapper<PlatformDevice> wrapper = new QueryWrapper<>(platformDevice); |
| | | return platformDeviceMapper.selectCount(wrapper); |
| | | } |
| | | } |
| | |
| | | /** |
| | | * æå°_åç»ä¿¡æ¯è¡¨Serviceå®ç° |
| | | * @author æ±è¹è¹ |
| | | * @since 2024/04/28 16:06 |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | @Service |
| | | public class PlatformGroupServiceImpl implements PlatformGroupService { |
| | |
| | | package com.doumee.service.business.impl; |
| | | |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | 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.PlatformInterfaceLogMapper; |
| | | import com.doumee.dao.business.model.InterfaceLog; |
| | | import com.doumee.dao.business.model.PlatformInterfaceLog; |
| | | import com.doumee.service.business.PlatformInterfaceLogService; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | |
| | | /** |
| | | * ä½ä¸è°åº¦å¹³å°æ¥å£äº¤äºè®°å½Serviceå®ç° |
| | | * @author æ±è¹è¹ |
| | | * @since 2024/04/28 16:06 |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | @Service |
| | | public class PlatformInterfaceLogServiceImpl implements PlatformInterfaceLogService { |
| | | |
| | | @Autowired |
| | | private SystemDictDataBiz systemDictDataBiz; |
| | | |
| | | @Autowired |
| | | private PlatformInterfaceLogMapper platformInterfaceLogMapper; |
| | |
| | | .eq(pageWrap.getModel().getIsdeleted() != null, PlatformInterfaceLog::getIsdeleted, pageWrap.getModel().getIsdeleted()) |
| | | .eq(pageWrap.getModel().getRemark() != null, PlatformInterfaceLog::getRemark, pageWrap.getModel().getRemark()) |
| | | .eq(pageWrap.getModel().getType() != null, PlatformInterfaceLog::getType, pageWrap.getModel().getType()) |
| | | .like(pageWrap.getModel().getName() != null, PlatformInterfaceLog::getName, pageWrap.getModel().getName()) |
| | | .like(pageWrap.getModel().getUrl() != null, PlatformInterfaceLog::getUrl, pageWrap.getModel().getUrl()) |
| | | .eq(pageWrap.getModel().getName() != null, PlatformInterfaceLog::getName, pageWrap.getModel().getName()) |
| | | .ge(pageWrap.getModel().getUrl() != null, PlatformInterfaceLog::getUrl, Utils.Date.getStart(pageWrap.getModel().getUrl())) |
| | | .le(pageWrap.getModel().getUrl() != null, PlatformInterfaceLog::getUrl, Utils.Date.getEnd(pageWrap.getModel().getUrl())) |
| | | .eq(pageWrap.getModel().getRequest() != null, PlatformInterfaceLog::getRequest, pageWrap.getModel().getRequest()) |
| | | .eq(pageWrap.getModel().getRepose() != null, PlatformInterfaceLog::getRepose, pageWrap.getModel().getRepose()) |
| | | .eq(pageWrap.getModel().getSuccess() != null, PlatformInterfaceLog::getSuccess, pageWrap.getModel().getSuccess()) |
| | | .eq(pageWrap.getModel().getPlat() != null, PlatformInterfaceLog::getPlat, pageWrap.getModel().getPlat()) |
| | | .eq(pageWrap.getModel().getObjType() != null, PlatformInterfaceLog::getObjType, pageWrap.getModel().getObjType()) |
| | | .eq(pageWrap.getModel().getObjId() != null, PlatformInterfaceLog::getObjId, pageWrap.getModel().getObjId()) |
| | | .ge(pageWrap.getModel().getStartDate() != null,PlatformInterfaceLog::getCreateDate, pageWrap.getModel().getStartDate()) |
| | | .le(pageWrap.getModel().getEndDate() != null,PlatformInterfaceLog::getCreateDate, pageWrap.getModel().getEndDate()) |
| | | .orderByDesc(PlatformInterfaceLog::getCreateDate); |
| | | ; |
| | | for(PageWrap.SortData sortData: pageWrap.getSorts()) { |
| | | if (sortData.getDirection().equalsIgnoreCase(PageWrap.DESC)) { |
| | | queryWrapper.orderByDesc(sortData.getProperty()); |
| | | } else { |
| | | queryWrapper.orderByAsc(sortData.getProperty()); |
| | | } |
| | | } |
| | | return PageData.from(platformInterfaceLogMapper.selectPage(page, queryWrapper)); |
| | | } |
| | | |
| | |
| | | public long count(PlatformInterfaceLog platformInterfaceLog) { |
| | | QueryWrapper<PlatformInterfaceLog> wrapper = new QueryWrapper<>(platformInterfaceLog); |
| | | return platformInterfaceLogMapper.selectCount(wrapper); |
| | | } |
| | | @Override |
| | | public void clearThreeMonthLog() { |
| | | int days =15; |
| | | try { |
| | | days = Integer.parseInt(systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.LOG_DEL_DAYS_LIMIT).getCode()); |
| | | }catch (Exception e){} |
| | | platformInterfaceLogMapper.delete(new UpdateWrapper<PlatformInterfaceLog>().lambda() |
| | | .apply("to_days(create_date)+"+days+" < to_days(now())")); |
| | | } |
| | | } |
| | |
| | | /** |
| | | * æå°è°åº¦ä½ä¸ä¿¡æ¯è¡¨Serviceå®ç° |
| | | * @author æ±è¹è¹ |
| | | * @since 2024/04/28 16:06 |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | @Service |
| | | public class PlatformJobServiceImpl implements PlatformJobService { |
| | |
| | | .eq(pageWrap.getModel().getRemark() != null, PlatformJob::getRemark, pageWrap.getModel().getRemark()) |
| | | .eq(pageWrap.getModel().getStatus() != null, PlatformJob::getStatus, pageWrap.getModel().getStatus()) |
| | | .eq(pageWrap.getModel().getSortnum() != null, PlatformJob::getSortnum, pageWrap.getModel().getSortnum()) |
| | | .eq(pageWrap.getModel().getStartTime() != null, PlatformJob::getStartTime, pageWrap.getModel().getStartTime()) |
| | | .eq(pageWrap.getModel().getEndTime() != null, PlatformJob::getEndTime, pageWrap.getModel().getEndTime()) |
| | | .eq(pageWrap.getModel().getDeviceIds() != null, PlatformJob::getDeviceIds, pageWrap.getModel().getDeviceIds()) |
| | | .eq(pageWrap.getModel().getScreenIds() != null, PlatformJob::getScreenIds, pageWrap.getModel().getScreenIds()) |
| | | .eq(pageWrap.getModel().getWorkingNum() != null, PlatformJob::getWorkingNum, pageWrap.getModel().getWorkingNum()) |
| | | .eq(pageWrap.getModel().getBroadcastNum() != null, PlatformJob::getBroadcastNum, pageWrap.getModel().getBroadcastNum()) |
| | | .eq(pageWrap.getModel().getBroadcastIds() != null, PlatformJob::getBroadcastIds, pageWrap.getModel().getBroadcastIds()) |
| | | .eq(pageWrap.getModel().getBroadcastInfo() != null, PlatformJob::getBroadcastInfo, pageWrap.getModel().getBroadcastInfo()) |
| | | .eq(pageWrap.getModel().getBroadcastHkstatus() != null, PlatformJob::getBroadcastHkstatus, pageWrap.getModel().getBroadcastHkstatus()) |
| | | .ge(pageWrap.getModel().getBroadcastHkdate() != null, PlatformJob::getBroadcastHkdate, Utils.Date.getStart(pageWrap.getModel().getBroadcastHkdate())) |
| | | .le(pageWrap.getModel().getBroadcastHkdate() != null, PlatformJob::getBroadcastHkdate, Utils.Date.getEnd(pageWrap.getModel().getBroadcastHkdate())) |
| | | .eq(pageWrap.getModel().getBroadcastHkinfo() != null, PlatformJob::getBroadcastHkinfo, pageWrap.getModel().getBroadcastHkinfo()) |
| | | .eq(pageWrap.getModel().getCode() != null, PlatformJob::getCode, pageWrap.getModel().getCode()) |
| | | .eq(pageWrap.getModel().getBillCode() != null, PlatformJob::getBillCode, pageWrap.getModel().getBillCode()) |
| | | .eq(pageWrap.getModel().getDriverId() != null, PlatformJob::getDriverId, pageWrap.getModel().getDriverId()) |
| | | .eq(pageWrap.getModel().getDriverName() != null, PlatformJob::getDriverName, pageWrap.getModel().getDriverName()) |
| | | .eq(pageWrap.getModel().getPlateNum() != null, PlatformJob::getPlateNum, pageWrap.getModel().getPlateNum()) |
| | | .eq(pageWrap.getModel().getDrivierPhone() != null, PlatformJob::getDrivierPhone, pageWrap.getModel().getDrivierPhone()) |
| | | .ge(pageWrap.getModel().getSignDate() != null, PlatformJob::getSignDate, Utils.Date.getStart(pageWrap.getModel().getSignDate())) |
| | | .le(pageWrap.getModel().getSignDate() != null, PlatformJob::getSignDate, Utils.Date.getEnd(pageWrap.getModel().getSignDate())) |
| | | .eq(pageWrap.getModel().getSingType() != null, PlatformJob::getSingType, pageWrap.getModel().getSingType()) |
| | | .eq(pageWrap.getModel().getSignDistance() != null, PlatformJob::getSignDistance, pageWrap.getModel().getSignDistance()) |
| | | .eq(pageWrap.getModel().getPlatformNames() != null, PlatformJob::getPlatformNames, pageWrap.getModel().getPlatformNames()) |
| | | .eq(pageWrap.getModel().getPlatforms() != null, PlatformJob::getPlatforms, pageWrap.getModel().getPlatforms()) |
| | | .eq(pageWrap.getModel().getPlatformId() != null, PlatformJob::getPlatformId, pageWrap.getModel().getPlatformId()) |
| | | .ge(pageWrap.getModel().getInwaitDate() != null, PlatformJob::getInwaitDate, Utils.Date.getStart(pageWrap.getModel().getInwaitDate())) |
| | | .le(pageWrap.getModel().getInwaitDate() != null, PlatformJob::getInwaitDate, Utils.Date.getEnd(pageWrap.getModel().getInwaitDate())) |
| | | .eq(pageWrap.getModel().getInwaitUserId() != null, PlatformJob::getInwaitUserId, pageWrap.getModel().getInwaitUserId()) |
| | | .ge(pageWrap.getModel().getCallDate() != null, PlatformJob::getCallDate, Utils.Date.getStart(pageWrap.getModel().getCallDate())) |
| | | .le(pageWrap.getModel().getCallDate() != null, PlatformJob::getCallDate, Utils.Date.getEnd(pageWrap.getModel().getCallDate())) |
| | | .eq(pageWrap.getModel().getCallUserId() != null, PlatformJob::getCallUserId, pageWrap.getModel().getCallUserId()) |
| | |
| | | .eq(pageWrap.getModel().getCancelUserId() != null, PlatformJob::getCancelUserId, pageWrap.getModel().getCancelUserId()) |
| | | .eq(pageWrap.getModel().getCancelInfo() != null, PlatformJob::getCancelInfo, pageWrap.getModel().getCancelInfo()) |
| | | .eq(pageWrap.getModel().getReason() != null, PlatformJob::getReason, pageWrap.getModel().getReason()) |
| | | .eq(pageWrap.getModel().getContractNum() != null, PlatformJob::getContractNum, pageWrap.getModel().getContractNum()) |
| | | .ge(pageWrap.getModel().getArriveDate() != null, PlatformJob::getArriveDate, Utils.Date.getStart(pageWrap.getModel().getArriveDate())) |
| | | .le(pageWrap.getModel().getArriveDate() != null, PlatformJob::getArriveDate, Utils.Date.getEnd(pageWrap.getModel().getArriveDate())) |
| | | .eq(pageWrap.getModel().getInType() != null, PlatformJob::getInType, pageWrap.getModel().getInType()) |
| | | .eq(pageWrap.getModel().getTotalNum() != null, PlatformJob::getTotalNum, pageWrap.getModel().getTotalNum()) |
| | | ; |
| | | for(PageWrap.SortData sortData: pageWrap.getSorts()) { |
| | | if (sortData.getDirection().equalsIgnoreCase(PageWrap.DESC)) { |
| | |
| | | /** |
| | | * æå°_ä½ä¸æä½åå²è¡¨Serviceå®ç° |
| | | * @author æ±è¹è¹ |
| | | * @since 2024/04/28 16:06 |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | @Service |
| | | public class PlatformLogServiceImpl implements PlatformLogService { |
| | |
| | | .eq(pageWrap.getModel().getObjId() != null, PlatformLog::getObjId, pageWrap.getModel().getObjId()) |
| | | .eq(pageWrap.getModel().getBeforeContent() != null, PlatformLog::getBeforeContent, pageWrap.getModel().getBeforeContent()) |
| | | .eq(pageWrap.getModel().getAfterContent() != null, PlatformLog::getAfterContent, pageWrap.getModel().getAfterContent()) |
| | | .eq(pageWrap.getModel().getParam1() != null, PlatformLog::getParam1, pageWrap.getModel().getParam1()) |
| | | .eq(pageWrap.getModel().getParam2() != null, PlatformLog::getParam2, pageWrap.getModel().getParam2()) |
| | | .eq(pageWrap.getModel().getParam3() != null, PlatformLog::getParam3, pageWrap.getModel().getParam3()) |
| | | .eq(pageWrap.getModel().getParam4() != null, PlatformLog::getParam4, pageWrap.getModel().getParam4()) |
| | | ; |
| | | for(PageWrap.SortData sortData: pageWrap.getSorts()) { |
| | | if (sortData.getDirection().equalsIgnoreCase(PageWrap.DESC)) { |
| | |
| | | /** |
| | | * æå°_å«å·æéä¿¡æ¯è¡¨Serviceå®ç° |
| | | * @author æ±è¹è¹ |
| | | * @since 2024/04/28 16:06 |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | @Service |
| | | public class PlatformQueueServiceImpl implements PlatformQueueService { |
| | |
| | | .eq(pageWrap.getModel().getIsdeleted() != null, PlatformQueue::getIsdeleted, pageWrap.getModel().getIsdeleted()) |
| | | .eq(pageWrap.getModel().getRemark() != null, PlatformQueue::getRemark, pageWrap.getModel().getRemark()) |
| | | .eq(pageWrap.getModel().getJobId() != null, PlatformQueue::getJobId, pageWrap.getModel().getJobId()) |
| | | .eq(pageWrap.getModel().getTitle() != null, PlatformQueue::getTitle, pageWrap.getModel().getTitle()) |
| | | .eq(pageWrap.getModel().getContent() != null, PlatformQueue::getContent, pageWrap.getModel().getContent()) |
| | | .eq(pageWrap.getModel().getStatus() != null, PlatformQueue::getStatus, pageWrap.getModel().getStatus()) |
| | | .eq(pageWrap.getModel().getObjType() != null, PlatformQueue::getObjType, pageWrap.getModel().getObjType()) |
| | |
| | | /** |
| | | * æå°ä¿¡æ¯è¡¨Serviceå®ç° |
| | | * @author æ±è¹è¹ |
| | | * @since 2024/04/28 16:06 |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | @Service |
| | | public class PlatformServiceImpl implements PlatformService { |
| | |
| | | .eq(pageWrap.getModel().getGroupId() != null, Platform::getGroupId, pageWrap.getModel().getGroupId()) |
| | | .eq(pageWrap.getModel().getStartTime() != null, Platform::getStartTime, pageWrap.getModel().getStartTime()) |
| | | .eq(pageWrap.getModel().getEndTime() != null, Platform::getEndTime, pageWrap.getModel().getEndTime()) |
| | | .eq(pageWrap.getModel().getDeviceIds() != null, Platform::getDeviceIds, pageWrap.getModel().getDeviceIds()) |
| | | .eq(pageWrap.getModel().getScreenIds() != null, Platform::getScreenIds, pageWrap.getModel().getScreenIds()) |
| | | .eq(pageWrap.getModel().getWorkingNum() != null, Platform::getWorkingNum, pageWrap.getModel().getWorkingNum()) |
| | | .eq(pageWrap.getModel().getWariCallTime() != null, Platform::getWariCallTime, pageWrap.getModel().getWariCallTime()) |
| | | .eq(pageWrap.getModel().getAlermTime() != null, Platform::getAlermTime, pageWrap.getModel().getAlermTime()) |
| | |
| | | .le(pageWrap.getModel().getLastEventTime() != null, Platform::getLastEventTime, Utils.Date.getEnd(pageWrap.getModel().getLastEventTime())) |
| | | .eq(pageWrap.getModel().getDeviceNames() != null, Platform::getDeviceNames, pageWrap.getModel().getDeviceNames()) |
| | | .eq(pageWrap.getModel().getScreenName() != null, Platform::getScreenName, pageWrap.getModel().getScreenName()) |
| | | .eq(pageWrap.getModel().getHkId() != null, Platform::getHkId, pageWrap.getModel().getHkId()) |
| | | .eq(pageWrap.getModel().getCompanys() != null, Platform::getCompanys, pageWrap.getModel().getCompanys()) |
| | | .eq(pageWrap.getModel().getXpos() != null, Platform::getXpos, pageWrap.getModel().getXpos()) |
| | | .eq(pageWrap.getModel().getYpos() != null, Platform::getYpos, pageWrap.getModel().getYpos()) |
| | | .eq(pageWrap.getModel().getWidth() != null, Platform::getWidth, pageWrap.getModel().getWidth()) |
| | | .eq(pageWrap.getModel().getHeight() != null, Platform::getHeight, pageWrap.getModel().getHeight()) |
| | | .eq(pageWrap.getModel().getAngle() != null, Platform::getAngle, pageWrap.getModel().getAngle()) |
| | | ; |
| | | for(PageWrap.SortData sortData: pageWrap.getSorts()) { |
| | | if (sortData.getDirection().equalsIgnoreCase(PageWrap.DESC)) { |
| | |
| | | /** |
| | | * æå°_æ¾ç¤ºé
置信æ¯è¡¨Serviceå®ç° |
| | | * @author æ±è¹è¹ |
| | | * @since 2024/04/28 16:06 |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | @Service |
| | | public class PlatformShowParamServiceImpl implements PlatformShowParamService { |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.service.business.impl; |
| | | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.PlatformWmsDetailMapper; |
| | | import com.doumee.dao.business.model.PlatformWmsDetail; |
| | | import com.doumee.service.business.PlatformWmsDetailService; |
| | | 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.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æå°_WMSä½ä¸éç¥åæç»Serviceå®ç° |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | @Service |
| | | public class PlatformWmsDetailServiceImpl implements PlatformWmsDetailService { |
| | | |
| | | @Autowired |
| | | private PlatformWmsDetailMapper platformWmsDetailMapper; |
| | | |
| | | @Override |
| | | public Integer create(PlatformWmsDetail platformWmsDetail) { |
| | | platformWmsDetailMapper.insert(platformWmsDetail); |
| | | return platformWmsDetail.getId(); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteById(Integer id) { |
| | | platformWmsDetailMapper.deleteById(id); |
| | | } |
| | | |
| | | @Override |
| | | public void delete(PlatformWmsDetail platformWmsDetail) { |
| | | UpdateWrapper<PlatformWmsDetail> deleteWrapper = new UpdateWrapper<>(platformWmsDetail); |
| | | platformWmsDetailMapper.delete(deleteWrapper); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteByIdInBatch(List<Integer> ids) { |
| | | if (CollectionUtils.isEmpty(ids)) { |
| | | return; |
| | | } |
| | | platformWmsDetailMapper.deleteBatchIds(ids); |
| | | } |
| | | |
| | | @Override |
| | | public void updateById(PlatformWmsDetail platformWmsDetail) { |
| | | platformWmsDetailMapper.updateById(platformWmsDetail); |
| | | } |
| | | |
| | | @Override |
| | | public void updateByIdInBatch(List<PlatformWmsDetail> platformWmsDetails) { |
| | | if (CollectionUtils.isEmpty(platformWmsDetails)) { |
| | | return; |
| | | } |
| | | for (PlatformWmsDetail platformWmsDetail: platformWmsDetails) { |
| | | this.updateById(platformWmsDetail); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public PlatformWmsDetail findById(Integer id) { |
| | | return platformWmsDetailMapper.selectById(id); |
| | | } |
| | | |
| | | @Override |
| | | public PlatformWmsDetail findOne(PlatformWmsDetail platformWmsDetail) { |
| | | QueryWrapper<PlatformWmsDetail> wrapper = new QueryWrapper<>(platformWmsDetail); |
| | | return platformWmsDetailMapper.selectOne(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public List<PlatformWmsDetail> findList(PlatformWmsDetail platformWmsDetail) { |
| | | QueryWrapper<PlatformWmsDetail> wrapper = new QueryWrapper<>(platformWmsDetail); |
| | | return platformWmsDetailMapper.selectList(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public PageData<PlatformWmsDetail> findPage(PageWrap<PlatformWmsDetail> pageWrap) { |
| | | IPage<PlatformWmsDetail> page = new Page<>(pageWrap.getPage(), pageWrap.getCapacity()); |
| | | QueryWrapper<PlatformWmsDetail> queryWrapper = new QueryWrapper<>(); |
| | | Utils.MP.blankToNull(pageWrap.getModel()); |
| | | queryWrapper.lambda() |
| | | .eq(pageWrap.getModel().getId() != null, PlatformWmsDetail::getId, pageWrap.getModel().getId()) |
| | | .eq(pageWrap.getModel().getCreator() != null, PlatformWmsDetail::getCreator, pageWrap.getModel().getCreator()) |
| | | .ge(pageWrap.getModel().getCreateDate() != null, PlatformWmsDetail::getCreateDate, Utils.Date.getStart(pageWrap.getModel().getCreateDate())) |
| | | .le(pageWrap.getModel().getCreateDate() != null, PlatformWmsDetail::getCreateDate, Utils.Date.getEnd(pageWrap.getModel().getCreateDate())) |
| | | .eq(pageWrap.getModel().getEditor() != null, PlatformWmsDetail::getEditor, pageWrap.getModel().getEditor()) |
| | | .ge(pageWrap.getModel().getEditDate() != null, PlatformWmsDetail::getEditDate, Utils.Date.getStart(pageWrap.getModel().getEditDate())) |
| | | .le(pageWrap.getModel().getEditDate() != null, PlatformWmsDetail::getEditDate, Utils.Date.getEnd(pageWrap.getModel().getEditDate())) |
| | | .eq(pageWrap.getModel().getIsdeleted() != null, PlatformWmsDetail::getIsdeleted, pageWrap.getModel().getIsdeleted()) |
| | | .eq(pageWrap.getModel().getRemark() != null, PlatformWmsDetail::getRemark, pageWrap.getModel().getRemark()) |
| | | .eq(pageWrap.getModel().getJobId() != null, PlatformWmsDetail::getJobId, pageWrap.getModel().getJobId()) |
| | | .eq(pageWrap.getModel().getIocode() != null, PlatformWmsDetail::getIocode, pageWrap.getModel().getIocode()) |
| | | .eq(pageWrap.getModel().getMaterialName() != null, PlatformWmsDetail::getMaterialName, pageWrap.getModel().getMaterialName()) |
| | | .eq(pageWrap.getModel().getInRepertotyCode() != null, PlatformWmsDetail::getInRepertotyCode, pageWrap.getModel().getInRepertotyCode()) |
| | | .eq(pageWrap.getModel().getIoQty() != null, PlatformWmsDetail::getIoQty, pageWrap.getModel().getIoQty()) |
| | | .eq(pageWrap.getModel().getRate() != null, PlatformWmsDetail::getRate, pageWrap.getModel().getRate()) |
| | | ; |
| | | for(PageWrap.SortData sortData: pageWrap.getSorts()) { |
| | | if (sortData.getDirection().equalsIgnoreCase(PageWrap.DESC)) { |
| | | queryWrapper.orderByDesc(sortData.getProperty()); |
| | | } else { |
| | | queryWrapper.orderByAsc(sortData.getProperty()); |
| | | } |
| | | } |
| | | return PageData.from(platformWmsDetailMapper.selectPage(page, queryWrapper)); |
| | | } |
| | | |
| | | @Override |
| | | public long count(PlatformWmsDetail platformWmsDetail) { |
| | | QueryWrapper<PlatformWmsDetail> wrapper = new QueryWrapper<>(platformWmsDetail); |
| | | return platformWmsDetailMapper.selectCount(wrapper); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.service.business.impl; |
| | | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.PlatformWmsJobMapper; |
| | | import com.doumee.dao.business.model.PlatformWmsJob; |
| | | import com.doumee.service.business.PlatformWmsJobService; |
| | | 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.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æå°_WMSä½ä¸éç¥åè¡æ°æ®Serviceå®ç° |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/06/28 10:03 |
| | | */ |
| | | @Service |
| | | public class PlatformWmsJobServiceImpl implements PlatformWmsJobService { |
| | | |
| | | @Autowired |
| | | private PlatformWmsJobMapper platformWmsJobMapper; |
| | | |
| | | @Override |
| | | public Integer create(PlatformWmsJob platformWmsJob) { |
| | | platformWmsJobMapper.insert(platformWmsJob); |
| | | return platformWmsJob.getId(); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteById(Integer id) { |
| | | platformWmsJobMapper.deleteById(id); |
| | | } |
| | | |
| | | @Override |
| | | public void delete(PlatformWmsJob platformWmsJob) { |
| | | UpdateWrapper<PlatformWmsJob> deleteWrapper = new UpdateWrapper<>(platformWmsJob); |
| | | platformWmsJobMapper.delete(deleteWrapper); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteByIdInBatch(List<Integer> ids) { |
| | | if (CollectionUtils.isEmpty(ids)) { |
| | | return; |
| | | } |
| | | platformWmsJobMapper.deleteBatchIds(ids); |
| | | } |
| | | |
| | | @Override |
| | | public void updateById(PlatformWmsJob platformWmsJob) { |
| | | platformWmsJobMapper.updateById(platformWmsJob); |
| | | } |
| | | |
| | | @Override |
| | | public void updateByIdInBatch(List<PlatformWmsJob> platformWmsJobs) { |
| | | if (CollectionUtils.isEmpty(platformWmsJobs)) { |
| | | return; |
| | | } |
| | | for (PlatformWmsJob platformWmsJob: platformWmsJobs) { |
| | | this.updateById(platformWmsJob); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public PlatformWmsJob findById(Integer id) { |
| | | return platformWmsJobMapper.selectById(id); |
| | | } |
| | | |
| | | @Override |
| | | public PlatformWmsJob findOne(PlatformWmsJob platformWmsJob) { |
| | | QueryWrapper<PlatformWmsJob> wrapper = new QueryWrapper<>(platformWmsJob); |
| | | return platformWmsJobMapper.selectOne(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public List<PlatformWmsJob> findList(PlatformWmsJob platformWmsJob) { |
| | | QueryWrapper<PlatformWmsJob> wrapper = new QueryWrapper<>(platformWmsJob); |
| | | return platformWmsJobMapper.selectList(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public PageData<PlatformWmsJob> findPage(PageWrap<PlatformWmsJob> pageWrap) { |
| | | IPage<PlatformWmsJob> page = new Page<>(pageWrap.getPage(), pageWrap.getCapacity()); |
| | | QueryWrapper<PlatformWmsJob> queryWrapper = new QueryWrapper<>(); |
| | | Utils.MP.blankToNull(pageWrap.getModel()); |
| | | queryWrapper.lambda() |
| | | .eq(pageWrap.getModel().getId() != null, PlatformWmsJob::getId, pageWrap.getModel().getId()) |
| | | .eq(pageWrap.getModel().getCreator() != null, PlatformWmsJob::getCreator, pageWrap.getModel().getCreator()) |
| | | .ge(pageWrap.getModel().getCreateDate() != null, PlatformWmsJob::getCreateDate, Utils.Date.getStart(pageWrap.getModel().getCreateDate())) |
| | | .le(pageWrap.getModel().getCreateDate() != null, PlatformWmsJob::getCreateDate, Utils.Date.getEnd(pageWrap.getModel().getCreateDate())) |
| | | .eq(pageWrap.getModel().getEditor() != null, PlatformWmsJob::getEditor, pageWrap.getModel().getEditor()) |
| | | .ge(pageWrap.getModel().getEditDate() != null, PlatformWmsJob::getEditDate, Utils.Date.getStart(pageWrap.getModel().getEditDate())) |
| | | .le(pageWrap.getModel().getEditDate() != null, PlatformWmsJob::getEditDate, Utils.Date.getEnd(pageWrap.getModel().getEditDate())) |
| | | .eq(pageWrap.getModel().getIsdeleted() != null, PlatformWmsJob::getIsdeleted, pageWrap.getModel().getIsdeleted()) |
| | | .eq(pageWrap.getModel().getRemark() != null, PlatformWmsJob::getRemark, pageWrap.getModel().getRemark()) |
| | | .eq(pageWrap.getModel().getJobId() != null, PlatformWmsJob::getJobId, pageWrap.getModel().getJobId()) |
| | | .eq(pageWrap.getModel().getIocode() != null, PlatformWmsJob::getIocode, pageWrap.getModel().getIocode()) |
| | | .eq(pageWrap.getModel().getType() != null, PlatformWmsJob::getType, pageWrap.getModel().getType()) |
| | | .eq(pageWrap.getModel().getDriverPhone() != null, PlatformWmsJob::getDriverPhone, pageWrap.getModel().getDriverPhone()) |
| | | .eq(pageWrap.getModel().getDriverName() != null, PlatformWmsJob::getDriverName, pageWrap.getModel().getDriverName()) |
| | | .eq(pageWrap.getModel().getCarrierName() != null, PlatformWmsJob::getCarrierName, pageWrap.getModel().getCarrierName()) |
| | | .eq(pageWrap.getModel().getCarryBillCode() != null, PlatformWmsJob::getCarryBillCode, pageWrap.getModel().getCarryBillCode()) |
| | | .ge(pageWrap.getModel().getIoCreatedate() != null, PlatformWmsJob::getIoCreatedate, Utils.Date.getStart(pageWrap.getModel().getIoCreatedate())) |
| | | .le(pageWrap.getModel().getIoCreatedate() != null, PlatformWmsJob::getIoCreatedate, Utils.Date.getEnd(pageWrap.getModel().getIoCreatedate())) |
| | | .eq(pageWrap.getModel().getStatus() != null, PlatformWmsJob::getStatus, pageWrap.getModel().getStatus()) |
| | | .ge(pageWrap.getModel().getCancelDate() != null, PlatformWmsJob::getCancelDate, Utils.Date.getStart(pageWrap.getModel().getCancelDate())) |
| | | .le(pageWrap.getModel().getCancelDate() != null, PlatformWmsJob::getCancelDate, Utils.Date.getEnd(pageWrap.getModel().getCancelDate())) |
| | | .eq(pageWrap.getModel().getCancelInfo() != null, PlatformWmsJob::getCancelInfo, pageWrap.getModel().getCancelInfo()) |
| | | .eq(pageWrap.getModel().getPlateNumber() != null, PlatformWmsJob::getPlateNumber, pageWrap.getModel().getPlateNumber()) |
| | | .eq(pageWrap.getModel().getRepertotyAddress() != null, PlatformWmsJob::getRepertotyAddress, pageWrap.getModel().getRepertotyAddress()) |
| | | .eq(pageWrap.getModel().getContractNum() != null, PlatformWmsJob::getContractNum, pageWrap.getModel().getContractNum()) |
| | | ; |
| | | for(PageWrap.SortData sortData: pageWrap.getSorts()) { |
| | | if (sortData.getDirection().equalsIgnoreCase(PageWrap.DESC)) { |
| | | queryWrapper.orderByDesc(sortData.getProperty()); |
| | | } else { |
| | | queryWrapper.orderByAsc(sortData.getProperty()); |
| | | } |
| | | } |
| | | return PageData.from(platformWmsJobMapper.selectPage(page, queryWrapper)); |
| | | } |
| | | |
| | | @Override |
| | | public long count(PlatformWmsJob platformWmsJob) { |
| | | QueryWrapper<PlatformWmsJob> wrapper = new QueryWrapper<>(platformWmsJob); |
| | | return platformWmsJobMapper.selectCount(wrapper); |
| | | } |
| | | } |
| | |
| | | if(Objects.isNull(member)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"æªæ¥è¯¢å°å³å¡äººå"); |
| | | } |
| | | if(!member.getType().equals(Constants.memberType.lw_visitor)){ |
| | | if(!member.getType().equals(Constants.memberType.driver)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"éå³å¡äººåç±»åï¼çé¢å¤±è´¥"); |
| | | } |
| | | if(!member.getStatus().equals(Constants.ZERO)){ |
| | |
| | | if(newList == null || newList.size() ==0){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对ä¸èµ·ï¼å½å
¥æææ°æ®ä¸ºç©ºï¼"); |
| | | } |
| | | trainTimeMapper.insertBatchSomeColumn(newList); |
| | | trainTimeMapper.insert(newList); |
| | | return "导å
¥æå"; |
| | | }catch (BusinessException e){ |
| | | throw e; |
| | |
| | | update.setEditor(userInfo.getId()); |
| | | update.setEditDate(new Date()); |
| | | update.setIsdeleted(Constants.ONE); |
| | | update.setId(id); |
| | | visitReasonMapper.updateById(update); |
| | | |
| | | } |
| | |
| | | } |
| | | visits.setWithUserList(visitsList); |
| | | } |
| | | this.createFk(visits,true); |
| | | this.createFk(visits,true,Constants.ONE); |
| | | } |
| | | |
| | | @Transactional(propagation = Propagation.NOT_SUPPORTED) |
| | |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = {BusinessException.class,Exception.class}) |
| | | public Integer createFk(Visits visits,Boolean isERP) { |
| | | public Integer createFk(Visits visits,Boolean isERP,Integer source) { |
| | | isValidBaseParam(visits); |
| | | //æ£æ¥æ¯å¦å¿
é¡»çé¢ï¼å¹¶ä¸ç¬¦åçé¢è¦æ± |
| | | ProblemLog problemLog = isValidProblemLog(visits); |
| | | ProblemLog problemLog = isValidProblemLog(visits,source); |
| | | //è·åç³è¯·ç海康访é®é¨ç¦ç»ä¿¡æ¯ |
| | | getHkDeviceRoles(visits,isERP); |
| | | //æ£éªæè®¿äººæ¯å¦åæ³ |
| | | Member visitMember = isValideVisitedUser(visits.getReceptMemberId()); |
| | | if(Constants.equalsInteger(Constants.ZERO, visits.getIdcardType())&&visits.getIdcardNo().length()!=18 |
| | | // &&!IdcardUtil.isValidCard(visits.getIdcardNo()) |
| | | ){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "对ä¸èµ·ï¼èº«ä»½è¯å·ç æè¯¯ï¼è¯·æ ¸å®åéè¯ï¼"); |
| | | } |
| | |
| | | visits.setCreateDate(date); |
| | | //éè¡äººåæ°é |
| | | visits.setMemberNum(Constants.ZERO); |
| | | //访客信æ¯(使ç¨èº«ä»½è¯å·æ¥è¯¢æ¯å¦å·²å卿¹æ®éè®¿å®¢ï¼æ²¡æåæ°å¢ï¼åå¨åæ´æ°openidçä¿¡æ¯),å
æ¬éè®¿äººåæ ¡éªåå¤ç |
| | | //访客信æ¯(使ç¨èº«ä»½è¯å·æ¥è¯¢æ¯å¦å·²åå¨è¯¥æ®éè®¿å®¢ï¼æ²¡æåæ°å¢ï¼åå¨åæ´æ°openidçä¿¡æ¯),å
æ¬éè®¿äººåæ ¡éªåå¤ç |
| | | Member member = dealMemberAndVisits(visits); |
| | | visits.setMemberId(member.getId()); |
| | | visits.setVisitType(Integer.valueOf(systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.MDJ_VISIT_REQUIRED).getCode())); |
| | |
| | | approve.setObjId(visitId); |
| | | approveList.add(approve); |
| | | } |
| | | approveMapper.insertBatchSomeColumn(approveList); |
| | | approveMapper.insert(approveList); |
| | | } |
| | | } |
| | | |
| | |
| | | approve.setObjId(visitId); |
| | | approveList.add(approve); |
| | | } |
| | | approveMapper.insertBatchSomeColumn(approveList); |
| | | approveMapper.insert(approveList); |
| | | } |
| | | } |
| | | |
| | |
| | | }else if(visits.getType().equals(Constants.ONE) && StringUtils.isBlank(visits.getConstructionReason())){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "对ä¸èµ·ï¼æªå¡«åæ½å·¥äºç±ï¼"); |
| | | } |
| | | if(visits.getEndtime().getTime() < System.currentTimeMillis()){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "对ä¸èµ·ï¼å
¥åæ¶é´å¿
须大äºå½åæ¶é´ï¼");// |
| | | } |
| | | if(visits.getEndtime().getTime() <= visits.getStarttime().getTime()){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "对ä¸èµ·ï¼ç¦»åæ¶é´å¿
须大äºå
¥åæ¶é´ï¼");// |
| | | } |
| | | if(visits.getEndtime().getTime() <= System.currentTimeMillis()){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "对ä¸èµ·ï¼å
¥åæ¶é´å¿
须大äºå½åæ¶é´ï¼");// |
| | | } |
| | | if(!DateUtil.getDateLong(visits.getEndtime()).equals(DateUtil.getDateLong(visits.getStarttime()))){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "对ä¸èµ·ï¼é¢çº¦æ¥æä¸å¯ä»¥è·¨å¤©ï¼"); |
| | | }; |
| | | |
| | | if(visits.getSourceType().equals(Constants.ZERO)){ |
| | | String code = systemDictDataBiz.queryByCode(Constants.VISIT_CONFIG,Constants.VALIDATE_VISIT).getCode(); |
| | | int codenum =0; |
| | |
| | | v.setSourceType(visits.getSourceType()); |
| | | } |
| | | //æ¹éæå
¥æ°æ® |
| | | visitsMapper.insertBatchSomeColumn(visits.getWithUserList()); |
| | | visitsMapper.insert(visits.getWithUserList()); |
| | | } |
| | | } |
| | | |
| | |
| | | }else{ |
| | | if(!Constants.equalsInteger(Constants.ZERO,member.getStatus() )){ |
| | | //å¦æç¨æ·ç¶æå¼å¸¸ï¼åæç¤º |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(), "对ä¸èµ·ï¼èº«ä»½è¯å·ã"+cardno+"ãè¢«ç¦æ¢è®¿é®ç³è¯·ï¼å¦æçé®ï¼è¯·èç³»æ¨çæè®¿äººè¿è¡æ ¸å®"); |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(), "对ä¸èµ·ï¼ã"+member.getName()+"ã身份è¯å·ã"+cardno+"ãå¨é»ååå
ï¼æ æ³ç³è¯·è¿å
¥ååº"); |
| | | } |
| | | //æ ¸æ¥é¢çº¦ç¨æ·æ¯å¦å卿ªç¾ç¦»çé¢çº¦è®°å½ |
| | | // isExsitNoOutVisisRecord(member); |
| | | |
| | | member.setFaceImg(visits.getFaceImg()); |
| | | member.setImgurl(StringUtils.isNotBlank(visits.getImgurl())?visits.getImgurl():null); |
| | | member.setEditDate(visits.getCreateDate()); |
| | |
| | | return member; |
| | | } |
| | | |
| | | private ProblemLog isValidProblemLog(Visits visits) { |
| | | /** |
| | | * æ¯å¦éè¦çé¢ |
| | | * @param visits |
| | | * @param source |
| | | * @return |
| | | */ |
| | | private ProblemLog isValidProblemLog(Visits visits,Integer source) { |
| | | if(!Constants.equalsInteger(source,Constants.ZERO)){ |
| | | return null; |
| | | } |
| | | String required = systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.PROBLEM_VISIT_REQUIRED).getCode(); |
| | | if(StringUtils.equals(required,Constants.ONE+"")&&visits.getSourceType()==Constants.ZERO&&!visits.getType().equals(Constants.TWO)){ |
| | | //妿å¿
é¡»çé¢ï¼æ¥æ¾çé¢è®°å½ |
| | |
| | | queryWrapper.leftJoin(Company.class,Company::getId,Member::getCompanyId); |
| | | |
| | | queryWrapper.eq(Visits::getIsdeleted,Constants.ZERO); |
| | | queryWrapper.eq(Objects.nonNull(pageWrap.getModel().getType()),Visits::getType,pageWrap.getModel().getType()); |
| | | queryWrapper.eq(Objects.nonNull(pageWrap.getModel().getType())&&Constants.equalsInteger(pageWrap.getModel().getType(),Constants.TWO),Visits::getType,pageWrap.getModel().getType()); |
| | | queryWrapper.ne(Objects.nonNull(pageWrap.getModel().getType())&&!Constants.equalsInteger(pageWrap.getModel().getType(),Constants.TWO),Visits::getType,Constants.TWO); |
| | | queryWrapper.eq(StringUtils.isNotBlank(pageWrap.getModel().getOpenid()),Visits::getOpenid,pageWrap.getModel().getOpenid()); |
| | | queryWrapper.like(StringUtils.isNotBlank(pageWrap.getModel().getCarNos()),Visits::getCarNos,pageWrap.getModel().getCarNos()); |
| | | // queryWrapper.eq(StringUtils.isBlank(pageWrap.getModel().getOpenid()),"1","2"); |
| | | queryWrapper.and(StringUtils.isNotBlank(pageWrap.getModel().getName()),ms->ms.like(Visits::getName,pageWrap.getModel().getName()) |
| | | .or().like(Visits::getPhone,pageWrap.getModel().getName())) |
| | |
| | | .eq(Objects.nonNull(pageWrap.getModel().getStatus()),Visits::getStatus,pageWrap.getModel().getStatus()); |
| | | queryWrapper.isNull(Visits::getParentId); |
| | | queryWrapper.eq(Objects.nonNull(pageWrap.getModel().getMemberId()),Visits::getMemberId,pageWrap.getModel().getMemberId()); |
| | | queryWrapper.eq(Objects.nonNull(pageWrap.getModel().getReceptMemberId()),Visits::getReceptMemberId,pageWrap.getModel().getReceptMemberId()); |
| | | queryWrapper.orderByDesc(Visits::getCreateDate); |
| | | IPage<Visits> result = visitsJoinMapper.selectJoinPage(page, Visits.class,queryWrapper); |
| | | |
| | |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"æªæ¥è¯¢å°è¢«è®¿å工信æ¯"); |
| | | } |
| | | VisitDetailVO visitDetailVO = new VisitDetailVO(); |
| | | visitDetailVO.setCreateTime(visits.getCreateDate()); |
| | | visitDetailVO.setStatus(visits.getStatus()); |
| | | visitDetailVO.setCarNos(visits.getCarNos()); |
| | | visitDetailVO.setPhone(visits.getPhone()); |
| | | visitDetailVO.setVisitUserName(member.getName()); |
| | | visitDetailVO.setVisitReason(visits.getReason()); |
| | | visitDetailVO.setQrcode(visits.getQrcode()); |
| | | visitDetailVO.setIdcardType(visits.getIdcardType()); |
| | | visitDetailVO.setVisitTime(DateUtil.DateToStr(visits.getStarttime(),"yyyy-MM-dd HH:mm") + " è³ " + DateUtil.DateToStr(visits.getEndtime(),"yyyy-MM-dd HH:mm") ); |
| | | //被访人åé¨é¨ |
| | | Company company = companyMapper.selectById(member.getCompanyId()); |
| | |
| | | visitDetailVO.setConstructionReason(visits.getConstructionReason()); |
| | | visitDetailVO.setImgUrl(visits.getImgurl()); |
| | | visitDetailVO.setIdCardDecode(visits.getIdcardDecode()); |
| | | visitDetailVO.setFaceImg(visits.getFaceImg()); |
| | | visitDetailVO.setPrefix(systemDictDataBiz.queryByCode(Constants.FTP,Constants.FTP_RESOURCE_PATH).getCode() + |
| | | systemDictDataBiz.queryByCode(Constants.FTP,Constants.MEMBER_IMG).getCode()); |
| | | if(StringUtils.isNotBlank(visits.getDoors())){ |
| | |
| | | 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.api.R; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.config.DataSyncConfig; |
| | | import com.doumee.config.Jwt.JwtPayLoad; |
| | | import com.doumee.config.Jwt.JwtTokenUtil; |
| | | import com.doumee.core.constants.ResponseStatus; |
| | | import com.doumee.core.erp.ErpConstants; |
| | | import com.doumee.core.erp.ErpTool; |
| | |
| | | List<Company> allList = companyMapper.selectList(new QueryWrapper<Company>().lambda().eq(Company::getType,Constants.ONE)); |
| | | dealCompanyChangeList(list,addList,updateList,delIds,allList); |
| | | if(addList.size()>0){ |
| | | companyMapper.insertBatchSomeColumn(addList); |
| | | companyMapper.insert(addList); |
| | | } |
| | | if(updateList.size()>0){ |
| | | for(Company c : updateList){ |
| | |
| | | .eq(Member::getType, Constants.memberType.internal)); |
| | | dealUserChangeList(list,addList,updateList,delList,allList,param); |
| | | if(addList.size()>0){ |
| | | memberMapper.insertBatchSomeColumn(addList); |
| | | memberMapper.insert(addList); |
| | | /* for (Member member:addList) { |
| | | dealRoleEmpower(member ); |
| | | }*/ |
| | |
| | | return false; |
| | | } |
| | | |
| | | @Override |
| | | public AccessTokenResponse createERPToken(String accessKey, String accessSecret){ |
| | | AccessTokenResponse result = new AccessTokenResponse(); |
| | | try{ |
| | | String erpAccessKey = systemDictDataBiz.queryByCode(Constants.ERP_CONFIG,Constants.ERP_ACCESS_KEY).getCode(); |
| | | String erpAccessSecret = systemDictDataBiz.queryByCode(Constants.ERP_CONFIG,Constants.ERP_ACCESS_SECRET).getCode(); |
| | | if(!(accessKey.equals(erpAccessKey)&&erpAccessSecret.equals(accessSecret))){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"ç§é¥å¹é
失败"); |
| | | } |
| | | JwtPayLoad payLoad = new JwtPayLoad(erpAccessKey+"-"+erpAccessSecret); |
| | | String token = JwtTokenUtil.generateToken(payLoad); |
| | | RedisUtil.addObject(redisTemplate,Constants.RedisKeys.ERP_TOKEN,token,Constants.RedisKeys.EXPIRE_TIME); |
| | | result.setToken(token); |
| | | result.setExpireTime(Constants.RedisKeys.EXPIRE_TIME); |
| | | return result; |
| | | }catch (BusinessException e){ |
| | | throw e; |
| | | }finally { |
| | | Map<String,String> param = new HashMap<>(); |
| | | param.put("accessKey",accessKey); |
| | | param.put("accessSecret",accessSecret); |
| | | saveInterfaceLog(param,"/visitBiz/accesstoken",JSONObject.toJSONString(result),Constants.ZERO); |
| | | } |
| | | |
| | | } |
| | | // @Override |
| | | // public AccessTokenResponse createERPToken(String accessKey, String accessSecret){ |
| | | // AccessTokenResponse result = new AccessTokenResponse(); |
| | | // try{ |
| | | // String erpAccessKey = systemDictDataBiz.queryByCode(Constants.ERP_CONFIG,Constants.ERP_ACCESS_KEY).getCode(); |
| | | // String erpAccessSecret = systemDictDataBiz.queryByCode(Constants.ERP_CONFIG,Constants.ERP_ACCESS_SECRET).getCode(); |
| | | // if(!(accessKey.equals(erpAccessKey)&&erpAccessSecret.equals(accessSecret))){ |
| | | // throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"ç§é¥å¹é
失败"); |
| | | // |
| | | // String token = JwtTokenUtil.generateToken(payLoad); |
| | | // RedisUtil.addObject(redisTemplate,Constants.RedisKeys.ERP_TOKEN,token,Constants.RedisKeys.EXPIRE_TIME); |
| | | // result.setToken(token); |
| | | // result.setExpireTime(Constants.RedisKeys.EXPIRE_TIME); |
| | | // return result; |
| | | // }catch (BusinessException e){ |
| | | // throw e; |
| | | // }finally { |
| | | // Map<String,String> param = new HashMap<>(); |
| | | // param.put("accessKey",accessKey); |
| | | // param.put("accessSecret",accessSecret); |
| | | // saveInterfaceLog(param,"/visitBiz/accesstoken",JSONObject.toJSONString(result),Constants.ZERO); |
| | | // } |
| | | // |
| | | // } |
| | | |
| | | /** |
| | | * é¨ç¦ç»å
¨éæ¥å£ |
| | |
| | | } |
| | | } |
| | | if(memberCardList.size()>0){ |
| | | memberCardMapper.insertBatchSomeColumn(memberCardList); |
| | | memberCardMapper.insert(memberCardList); |
| | | } |
| | | } |
| | | } |
| | |
| | | parkBook.setRemark("å¾
忥å®é²å¹³å°"); |
| | | parkBookList.add(parkBook); |
| | | } |
| | | parkBookMapper.insertBatchSomeColumn(parkBookList); |
| | | parkBookMapper.insert(parkBookList); |
| | | }else{ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"对ä¸èµ·ï¼å车åºä¿¡æ¯ä¸åå¨ï¼ææå¤±è´¥"); |
| | | } |
| | |
| | | } |
| | | } |
| | | if(addList.size()>0){ |
| | | deviceMapper.insertBatchSomeColumn(addList); |
| | | deviceMapper.insert(addList); |
| | | } |
| | | if(editList.size()>0){ |
| | | for(Device d : editList){ |
| | |
| | | } |
| | | } |
| | | if(addList.size()>0){ |
| | | deviceMapper.insertBatchSomeColumn(addList); |
| | | deviceMapper.insert(addList); |
| | | } |
| | | if(editList.size()>0){ |
| | | for(Device d : editList){ |
| | |
| | | } |
| | | } |
| | | if(addList.size()>0){ |
| | | parksMapper.insertBatchSomeColumn(addList); |
| | | parksMapper.insert(addList); |
| | | } |
| | | if(editList.size()>0){ |
| | | for(Parks d : editList){ |
| | |
| | | |
| | | List<CarEvent> sublist = allHkList.subList(startIndex, endIndex); |
| | | if(sublist.size()>0){ |
| | | carEventMapper.insertBatchSomeColumn(sublist);//æå
¥æ°æ°æ® |
| | | carEventMapper.insert(sublist);//æå
¥æ°æ°æ® |
| | | } |
| | | startIndex = endIndex; |
| | | endIndex += sublistSize; |
| | |
| | | } |
| | | } |
| | | if(addList.size()>0){ |
| | | DeviceRoleMapper.insertBatchSomeColumn(addList); |
| | | DeviceRoleMapper.insert(addList); |
| | | } |
| | | if(editList.size()>0){ |
| | | for(DeviceRole d : editList){ |
| | |
| | | } |
| | | if(list.size()>0){ |
| | | //æå
¥é¨ç¦è®°å½ |
| | | deviceEventMapper.insertBatchSomeColumn(list); |
| | | deviceEventMapper.insert(list); |
| | | } |
| | | if(delRetentionLis.size()>0){ |
| | | //å
å é¤åæçå¨åºäººå(å
é¨äººåï¼ |
| | |
| | | } |
| | | if(retentionList.size()>0){ |
| | | //åæå
¥ææ°çå¨å人å |
| | | retentionMapper.insertBatchSomeColumn(retentionList); |
| | | retentionMapper.insert(retentionList); |
| | | } |
| | | log.error("ãæµ·åº·é¨ç¦äºä»¶æ¨éã========æå======="); |
| | | }catch (Exception e) { |
| | |
| | | } |
| | | if(list.size()>0){ |
| | | //æå
¥é¨ç¦è®°å½ |
| | | visitEventMapper.insertBatchSomeColumn(list); |
| | | visitEventMapper.insert(list); |
| | | } |
| | | if(delRetentionLis.size()>0){ |
| | | //å
å é¤åæçå¨åºäººå(æ®éè®¿å®¢ï¼ |
| | |
| | | } |
| | | if(retentionList.size()>0){ |
| | | //åæå
¥ææ°çå¨å人å |
| | | retentionMapper.insertBatchSomeColumn(retentionList); |
| | | retentionMapper.insert(retentionList); |
| | | } |
| | | log.error("ãæµ·åº·è®¿å®¢äºä»¶æ¨éã========æå======="); |
| | | }catch (Exception e){ |
| | |
| | | } |
| | | if(list.size()>0){ |
| | | //æå
¥é¨ç¦è®°å½ |
| | | carEventMapper.insertBatchSomeColumn(list); |
| | | carEventMapper.insert(list); |
| | | } |
| | | if(delRetentionList.size()>0){ |
| | | //å
å é¤åæçå¨åºäººå(å
é¨äººåï¼ |
| | |
| | | } |
| | | if(retentionList.size()>0){ |
| | | //åæå
¥ææ°çå¨å人å |
| | | retentionMapper.insertBatchSomeColumn(retentionList); |
| | | retentionMapper.insert(retentionList); |
| | | } |
| | | log.error("ãæµ·åº·å车åºäºä»¶æ¨éã========æå======="); |
| | | }catch (Exception e){ |
| | |
| | | .eq(Empower::getMemberId,member.getId()) |
| | | .eq(Empower::getIsdeleted,Constants.ZERO) |
| | | .in(Empower::getDeviceId,deviceIds) ); |
| | | empowerMapper.insertBatchSomeColumn(list); |
| | | empowerMapper.insert(list); |
| | | } |
| | | } |
| | | } |
| | |
| | | .eq(Empower::getMemberId,member.getId()) |
| | | .eq(Empower::getIsdeleted,Constants.ZERO) |
| | | .in(Empower::getDeviceId,deviceIds) ); |
| | | empowerMapper.insertBatchSomeColumn(list); |
| | | empowerMapper.insert(list); |
| | | } |
| | | } |
| | | |
| | |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"æªåæ¥å°ä»»ä½ç»ç»ä¿¡æ¯ï¼"); |
| | | } |
| | | companyMapper.delete(new UpdateWrapper<>());//æ¸
ç©ºåææ°æ® |
| | | companyMapper.insertBatchSomeColumn(allHkList);//æå
¥æ°æ°æ® |
| | | companyMapper.insert(allHkList);//æå
¥æ°æ°æ® |
| | | }catch (BusinessException e){ |
| | | throw e; |
| | | }catch (Exception e){ |
| | |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"æªåæ¥å°ä»»ä½ç»ç»ä¿¡æ¯ï¼"); |
| | | } |
| | | memberMapper.delete(new UpdateWrapper<>());//æ¸
ç©ºåææ°æ® |
| | | memberMapper.insertBatchSomeColumn(allHkList);//æå
¥æ°æ°æ® |
| | | memberMapper.insert(allHkList);//æå
¥æ°æ°æ® |
| | | }catch (BusinessException e){ |
| | | throw e; |
| | | }catch (Exception e){ |
| | |
| | | } |
| | | //æ¸
空åæçæ°æ® |
| | | carsMapper.delete(new UpdateWrapper<>()); |
| | | carsMapper.insertBatchSomeColumn(allHkList);//æå
¥æ°æ°æ® |
| | | carsMapper.insert(allHkList);//æå
¥æ°æ°æ® |
| | | }catch (BusinessException e){ |
| | | throw e; |
| | | } |
| | |
| | | .ge(Visits::getStarttime,start) |
| | | .eq(Visits::getType,Constants.ONE) |
| | | .le(Visits::getStarttime,end)); |
| | | visitsMapper.insertBatchSomeColumn(allHkList);//æå
¥æ°æ°æ® |
| | | visitsMapper.insert(allHkList);//æå
¥æ°æ°æ® |
| | | }catch (BusinessException e){ |
| | | throw e; |
| | | } |
| | |
| | | package com.doumee.api.web; |
| | | |
| | | import com.doumee.config.Jwt.JwtTokenUtil; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.context.request.RequestContextHolder; |
| | | import org.springframework.web.context.request.ServletRequestAttributes; |
| | |
| | | return request; |
| | | } |
| | | |
| | | protected String getToken() { |
| | | Object obj = this.getRequest().getAttribute(JwtTokenUtil.HEADER_KEY); |
| | | return obj != null ? obj.toString() : null; |
| | | } |
| | | // protected String getToken() { |
| | | // Object obj = this.getRequest().getAttribute(JwtTokenUtil.HEADER_KEY); |
| | | // return obj != null ? obj.toString() : null; |
| | | // } |
| | | |
| | | |
| | | } |
| | |
| | | @RestController |
| | | @RequestMapping("/visitbiz") |
| | | @Slf4j |
| | | public class BizResourceController extends ApiController { |
| | | public class BizResourceController{ |
| | | |
| | | @Autowired |
| | | private ERPSyncService erpSyncService; |
| | |
| | | private VisitsService visitsService; |
| | | |
| | | |
| | | @ApiOperation(value = "è°ç¨åæ®è·åæ¥å£", notes = "访客端æä¾ï¼ä¾ERP端è°ç¨ï¼åERPæä¾ç»æ¥å£è°ç¨åè¯") |
| | | /* @ApiOperation(value = "è°ç¨åæ®è·åæ¥å£", notes = "访客端æä¾ï¼ä¾ERP端è°ç¨ï¼åERPæä¾ç»æ¥å£è°ç¨åè¯") |
| | | @GetMapping("/accesstoken") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", dataType = "String", name = "accessKey", value = "访é®keyï¼ç±è®¿å®¢ç«¯æä¾", required = true), |
| | |
| | | public ApiResponse<AccessTokenResponse> accesstoken(@RequestParam String accessKey, @RequestParam String accessSecret) { |
| | | ApiResponse response = ApiResponse.success(null); |
| | | try { |
| | | response.setData(erpSyncService.createERPToken(accessKey,accessSecret)); |
| | | // response.setData(erpSyncService.createERPToken(accessKey,accessSecret)); |
| | | }catch (BusinessException e){ |
| | | response = ApiResponse.failed(e.getCode(), e.getMessage()); |
| | | }catch (Exception e){ |
| | |
| | | map.put("FTPèµæºè®¿é®æ å°å°å", |
| | | systemDictDataBiz.queryByCode(Constants.FTP,Constants.FTP_RESOURCE_PATH).getCode()); |
| | | return ApiResponse.success(map); |
| | | } |
| | | }*/ |
| | | |
| | | |
| | | |
| | |
| | | @RestController |
| | | @RequestMapping("/erp/resource") |
| | | @Slf4j |
| | | public class ErpResourceController extends ApiController { |
| | | public class ErpResourceController{ |
| | | @ApiOperation(value = "å
¨éç»ç»ä¿¡æ¯æ¥å£", notes = "ERP端æä¾ï¼ä¾è®¿å®¢ç«¯æåå
¨é¨ç»ç»ä¿¡æ¯ï¼ç¨äºåå§ååå¨ææ§æ°æ®æ ¸æ¥") |
| | | @PostMapping("/org/list") |
| | | public ERPApiResponse<PageData<ErpOrgListResponse>> orgList (@RequestBody PageWrap<OrgListRequest> pageWrap) { |