| | |
| | | |
| | | // é¡¶é¨å¯¼èª |
| | | export function getAppHeaderNav (data) { |
| | | return request.get('/visitsAdmin/cloudService/business/hksync/getHkMenuLink?type='+ data) |
| | | return request.post('/visitsAdmin/cloudService/business/hksync/getHkMenuLink/'+data+'?time='+Math.random()) |
| | | } |
| | | // 䏻使°æ® |
| | | export function getWorkbenchBody (data) { |
| | |
| | | export function getWorkbenchTaskHead (data) { |
| | | return request.post('/visitsAdmin/cloudService/business/staging/taskCenterHeadPC', data) |
| | | } |
| | | // åæ¥æµ·åº·ä»£åæ°æ® |
| | | export function syncHkNotice (data) { |
| | | return request.post('/visitsAdmin/cloudService/business/hksync/notice/getList', data) |
| | | } |
| | | // pcå·¥ä½å° |
| | | export function getWorkbenchData (data) { |
| | | return request.get('/visitsAdmin/cloudService/business/staging/pCWorkPlatformData', { |
| | | params: {...data } |
| | | }) |
| | | } |
| | | } |
| | |
| | | <div class="task"> |
| | | <div class="header df_sb"> |
| | | <div class="home_title df"> |
| | | <span @click="handleTest">å¾
åäºé¡¹</span> |
| | | <span @click="getNoticeList">å¾
åäºé¡¹</span> |
| | | <span class="num" v-if="taskTotal">{{ taskTotal }}</span> |
| | | </div> |
| | | <div class="df_ac more" @click="jumpPage('/task/index')"> |
| | |
| | | import { weeks } from '@/utils/config' |
| | | import { |
| | | getWorkbenchData, |
| | | getAppHeaderNav |
| | | getAppHeaderNav, syncHkNotice |
| | | } from '@/api' |
| | | import { level } from '@/api/business/visits' |
| | | import TaskDetail from '@/views/task/visSubDetail.vue' |
| | |
| | | OperaHiddenDangerWindow, |
| | | OperaVisitsDesWindow |
| | | }, |
| | | data() { |
| | | data () { |
| | | return { |
| | | colors, |
| | | nowDate: '', |
| | |
| | | isShowDetail: false, |
| | | isShowReport: false, |
| | | isShowDanger: false, |
| | | isShowDriver: false, |
| | | isShowDriver: false |
| | | } |
| | | }, |
| | | computed: { |
| | | userInfo() { |
| | | userInfo () { |
| | | return this.$store.state.userInfo |
| | | } |
| | | }, |
| | | created() { |
| | | created () { |
| | | this.updateDate() |
| | | setInterval(() => { |
| | | this.updateDate() |
| | | }, 1000 * 60 * 60) |
| | | |
| | | }, |
| | | mounted() { |
| | | mounted () { |
| | | this.initData() |
| | | }, |
| | | methods: { |
| | | handleTest() { |
| | | const myWindow = window.open('https://10.50.250.253/portal/ui/index?componentId=dfe&componentMenuId=process_apply') |
| | | setTimeout(() => { |
| | | const params = { |
| | | componentId: 'dfe', |
| | | componentMenuId: 'process_apply', |
| | | callback: { |
| | | method: 'dealTlncMsg', argument: { |
| | | "msgId": "98c256b9-aaff-11ef-8347-fa163ee2c57c", |
| | | "moduleId": "dfeFlowTodoModuleId", |
| | | "msgTitle": "è¯·åæ¶å¤ç13856591439åèµ·ç请åç³è¯·", |
| | | "msgStatus": "0", |
| | | "msgCreateTime": "ä»å¤© 15:33", |
| | | "msgCreateTimeIso": "2024-11-25T15:33:42.000+08:00", |
| | | "serverTime": 1732531014591, |
| | | "menuCode": "process_apply", |
| | | "msgStatusStr": "å¾
å¤ç", |
| | | "comId": "dfe", |
| | | "userId": "13856591439", |
| | | "extendNoShow": "{\"processInstanceId\":\"98a57fe0-aaff-11ef-8347-fa163ee2c57c\",\"processId\":\"process_dabcfdd39f1b6f46d36a9f4ff6ce1080\",\"param\":{\"sourceType\":\"todo\",\"modelCode\":\"tb_leave_dfe_for_dfe_runtime\",\"processNodeId\":\"UserTask_dde7d83377343a2d5fa1f60c23b023ef\",\"taskId\":\"98c256b9-aaff-11ef-8347-fa163ee2c57c\"},\"process.param.appId\":\"32ca8770-6f85-11ec-b5a3-991864da52a6\",\"appId\":\"32ca8770-6f85-11ec-b5a3-991864da52a6\",\"name\":\"请åç³è¯·\",\"taskId\":\"98c256b9-aaff-11ef-8347-fa163ee2c57c\",\"taskNodeId\":\"UserTask_dde7d83377343a2d5fa1f60c23b023ef\",\"url\":\"/dfe-form/process/tlnc/apply\"}", |
| | | "targetComId": "dfe", |
| | | "moduleName": "æµç¨å¾
å", |
| | | "tid": "99cad778-aaff-11ef-9dbf-ff08ba71965c", |
| | | "msgEndTime": null, |
| | | "msgEndTimeIso": "", |
| | | "picUrl": "", |
| | | "extendJson": "{\"key1\":\"è¯·åæ¶å¤çé鸿é£åèµ·ç请åç³è¯·\"}", |
| | | "extendParam": null, |
| | | "extendCascade": null, |
| | | "createUser": "13856591439", |
| | | "webCascadeUrl": null, |
| | | "h5CascadeUrl": null, |
| | | "cascadeTodoOpenType": null, |
| | | "cascadeSourceConfigId": null, |
| | | "h5Url": "/h5/pages/form-page/form-page?returnPath=-1&appId=32ca8770-6f85-11ec-b5a3-991864da52a6&taskId=98c256b9-aaff-11ef-8347-fa163ee2c57c&processNodeId=UserTask_dde7d83377343a2d5fa1f60c23b023ef&modelCode=tb_leave_dfe_for_dfe_runtime&type=flowHandle&component=form-apply&_sn=true", |
| | | "segmentId": "dfe-form", |
| | | "lastUsers": "é鸿é£", |
| | | "currentUsers": "é鸿é£", |
| | | "todoTypeCode": "dfe@@tlnc_placeholder_tlnc@@dfeFlowTodoModuleId", |
| | | "currentUserIds": "13856591439", |
| | | "lastUserIds": "13856591439", |
| | | "msgDesc": null, |
| | | "widgetUrl": null, |
| | | "detailType": null, |
| | | "widgetWidth": null, |
| | | "widgetHeight": null, |
| | | "userIdList": null, |
| | | "statusName": null, |
| | | "arriveTime": null, |
| | | "stayTime": null, |
| | | "todoType": null, |
| | | "cascadePort": null, |
| | | "openMode": null |
| | | } |
| | | }, |
| | | msgType: 'tlnc' |
| | | } |
| | | let argus = JSON.stringify(params) |
| | | myWindow.postMessage('{"method":"goToApp","argument":' + argus + '}', '*') |
| | | }, 3000) |
| | | getNoticeList(){ |
| | | syncHkNotice().then(res => { |
| | | |
| | | }) |
| | | }, |
| | | SubSuccess(str) { |
| | | handleTest (row) { |
| | | getAppHeaderNav(5).then(res => { |
| | | if (res == undefined || res == null) { |
| | | return |
| | | } |
| | | const myWindow = window.open(res) |
| | | setTimeout(() => { |
| | | const params = { |
| | | componentId: 'dfe', |
| | | componentMenuId: 'process_apply', |
| | | callback: { |
| | | method: 'dealTlncMsg', |
| | | argument: { |
| | | msgId: '98c256b9-aaff-11ef-8347-fa163ee2c57c', |
| | | moduleId: 'dfeFlowTodoModuleId', |
| | | msgTitle: 'è¯·åæ¶å¤ç13856591439åèµ·ç请åç³è¯·', |
| | | msgStatus: '0', |
| | | msgCreateTime: 'ä»å¤© 15:33', |
| | | msgCreateTimeIso: '2024-11-25T15:33:42.000+08:00', |
| | | serverTime: 1732531014591, |
| | | menuCode: 'process_apply', |
| | | msgStatusStr: 'å¾
å¤ç', |
| | | comId: 'dfe', |
| | | userId: '13856591439', |
| | | extendNoShow: '{"processInstanceId":"98a57fe0-aaff-11ef-8347-fa163ee2c57c","processId":"process_dabcfdd39f1b6f46d36a9f4ff6ce1080","param":{"sourceType":"todo","modelCode":"tb_leave_dfe_for_dfe_runtime","processNodeId":"UserTask_dde7d83377343a2d5fa1f60c23b023ef","taskId":"98c256b9-aaff-11ef-8347-fa163ee2c57c"},"process.param.appId":"32ca8770-6f85-11ec-b5a3-991864da52a6","appId":"32ca8770-6f85-11ec-b5a3-991864da52a6","name":"请åç³è¯·","taskId":"98c256b9-aaff-11ef-8347-fa163ee2c57c","taskNodeId":"UserTask_dde7d83377343a2d5fa1f60c23b023ef","url":"/dfe-form/process/tlnc/apply"}', |
| | | targetComId: 'dfe', |
| | | moduleName: 'æµç¨å¾
å', |
| | | tid: '99cad778-aaff-11ef-9dbf-ff08ba71965c', |
| | | msgEndTime: null, |
| | | msgEndTimeIso: '', |
| | | picUrl: '', |
| | | extendJson: '{"key1":"è¯·åæ¶å¤çé鸿é£åèµ·ç请åç³è¯·"}', |
| | | extendParam: null, |
| | | extendCascade: null, |
| | | createUser: '13856591439', |
| | | webCascadeUrl: null, |
| | | h5CascadeUrl: null, |
| | | cascadeTodoOpenType: null, |
| | | cascadeSourceConfigId: null, |
| | | h5Url: '/h5/pages/form-page/form-page?returnPath=-1&appId=32ca8770-6f85-11ec-b5a3-991864da52a6&taskId=98c256b9-aaff-11ef-8347-fa163ee2c57c&processNodeId=UserTask_dde7d83377343a2d5fa1f60c23b023ef&modelCode=tb_leave_dfe_for_dfe_runtime&type=flowHandle&component=form-apply&_sn=true', |
| | | segmentId: 'dfe-form', |
| | | lastUsers: 'é鸿é£', |
| | | currentUsers: 'é鸿é£', |
| | | todoTypeCode: 'dfe@@tlnc_placeholder_tlnc@@dfeFlowTodoModuleId', |
| | | currentUserIds: '13856591439', |
| | | lastUserIds: '13856591439', |
| | | msgDesc: null, |
| | | widgetUrl: null, |
| | | detailType: null, |
| | | widgetWidth: null, |
| | | widgetHeight: null, |
| | | userIdList: null, |
| | | statusName: null, |
| | | arriveTime: null, |
| | | stayTime: null, |
| | | todoType: null, |
| | | cascadePort: null, |
| | | openMode: null |
| | | } |
| | | }, |
| | | msgType: 'tlnc' |
| | | } |
| | | // const argus = JSON.stringify(params) |
| | | myWindow.postMessage('{"method":"goToApp","argument":' + row.param5 + '}', '*') |
| | | }, 3000) |
| | | }) |
| | | }, |
| | | SubSuccess (str) { |
| | | this[str] = false |
| | | this.getTaskList() |
| | | }, |
| | | funcClick(item) { |
| | | funcClick (item) { |
| | | if (item.name == 'èå¤å·¥ä½å°') { |
| | | getAppHeaderNav(4).then(res => { |
| | | window.open(res, "_blank") |
| | | return |
| | | window.open(res, '_blank') |
| | | }) |
| | | } |
| | | this.$router.push(item.path) |
| | | }, |
| | | updateDate() { |
| | | updateDate () { |
| | | this.nowDate = dayjs().format('YYYYå¹´MæDæ¥') |
| | | this.nowWeek = weeks[new Date().getDay()] |
| | | }, |
| | | initData() { |
| | | initData () { |
| | | this.getWorkHead() |
| | | this.getWorkBody() |
| | | this.getTaskList() |
| | | this.getWarningList() |
| | | }, |
| | | getWarningList() { |
| | | getWarningList () { |
| | | getWorkbenchData({ queryType: 4 }).then(res => { |
| | | this.warningList = res.timeOutVisitList || [] |
| | | this.warningTotal = res.timeOutVisitNum || 0 |
| | | }) |
| | | }, |
| | | getTaskList() { |
| | | getTaskList () { |
| | | getWorkbenchData({ queryType: 3 }).then(res => { |
| | | this.taskList = res.noticesList || [] |
| | | this.taskTotal = res.noticesNum || 0 |
| | | }) |
| | | }, |
| | | getWorkBody() { |
| | | getWorkBody () { |
| | | getWorkbenchData({ queryType: 2 }).then(res => { |
| | | this.staticData = res || {} |
| | | this.initEchart2() |
| | |
| | | this.initEchart4() |
| | | }) |
| | | }, |
| | | getWorkHead() { |
| | | getWorkHead () { |
| | | getWorkbenchData({ queryType: 1 }).then(res => { |
| | | this.headerData = res || {} |
| | | let arr = [] |
| | | const arr = [] |
| | | arr.push({ name: '访客', value: this.headerData.inParkVisitUserNum }) |
| | | arr.push({ name: 'å
é¨åå·¥', value: this.headerData.todayInParkUserNum - this.headerData.inParkLwUserNum - this.headerData.inParkVisitUserNum }) |
| | | arr.push({ name: 'é¿æç¸å
³æ¹', value: this.headerData.inParkLwUserNum }) |
| | |
| | | this.initEchart1() |
| | | }) |
| | | }, |
| | | jumpPage(page) { |
| | | jumpPage (page) { |
| | | this.$router.push(page) |
| | | }, |
| | | departure(id) { |
| | | departure (id) { |
| | | this.$confirm('ç¡®å®ç¦»åå, æ¯å¦ç»§ç»?', 'æç¤º', { |
| | | confirmButtonText: 'ç¡®å®', |
| | | cancelButtonText: 'åæ¶', |
| | |
| | | |
| | | }) |
| | | }, |
| | | handleDetail(row) { |
| | | handleDetail (row) { |
| | | if (row.type === 7) { |
| | | this.handleTest(row); |
| | | return |
| | | } |
| | | if (row.objType === 2) { |
| | | this.$refs.OperaDetailsWindow.open('å
¬å¡è½¦ç³è¯·è¯¦æ
', { ...row, id: row.objId }) |
| | | return |
| | |
| | | }) |
| | | } |
| | | }, |
| | | initEchart1() { |
| | | initEchart1 () { |
| | | const myChart = echarts.init(document.getElementById('echart1')) |
| | | let that = this |
| | | const that = this |
| | | |
| | | const option = { |
| | | tooltip: { |
| | |
| | | myChart.resize() |
| | | }) |
| | | }, |
| | | initEchart2() { |
| | | initEchart2 () { |
| | | const myChart = echarts.init(document.getElementById('echart2')) |
| | | let that = this |
| | | const that = this |
| | | myChart.setOption({ |
| | | grid: { |
| | | top: '4%', |
| | |
| | | { offset: 0, color: '#56abf8' }, |
| | | { offset: 1, color: '#407ff0' } |
| | | ] |
| | | ), |
| | | ) |
| | | // barBorderRadius: [0, 10, 10, 0] |
| | | } |
| | | } |
| | |
| | | myChart.resize() |
| | | }) |
| | | }, |
| | | initEchart3() { |
| | | initEchart3 () { |
| | | const myChart = echarts.init(document.getElementById('echart3')) |
| | | let that = this |
| | | const that = this |
| | | myChart.setOption({ |
| | | tooltip: { |
| | | trigger: 'axis', |
| | |
| | | myChart.resize() |
| | | }) |
| | | }, |
| | | initEchart4() { |
| | | initEchart4 () { |
| | | const myChart = echarts.init(document.getElementById('echart4')) |
| | | let that = this |
| | | const that = this |
| | | myChart.setOption({ |
| | | tooltip: { |
| | | trigger: 'axis', |
| | |
| | | public static final String MYSQL_BACKUP_DIR ="MYSQL_BACKUP_DIR" ; |
| | | public static final String EVENT_FILES_PRIVATE_DOMAIN ="EVENT_FILES_PRIVATE_DOMAIN" ; |
| | | public static final String EVENT_FILES_PUBLIC_DOMAIN ="EVENT_FILES_PUBLIC_DOMAIN" ; |
| | | public static final String WMS_TOTAL_STOCK_NUM ="WMS_TOTAL_STOCK_NUM" ; |
| | | public static boolean DEALING_HK_SYNCPRIVILEGE= false; |
| | | public static boolean DEALING_HK_SYNCDEVICE = false; |
| | | public static boolean DEALING_HK_SYNCPLATFORM = false; |
| | |
| | | public static boolean DEALING_HK_DEL_USER = false; |
| | | public static boolean DEALING_HK_VISIT = false; |
| | | public static boolean DEALING_HK_VISIT_EXPIRE = false; |
| | | public static boolean DEALING_HK_NOTICE_LIST = false; |
| | | public static boolean DEALING_FROM_HK_VISIT = false; |
| | | public static boolean DEALING_HK_EMPOWER = false; |
| | | public static boolean DEALING_HK_EMPOWER_DETAIL = false; |
| | |
| | | int logisticsCarUse = 4;//ç©æµè½¦å®¡æ¹ |
| | | int system = 5;//ç³»ç»æ¶æ¯ |
| | | int reason = 6;//å
¥ååå |
| | | int hknotice = 7;//海康èå¤ä»£å |
| | | } |
| | | |
| | | |
| | |
| | | @ExcelColumn(name="å
³è对象åç§°") |
| | | private String objName; |
| | | |
| | | @ApiModelProperty(value = "ç±»å 0è®¿å®¢å®¡æ¹ 1访客æ¥å¤ 2ç¨è½¦å®¡æ¹ 3鿣å¤ç 4ç©æµè½¦å®¡æ¹ 5ç³»ç»ç³»ç»") |
| | | @ExcelColumn(name="ç±»å 0è®¿å®¢å®¡æ¹ 1访客æ¥å¤ 2ç¨è½¦å®¡æ¹ 3鿣å¤ç 4ç©æµè½¦å®¡æ¹ 5ç³»ç»ç³»ç»") |
| | | @ApiModelProperty(value = "ç±»å 0è®¿å®¢å®¡æ¹ 1访客æ¥å¤ 2ç¨è½¦å®¡æ¹ 3鿣å¤ç 4ç©æµè½¦å®¡æ¹ 5ç³»ç»ç³»ç» 6å
¥ååå 7海康èå¤ä»£å") |
| | | @ExcelColumn(name="ç±»å 0è®¿å®¢å®¡æ¹ 1访客æ¥å¤ 2ç¨è½¦å®¡æ¹ 3鿣å¤ç 4ç©æµè½¦å®¡æ¹ 5ç³»ç»ç³»ç» 6å
¥ååå 7海康èå¤ä»£å") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty(value = "ç±»åæè¿°") |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.api; |
| | | |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.service.business.VisitsService; |
| | | import com.doumee.service.business.impl.hksync.HkSyncVisitServiceImpl; |
| | | import com.doumee.service.business.impl.hksync.fhk.HkSyncVisitFromHKServiceImpl; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2023/11/30 15:33 |
| | | */ |
| | | @Api(tags = "海康代å宿¶æåæ¥å£") |
| | | @RestController |
| | | @RequestMapping("/timer/hkNotice") |
| | | public class HkNoticeTimerController extends BaseController { |
| | | @Autowired |
| | | private HkSyncVisitServiceImpl hkSyncVisitService; |
| | | @Autowired |
| | | private HkSyncVisitFromHKServiceImpl hkSyncVisitFromHKService; |
| | | @Autowired |
| | | private VisitsService visitsService; |
| | | |
| | | @ApiOperation("å¼å¯å®æ¶æ¥è¯¢ææ°äººå代忰æ®ç¶æ") |
| | | @GetMapping("/getNoticeList") |
| | | public ApiResponse getNoticeList() { |
| | | hkSyncVisitService.syncVisitData(); |
| | | return ApiResponse.success("å¼å¯å®æ¶ä¸å访客é¢çº¦ç³è¯·æå"); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.data.redis.core.RedisTemplate; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import springfox.documentation.annotations.Cacheable; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | |
| | | private HkSyncPrivilegeServiceImpl hkSyncPrivilegeService; |
| | | @Autowired |
| | | private HkSyncPushServiceImpl hkSyncPushService; |
| | | @Autowired |
| | | private HkSyncNoticeServiceImpl hkSyncNoticeService; |
| | | @Autowired |
| | | private HkSyncLoginAuthServiceImpl hkSyncLoginAuthService; |
| | | |
| | |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "è·åå®é²å¹³å°ç³»ç»å
å¯èåè°æ´å°å" ) |
| | | @GetMapping("/getHkMenuLink") |
| | | @PostMapping("/getHkMenuLink/{type}") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "type",example = "0",value = "èåç±»å", required = true), |
| | | }) |
| | | public ApiResponse<String> getHkMenuLink(Integer type,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | public ApiResponse<String> getHkMenuLink(@PathVariable Integer type,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | LoginUserInfo loginUserInfo = this.getLoginUser(token); |
| | | String hkToken = DESUtil.generateTokenToHk(loginUserInfo.getUsername(),Integer.valueOf( |
| | | systemDictDataBiz.queryByCode(Constants.HK_PARAM,Constants.HK_TOKEN_VALIDITY).getCode() |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | @ApiOperation("ãæµ·åº·ãä»£åæ¶æ¯æ°æ®éå对æ¥å¤çæ¥å£") |
| | | @PostMapping("/notice/getList") |
| | | public ApiResponse getNoticeList( HttpServletResponse response,@RequestHeader(Constants.HEADER_USER_TOKEN) String token ){ |
| | | String result = hkSyncNoticeService.syncHkNotices(this.getLoginUser(token).getUsername()); |
| | | return ApiResponse.success(result); |
| | | } |
| | | |
| | | |
| | | |
| | |
| | | import com.doumee.dao.web.reqeust.JobDetailDTO; |
| | | import com.doumee.dao.web.reqeust.SignInDTO; |
| | | import com.doumee.service.business.PlatformJobService; |
| | | import com.doumee.service.business.third.WmsService; |
| | | import com.github.xiaoymin.knife4j.core.util.CollectionUtils; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | |
| | | @Autowired |
| | | private PlatformJobService platformJobService; |
| | | @Autowired |
| | | private WmsService wmsService; |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("æ°å»º") |
| | |
| | | platformJobService.deleteByIdInBatch(this.getIdList(ids)); |
| | | return ApiResponse.success(null); |
| | | } |
| | | @ApiOperation("æ¹éæ´æ°wmsååæ»è¿è¾é") |
| | | @GetMapping("/updateTotalNum") |
| | | @CloudRequiredPermission("business:platformjob:update") |
| | | public ApiResponse updateTotalNum(@RequestParam String ids,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | wmsService.computjobTotalNum(this.getIdList(ids)); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDä¿®æ¹") |
| | | @PostMapping("/updateById") |
| | |
| | | WmsBaseResponse result =null; |
| | | try { |
| | | result = wmsService.inboundNotice(param); |
| | | wmsService.computjobTotalNum(param.getJobIdList()); |
| | | }catch (BusinessException e){ |
| | | log.error("ãWMSãæ¨éå
¥åºåéç¥ä»»å¡===失败ï¼"+e.getMessage()); |
| | | success = Constants.ONE; |
| | |
| | | WmsBaseResponse result =null; |
| | | try { |
| | | result = wmsService.outboundNotice(param); |
| | | wmsService.computjobTotalNum(param.getJobIdList()); |
| | | }catch (BusinessException e){ |
| | | log.error("ãWMSãæ¨éåºåºåéç¥ä»»å¡===失败ï¼"+e.getMessage()); |
| | | success = Constants.ONE; |
| | |
| | | @LoginNoRequired |
| | | @ApiOperation("åºåæ
åµ") |
| | | @GetMapping("/stockList") |
| | | public ApiResponse<List<GeneralVO>> stockList() { |
| | | List<GeneralVO> list = new ArrayList<>(); |
| | | for (int i = 1; i < 10; i++) { |
| | | Random random = new Random(); |
| | | GeneralVO data = new GeneralVO(); |
| | | data.setName("åç§°"+i); |
| | | data.setNum(BigDecimal.valueOf(random.nextInt(1000))); |
| | | list.add(data); |
| | | } |
| | | public ApiResponse< BoardStockListVO > stockList() { |
| | | BoardStockListVO list = boardService.stockList(); |
| | | return ApiResponse.success(list); |
| | | } |
| | | |
| | |
| | | } |
| | | for (String str:dayList) { |
| | | TransportMeasureVO data = new TransportMeasureVO(); |
| | | data.setPlanDate(str); |
| | | data.setPlanDateStr(str); |
| | | data.setPlanTimes(random.nextInt(200)); |
| | | data.setPlanTaskNum(new BigDecimal(random.nextInt(1000))); |
| | | data.setFinishTaskNum(new BigDecimal(data.getPlanTaskNum().intValue())); |
| | |
| | | spring: |
| | | profiles: |
| | | active: pro |
| | | active: dev |
| | | application: |
| | | name: visitsAdmin |
| | | # å®å
¨é
ç½® |
| | |
| | | * 3ãè½ç®¡ä¸å¿ï¼ngzx |
| | | */ |
| | | public interface MenuPageId{ |
| | | String[] componentIds = new String[]{"Infovision iPark Platform","dfe"}; |
| | | String afzx = "afzx";//å®é²ä¸å¿ |
| | | String xkzx = "xkzx";//æ¶æ§ä¸å¿ |
| | | String ngzx = "ngzx";//è½ç®¡ä¸å¿ |
| | | String jsc = "jsc";//ç©ä¸åå¤ |
| | | String kqgzt = "attendance_workstand";//èå¤ç®¡ç |
| | | String kqdbcl = "process_apply";//èå¤ä»£åå¤ç |
| | | } |
| | | |
| | | /** |
| | |
| | | String[] iccmAppointmentRecords= new String[]{"/api/iccm/v2/appointment/records","iccmæ¥è¯¢å·²é¢çº¦ç»è®°"};//iccmæ¥è¯¢å·²é¢çº¦ç»è®° |
| | | String[] wxAccessToken= new String[]{"/api/wx/v1/oa/get/accessToken","æ ¹æ®å¾®ä¿¡å
¬ä¼å·ä¿¡æ¯è·åAccessToken"};//1.9.1æ ¹æ®å¾®ä¿¡å
¬ä¼å·ä¿¡æ¯è·åAccessToken |
| | | String[] getWxConfig= new String[]{"/api/wx/v1/oa/get/config","æ ¹æ®é
置微信å
¬ä¼å·ç¼å·æ¥è¯¢å¾®ä¿¡å
¬ä¼å·ä¿¡æ¯"};//æ ¹æ®é
置微信å
¬ä¼å·ç¼å·æ¥è¯¢å¾®ä¿¡å
¬ä¼å·ä¿¡æ¯ |
| | | String[] goMenuUrl= new String[]{"/xauthplus-plugin/thirdLogin?type=third&componentId=Infovision iPark Platform&componentMenuId=${menuId}&token=${token}","å·¥ä½å°èå跳转å°å"}; |
| | | String[] goMenuUrl= new String[]{"/xauthplus-plugin/thirdLogin?type=third&componentId=${componentId}&componentMenuId=${menuId}&token=${token}","å·¥ä½å°èå跳转å°å"}; |
| | | // String[] goNoticeMenuUrl= new String[]{"/xauthplus-plugin/thirdLogin?type=third&componentId=dfe&componentMenuId={menuId}&token=${token}","å·¥ä½å°èå¤ä»£åå¤ç跳转å°å"}; |
| | | String[] nhEventPageList= new String[]{"/api/ecm/warning/event/v1/pageList","å页è·ååè¦äºä»¶"};//å页è·ååè¦äºä»¶ |
| | | String[] nhRegionDataRanking= new String[]{"/api/ecm/v1/energy/regionDataRanking","æ ¹æ®æ¶é´ç»´åº¦è·ååºåç¨éæå"};//1.8.5æ ¹æ®æ¶é´ç»´åº¦è·ååºåç¨éæå |
| | | String[] nhEnergyDistribution= new String[]{"/api/ecm/v1/energy/energyDistribution","æ ¹æ®æ¶é´ç»´åº¦è·åè½èåå¸"};// æ ¹æ®æ¶é´ç»´åº¦è·åè½èåå¸ |
| | |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.applyST,body); |
| | | } |
| | | |
| | | public static String getMenuUrl(String menuId, String token) { |
| | | public static String getMenuUrl(String componentId,String menuId, String token) { |
| | | String url = HKConstants.InterfacePath.goMenuUrl[0]; |
| | | url = url.replace("${menuId}", menuId).replace("${token}",token); |
| | | url = url.replace("${componentId}",componentId).replace("${menuId}", menuId).replace("${token}",token); |
| | | return url; |
| | | } |
| | | } |
| | |
| | | public class GetTodoListRequest { |
| | | |
| | | private String comId;// Query String false ç»ä»¶id |
| | | private int pageSize ;// Query Number false å页大å°ï¼1~999ï¼ |
| | | private int cascade ;// Query Number false çº§èæ°æ®æ¥æº0:ä¸çº§å¹³å°æ¥æºï¼1:éä¸çº§å¹³å°æ¥æºï¼ä¸ºç©ºé»è®¤æ¥è¯¢æææ°æ®æ¥æº |
| | | private Integer pageSize ;// Query Number false å页大å°ï¼1~999ï¼ |
| | | private Integer cascade ;// Query Number false çº§èæ°æ®æ¥æº0:ä¸çº§å¹³å°æ¥æºï¼1:éä¸çº§å¹³å°æ¥æºï¼ä¸ºç©ºé»è®¤æ¥è¯¢æææ°æ®æ¥æº |
| | | private String messageId;// Query String false messageId |
| | | private int pageNo;// Query Number false å½å页ç (1~100000) |
| | | private Integer pageNo;// Query Number false å½å页ç (1~100000) |
| | | private String localeType;// Query String false è¯è¨ç±»åzh_CN:䏿en_US:è±æ |
| | | private int status;// Query Number false ä¸å¡ç¶æç±»å,1-å¾
å¤çï¼2-审æ¹ä¸ï¼3-已宿ï¼4-æéæï¼5-æå®¡æ¹,é»è®¤å¾
å¤ç |
| | | private Integer status;// Query Number false ä¸å¡ç¶æç±»å,1-å¾
å¤çï¼2-审æ¹ä¸ï¼3-已宿ï¼4-æéæï¼5-æå®¡æ¹,é»è®¤å¾
å¤ç |
| | | private String userId;// Query String false ç¨æ·id |
| | | private String clientType;// Query String false è°ç¨æ¹ç±»å0:å
¶ä»ï¼1ï¼APPï¼ä¸ºç©ºæ¶é»è®¤ä¸º1ï¼2ï¼é¨æ· |
| | | |
| | |
| | | private String comId;// String false ç»ä»¶æ è¯ |
| | | private String moduleId;// String false æ¨¡åæ è¯ |
| | | private String msgTitle;// String false ä¿¡æ¯æ é¢ |
| | | private String msgStatus ;//String false ä¿¡æ¯ç¶æ |
| | | private String msgStatus ;//String false ä¿¡æ¯ç¶æ ä¸å¡ç¶æç±»å,1-å¾
å¤çï¼2-审æ¹ä¸ï¼3-已宿ï¼4-æéæï¼5-æå®¡æ¹,é»è®¤å¾
å¤ç |
| | | private String msgStatusStr;// String false ä¿¡æ¯ç¶æåç§° |
| | | private String msgCreateTime;// String false æ¶æ¯å建æ¶é´,ä¼å
使ç¨msgCreateTimeIso |
| | | private String msgCreateTimeIso;// String false æ¶æ¯å建æ¶é´,ISOæ¶é´ |
| | |
| | | * @return |
| | | */ |
| | | public static String getMenuUrl(Integer type,String token){ |
| | | String componentId = HKConstants.MenuPageId.componentIds[0]; |
| | | String menuId = HKConstants.MenuPageId.afzx; |
| | | if(Constants.equalsInteger(type,Constants.ONE)){ |
| | | menuId = HKConstants.MenuPageId.xkzx; |
| | |
| | | menuId = HKConstants.MenuPageId.jsc; |
| | | }else if(Constants.equalsInteger(type,Constants.FOUR)){ |
| | | menuId = HKConstants.MenuPageId.kqgzt; |
| | | }else if(Constants.equalsInteger(type,Constants.FIVE)){ |
| | | componentId = HKConstants.MenuPageId.componentIds[1]; |
| | | menuId = HKConstants.MenuPageId.kqdbcl; |
| | | } |
| | | log.info("ãæµ·åº·è·åå·¥ä½å°èåå
å¯ç»éè°æ´å°åã================å¼å§====menuId:"+menuId+"==token:"+token); |
| | | try { |
| | | String res = HKTools.getMenuUrl(menuId,token); |
| | | String res = HKTools.getMenuUrl(componentId,menuId,token); |
| | | return res; |
| | | }catch (Exception e){ |
| | | log.error("ãæµ·åº·è·åå·¥ä½å°èåå
å¯ç»éè°æ´å°åã================失败====ï¼\n"+ e.getMessage()); |
| | |
| | | Class<?> clazz = obj.getClass(); |
| | | for (Field field : clazz.getDeclaredFields()) { |
| | | field.setAccessible(true); // 使å¾ç§æå段ä¹å¯ä»¥è®¿é® |
| | | map.put(field.getName(), (String) field.get(obj)); |
| | | if(field.get(obj)!=null){ |
| | | map.put(field.getName(), String.valueOf( field.get(obj))); |
| | | } |
| | | } |
| | | return map; |
| | | } |
| | |
| | | package com.doumee.core.wms.model.request; |
| | | |
| | | import com.doumee.dao.business.model.PlatformJob; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | |
| | | @ApiModelProperty(value = "data" ) |
| | | private List<T> data; |
| | | |
| | | private List<Integer> jobIdList; |
| | | } |
| | |
| | | private String item_code; |
| | | @ApiModelProperty(value = "æ¶æ¯æè¿°" ,example = "1") |
| | | private String item_name; |
| | | @ApiModelProperty(value = "å
容详æ
éå" ,example = "1") |
| | | @ApiModelProperty(value = "qty" ,example = "1") |
| | | private BigDecimal qty; |
| | | @ApiModelProperty(value = "å
容详æ
éå" ,example = "1") |
| | | @ApiModelProperty(value = "supplier_code" ,example = "1") |
| | | private String supplier_code; |
| | | @ApiModelProperty(value = "g" ,example = "1") |
| | | private String supplier_name; |
| | |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦å é¤0å¦ 1æ¯", example = "1") |
| | | private Integer isdeleted; |
| | | @ApiModelProperty(value = "ä½ä¸æ¥æºï¼0èªå»º 1wmsæ¨é", example = "1") |
| | | private Integer origin; |
| | | |
| | | @ApiModelProperty(value = "åç§°") |
| | | private String name; |
| | |
| | | @ApiModelProperty(value = "æ¯å¦å é¤0å¦ 1æ¯", example = "1") |
| | | @ExcelColumn(name="æ¯å¦å é¤0å¦ 1æ¯") |
| | | private Integer isdeleted; |
| | | @ApiModelProperty(value = "ä½ä¸æ¥æºï¼0èªå»º 1wmsæ¨é", example = "1") |
| | | @ExcelColumn(name="ä½ä¸æ¥æºï¼0èªå»º 1wmsæ¨é") |
| | | private Integer origin; |
| | | |
| | | @ApiModelProperty(value = "夿³¨") |
| | | @ExcelColumn(name="夿³¨") |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.web.response.platformReport; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * éç¨ |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/25 10:59 |
| | | */ |
| | | @Data |
| | | public class BoardStockListVO { |
| | | |
| | | @ApiModelProperty(value = "åºåæç»éå") |
| | | private List<GeneralVO> stockList; |
| | | @ApiModelProperty(value = "åºååºåæ±æ»éå") |
| | | private List<GeneralVO> areaTotalList; |
| | | |
| | | @ApiModelProperty(value = "åºåå·²å©ç¨") |
| | | private BigDecimal num; |
| | | @ApiModelProperty(value = "åºåå©ç¨ç") |
| | | private BigDecimal useRate; |
| | | @ApiModelProperty(value = "åºåæ»é") |
| | | private BigDecimal totalNum; |
| | | |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "æ¥æ") |
| | | private Date planDate; |
| | | @ApiModelProperty(value = "æ¥æStr") |
| | | private String planDateStr; |
| | | |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | String syncHkDevices(Device param); |
| | | String syncHkNotices(String username); |
| | | |
| | | /** |
| | | * åæ¥æµ·åº·åè½¦åº |
| | |
| | | |
| | | pcWorkPlatformDataVO.setLwList(lwList ); |
| | | }else if(Constants.equalsInteger(queryType,Constants.THREE)) { |
| | | MPJLambdaWrapper<Notices> queryWrapper = new MPJLambdaWrapper<>(); |
| | | queryWrapper.selectAll(Notices.class); |
| | | if (Objects.isNull(loginUserInfo.getMemberId())) { |
| | | queryWrapper.eq("1", "2"); |
| | | pcWorkPlatformDataVO.setNoticesList(new ArrayList<>()); |
| | | pcWorkPlatformDataVO.setNoticesNum(0); |
| | | // queryWrapper.eq("1", "2"); |
| | | } else { |
| | | MPJLambdaWrapper<Notices> queryWrapper = new MPJLambdaWrapper<>(); |
| | | queryWrapper.selectAll(Notices.class); |
| | | queryWrapper.eq(Notices::getStatus, Constants.ZERO); |
| | | queryWrapper.eq(Notices::getSendacopy, Constants.ZERO); |
| | | queryWrapper.eq(Notices::getParam2, Constants.ZERO); |
| | | queryWrapper.eq(Notices::getUserId, loginUserInfo.getMemberId()); |
| | | } |
| | | queryWrapper.orderByDesc(Notices::getCreateDate); |
| | | List<Notices> noticesList = noticesJoinMapper.selectList(queryWrapper); |
| | | pcWorkPlatformDataVO.setNoticesList(noticesList); |
| | | pcWorkPlatformDataVO.setNoticesNum(noticesList.size()); |
| | | if(noticesList.size() > 5 ){ |
| | | pcWorkPlatformDataVO.setNoticesList(noticesList.subList(0,5)); |
| | | }else{ |
| | | queryWrapper.orderByDesc(Notices::getCreateDate); |
| | | List<Notices> noticesList = noticesJoinMapper.selectList(queryWrapper); |
| | | pcWorkPlatformDataVO.setNoticesList(noticesList); |
| | | pcWorkPlatformDataVO.setNoticesNum(noticesList.size()); |
| | | if(noticesList.size() > 5 ){ |
| | | pcWorkPlatformDataVO.setNoticesList(noticesList.subList(0,5)); |
| | | }else{ |
| | | pcWorkPlatformDataVO.setNoticesList(noticesList); |
| | | } |
| | | } |
| | | |
| | | }else{ |
| | | String code= systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.TIMEOUT_WARNING).getCode(); |
| | | MPJLambdaWrapper<Visits> queryWrapper = new MPJLambdaWrapper<>(); |
| | |
| | | return null; |
| | | } |
| | | @Override |
| | | public String syncHkNotices(String username){ |
| | | |
| | | return null; |
| | | } |
| | | @Override |
| | | public String syncHkLed(Device param){ |
| | | |
| | | return null; |
| | |
| | | List<Device> deleteList = new ArrayList<>(); |
| | | List<Device> addList = new ArrayList<>(); |
| | | List<Device> editList = new ArrayList<>(); |
| | | List<DoorsInfoResponse> allHkList = new ArrayList<>(); |
| | | Date date = new Date(); |
| | | //æ¥è¯¢å
¨é¨é¨ç¦è®¾å¤æ°æ® |
| | | List<Device> allList = deviceMapper.selectList(null); |
| | | List<DoorsInfoResponse> allHkList = new ArrayList<>(); |
| | | boolean hasNext = true; |
| | | int curTotal = 0; |
| | | int curPage = 1; |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.service.business.impl.hksync; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.core.constants.ResponseStatus; |
| | | import com.doumee.core.exception.BusinessException; |
| | | import com.doumee.core.haikang.model.HKConstants; |
| | | import com.doumee.core.haikang.model.param.BaseListPageResponse; |
| | | import com.doumee.core.haikang.model.param.BaseResponse; |
| | | import com.doumee.core.haikang.model.param.request.*; |
| | | import com.doumee.core.haikang.model.param.respose.*; |
| | | import com.doumee.core.haikang.service.HKService; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.DESUtil; |
| | | import com.doumee.core.utils.DateUtil; |
| | | import com.doumee.core.utils.ImageBase64Util; |
| | | import com.doumee.core.wx.wxPlat.WxPlatNotice; |
| | | import com.doumee.dao.business.DeviceRoleMapper; |
| | | import com.doumee.dao.business.MemberMapper; |
| | | import com.doumee.dao.business.RetentionMapper; |
| | | import com.doumee.dao.business.join.VisitsJoinMapper; |
| | | import com.doumee.dao.business.model.DeviceRole; |
| | | import com.doumee.dao.business.model.Member; |
| | | import com.doumee.dao.business.model.Retention; |
| | | import com.doumee.dao.business.model.Visits; |
| | | import com.doumee.dao.system.SystemUserMapper; |
| | | import com.doumee.dao.system.join.NoticesJoinMapper; |
| | | import com.doumee.dao.system.model.Notices; |
| | | import com.doumee.dao.system.model.SystemUser; |
| | | import com.doumee.service.system.NoticesService; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * 海康访客ä¸å¡Serviceå®ç° |
| | | * @author æ±è¹è¹ |
| | | * @date 2023/11/30 15:33 |
| | | */ |
| | | @Service |
| | | @Slf4j |
| | | public class HkSyncNoticeServiceImpl extends HkSyncBaseServiceImpl { |
| | | @Autowired |
| | | private NoticesJoinMapper noticesJoinMapper; |
| | | @Autowired |
| | | private MemberMapper memberMapper; |
| | | |
| | | @Override |
| | | public String syncHkNotices(String username){ |
| | | if(Constants.DEALING_HK_NOTICE_LIST){ |
| | | return null; |
| | | } |
| | | Constants.DEALING_HK_NOTICE_LIST =true; |
| | | try { |
| | | Date date = new Date(); |
| | | List<GetTodoListResponse> allHkList = new ArrayList<>(); |
| | | boolean hasNext = true; |
| | | int curTotal = 0; |
| | | int curPage = 1; |
| | | while (hasNext){ |
| | | //å页éåå¾ªç¯æ¥è¯¢ææé¨ç¦è®¾å¤æ°æ® |
| | | GetTodoListRequest param = new GetTodoListRequest(); |
| | | param.setComId("dfe"); |
| | | param.setUserId(username); |
| | | param.setStatus(1);//åªæ¥å¾
å¤ççæ°æ® |
| | | param.setPageNo(curPage); |
| | | param.setLocaleType("zh_CN"); |
| | | param.setPageSize(100); |
| | | BaseResponse<BaseListPageResponse<GetTodoListResponse>> response = HKService.getTodoListPage(param); |
| | | if(response == null || !StringUtils.equals(response.getCode(), HKConstants.RESPONSE_SUCCEE)){ |
| | | throw new BusinessException(ResponseStatus.SERVER_ERROR.getCode(), "对ä¸èµ·ï¼æµ·åº·åæ¥æ°æ®å¤±è´¥~"); |
| | | } |
| | | BaseListPageResponse<GetTodoListResponse> r = response.getData(); |
| | | curTotal += 100; |
| | | if(curTotal >= r.getTotal()){ |
| | | hasNext = false; |
| | | } |
| | | if(r.getList() == null || r.getList().size()==0){ |
| | | hasNext =false; |
| | | }else{ |
| | | allHkList.addAll(r.getList()); |
| | | } |
| | | curPage++; |
| | | } |
| | | if(allHkList!=null && allHkList.size()>0){ |
| | | List<Notices> list = new ArrayList<>(); |
| | | List<String> users = new ArrayList<>(); |
| | | for(GetTodoListResponse data :allHkList){ |
| | | users.add(data.getUserId()); |
| | | } |
| | | List<Integer> userIds = new ArrayList<>(); |
| | | List<Member > userList = memberMapper.selectList(new QueryWrapper<Member>().lambda() |
| | | .in(Member::getPhone,users) |
| | | .eq(Member::getIsdeleted,Constants.ZERO)); |
| | | for(GetTodoListResponse data :allHkList){ |
| | | Member u = getFromUserList(data.getUserId(),userList); |
| | | if(u==null){ |
| | | continue; |
| | | } |
| | | userIds.add(u.getId()); |
| | | JSONObject param = new JSONObject(); |
| | | |
| | | param.put("componentId","dfe"); |
| | | param.put("msgType","tlnc"); |
| | | param.put("componentMenuId", data.getMenuCode()); |
| | | JSONObject c = new JSONObject(); |
| | | c.put("method","dealTlncMsg"); |
| | | c.put("argument",JSONObject.toJSONString(data)); |
| | | param.put("callback",c); |
| | | Notices notices = new Notices(); |
| | | notices.setCreateDate(DateUtil.getISO8601DateByStr(data.getMsgCreateTimeIso())); |
| | | notices.setUserId(u.getId()); |
| | | notices.setStatus(Constants.ZERO); |
| | | notices.setSendacopy(Constants.ZERO); |
| | | //ä¸å¡ç¶æä¿¡æ¯ 0 =å¾
å¤ç;1=å·²åæ/å·²å¤ç;2=å·²æç»/å·²éå;3=已转交;4=å·²æ¤é |
| | | notices.setParam1(JSONObject.toJSONString(data)); |
| | | notices.setParam2(Constants.ZERO+""); |
| | | notices.setTitle(data.getMsgTitle()); |
| | | if(notices.getCreateDate() == null){ |
| | | notices.setCreateDate(date); |
| | | } |
| | | notices.setIsdeleted(Constants.ZERO); |
| | | notices.setParam4(data.getMsgCreateTimeIso()); |
| | | notices.setParam3(data.getMsgCreateTime()); |
| | | notices.setParam5(JSONObject.toJSONString(param)); |
| | | notices.setType(Constants.noticesObjectType.hknotice); |
| | | list.add(notices); |
| | | } |
| | | if(list.size()>0){ |
| | | //æ¸
空海康å
¨é¨çä»£åæ°æ® |
| | | noticesJoinMapper.delete(new UpdateWrapper<Notices>().lambda() |
| | | .eq(Notices::getType, Constants.noticesObjectType.hknotice) |
| | | .in(Notices::getUserId, userIds)); |
| | | noticesJoinMapper.insert(list);//æ¹éæå
¥è®°å½ |
| | | } |
| | | } |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | }finally { |
| | | Constants.DEALING_HK_NOTICE_LIST =false; |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | private Member getFromUserList(String userId, List<Member> userList) { |
| | | if(userList!=null ){ |
| | | for(Member u :userList){ |
| | | if(StringUtils.equals(u.getPhone(),userId)){ |
| | | return u; |
| | | } |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.DateUtil; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.core.wms.model.response.WmsBaseResponse; |
| | | import com.doumee.core.wms.model.response.WmsInventoryDataResponse; |
| | | import com.doumee.core.wms.model.response.WmsInventoryJsonResponse; |
| | | import com.doumee.dao.business.*; |
| | | import com.doumee.dao.business.join.VisitsJoinMapper; |
| | | import com.doumee.dao.business.model.*; |
| | |
| | | import com.doumee.service.business.impl.PlatformJobServiceImpl; |
| | | import com.doumee.service.business.impl.VisitsServiceImpl; |
| | | import com.doumee.service.business.third.BoardService; |
| | | import com.doumee.service.business.third.WmsService; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | |
| | | @Autowired |
| | | private PlatformLogMapper platformLogMapper; |
| | | @Autowired |
| | | private WmsService wmsService; |
| | | @Autowired |
| | | private HiddenDangerMapper hiddenDangerMapper; |
| | | @Autowired |
| | | private PlatformWaterGasMapper platformWaterGasMapper; |
| | |
| | | private RetentionMapper retentionMapper; |
| | | @Autowired |
| | | private PlatformGroupMapper platformGroupMapper; |
| | | /** |
| | | * è·ååºåæ å½¢ç»ææ°æ® |
| | | * @return |
| | | */ |
| | | @Override |
| | | public BoardStockListVO stockList( ){ |
| | | BoardStockListVO data = new BoardStockListVO(); |
| | | double toatalNum = 1d; |
| | | BigDecimal num = new BigDecimal(0); |
| | | List<GeneralVO> list = new ArrayList<>(); |
| | | try { |
| | | toatalNum =Double.parseDouble(systemDictDataBiz.queryByCode(Constants.WMS_PARAM,Constants.WMS_TOTAL_STOCK_NUM).getCode()) ; |
| | | }catch (Exception e){ |
| | | |
| | | } |
| | | WmsBaseResponse<WmsInventoryDataResponse> response = wmsService.getInventoryList(); |
| | | if(response!=null && response.getData()!=null && response.getData().size()>=0){ |
| | | List<WmsInventoryJsonResponse> t= response.getData().get(0).getJson(); |
| | | if(t!=null &&t.size()>0){ |
| | | for(WmsInventoryJsonResponse j :t){ |
| | | num = num.add (Constants.formatBigdecimal( j.getQty())); |
| | | GeneralVO d = new GeneralVO(); |
| | | d.setNum(Constants.formatBigdecimal(j.getQty())); |
| | | d.setName(j.getItem_name()); |
| | | list.add(d); |
| | | } |
| | | } |
| | | } |
| | | data.setStockList(list); |
| | | data.setNum(num); |
| | | if(toatalNum<=0){ |
| | | toatalNum =1; |
| | | } |
| | | data.setTotalNum(new BigDecimal(toatalNum)); |
| | | data.setUseRate(data.getTotalNum().divide(data.getNum(),2,BigDecimal.ROUND_UP)); |
| | | return data; |
| | | |
| | | } |
| | | /** |
| | | * è·ååºåæ å½¢ç»ææ°æ® |
| | | * @return |
| | |
| | | new MPJLambdaWrapper<PlatformJob>() |
| | | .selectAs(PlatformJob::getId,PlatformJob::getId) |
| | | .selectAs(PlatformJob::getTotalNum,PlatformJob::getTotalNum) |
| | | .select("select sum(io_qty) from platform_wms_details a where a.isdeleted=0 and a.job_id=t.id",PlatformJob::getIoQty) |
| | | // .select("select sum(io_qty) from platform_wms_details a where a.isdeleted=0 and a.job_id=t.id",create_date) |
| | | .eq(PlatformJob::getIsdeleted,Constants.ZERO) |
| | | .apply(queryType==0,"to_days(create_date) >= to_days(now()) -7") |
| | | .apply(queryType==1,"year(create_date) = year(now()) and month(create_date) = month(now())") |
| | |
| | | for (Date date : dayList) { |
| | | TransportMeasureVO data = new TransportMeasureVO(); |
| | | data.setPlanDate(date); |
| | | data.setPlanTimes(random.nextInt(200)); |
| | | data.setPlanTaskNum(new BigDecimal(random.nextInt(1000))); |
| | | data.setFinishTaskNum(new BigDecimal(data.getPlanTaskNum().intValue())); |
| | | data.setPlanTimes(0); |
| | | data.setPlanTaskNum(new BigDecimal(random.nextInt(0))); |
| | | data.setFinishTaskNum(new BigDecimal(0)); |
| | | for(PlatformJob job :dataList){ |
| | | if(queryType == 2){ |
| | | if(DateUtil.formatDate(date,"yyyy-MM").equals(DateUtil.formatDate(job.getCreateDate(),"yyyy-MM"))){ |
| | | data.setPlanTimes( data.getPlanTimes() +1); |
| | | data.setPlanTaskNum( data.getPlanTaskNum().add(Constants.formatBigdecimal(job.getTotalNum()))); |
| | | if(Constants.equalsInteger(job.getStatus(),Constants.PlatformJobStatus.DONE.getKey()) |
| | | ||Constants.equalsInteger(job.getStatus(),Constants.PlatformJobStatus.LEAVED.getKey()) |
| | | ||Constants.equalsInteger(job.getStatus(),Constants.PlatformJobStatus.AUTHED_LEAVE.getKey())){ |
| | | //å®ææ° |
| | | data.setFinishTaskNum( data.getFinishTaskNum().add(Constants.formatBigdecimal(job.getTotalNum()))); |
| | | } |
| | | } |
| | | }else{ |
| | | if(DateUtil.formatDate(date,"yyyy-MM-dd").equals(DateUtil.formatDate(job.getCreateDate(),"yyyy-MM-dd"))){ |
| | | data.setPlanTimes( data.getPlanTimes() +1); |
| | | data.setPlanTaskNum( data.getPlanTaskNum().add(Constants.formatBigdecimal(job.getTotalNum()))); |
| | | if(Constants.equalsInteger(job.getStatus(),Constants.PlatformJobStatus.DONE.getKey()) |
| | | ||Constants.equalsInteger(job.getStatus(),Constants.PlatformJobStatus.LEAVED.getKey()) |
| | | ||Constants.equalsInteger(job.getStatus(),Constants.PlatformJobStatus.AUTHED_LEAVE.getKey())){ |
| | | //å®ææ° |
| | | data.setFinishTaskNum( data.getFinishTaskNum().add(Constants.formatBigdecimal(job.getTotalNum()))); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | list.add(data); |
| | | } |
| | | return list; |
| | |
| | | new MPJLambdaWrapper<PlatformJob>() |
| | | .selectAs(PlatformJob::getId,PlatformJob::getId) |
| | | .select(PlatformJob::getTotalNum,PlatformJob::getTotalNum) |
| | | .select("select sum(io_qty) from platform_wms_details a where a.isdeleted=0 and a.job_id=t.id",PlatformJob::getIoQty) |
| | | // .select("select sum(io_qty) from platform_wms_details a where a.isdeleted=0 and a.job_id=t.id",create_date) |
| | | .eq(PlatformJob::getIsdeleted,Constants.ZERO) |
| | | // .in(PlatformJob::getType,Constants.ONE,Constants.THREE) |
| | | .in(PlatformJob::getStatus,Constants.PlatformJobStatus.DONE.getKey(),Constants.PlatformJobStatus.LEAVED.getKey(),Constants.PlatformJobStatus.AUTHED_LEAVE.getKey()) |
| | |
| | | List<PlatformJob> monthLastNum = platformJobMapper.selectJoinList(PlatformJob.class, |
| | | new MPJLambdaWrapper<PlatformJob>() |
| | | .selectAs(PlatformJob::getId,PlatformJob::getId) |
| | | .select("select sum(io_qty) from platform_wms_details a where a.isdeleted=0 and a.job_id=t.id",PlatformJob::getIoQty) |
| | | // .select("select sum(io_qty) from platform_wms_details a where a.isdeleted=0 and a.job_id=t.id",create_date) |
| | | .eq(PlatformJob::getIsdeleted,Constants.ZERO) |
| | | .in(PlatformJob::getType,Constants.ONE,Constants.THREE) |
| | | .in(PlatformJob::getStatus,Constants.PlatformJobStatus.DONE.getKey(),Constants.PlatformJobStatus.LEAVED.getKey(),Constants.PlatformJobStatus.AUTHED_LEAVE.getKey()) |
| | |
| | | .selectAs(PlatformJob::getId,PlatformJob::getId) |
| | | .select(PlatformJob::getTotalNum,PlatformJob::getTotalNum) |
| | | .selectCount(PlatformJob::getPlatformId,PlatformJob::getCountum) |
| | | .select("select sum(io_qty) from platform_wms_details a where a.isdeleted=0 and a.job_id=t.id",PlatformJob::getIoQty) |
| | | // .select("select sum(io_qty) from platform_wms_details a where a.isdeleted=0 and a.job_id=t.id",create_date) |
| | | .eq(PlatformJob::getIsdeleted,Constants.ZERO) |
| | | .in(PlatformJob::getType,Constants.ONE,Constants.THREE) |
| | | .in(PlatformJob::getStatus,Constants.PlatformJobStatus.DONE.getKey(),Constants.PlatformJobStatus.LEAVED.getKey(),Constants.PlatformJobStatus.AUTHED_LEAVE.getKey()) |
| | |
| | | new MPJLambdaWrapper<PlatformJob>() |
| | | .selectAs(PlatformJob::getId,PlatformJob::getId) |
| | | .select(PlatformJob::getTotalNum,PlatformJob::getTotalNum) |
| | | .select("select sum(io_qty) from platform_wms_details a where a.isdeleted=0 and a.job_id=t.id",PlatformJob::getIoQty) |
| | | // .select("select sum(io_qty) from platform_wms_details a where a.isdeleted=0 and a.job_id=t.id",create_date) |
| | | .eq(PlatformJob::getIsdeleted,Constants.ZERO) |
| | | .in(PlatformJob::getType,Constants.ONE,Constants.THREE) |
| | | .in(PlatformJob::getStatus,Constants.PlatformJobStatus.DONE.getKey(),Constants.PlatformJobStatus.LEAVED.getKey(),Constants.PlatformJobStatus.AUTHED_LEAVE.getKey()) |
| | |
| | | .selectAs(PlatformJob::getStatus,PlatformJob::getStatus) |
| | | .selectAs(PlatformJob::getType,PlatformJob::getType) |
| | | .select(PlatformJob::getTotalNum,PlatformJob::getTotalNum) |
| | | .select("select sum(io_qty) from platform_wms_details a where a.isdeleted=0 and a.job_id=t.id",PlatformJob::getIoQty) |
| | | // .select("select sum(io_qty) from platform_wms_details a where a.isdeleted=0 and a.job_id=t.id",create_date) |
| | | .eq(PlatformJob::getIsdeleted,Constants.ZERO) |
| | | .notIn(PlatformJob::getStatus,Constants.PlatformJobStatus.DONE.getKey(),Constants.PlatformJobStatus.LEAVED.getKey(),Constants.PlatformJobStatus.AUTHED_LEAVE.getKey(),Constants.PlatformJobStatus.CALLED.getKey()) |
| | | .apply(" and to_days(create_date) <to_days(now())")); |
| | |
| | | .selectAs(PlatformJob::getStatus,PlatformJob::getStatus) |
| | | .selectAs(PlatformJob::getType,PlatformJob::getType) |
| | | .select(PlatformJob::getTotalNum,PlatformJob::getTotalNum) |
| | | .select("select sum(io_qty) from platform_wms_details a where a.isdeleted=0 and a.job_id=t.id",PlatformJob::getIoQty) |
| | | // .select("select sum(io_qty) from platform_wms_details a where a.isdeleted=0 and a.job_id=t.id",create_date) |
| | | .eq(PlatformJob::getIsdeleted,Constants.ZERO) |
| | | .notIn(PlatformJob::getStatus,Constants.PlatformJobStatus.CALLED.getKey()) |
| | | .apply("year(create_date) = year("+DateUtil.getPlusTime2(lastYear)+") and to_days(create_date)<= "+DateUtil.getPlusTime2(lastYear))); |
| | |
| | | ||Constants.equalsInteger(job.getStatus(),Constants.PlatformJobStatus.AUTHED_LEAVE.getKey()))){ |
| | | continue; |
| | | } |
| | | if(Constants.formatBigdecimal(job.getIoQty()).compareTo(new BigDecimal(0)) >0){ |
| | | r.add( job.getIoQty()); |
| | | }else{ |
| | | // if(Constants.formatBigdecimal(job.getIoQty()).compareTo(new BigDecimal(0)) >0){ |
| | | // r.add( job.getIoQty()); |
| | | // }else{ |
| | | r.add(Constants.formatBigdecimal(job.getTotalNum())); |
| | | } |
| | | // } |
| | | } |
| | | return Constants.formatBigdecimal0Float(r); |
| | | } |
| | |
| | | List<WorkEfficiencyVO> workEfficiencyVOList = new ArrayList<>(); |
| | | List<PlatformJob> jobList = platformJobMapper.selectJoinList(PlatformJob.class, new MPJLambdaWrapper<PlatformJob>() |
| | | .selectAll( PlatformJob.class) |
| | | .select("(select sum(ifnull(a.io_qty,0)) from platform_wms_detail a where a.isdeleted=0 and a.job_id =t.id )", PlatformJob::getIoQty) |
| | | // .select("(select sum(ifnull(a.io_qty,0)) from platform_wms_detail a where a.isdeleted=0 and a.job_id =t.id )", create_date) |
| | | .apply("to_days(t.create_date) = to_days(now())") |
| | | .eq(Platform::getIsdeleted, Constants.ZERO) |
| | | .in(PlatformJob::getStatus, Constants.PlatformJobStatus.DONE.getKey() |
| | |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | |
| | | job.setPlateNumber(param.getPlateNumber()); |
| | | job.setType(Constants.ZERO); |
| | | job.setIoCreatedate(param.getCreateDate()); |
| | | job.setOrigin(Constants.ONE); |
| | | job.setJobId(model.getId()); |
| | | job.setDriverPhone(param.getDriverPhone()); |
| | | platformWmsJobMapper.insert(job); |
| | |
| | | return returnFailReuslt("请æ±åæ°ä¸æ£ç¡®ï¼åæ°ä¸è½ä¸ºç©º"); |
| | | } |
| | | List<PlatformJob> jobList = new ArrayList<>(); |
| | | List<Integer> jobIdList = new ArrayList<>(); |
| | | List<PlatformWmsDetail> details = new ArrayList<>(); |
| | | List<String> iocodeList = new ArrayList<>(); |
| | | for(WmsOutboundNoticeRequest param : list.getData()){ |
| | |
| | | job.setContractNum(param.getContractNum()); |
| | | job.setDriverPhone(param.getDriverPhone()); |
| | | job.setDriverName(param.getDriverName()); |
| | | job.setOrigin(Constants.ONE); |
| | | platformWmsJobMapper.insert(job); |
| | | jobList.add(model); |
| | | } |
| | | jobIdList.add(job.getId()); |
| | | if(param.getDetails()!=null && param.getDetails().size()>0){ |
| | | for(WmsOutboundDetailRequest d :param.getDetails()){ |
| | | PlatformWmsDetail entity = new PlatformWmsDetail(); |
| | |
| | | .in(PlatformWmsDetail::getIocode,iocodeList) |
| | | ); |
| | | } |
| | | jobIdList.add(job.getId()); |
| | | } |
| | | } |
| | | if(details.size()>0){ |
| | | platformWmsDetailMapper.insert(details); |
| | | } |
| | | if(jobList.size()>0){ |
| | | list.setJobIdList(jobIdList); |
| | | startEndNoticeToDriver(jobList); |
| | | } |
| | | }catch (Exception e){ |
| | |
| | | return returnSuccessReuslt(null); |
| | | } |
| | | /** |
| | | * å¤çä½ä¸è¡æ°æ®çè¿è¾æ»éä¿¡æ¯ |
| | | * @param jobList åæ° |
| | | * @return |
| | | */ |
| | | @Override |
| | | public void computjobTotalNum(List<Integer> jobList) { |
| | | if(jobList==null || jobList.size()==0){ |
| | | return; |
| | | } |
| | | for(Integer jobId : jobList){ |
| | | BigDecimal num = new BigDecimal(0); |
| | | List<PlatformWmsDetail> details = platformWmsDetailMapper.selectList( new QueryWrapper<PlatformWmsDetail>().lambda() |
| | | .eq(PlatformWmsDetail::getJobId,jobId) |
| | | .eq(PlatformWmsDetail::getIsdeleted, Constants.ZERO)); |
| | | if(details!=null && details.size()>0){ |
| | | for(PlatformWmsDetail d :details){ |
| | | num.add(Constants.formatBigdecimal(d.getIoQty())); |
| | | } |
| | | platformJobMapper.update(null,new UpdateWrapper<PlatformJob>().lambda() |
| | | .set(PlatformJob::getTotalNum,num) |
| | | .eq(PlatformJob::getOrigin, Constants.ZERO) |
| | | .eq(PlatformJob::getId, jobId)); |
| | | } |
| | | |
| | | } |
| | | } |
| | | /** |
| | | * ä½ä¸å®æéç¥ä»»å¡ä¸å¡å¤ç |
| | | * @param list åæ° |
| | | * @return |
| | |
| | | CarsJobAndContractVO getCarsJobDetails(CarsJobAndContractDTO param); |
| | | |
| | | List<TransportMeasureVO> transportMeasure(Integer queryType); |
| | | |
| | | BoardStockListVO stockList(); |
| | | } |
| | |
| | | import com.doumee.core.wms.model.request.WmsInboundNoticeRequest; |
| | | import com.doumee.core.wms.model.request.WmsOutboundNoticeRequest; |
| | | import com.doumee.core.wms.model.response.WmsBaseResponse; |
| | | import com.doumee.core.wms.model.response.WmsInventoryDataResponse; |
| | | import com.doumee.dao.business.model.PlatformJob; |
| | | |
| | | import java.util.List; |
| | |
| | | * @return WmsBaseResponse |
| | | */ |
| | | WmsBaseResponse orderPlatformBind(PlatformJob job); |
| | | WmsBaseResponse getInventoryList(); |
| | | WmsBaseResponse<WmsInventoryDataResponse> getInventoryList(); |
| | | void saveInterfaceLog(String url,String name,String param,Integer success,String respone,int type); |
| | | /** |
| | | * å
¥åºåæ¹ééç¥ |
| | |
| | | WmsBaseResponse doneTask(WmsBaseRequest<WmsActionNoticeRequest> list); |
| | | |
| | | |
| | | void computjobTotalNum(List<Integer> jobList); |
| | | } |