初始化

This commit is contained in:
2020-06-28 09:01:37 +08:00
commit 88f72990f5
522 changed files with 49365 additions and 0 deletions

View File

@@ -0,0 +1,102 @@
package io.renren.modules.wcs.controller;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import io.renren.modules.wcs.entity.MtDdTaskInfoLogEntity;
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 io.renren.modules.wcs.entity.MtDdDeviceCodeInfoEntity;
import io.renren.modules.wcs.service.MtDdDeviceCodeInfoService;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.R;
/**
*
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2020-06-16 10:44:47
*/
@Api(value = "", tags = "设备运行编码信息接口")
@RestController
@RequestMapping("wcs/mtdddevicecodeinfo")
public class MtDdDeviceCodeInfoController {
@Autowired
private MtDdDeviceCodeInfoService mtDdDeviceCodeInfoService;
@GetMapping("/selectByDeviceCode")
@ApiOperation(value = "设备号模糊查询", notes = "传入设备号,每页数据量,当前页数")
public R selectByDeviceCode(String deviceCode, int pageSize, int currPage) {
List<MtDdDeviceCodeInfoEntity> pages = mtDdDeviceCodeInfoService.selectByDeviceCode(deviceCode);
PageUtils page=new PageUtils(pages,pages.size(),pageSize,currPage);
return R.ok().put("page", page);
}
/**
* 列表
*/
@GetMapping("/list")
@RequiresPermissions("wcs:mtdddevicecodeinfo:list")
@ApiOperation(value = "分页list", notes = "传入deviceCodeInfo")
public R list(@RequestParam Map<String, Object> params){
PageUtils page = mtDdDeviceCodeInfoService.queryPage(params);
return R.ok().put("page", page);
}
/**
* 信息
*/
@GetMapping("/info/{id}")@ApiOperation(value = "详情", notes = "传入id")
@RequiresPermissions("wcs:mtdddevicecodeinfo:info")
public R info(@PathVariable("id") Integer id){
MtDdDeviceCodeInfoEntity mtDdDeviceCodeInfo = mtDdDeviceCodeInfoService.getById(id);
return R.ok().put("mtDdDeviceCodeInfo", mtDdDeviceCodeInfo);
}
/**
* 保存
*/
@GetMapping("/save")@ApiOperation(value = "新增", notes = "传入deviceCodeInfo")
@RequiresPermissions("wcs:mtdddevicecodeinfo:save")
public R save(@RequestBody MtDdDeviceCodeInfoEntity mtDdDeviceCodeInfo){
mtDdDeviceCodeInfoService.save(mtDdDeviceCodeInfo);
return R.ok();
}
/**
* 修改
*/
@GetMapping("/update")@ApiOperation(value = "修改", notes = "传入deviceCodeInfo")
@RequiresPermissions("wcs:mtdddevicecodeinfo:update")
public R update(@RequestBody MtDdDeviceCodeInfoEntity mtDdDeviceCodeInfo){
mtDdDeviceCodeInfoService.updateById(mtDdDeviceCodeInfo);
return R.ok();
}
/**
* 删除
*/
@GetMapping("/delete")@ApiOperation(value = "删除", notes = "传入ids")
@RequiresPermissions("wcs:mtdddevicecodeinfo:delete")
public R delete(@RequestBody Integer[] ids){
mtDdDeviceCodeInfoService.removeByIds(Arrays.asList(ids));
return R.ok();
}
}

View File

@@ -0,0 +1,99 @@
package io.renren.modules.wcs.controller;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import io.renren.modules.wcs.entity.MtDdDeviceCodeInfoEntity;
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 io.renren.modules.wcs.entity.MtDdDeviceCodeLogEntity;
import io.renren.modules.wcs.service.MtDdDeviceCodeLogService;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.R;
/**
*
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2020-06-16 10:44:47
*/
@Api(value = "", tags = "设备状态信息日志接口")
@RestController
@RequestMapping("wcs/mtdddevicecodelog")
public class MtDdDeviceCodeLogController {
@Autowired
private MtDdDeviceCodeLogService mtDdDeviceCodeLogService;
@GetMapping("/selectByDeviceCode")
@ApiOperation(value = "设备号模糊查询", notes = "传入设备号,每页数据量,当前页数")
public R selectByDeviceCode(String deviceCode, int pageSize, int currPage) {
List<MtDdDeviceCodeLogEntity> pages = mtDdDeviceCodeLogService.selectByDeviceCode(deviceCode);
PageUtils page = new PageUtils(pages, pages.size(), pageSize, currPage);
return R.ok().put("page", page);
}
/**
* 列表
*/
@GetMapping("/list")@ApiOperation("查询设备code日志list")
@RequiresPermissions("wcs:mtdddevicecodelog:list")
public R list(@RequestParam Map<String, Object> params){
PageUtils page = mtDdDeviceCodeLogService.queryPage(params);
return R.ok().put("page", page);
}
/**
* 信息
*/
@GetMapping("/info/{id}")@ApiOperation("通过id查询设备code")
@RequiresPermissions("wcs:mtdddevicecodelog:info")
public R info(@PathVariable("id") Integer id){
MtDdDeviceCodeLogEntity mtDdDeviceCodeLog = mtDdDeviceCodeLogService.getById(id);
return R.ok().put("mtDdDeviceCodeLog", mtDdDeviceCodeLog);
}
/**
* 保存
*/
@GetMapping("/save")@ApiOperation(value = "新增", notes = "传入deviceCodeLog")
@RequiresPermissions("wcs:mtdddevicecodelog:save")
public R save(@RequestBody MtDdDeviceCodeLogEntity mtDdDeviceCodeLog){
mtDdDeviceCodeLogService.save(mtDdDeviceCodeLog);
return R.ok();
}
/**
* 修改
*/
@GetMapping("/update")@ApiOperation(value = "修改", notes = "传入deviceCodeLog")
@RequiresPermissions("wcs:mtdddevicecodelog:update")
public R update(@RequestBody MtDdDeviceCodeLogEntity mtDdDeviceCodeLog){
mtDdDeviceCodeLogService.updateById(mtDdDeviceCodeLog);
return R.ok();
}
/**
* 删除
*/
@GetMapping("/delete")@ApiOperation(value = "删除", notes = "传入ids")
@RequiresPermissions("wcs:mtdddevicecodelog:delete")
public R delete(@RequestBody Integer[] ids){
mtDdDeviceCodeLogService.removeByIds(Arrays.asList(ids));
return R.ok();
}
}

View File

@@ -0,0 +1,99 @@
package io.renren.modules.wcs.controller;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
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 io.renren.modules.wcs.entity.MtDdDeviceInfoEntity;
import io.renren.modules.wcs.service.MtDdDeviceInfoService;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.R;
/**
*
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2020-06-16 10:44:47
*/
@Api(value = "", tags = "设备管理接口")
@RestController
@RequestMapping("wcs/mtdddeviceinfo")
public class MtDdDeviceInfoController {
@Autowired
private MtDdDeviceInfoService mtDdDeviceInfoService;
@GetMapping("/selectByCode")
@ApiOperation(value = "编码模糊查询", notes = "传入编码,每页数据量,当前页数")
public R selectByCode(String deviceCode, int pageSize, int currPage) {
List<MtDdDeviceInfoEntity> pages = mtDdDeviceInfoService.selectByCode(deviceCode);
PageUtils page = new PageUtils(pages, pages.size(), pageSize, currPage);
return R.ok().put("page", page);
}
/**
* 列表
*/
@GetMapping("/list") @ApiOperation(value = "分页", notes = "")
@RequiresPermissions("wcs:mtdddeviceinfo:list")
public R list(@RequestParam Map<String, Object> params){
PageUtils page = mtDdDeviceInfoService.queryPage(params);
return R.ok().put("page", page);
}
/**
* 信息
*/
@GetMapping("/info/{id}")@ApiOperation(value = "参数查询", notes = "传入id")
@RequiresPermissions("wcs:mtdddeviceinfo:info")
public R info(@PathVariable("id") Integer id){
MtDdDeviceInfoEntity mtDdDeviceInfo = mtDdDeviceInfoService.getById(id);
return R.ok().put("mtDdDeviceInfo", mtDdDeviceInfo);
}
/**
* 保存
*/
@GetMapping("/save") @ApiOperation(value = "新增", notes = "传入deviceInfo")
@RequiresPermissions("wcs:mtdddeviceinfo:save")
public R save(@RequestBody MtDdDeviceInfoEntity mtDdDeviceInfo){
mtDdDeviceInfoService.save(mtDdDeviceInfo);
return R.ok();
}
/**
* 修改
*/
@GetMapping("/update") @ApiOperation(value = "修改", notes = "传入deviceInfo")
@RequiresPermissions("wcs:mtdddeviceinfo:update")
public R update(@RequestBody MtDdDeviceInfoEntity mtDdDeviceInfo){
mtDdDeviceInfoService.updateById(mtDdDeviceInfo);
return R.ok();
}
/**
* 删除
*/
@GetMapping("/delete") @ApiOperation(value = "删除", notes = "传入ids")
@RequiresPermissions("wcs:mtdddeviceinfo:delete")
public R delete(@RequestBody Integer[] ids){
mtDdDeviceInfoService.removeByIds(Arrays.asList(ids));
return R.ok();
}
}

View File

@@ -0,0 +1,101 @@
package io.renren.modules.wcs.controller;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import io.renren.modules.wcs.entity.MtDdDeviceCodeInfoEntity;
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 io.renren.modules.wcs.entity.MtDdDeviceRunLogEntity;
import io.renren.modules.wcs.service.MtDdDeviceRunLogService;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.R;
/**
*
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2020-06-16 10:44:47
*/
@Api(value = "", tags = "设备运行日志接口")
@RestController
@RequestMapping("wcs/mtdddevicerunlog")
public class MtDdDeviceRunLogController {
@Autowired
private MtDdDeviceRunLogService mtDdDeviceRunLogService;
@GetMapping("/selectByDeviceId")
@ApiOperation(value = "设备id模糊查询", notes = "传入设备号,每页数据量,当前页数")
public R selectByDeviceId(String deviceId, int pageSize, int currPage) {
List<MtDdDeviceRunLogEntity> pages = mtDdDeviceRunLogService.selectByDeviceId(deviceId);
PageUtils page=new PageUtils(pages,pages.size(),pageSize,currPage);
return R.ok().put("page", page);
}
/**
* 列表
*/
@GetMapping("/list") @ApiOperation(value = "分页", notes = "")
@RequiresPermissions("wcs:mtdddevicerunlog:list")
public R list(@RequestParam Map<String, Object> params){
PageUtils page = mtDdDeviceRunLogService.queryPage(params);
return R.ok().put("page", page);
}
/**
* 信息
*/
@GetMapping("/info/{id}") @ApiOperation(value = "详情", notes = "传入id")
@RequiresPermissions("wcs:mtdddevicerunlog:info")
public R info(@PathVariable("id") Integer id){
MtDdDeviceRunLogEntity mtDdDeviceRunLog = mtDdDeviceRunLogService.getById(id);
return R.ok().put("mtDdDeviceRunLog", mtDdDeviceRunLog);
}
/**
* 保存
*/
@GetMapping("/save") @ApiOperation(value = "新增", notes = "传入deviceRunLog")
@RequiresPermissions("wcs:mtdddevicerunlog:save")
public R save(@RequestBody MtDdDeviceRunLogEntity mtDdDeviceRunLog){
mtDdDeviceRunLogService.save(mtDdDeviceRunLog);
return R.ok();
}
/**
* 修改
*/
@GetMapping("/update") @ApiOperation(value = "修改", notes = "传入deviceRunLog")
@RequiresPermissions("wcs:mtdddevicerunlog:update")
public R update(@RequestBody MtDdDeviceRunLogEntity mtDdDeviceRunLog){
mtDdDeviceRunLogService.updateById(mtDdDeviceRunLog);
return R.ok();
}
/**
* 删除
*/
@GetMapping("/delete") @ApiOperation(value = "删除", notes = "传入ids")
@RequiresPermissions("wcs:mtdddevicerunlog:delete")
public R delete(@RequestBody Integer[] ids){
mtDdDeviceRunLogService.removeByIds(Arrays.asList(ids));
return R.ok();
}
}

View File

@@ -0,0 +1,100 @@
package io.renren.modules.wcs.controller;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import io.renren.modules.wcs.entity.MtDdDeviceRunLogEntity;
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 io.renren.modules.wcs.entity.MtDdInterfaceInfoLogEntity;
import io.renren.modules.wcs.service.MtDdInterfaceInfoLogService;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.R;
/**
*
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2020-06-16 10:44:47
*/
@Api(value = "", tags = "接口数据日志接口")
@RestController
@RequestMapping("wcs/mtddinterfaceinfolog")
public class MtDdInterfaceInfoLogController {
@Autowired
private MtDdInterfaceInfoLogService mtDdInterfaceInfoLogService;
@GetMapping("/selectByInterfaceName")
@ApiOperation(value = "接口名模糊查询", notes = "传入设备号,每页数据量,当前页数")
public R selectByInterfaceName(String interfaceName, int pageSize, int currPage) {
List<MtDdInterfaceInfoLogEntity> pages = mtDdInterfaceInfoLogService.selectByInterfaceName(interfaceName);
PageUtils page=new PageUtils(pages,pages.size(),pageSize,currPage);
return R.ok().put("page", page);
}
/**
* 列表
*/
@GetMapping("/list") @ApiOperation(value = "分页", notes = "传入interfaceInfoLog")
@RequiresPermissions("wcs:mtddinterfaceinfolog:list")
public R list(@RequestParam Map<String, Object> params){
PageUtils page = mtDdInterfaceInfoLogService.queryPage(params);
return R.ok().put("page", page);
}
/**
* 信息
*/
@GetMapping("/info/{id}") @ApiOperation(value = "详情", notes = "传入id")
@RequiresPermissions("wcs:mtddinterfaceinfolog:info")
public R info(@PathVariable("id") Integer id){
MtDdInterfaceInfoLogEntity mtDdInterfaceInfoLog = mtDdInterfaceInfoLogService.getById(id);
return R.ok().put("mtDdInterfaceInfoLog", mtDdInterfaceInfoLog);
}
/**
* 保存
*/
@GetMapping("/save") @ApiOperation(value = "新增", notes = "传入interfaceInfoLog")
@RequiresPermissions("wcs:mtddinterfaceinfolog:save")
public R save(@RequestBody MtDdInterfaceInfoLogEntity mtDdInterfaceInfoLog){
mtDdInterfaceInfoLogService.save(mtDdInterfaceInfoLog);
return R.ok();
}
/**
* 修改
*/
@GetMapping("/update") @ApiOperation(value = "修改", notes = "传入interfaceInfoLog")
@RequiresPermissions("wcs:mtddinterfaceinfolog:update")
public R update(@RequestBody MtDdInterfaceInfoLogEntity mtDdInterfaceInfoLog){
mtDdInterfaceInfoLogService.updateById(mtDdInterfaceInfoLog);
return R.ok();
}
/**
* 删除
*/
@GetMapping("/delete") @ApiOperation(value = "新增或修改", notes = "传入interfaceInfoLog")
@RequiresPermissions("wcs:mtddinterfaceinfolog:delete")
public R delete(@RequestBody Integer[] ids){
mtDdInterfaceInfoLogService.removeByIds(Arrays.asList(ids));
return R.ok();
}
}

View File

@@ -0,0 +1,111 @@
package io.renren.modules.wcs.controller;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.renren.modules.wcs.entity.MtDdTaskInfoLogEntity;
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 io.renren.modules.wcs.entity.MtDdTaskInfoEntity;
import io.renren.modules.wcs.service.MtDdTaskInfoService;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.R;
/**
*
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2020-06-16 10:44:47
*/
@Api(value = "", tags = "当前任务接口")
@RestController
@RequestMapping("wcs/mtddtaskinfo")
public class MtDdTaskInfoController {
@Autowired
private MtDdTaskInfoService mtDdTaskInfoService;
@GetMapping("/selectByTaskCode")
@ApiOperation(value = "任务号模糊查询", notes = "传入任务号,每页数据量,当前页数")
public R selectByTaskCode(String taskCode, int pageSize, int currPage) {
List<MtDdTaskInfoEntity> pages = mtDdTaskInfoService.selectByTaskCode(taskCode);
PageUtils page=new PageUtils(pages,pages.size(),pageSize,currPage);
return R.ok().put("page", page);
}
/**
* 列表
*/
@GetMapping("/list") @ApiOperation(value = "分页", notes = "传入taskInfo")
@RequiresPermissions("wcs:mtddtaskinfo:list")
public R list(@RequestParam Map<String, Object> params){
PageUtils page = mtDdTaskInfoService.queryPage(params);
return R.ok().put("page", page);
}
@GetMapping("/cancle")
@ApiOperation(value = "取消任务", notes = "传入creatorid")
public R cancle(String taskCode) {
//一次只可取消一个任务。
MtDdTaskInfoEntity updateTaskInfo=new MtDdTaskInfoEntity();
updateTaskInfo.setRunCode("取消");
//此处应通讯通知设备,当前任务取消,停止。
boolean task_code = mtDdTaskInfoService.update(updateTaskInfo, new QueryWrapper<MtDdTaskInfoEntity>().eq("task_code", taskCode));
if (task_code)return R.ok("取消成功");
return R.error();
}
/**
* 信息
*/
@GetMapping("/info/{id}") @ApiOperation(value = "详情", notes = "传入id")
@RequiresPermissions("wcs:mtddtaskinfo:info")
public R info(@PathVariable("id") Integer id){
MtDdTaskInfoEntity mtDdTaskInfo = mtDdTaskInfoService.getById(id);
return R.ok().put("mtDdTaskInfo", mtDdTaskInfo);
}
/**
* 保存
*/
@GetMapping("/save") @ApiOperation(value = "新增", notes = "传入taskInfo")
@RequiresPermissions("wcs:mtddtaskinfo:save")
public R save(@RequestBody MtDdTaskInfoEntity mtDdTaskInfo){
mtDdTaskInfoService.save(mtDdTaskInfo);
return R.ok();
}
/**
* 修改
*/
@GetMapping("/update") @ApiOperation(value = "更新", notes = "传入taskInfo")
@RequiresPermissions("wcs:mtddtaskinfo:update")
public R update(@RequestBody MtDdTaskInfoEntity mtDdTaskInfo){
mtDdTaskInfoService.updateById(mtDdTaskInfo);
return R.ok();
}
/**
* 删除
*/
@GetMapping("/delete") @ApiOperation(value = "删除", notes = "传入ids")
@RequiresPermissions("wcs:mtddtaskinfo:delete")
public R delete(@RequestBody Integer[] ids){
mtDdTaskInfoService.removeByIds(Arrays.asList(ids));
return R.ok();
}
}

View File

@@ -0,0 +1,99 @@
package io.renren.modules.wcs.controller;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
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 io.renren.modules.wcs.entity.MtDdTaskInfoLogEntity;
import io.renren.modules.wcs.service.MtDdTaskInfoLogService;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.R;
/**
*
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2020-06-16 10:44:47
*/
@Api(value = "", tags = "任务日志接口")
@RestController
@RequestMapping("wcs/mtddtaskinfolog")
public class MtDdTaskInfoLogController {
@Autowired
private MtDdTaskInfoLogService mtDdTaskInfoLogService;
@GetMapping("/selectByTaskCode")
@ApiOperation(value = "任务号日志模糊查询", notes = "传入任务号,每页数据量,当前页数")
public R selectByTaskCode(String taskCode, int pageSize, int currPage) {
List<MtDdTaskInfoLogEntity> pages = mtDdTaskInfoLogService.selectByTaskCode(taskCode);
PageUtils page=new PageUtils(pages,pages.size(),pageSize,currPage);
return R.ok().put("page", page);
}
/**
* 列表
*/
@GetMapping("/list")@ApiOperation(value = "分页", notes = "")
@RequiresPermissions("wcs:mtddtaskinfolog:list")
public R list(@RequestParam Map<String, Object> params){
PageUtils page = mtDdTaskInfoLogService.queryPage(params);
return R.ok().put("page", page);
}
/**
* 信息
*/
@GetMapping("/info/{id}") @ApiOperation(value = "详情", notes = "传入id")
@RequiresPermissions("wcs:mtddtaskinfolog:info")
public R info(@PathVariable("id") Integer id){
MtDdTaskInfoLogEntity mtDdTaskInfoLog = mtDdTaskInfoLogService.getById(id);
return R.ok().put("mtDdTaskInfoLog", mtDdTaskInfoLog);
}
/**
* 保存
*/
@GetMapping("/save") @ApiOperation(value = "新增", notes = "传入taskInfoLog")
@RequiresPermissions("wcs:mtddtaskinfolog:save")
public R save(@RequestBody MtDdTaskInfoLogEntity mtDdTaskInfoLog){
mtDdTaskInfoLogService.save(mtDdTaskInfoLog);
return R.ok();
}
/**
* 修改
*/
@GetMapping("/update") @ApiOperation(value = "更新", notes = "传入taskInfoLog")
@RequiresPermissions("wcs:mtddtaskinfolog:update")
public R update(@RequestBody MtDdTaskInfoLogEntity mtDdTaskInfoLog){
mtDdTaskInfoLogService.updateById(mtDdTaskInfoLog);
return R.ok();
}
/**
* 删除
*/
@GetMapping("/delete") @ApiOperation(value = "删除", notes = "传入ids")
@RequiresPermissions("wcs:mtddtaskinfolog:delete")
public R delete(@RequestBody Integer[] ids){
mtDdTaskInfoLogService.removeByIds(Arrays.asList(ids));
return R.ok();
}
}

View File

@@ -0,0 +1,17 @@
package io.renren.modules.wcs.dao;
import io.renren.modules.wcs.entity.MtDdDeviceCodeInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
*
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2020-06-16 10:44:47
*/
@Mapper
public interface MtDdDeviceCodeInfoDao extends BaseMapper<MtDdDeviceCodeInfoEntity> {
}

View File

@@ -0,0 +1,17 @@
package io.renren.modules.wcs.dao;
import io.renren.modules.wcs.entity.MtDdDeviceCodeLogEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
*
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2020-06-16 10:44:47
*/
@Mapper
public interface MtDdDeviceCodeLogDao extends BaseMapper<MtDdDeviceCodeLogEntity> {
}

View File

@@ -0,0 +1,17 @@
package io.renren.modules.wcs.dao;
import io.renren.modules.wcs.entity.MtDdDeviceInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
*
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2020-06-16 10:44:47
*/
@Mapper
public interface MtDdDeviceInfoDao extends BaseMapper<MtDdDeviceInfoEntity> {
}

View File

@@ -0,0 +1,17 @@
package io.renren.modules.wcs.dao;
import io.renren.modules.wcs.entity.MtDdDeviceRunLogEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
*
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2020-06-16 10:44:47
*/
@Mapper
public interface MtDdDeviceRunLogDao extends BaseMapper<MtDdDeviceRunLogEntity> {
}

View File

@@ -0,0 +1,17 @@
package io.renren.modules.wcs.dao;
import io.renren.modules.wcs.entity.MtDdInterfaceInfoLogEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
*
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2020-06-16 10:44:47
*/
@Mapper
public interface MtDdInterfaceInfoLogDao extends BaseMapper<MtDdInterfaceInfoLogEntity> {
}

View File

@@ -0,0 +1,17 @@
package io.renren.modules.wcs.dao;
import io.renren.modules.wcs.entity.MtDdTaskInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
*
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2020-06-16 10:44:47
*/
@Mapper
public interface MtDdTaskInfoDao extends BaseMapper<MtDdTaskInfoEntity> {
}

View File

@@ -0,0 +1,17 @@
package io.renren.modules.wcs.dao;
import io.renren.modules.wcs.entity.MtDdTaskInfoLogEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
*
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2020-06-16 10:44:47
*/
@Mapper
public interface MtDdTaskInfoLogDao extends BaseMapper<MtDdTaskInfoLogEntity> {
}

View File

@@ -0,0 +1,72 @@
package io.renren.modules.wcs.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
*
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2020-06-16 10:44:47
*/
@Data
@TableName("mt_dd_device_code_info")
public class MtDdDeviceCodeInfoEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Integer id;
/**
* 操作员id
*/
private Integer operatorId;
/**
* 添加时间
*/
private Date createTime;
/**
* 修改时间
*/
private Date updateTime;
/**
* 创建人id
*/
private Integer creatorId;
/**
* 更新人id
*/
private Integer updaterId;
/**
* 版本号 默认为 1
*/
private String version;
/**
* 状态 0:正常信息1警告2报警信息
*/
private Integer status;
/**
* 编码BJ0010等
*/
private String code;
/**
* 编码内容
*/
private String content;
/**
* 描述信息
*/
private String description;
/**
* 备注
*/
private String note;
}

View File

@@ -0,0 +1,80 @@
package io.renren.modules.wcs.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
*
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2020-06-16 10:44:47
*/
@Data
@TableName("mt_dd_device_code_log")
public class MtDdDeviceCodeLogEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Integer id;
/**
* 操作员id
*/
private Integer operatorId;
/**
* 添加时间
*/
private Date createTime;
/**
* 修改时间
*/
private Date updateTime;
/**
* 创建人id
*/
private Integer creatorId;
/**
* 更新人id
*/
private Integer updaterId;
/**
* 版本号 默认为 1
*/
private String version;
/**
* 状态 0:正常信息1警告2报警信息
*/
private Integer status;
/**
* 编码BJ0010等
*/
private String code;
/**
* 编码内容,查询表出来 写入内容
*/
private String content;
/**
* 编码信息id关联表mt_dd_device_code_info
*/
private Integer codeInfoId;
/**
* 设备id当然调用设备id关联表mt_dd_device_info
*/
private Integer deviceId;
/**
* 描述信息
*/
private String description;
/**
* 备注
*/
private String note;
}

View File

@@ -0,0 +1,84 @@
package io.renren.modules.wcs.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
*
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2020-06-16 10:44:47
*/
@Data
@TableName("mt_dd_device_info")
public class MtDdDeviceInfoEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Integer id;
/**
* 操作员id
*/
private Integer operatorId;
/**
* 添加时间
*/
private Date createTime;
/**
* 修改时间
*/
private Date updateTime;
/**
* 创建人id
*/
private Integer creatorId;
/**
* 更新人id
*/
private Integer updaterId;
/**
* 版本号 默认为 1
*/
private String version;
/**
* 状态 0表是可以1表示停止2表示维修中
*/
private Integer status;
/**
* 设备名称
*/
private String deviceName;
/**
* 设备编码
*/
private String deviceCode;
/**
* 设备ip地址
*/
private String deviceIp;
/**
* 设备通讯端口号
*/
private String port;
/**
* 联系方式00:无线连接方式01有线连接02:芯片方式
*/
private String connMethod;
/**
* 描述信息
*/
private String description;
/**
* 备注
*/
private String note;
}

View File

@@ -0,0 +1,92 @@
package io.renren.modules.wcs.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
*
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2020-06-16 10:44:47
*/
@Data
@TableName("mt_dd_device_run_log")
public class MtDdDeviceRunLogEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Integer id;
/**
* 操作员id
*/
private Integer operatorId;
/**
* 添加时间
*/
private Date createTime;
/**
* 修改时间
*/
private Date updateTime;
/**
* 创建人id
*/
private Integer creatorId;
/**
* 更新人id
*/
private Integer updaterId;
/**
* 版本号 默认为 1
*/
private String version;
/**
* 状态 0:调用设备1设备返回信息
*/
private Integer status;
/**
* 设备id关联表mt_dd_device_info
*/
private Integer deviceId;
/**
* 设备名称
*/
private String deviceName;
/**
* 当前层
*/
private String currentLayer;
/**
* 当前列
*/
private String currentColumn;
/**
* 当前位号
*/
private String currentRow;
/**
* 状态 0:启动状态1关闭状态
*/
private Integer lStart;
/**
* 运行内容,每次调用设备,或者设备返回信息内容都要记录
*/
private String runContent;
/**
* 描述信息
*/
private String description;
/**
* 备注
*/
private String note;
}

View File

@@ -0,0 +1,80 @@
package io.renren.modules.wcs.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
*
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2020-06-16 10:44:47
*/
@Data
@TableName("mt_dd_interface_info_log")
public class MtDdInterfaceInfoLogEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Integer id;
/**
* 操作员id
*/
private Integer operatorId;
/**
* 添加时间
*/
private Date createTime;
/**
* 修改时间
*/
private Date updateTime;
/**
* 创建人id
*/
private Integer creatorId;
/**
* 更新人id
*/
private Integer updaterId;
/**
* 版本号 默认为 1
*/
private String version;
/**
* 状态 0执行完成1取消
*/
private Integer status;
/**
* 接口名称
*/
private String interfaceName;
/**
* 接收数据,存储格式为:{"变量1"值1"变量2"值2...}
*/
private String receiveValue;
/**
* 上层系统名称,如:仓库业务系统
*/
private String systemSource;
/**
* 返回数据,如:存储格式为:{"变量1"值1"变量2"值2...}
*/
private String returnValue;
/**
* 描述信息
*/
private String description;
/**
* 备注
*/
private String note;
}

View File

@@ -0,0 +1,84 @@
package io.renren.modules.wcs.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
*
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2020-06-16 10:44:47
*/
@Data
@TableName("mt_dd_task_info")
public class MtDdTaskInfoEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Integer id;
/**
* 操作员id
*/
private Integer operatorId;
/**
* 添加时间
*/
private Date createTime;
/**
* 修改时间
*/
private Date updateTime;
/**
* 创建人id
*/
private Integer creatorId;
/**
* 更新人id
*/
private Integer updaterId;
/**
* 版本号 默认为 1
*/
private String version;
/**
* 状态 0执行等待中1正在执行
*/
private Integer status;
/**
* 运行状态 0出库1入库
*/
private Integer runType;
/**
* 运行编码0 0 01 00 001 001
*/
private String runCode;
/**
* 任务编码,作为当前执行任务标识,也可以作为系统扫描硬件执行确认标识,生成规则:时间年到秒-中间表id建议用一个公用表id值如果有更好的方式可以借用
*/
private String taskCode;
/**
* 信息来源0本业务系统 1其他
*/
private Integer source;
/**
* 信息来源系统名,如:仓库系统,第三方仓库系统,小布仓库业务系统等
*/
private String sourceName;
/**
* 描述信息
*/
private String description;
/**
* 备注
*/
private String note;
}

View File

@@ -0,0 +1,84 @@
package io.renren.modules.wcs.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
*
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2020-06-16 10:44:47
*/
@Data
@TableName("mt_dd_task_info_log")
public class MtDdTaskInfoLogEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Integer id;
/**
* 操作员id
*/
private Integer operatorId;
/**
* 添加时间
*/
private Date createTime;
/**
* 修改时间
*/
private Date updateTime;
/**
* 创建人id
*/
private Integer creatorId;
/**
* 更新人id
*/
private Integer updaterId;
/**
* 版本号 默认为 1
*/
private String version;
/**
* 状态 0执行完成1签字取消
*/
private Integer status;
/**
* 运行状态 0出库1入库
*/
private Integer runType;
/**
* 运行编码0 0 01 00 001 001
*/
private String runCode;
/**
* 任务编码,作为当前执行任务标识,也可以作为系统扫描硬件执行确认标识,生成规则:时间年到秒-中间表id建议用一个公用表id值如果有更好的方式可以借用
*/
private String taskCode;
/**
* 信息来源0本业务系统 1其他
*/
private Integer source;
/**
* 信息来源系统名,如:仓库系统,第三方仓库系统,小布仓库业务系统等
*/
private String sourceName;
/**
* 描述信息
*/
private String description;
/**
* 备注
*/
private String note;
}

View File

@@ -0,0 +1,23 @@
package io.renren.modules.wcs.service;
import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.wcs.entity.MtDdDeviceCodeInfoEntity;
import java.util.List;
import java.util.Map;
/**
*
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2020-06-16 10:44:47
*/
public interface MtDdDeviceCodeInfoService extends IService<MtDdDeviceCodeInfoEntity> {
PageUtils queryPage(Map<String, Object> params);
List<MtDdDeviceCodeInfoEntity> selectByDeviceCode(String deviceCode);
}

View File

@@ -0,0 +1,23 @@
package io.renren.modules.wcs.service;
import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.wcs.entity.MtDdDeviceCodeLogEntity;
import java.util.List;
import java.util.Map;
/**
*
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2020-06-16 10:44:47
*/
public interface MtDdDeviceCodeLogService extends IService<MtDdDeviceCodeLogEntity> {
PageUtils queryPage(Map<String, Object> params);
List<MtDdDeviceCodeLogEntity> selectByDeviceCode(String deviceCode);
}

View File

@@ -0,0 +1,23 @@
package io.renren.modules.wcs.service;
import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.wcs.entity.MtDdDeviceInfoEntity;
import java.util.List;
import java.util.Map;
/**
*
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2020-06-16 10:44:47
*/
public interface MtDdDeviceInfoService extends IService<MtDdDeviceInfoEntity> {
PageUtils queryPage(Map<String, Object> params);
List<MtDdDeviceInfoEntity> selectByCode(String deviceCode);
}

View File

@@ -0,0 +1,24 @@
package io.renren.modules.wcs.service;
import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.wcs.entity.MtDdDeviceRunLogEntity;
import java.util.List;
import java.util.Map;
/**
*
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2020-06-16 10:44:47
*/
public interface MtDdDeviceRunLogService extends IService<MtDdDeviceRunLogEntity> {
PageUtils queryPage(Map<String, Object> params);
List<MtDdDeviceRunLogEntity> selectByDeviceId(String deviceId);
}

View File

@@ -0,0 +1,23 @@
package io.renren.modules.wcs.service;
import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.wcs.entity.MtDdInterfaceInfoLogEntity;
import java.util.List;
import java.util.Map;
/**
*
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2020-06-16 10:44:47
*/
public interface MtDdInterfaceInfoLogService extends IService<MtDdInterfaceInfoLogEntity> {
PageUtils queryPage(Map<String, Object> params);
List<MtDdInterfaceInfoLogEntity> selectByInterfaceName(String interfaceName);
}

View File

@@ -0,0 +1,23 @@
package io.renren.modules.wcs.service;
import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.wcs.entity.MtDdTaskInfoLogEntity;
import java.util.List;
import java.util.Map;
/**
*
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2020-06-16 10:44:47
*/
public interface MtDdTaskInfoLogService extends IService<MtDdTaskInfoLogEntity> {
PageUtils queryPage(Map<String, Object> params);
List<MtDdTaskInfoLogEntity> selectByTaskCode(String taskCode);
}

View File

@@ -0,0 +1,24 @@
package io.renren.modules.wcs.service;
import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.wcs.entity.MtDdTaskInfoEntity;
import java.util.List;
import java.util.Map;
/**
*
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2020-06-16 10:44:47
*/
public interface MtDdTaskInfoService extends IService<MtDdTaskInfoEntity> {
PageUtils queryPage(Map<String, Object> params);
List<MtDdTaskInfoEntity> selectByTaskCode(String taskCode);
}

View File

@@ -0,0 +1,36 @@
package io.renren.modules.wcs.service.impl;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.wcs.dao.MtDdDeviceCodeInfoDao;
import io.renren.modules.wcs.entity.MtDdDeviceCodeInfoEntity;
import io.renren.modules.wcs.service.MtDdDeviceCodeInfoService;
@Service("mtDdDeviceCodeInfoService")
public class MtDdDeviceCodeInfoServiceImpl extends ServiceImpl<MtDdDeviceCodeInfoDao, MtDdDeviceCodeInfoEntity> implements MtDdDeviceCodeInfoService {
@Override
public PageUtils queryPage(Map<String, Object> params) {
IPage<MtDdDeviceCodeInfoEntity> page = this.page(
new Query<MtDdDeviceCodeInfoEntity>().getPage(params),
new QueryWrapper<MtDdDeviceCodeInfoEntity>()
);
return new PageUtils(page);
}
@Override
public List<MtDdDeviceCodeInfoEntity> selectByDeviceCode(String deviceCode) {
return baseMapper.selectList(new QueryWrapper<MtDdDeviceCodeInfoEntity>().like("code",deviceCode));
}
}

View File

@@ -0,0 +1,36 @@
package io.renren.modules.wcs.service.impl;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.wcs.dao.MtDdDeviceCodeLogDao;
import io.renren.modules.wcs.entity.MtDdDeviceCodeLogEntity;
import io.renren.modules.wcs.service.MtDdDeviceCodeLogService;
@Service("mtDdDeviceCodeLogService")
public class MtDdDeviceCodeLogServiceImpl extends ServiceImpl<MtDdDeviceCodeLogDao, MtDdDeviceCodeLogEntity> implements MtDdDeviceCodeLogService {
@Override
public PageUtils queryPage(Map<String, Object> params) {
IPage<MtDdDeviceCodeLogEntity> page = this.page(
new Query<MtDdDeviceCodeLogEntity>().getPage(params),
new QueryWrapper<MtDdDeviceCodeLogEntity>()
);
return new PageUtils(page);
}
@Override
public List<MtDdDeviceCodeLogEntity> selectByDeviceCode(String deviceCode) {
return baseMapper.selectList(new QueryWrapper<MtDdDeviceCodeLogEntity>().like("code",deviceCode));
}
}

View File

@@ -0,0 +1,37 @@
package io.renren.modules.wcs.service.impl;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.wcs.dao.MtDdDeviceInfoDao;
import io.renren.modules.wcs.entity.MtDdDeviceInfoEntity;
import io.renren.modules.wcs.service.MtDdDeviceInfoService;
@Service("mtDdDeviceInfoService")
public class MtDdDeviceInfoServiceImpl extends ServiceImpl<MtDdDeviceInfoDao, MtDdDeviceInfoEntity> implements MtDdDeviceInfoService {
@Override
public PageUtils queryPage(Map<String, Object> params) {
IPage<MtDdDeviceInfoEntity> page = this.page(
new Query<MtDdDeviceInfoEntity>().getPage(params),
new QueryWrapper<MtDdDeviceInfoEntity>()
);
return new PageUtils(page);
}
@Override
public List<MtDdDeviceInfoEntity> selectByCode(String deviceCode) {
return baseMapper.selectList(new QueryWrapper<MtDdDeviceInfoEntity>().like("device_code",deviceCode));
}
}

View File

@@ -0,0 +1,36 @@
package io.renren.modules.wcs.service.impl;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.wcs.dao.MtDdDeviceRunLogDao;
import io.renren.modules.wcs.entity.MtDdDeviceRunLogEntity;
import io.renren.modules.wcs.service.MtDdDeviceRunLogService;
@Service("mtDdDeviceRunLogService")
public class MtDdDeviceRunLogServiceImpl extends ServiceImpl<MtDdDeviceRunLogDao, MtDdDeviceRunLogEntity> implements MtDdDeviceRunLogService {
@Override
public PageUtils queryPage(Map<String, Object> params) {
IPage<MtDdDeviceRunLogEntity> page = this.page(
new Query<MtDdDeviceRunLogEntity>().getPage(params),
new QueryWrapper<MtDdDeviceRunLogEntity>()
);
return new PageUtils(page);
}
@Override
public List<MtDdDeviceRunLogEntity> selectByDeviceId(String deviceId) {
return baseMapper.selectList(new QueryWrapper<MtDdDeviceRunLogEntity>().like("device_id",deviceId));
}
}

View File

@@ -0,0 +1,36 @@
package io.renren.modules.wcs.service.impl;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.wcs.dao.MtDdInterfaceInfoLogDao;
import io.renren.modules.wcs.entity.MtDdInterfaceInfoLogEntity;
import io.renren.modules.wcs.service.MtDdInterfaceInfoLogService;
@Service("mtDdInterfaceInfoLogService")
public class MtDdInterfaceInfoLogServiceImpl extends ServiceImpl<MtDdInterfaceInfoLogDao, MtDdInterfaceInfoLogEntity> implements MtDdInterfaceInfoLogService {
@Override
public PageUtils queryPage(Map<String, Object> params) {
IPage<MtDdInterfaceInfoLogEntity> page = this.page(
new Query<MtDdInterfaceInfoLogEntity>().getPage(params),
new QueryWrapper<MtDdInterfaceInfoLogEntity>()
);
return new PageUtils(page);
}
@Override
public List<MtDdInterfaceInfoLogEntity> selectByInterfaceName(String interfaceName) {
return baseMapper.selectList(new QueryWrapper<MtDdInterfaceInfoLogEntity>().like("interface_name",interfaceName));
}
}

View File

@@ -0,0 +1,36 @@
package io.renren.modules.wcs.service.impl;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.wcs.dao.MtDdTaskInfoLogDao;
import io.renren.modules.wcs.entity.MtDdTaskInfoLogEntity;
import io.renren.modules.wcs.service.MtDdTaskInfoLogService;
@Service("mtDdTaskInfoLogService")
public class MtDdTaskInfoLogServiceImpl extends ServiceImpl<MtDdTaskInfoLogDao, MtDdTaskInfoLogEntity> implements MtDdTaskInfoLogService {
@Override
public PageUtils queryPage(Map<String, Object> params) {
IPage<MtDdTaskInfoLogEntity> page = this.page(
new Query<MtDdTaskInfoLogEntity>().getPage(params),
new QueryWrapper<MtDdTaskInfoLogEntity>()
);
return new PageUtils(page);
}
@Override
public List<MtDdTaskInfoLogEntity> selectByTaskCode(String taskCode) {
return baseMapper.selectList(new QueryWrapper<MtDdTaskInfoLogEntity>().like("task_code",taskCode));
}
}

View File

@@ -0,0 +1,36 @@
package io.renren.modules.wcs.service.impl;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.wcs.dao.MtDdTaskInfoDao;
import io.renren.modules.wcs.entity.MtDdTaskInfoEntity;
import io.renren.modules.wcs.service.MtDdTaskInfoService;
@Service("mtDdTaskInfoService")
public class MtDdTaskInfoServiceImpl extends ServiceImpl<MtDdTaskInfoDao, MtDdTaskInfoEntity> implements MtDdTaskInfoService {
@Override
public PageUtils queryPage(Map<String, Object> params) {
IPage<MtDdTaskInfoEntity> page = this.page(
new Query<MtDdTaskInfoEntity>().getPage(params),
new QueryWrapper<MtDdTaskInfoEntity>()
);
return new PageUtils(page);
}
@Override
public List<MtDdTaskInfoEntity> selectByTaskCode(String taskCode) {
return baseMapper.selectList(new QueryWrapper<MtDdTaskInfoEntity>().like("task_code",taskCode));
}
}

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="io.renren.modules.wcs.dao.MtDdDeviceCodeInfoDao">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="io.renren.modules.wcs.entity.MtDdDeviceCodeInfoEntity" id="mtDdDeviceCodeInfoMap">
<result property="id" column="id"/>
<result property="operatorId" column="operator_id"/>
<result property="createTime" column="create_time"/>
<result property="updateTime" column="update_time"/>
<result property="creatorId" column="creator_id"/>
<result property="updaterId" column="updater_id"/>
<result property="version" column="version"/>
<result property="status" column="status"/>
<result property="code" column="code"/>
<result property="content" column="content"/>
<result property="description" column="description"/>
<result property="note" column="note"/>
</resultMap>
</mapper>

View File

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="io.renren.modules.wcs.dao.MtDdDeviceCodeLogDao">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="io.renren.modules.wcs.entity.MtDdDeviceCodeLogEntity" id="mtDdDeviceCodeLogMap">
<result property="id" column="id"/>
<result property="operatorId" column="operator_id"/>
<result property="createTime" column="create_time"/>
<result property="updateTime" column="update_time"/>
<result property="creatorId" column="creator_id"/>
<result property="updaterId" column="updater_id"/>
<result property="version" column="version"/>
<result property="status" column="status"/>
<result property="code" column="code"/>
<result property="content" column="content"/>
<result property="codeInfoId" column="code_info_id"/>
<result property="deviceId" column="device_id"/>
<result property="description" column="description"/>
<result property="note" column="note"/>
</resultMap>
</mapper>

View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="io.renren.modules.wcs.dao.MtDdDeviceInfoDao">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="io.renren.modules.wcs.entity.MtDdDeviceInfoEntity" id="mtDdDeviceInfoMap">
<result property="id" column="id"/>
<result property="operatorId" column="operator_id"/>
<result property="createTime" column="create_time"/>
<result property="updateTime" column="update_time"/>
<result property="creatorId" column="creator_id"/>
<result property="updaterId" column="updater_id"/>
<result property="version" column="version"/>
<result property="status" column="status"/>
<result property="deviceName" column="device_name"/>
<result property="deviceCode" column="device_code"/>
<result property="deviceIp" column="device_ip"/>
<result property="port" column="port"/>
<result property="connMethod" column="conn_method"/>
<result property="description" column="description"/>
<result property="note" column="note"/>
</resultMap>
</mapper>

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="io.renren.modules.wcs.dao.MtDdDeviceRunLogDao">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="io.renren.modules.wcs.entity.MtDdDeviceRunLogEntity" id="mtDdDeviceRunLogMap">
<result property="id" column="id"/>
<result property="operatorId" column="operator_id"/>
<result property="createTime" column="create_time"/>
<result property="updateTime" column="update_time"/>
<result property="creatorId" column="creator_id"/>
<result property="updaterId" column="updater_id"/>
<result property="version" column="version"/>
<result property="status" column="status"/>
<result property="deviceId" column="device_id"/>
<result property="deviceName" column="device_name"/>
<result property="currentLayer" column="current_layer"/>
<result property="currentColumn" column="current_column"/>
<result property="currentRow" column="current_row"/>
<result property="lStart" column="l_Start"/>
<result property="runContent" column="run_content"/>
<result property="description" column="description"/>
<result property="note" column="note"/>
</resultMap>
</mapper>

View File

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="io.renren.modules.wcs.dao.MtDdInterfaceInfoLogDao">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="io.renren.modules.wcs.entity.MtDdInterfaceInfoLogEntity" id="mtDdInterfaceInfoLogMap">
<result property="id" column="id"/>
<result property="operatorId" column="operator_id"/>
<result property="createTime" column="create_time"/>
<result property="updateTime" column="update_time"/>
<result property="creatorId" column="creator_id"/>
<result property="updaterId" column="updater_id"/>
<result property="version" column="version"/>
<result property="status" column="status"/>
<result property="interfaceName" column="interface_name"/>
<result property="receiveValue" column="receive_value"/>
<result property="systemSource" column="system_source"/>
<result property="returnValue" column="return_value"/>
<result property="description" column="description"/>
<result property="note" column="note"/>
</resultMap>
</mapper>

View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="io.renren.modules.wcs.dao.MtDdTaskInfoDao">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="io.renren.modules.wcs.entity.MtDdTaskInfoEntity" id="mtDdTaskInfoMap">
<result property="id" column="id"/>
<result property="operatorId" column="operator_id"/>
<result property="createTime" column="create_time"/>
<result property="updateTime" column="update_time"/>
<result property="creatorId" column="creator_id"/>
<result property="updaterId" column="updater_id"/>
<result property="version" column="version"/>
<result property="status" column="status"/>
<result property="runType" column="run_type"/>
<result property="runCode" column="run_code"/>
<result property="taskCode" column="task_code"/>
<result property="source" column="source"/>
<result property="sourceName" column="source_name"/>
<result property="description" column="description"/>
<result property="note" column="note"/>
</resultMap>
</mapper>

View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="io.renren.modules.wcs.dao.MtDdTaskInfoLogDao">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="io.renren.modules.wcs.entity.MtDdTaskInfoLogEntity" id="mtDdTaskInfoLogMap">
<result property="id" column="id"/>
<result property="operatorId" column="operator_id"/>
<result property="createTime" column="create_time"/>
<result property="updateTime" column="update_time"/>
<result property="creatorId" column="creator_id"/>
<result property="updaterId" column="updater_id"/>
<result property="version" column="version"/>
<result property="status" column="status"/>
<result property="runType" column="run_type"/>
<result property="runCode" column="run_code"/>
<result property="taskCode" column="task_code"/>
<result property="source" column="source"/>
<result property="sourceName" column="source_name"/>
<result property="description" column="description"/>
<result property="note" column="note"/>
</resultMap>
</mapper>

View File

@@ -0,0 +1,174 @@
<template>
<el-dialog
:title="!dataForm.id ? '新增' : '修改'"
:close-on-click-modal="false"
:visible.sync="visible">
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px">
<el-form-item label="操作员id" prop="operatorId">
<el-input v-model="dataForm.operatorId" placeholder="操作员id"></el-input>
</el-form-item>
<el-form-item label="添加时间" prop="createTime">
<el-input v-model="dataForm.createTime" placeholder="添加时间"></el-input>
</el-form-item>
<el-form-item label="修改时间" prop="updateTime">
<el-input v-model="dataForm.updateTime" placeholder="修改时间"></el-input>
</el-form-item>
<el-form-item label="创建人id" prop="creatorId">
<el-input v-model="dataForm.creatorId" placeholder="创建人id"></el-input>
</el-form-item>
<el-form-item label="更新人id" prop="updaterId">
<el-input v-model="dataForm.updaterId" placeholder="更新人id"></el-input>
</el-form-item>
<el-form-item label="版本号 默认为 1" prop="version">
<el-input v-model="dataForm.version" placeholder="版本号 默认为 1"></el-input>
</el-form-item>
<el-form-item label="状态 0:正常信息1警告2报警信息" prop="status">
<el-input v-model="dataForm.status" placeholder="状态 0:正常信息1警告2报警信息"></el-input>
</el-form-item>
<el-form-item label="编码BJ0010等" prop="code">
<el-input v-model="dataForm.code" placeholder="编码BJ0010等"></el-input>
</el-form-item>
<el-form-item label="编码内容" prop="content">
<el-input v-model="dataForm.content" placeholder="编码内容"></el-input>
</el-form-item>
<el-form-item label="描述信息" prop="description">
<el-input v-model="dataForm.description" placeholder="描述信息"></el-input>
</el-form-item>
<el-form-item label="备注" prop="note">
<el-input v-model="dataForm.note" placeholder="备注"></el-input>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false">取消</el-button>
<el-button type="primary" @click="dataFormSubmit()">确定</el-button>
</span>
</el-dialog>
</template>
<script>
export default {
data () {
return {
visible: false,
dataForm: {
id: 0,
operatorId: '',
createTime: '',
updateTime: '',
creatorId: '',
updaterId: '',
version: '',
status: '',
code: '',
content: '',
description: '',
note: ''
},
dataRule: {
operatorId: [
{ required: true, message: '操作员id不能为空', trigger: 'blur' }
],
createTime: [
{ required: true, message: '添加时间不能为空', trigger: 'blur' }
],
updateTime: [
{ required: true, message: '修改时间不能为空', trigger: 'blur' }
],
creatorId: [
{ required: true, message: '创建人id不能为空', trigger: 'blur' }
],
updaterId: [
{ required: true, message: '更新人id不能为空', trigger: 'blur' }
],
version: [
{ required: true, message: '版本号 默认为 1不能为空', trigger: 'blur' }
],
status: [
{ required: true, message: '状态 0:正常信息1警告2报警信息不能为空', trigger: 'blur' }
],
code: [
{ required: true, message: '编码BJ0010等不能为空', trigger: 'blur' }
],
content: [
{ required: true, message: '编码内容不能为空', trigger: 'blur' }
],
description: [
{ required: true, message: '描述信息不能为空', trigger: 'blur' }
],
note: [
{ required: true, message: '备注不能为空', trigger: 'blur' }
]
}
}
},
methods: {
init (id) {
this.dataForm.id = id || 0
this.visible = true
this.$nextTick(() => {
this.$refs['dataForm'].resetFields()
if (this.dataForm.id) {
this.$http({
url: this.$http.adornUrl(`/wcs/mtdddevicecodeinfo/info/${this.dataForm.id}`),
method: 'get',
params: this.$http.adornParams()
}).then(({data}) => {
if (data && data.code === 0) {
this.dataForm.operatorId = data.mtDdDeviceCodeInfo.operatorId
this.dataForm.createTime = data.mtDdDeviceCodeInfo.createTime
this.dataForm.updateTime = data.mtDdDeviceCodeInfo.updateTime
this.dataForm.creatorId = data.mtDdDeviceCodeInfo.creatorId
this.dataForm.updaterId = data.mtDdDeviceCodeInfo.updaterId
this.dataForm.version = data.mtDdDeviceCodeInfo.version
this.dataForm.status = data.mtDdDeviceCodeInfo.status
this.dataForm.code = data.mtDdDeviceCodeInfo.code
this.dataForm.content = data.mtDdDeviceCodeInfo.content
this.dataForm.description = data.mtDdDeviceCodeInfo.description
this.dataForm.note = data.mtDdDeviceCodeInfo.note
}
})
}
})
},
// 表单提交
dataFormSubmit () {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.$http({
url: this.$http.adornUrl(`/wcs/mtdddevicecodeinfo/${!this.dataForm.id ? 'save' : 'update'}`),
method: 'post',
data: this.$http.adornData({
'id': this.dataForm.id || undefined,
'operatorId': this.dataForm.operatorId,
'createTime': this.dataForm.createTime,
'updateTime': this.dataForm.updateTime,
'creatorId': this.dataForm.creatorId,
'updaterId': this.dataForm.updaterId,
'version': this.dataForm.version,
'status': this.dataForm.status,
'code': this.dataForm.code,
'content': this.dataForm.content,
'description': this.dataForm.description,
'note': this.dataForm.note
})
}).then(({data}) => {
if (data && data.code === 0) {
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {
this.visible = false
this.$emit('refreshDataList')
}
})
} else {
this.$message.error(data.msg)
}
})
}
})
}
}
}
</script>

View File

@@ -0,0 +1,223 @@
<template>
<div class="mod-config">
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
<el-form-item>
<el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input>
</el-form-item>
<el-form-item>
<el-button @click="getDataList()">查询</el-button>
<el-button v-if="isAuth('wcs:mtdddevicecodeinfo:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
<el-button v-if="isAuth('wcs:mtdddevicecodeinfo:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button>
</el-form-item>
</el-form>
<el-table
:data="dataList"
border
v-loading="dataListLoading"
@selection-change="selectionChangeHandle"
style="width: 100%;">
<el-table-column
type="selection"
header-align="center"
align="center"
width="50">
</el-table-column>
<el-table-column
prop="id"
header-align="center"
align="center"
label="">
</el-table-column>
<el-table-column
prop="operatorId"
header-align="center"
align="center"
label="操作员id">
</el-table-column>
<el-table-column
prop="createTime"
header-align="center"
align="center"
label="添加时间">
</el-table-column>
<el-table-column
prop="updateTime"
header-align="center"
align="center"
label="修改时间">
</el-table-column>
<el-table-column
prop="creatorId"
header-align="center"
align="center"
label="创建人id">
</el-table-column>
<el-table-column
prop="updaterId"
header-align="center"
align="center"
label="更新人id">
</el-table-column>
<el-table-column
prop="version"
header-align="center"
align="center"
label="版本号 默认为 1">
</el-table-column>
<el-table-column
prop="status"
header-align="center"
align="center"
label="状态 0:正常信息1警告2报警信息">
</el-table-column>
<el-table-column
prop="code"
header-align="center"
align="center"
label="编码BJ0010等">
</el-table-column>
<el-table-column
prop="content"
header-align="center"
align="center"
label="编码内容">
</el-table-column>
<el-table-column
prop="description"
header-align="center"
align="center"
label="描述信息">
</el-table-column>
<el-table-column
prop="note"
header-align="center"
align="center"
label="备注">
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
label="操作">
<template slot-scope="scope">
<el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button>
<el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button>
</template>
</el-table-column>
</el-table>
<el-pagination
@size-change="sizeChangeHandle"
@current-change="currentChangeHandle"
:current-page="pageIndex"
:page-sizes="[10, 20, 50, 100]"
:page-size="pageSize"
:total="totalPage"
layout="total, sizes, prev, pager, next, jumper">
</el-pagination>
<!-- 弹窗, 新增 / 修改 -->
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
</div>
</template>
<script>
import AddOrUpdate from './mtdddevicecodeinfo-add-or-update'
export default {
data () {
return {
dataForm: {
key: ''
},
dataList: [],
pageIndex: 1,
pageSize: 10,
totalPage: 0,
dataListLoading: false,
dataListSelections: [],
addOrUpdateVisible: false
}
},
components: {
AddOrUpdate
},
activated () {
this.getDataList()
},
methods: {
// 获取数据列表
getDataList () {
this.dataListLoading = true
this.$http({
url: this.$http.adornUrl('/wcs/mtdddevicecodeinfo/list'),
method: 'get',
params: this.$http.adornParams({
'page': this.pageIndex,
'limit': this.pageSize,
'key': this.dataForm.key
})
}).then(({data}) => {
if (data && data.code === 0) {
this.dataList = data.page.list
this.totalPage = data.page.totalCount
} else {
this.dataList = []
this.totalPage = 0
}
this.dataListLoading = false
})
},
// 每页数
sizeChangeHandle (val) {
this.pageSize = val
this.pageIndex = 1
this.getDataList()
},
// 当前页
currentChangeHandle (val) {
this.pageIndex = val
this.getDataList()
},
// 多选
selectionChangeHandle (val) {
this.dataListSelections = val
},
// 新增 / 修改
addOrUpdateHandle (id) {
this.addOrUpdateVisible = true
this.$nextTick(() => {
this.$refs.addOrUpdate.init(id)
})
},
// 删除
deleteHandle (id) {
var ids = id ? [id] : this.dataListSelections.map(item => {
return item.id
})
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$http({
url: this.$http.adornUrl('/wcs/mtdddevicecodeinfo/delete'),
method: 'post',
data: this.$http.adornData(ids, false)
}).then(({data}) => {
if (data && data.code === 0) {
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {
this.getDataList()
}
})
} else {
this.$message.error(data.msg)
}
})
})
}
}
}
</script>

View File

@@ -0,0 +1,192 @@
<template>
<el-dialog
:title="!dataForm.id ? '新增' : '修改'"
:close-on-click-modal="false"
:visible.sync="visible">
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px">
<el-form-item label="操作员id" prop="operatorId">
<el-input v-model="dataForm.operatorId" placeholder="操作员id"></el-input>
</el-form-item>
<el-form-item label="添加时间" prop="createTime">
<el-input v-model="dataForm.createTime" placeholder="添加时间"></el-input>
</el-form-item>
<el-form-item label="修改时间" prop="updateTime">
<el-input v-model="dataForm.updateTime" placeholder="修改时间"></el-input>
</el-form-item>
<el-form-item label="创建人id" prop="creatorId">
<el-input v-model="dataForm.creatorId" placeholder="创建人id"></el-input>
</el-form-item>
<el-form-item label="更新人id" prop="updaterId">
<el-input v-model="dataForm.updaterId" placeholder="更新人id"></el-input>
</el-form-item>
<el-form-item label="版本号 默认为 1" prop="version">
<el-input v-model="dataForm.version" placeholder="版本号 默认为 1"></el-input>
</el-form-item>
<el-form-item label="状态 0:正常信息1警告2报警信息" prop="status">
<el-input v-model="dataForm.status" placeholder="状态 0:正常信息1警告2报警信息"></el-input>
</el-form-item>
<el-form-item label="编码BJ0010等" prop="code">
<el-input v-model="dataForm.code" placeholder="编码BJ0010等"></el-input>
</el-form-item>
<el-form-item label="编码内容,查询表出来 写入内容" prop="content">
<el-input v-model="dataForm.content" placeholder="编码内容,查询表出来 写入内容"></el-input>
</el-form-item>
<el-form-item label="编码信息id关联表mt_dd_device_code_info" prop="codeInfoId">
<el-input v-model="dataForm.codeInfoId" placeholder="编码信息id关联表mt_dd_device_code_info"></el-input>
</el-form-item>
<el-form-item label="设备id当然调用设备id关联表mt_dd_device_info" prop="deviceId">
<el-input v-model="dataForm.deviceId" placeholder="设备id当然调用设备id关联表mt_dd_device_info"></el-input>
</el-form-item>
<el-form-item label="描述信息" prop="description">
<el-input v-model="dataForm.description" placeholder="描述信息"></el-input>
</el-form-item>
<el-form-item label="备注" prop="note">
<el-input v-model="dataForm.note" placeholder="备注"></el-input>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false">取消</el-button>
<el-button type="primary" @click="dataFormSubmit()">确定</el-button>
</span>
</el-dialog>
</template>
<script>
export default {
data () {
return {
visible: false,
dataForm: {
id: 0,
operatorId: '',
createTime: '',
updateTime: '',
creatorId: '',
updaterId: '',
version: '',
status: '',
code: '',
content: '',
codeInfoId: '',
deviceId: '',
description: '',
note: ''
},
dataRule: {
operatorId: [
{ required: true, message: '操作员id不能为空', trigger: 'blur' }
],
createTime: [
{ required: true, message: '添加时间不能为空', trigger: 'blur' }
],
updateTime: [
{ required: true, message: '修改时间不能为空', trigger: 'blur' }
],
creatorId: [
{ required: true, message: '创建人id不能为空', trigger: 'blur' }
],
updaterId: [
{ required: true, message: '更新人id不能为空', trigger: 'blur' }
],
version: [
{ required: true, message: '版本号 默认为 1不能为空', trigger: 'blur' }
],
status: [
{ required: true, message: '状态 0:正常信息1警告2报警信息不能为空', trigger: 'blur' }
],
code: [
{ required: true, message: '编码BJ0010等不能为空', trigger: 'blur' }
],
content: [
{ required: true, message: '编码内容,查询表出来 写入内容不能为空', trigger: 'blur' }
],
codeInfoId: [
{ required: true, message: '编码信息id关联表mt_dd_device_code_info不能为空', trigger: 'blur' }
],
deviceId: [
{ required: true, message: '设备id当然调用设备id关联表mt_dd_device_info不能为空', trigger: 'blur' }
],
description: [
{ required: true, message: '描述信息不能为空', trigger: 'blur' }
],
note: [
{ required: true, message: '备注不能为空', trigger: 'blur' }
]
}
}
},
methods: {
init (id) {
this.dataForm.id = id || 0
this.visible = true
this.$nextTick(() => {
this.$refs['dataForm'].resetFields()
if (this.dataForm.id) {
this.$http({
url: this.$http.adornUrl(`/wcs/mtdddevicecodelog/info/${this.dataForm.id}`),
method: 'get',
params: this.$http.adornParams()
}).then(({data}) => {
if (data && data.code === 0) {
this.dataForm.operatorId = data.mtDdDeviceCodeLog.operatorId
this.dataForm.createTime = data.mtDdDeviceCodeLog.createTime
this.dataForm.updateTime = data.mtDdDeviceCodeLog.updateTime
this.dataForm.creatorId = data.mtDdDeviceCodeLog.creatorId
this.dataForm.updaterId = data.mtDdDeviceCodeLog.updaterId
this.dataForm.version = data.mtDdDeviceCodeLog.version
this.dataForm.status = data.mtDdDeviceCodeLog.status
this.dataForm.code = data.mtDdDeviceCodeLog.code
this.dataForm.content = data.mtDdDeviceCodeLog.content
this.dataForm.codeInfoId = data.mtDdDeviceCodeLog.codeInfoId
this.dataForm.deviceId = data.mtDdDeviceCodeLog.deviceId
this.dataForm.description = data.mtDdDeviceCodeLog.description
this.dataForm.note = data.mtDdDeviceCodeLog.note
}
})
}
})
},
// 表单提交
dataFormSubmit () {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.$http({
url: this.$http.adornUrl(`/wcs/mtdddevicecodelog/${!this.dataForm.id ? 'save' : 'update'}`),
method: 'post',
data: this.$http.adornData({
'id': this.dataForm.id || undefined,
'operatorId': this.dataForm.operatorId,
'createTime': this.dataForm.createTime,
'updateTime': this.dataForm.updateTime,
'creatorId': this.dataForm.creatorId,
'updaterId': this.dataForm.updaterId,
'version': this.dataForm.version,
'status': this.dataForm.status,
'code': this.dataForm.code,
'content': this.dataForm.content,
'codeInfoId': this.dataForm.codeInfoId,
'deviceId': this.dataForm.deviceId,
'description': this.dataForm.description,
'note': this.dataForm.note
})
}).then(({data}) => {
if (data && data.code === 0) {
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {
this.visible = false
this.$emit('refreshDataList')
}
})
} else {
this.$message.error(data.msg)
}
})
}
})
}
}
}
</script>

View File

@@ -0,0 +1,235 @@
<template>
<div class="mod-config">
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
<el-form-item>
<el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input>
</el-form-item>
<el-form-item>
<el-button @click="getDataList()">查询</el-button>
<el-button v-if="isAuth('wcs:mtdddevicecodelog:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
<el-button v-if="isAuth('wcs:mtdddevicecodelog:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button>
</el-form-item>
</el-form>
<el-table
:data="dataList"
border
v-loading="dataListLoading"
@selection-change="selectionChangeHandle"
style="width: 100%;">
<el-table-column
type="selection"
header-align="center"
align="center"
width="50">
</el-table-column>
<el-table-column
prop="id"
header-align="center"
align="center"
label="">
</el-table-column>
<el-table-column
prop="operatorId"
header-align="center"
align="center"
label="操作员id">
</el-table-column>
<el-table-column
prop="createTime"
header-align="center"
align="center"
label="添加时间">
</el-table-column>
<el-table-column
prop="updateTime"
header-align="center"
align="center"
label="修改时间">
</el-table-column>
<el-table-column
prop="creatorId"
header-align="center"
align="center"
label="创建人id">
</el-table-column>
<el-table-column
prop="updaterId"
header-align="center"
align="center"
label="更新人id">
</el-table-column>
<el-table-column
prop="version"
header-align="center"
align="center"
label="版本号 默认为 1">
</el-table-column>
<el-table-column
prop="status"
header-align="center"
align="center"
label="状态 0:正常信息1警告2报警信息">
</el-table-column>
<el-table-column
prop="code"
header-align="center"
align="center"
label="编码BJ0010等">
</el-table-column>
<el-table-column
prop="content"
header-align="center"
align="center"
label="编码内容,查询表出来 写入内容">
</el-table-column>
<el-table-column
prop="codeInfoId"
header-align="center"
align="center"
label="编码信息id关联表mt_dd_device_code_info">
</el-table-column>
<el-table-column
prop="deviceId"
header-align="center"
align="center"
label="设备id当然调用设备id关联表mt_dd_device_info">
</el-table-column>
<el-table-column
prop="description"
header-align="center"
align="center"
label="描述信息">
</el-table-column>
<el-table-column
prop="note"
header-align="center"
align="center"
label="备注">
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
label="操作">
<template slot-scope="scope">
<el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button>
<el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button>
</template>
</el-table-column>
</el-table>
<el-pagination
@size-change="sizeChangeHandle"
@current-change="currentChangeHandle"
:current-page="pageIndex"
:page-sizes="[10, 20, 50, 100]"
:page-size="pageSize"
:total="totalPage"
layout="total, sizes, prev, pager, next, jumper">
</el-pagination>
<!-- 弹窗, 新增 / 修改 -->
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
</div>
</template>
<script>
import AddOrUpdate from './mtdddevicecodelog-add-or-update'
export default {
data () {
return {
dataForm: {
key: ''
},
dataList: [],
pageIndex: 1,
pageSize: 10,
totalPage: 0,
dataListLoading: false,
dataListSelections: [],
addOrUpdateVisible: false
}
},
components: {
AddOrUpdate
},
activated () {
this.getDataList()
},
methods: {
// 获取数据列表
getDataList () {
this.dataListLoading = true
this.$http({
url: this.$http.adornUrl('/wcs/mtdddevicecodelog/list'),
method: 'get',
params: this.$http.adornParams({
'page': this.pageIndex,
'limit': this.pageSize,
'key': this.dataForm.key
})
}).then(({data}) => {
if (data && data.code === 0) {
this.dataList = data.page.list
this.totalPage = data.page.totalCount
} else {
this.dataList = []
this.totalPage = 0
}
this.dataListLoading = false
})
},
// 每页数
sizeChangeHandle (val) {
this.pageSize = val
this.pageIndex = 1
this.getDataList()
},
// 当前页
currentChangeHandle (val) {
this.pageIndex = val
this.getDataList()
},
// 多选
selectionChangeHandle (val) {
this.dataListSelections = val
},
// 新增 / 修改
addOrUpdateHandle (id) {
this.addOrUpdateVisible = true
this.$nextTick(() => {
this.$refs.addOrUpdate.init(id)
})
},
// 删除
deleteHandle (id) {
var ids = id ? [id] : this.dataListSelections.map(item => {
return item.id
})
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$http({
url: this.$http.adornUrl('/wcs/mtdddevicecodelog/delete'),
method: 'post',
data: this.$http.adornData(ids, false)
}).then(({data}) => {
if (data && data.code === 0) {
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {
this.getDataList()
}
})
} else {
this.$message.error(data.msg)
}
})
})
}
}
}
</script>

View File

@@ -0,0 +1,201 @@
<template>
<el-dialog
:title="!dataForm.id ? '新增' : '修改'"
:close-on-click-modal="false"
:visible.sync="visible">
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px">
<el-form-item label="操作员id" prop="operatorId">
<el-input v-model="dataForm.operatorId" placeholder="操作员id"></el-input>
</el-form-item>
<el-form-item label="添加时间" prop="createTime">
<el-input v-model="dataForm.createTime" placeholder="添加时间"></el-input>
</el-form-item>
<el-form-item label="修改时间" prop="updateTime">
<el-input v-model="dataForm.updateTime" placeholder="修改时间"></el-input>
</el-form-item>
<el-form-item label="创建人id" prop="creatorId">
<el-input v-model="dataForm.creatorId" placeholder="创建人id"></el-input>
</el-form-item>
<el-form-item label="更新人id" prop="updaterId">
<el-input v-model="dataForm.updaterId" placeholder="更新人id"></el-input>
</el-form-item>
<el-form-item label="版本号 默认为 1" prop="version">
<el-input v-model="dataForm.version" placeholder="版本号 默认为 1"></el-input>
</el-form-item>
<el-form-item label="状态 0表是可以1表示停止2表示维修中" prop="status">
<el-input v-model="dataForm.status" placeholder="状态 0表是可以1表示停止2表示维修中"></el-input>
</el-form-item>
<el-form-item label="设备名称" prop="deviceName">
<el-input v-model="dataForm.deviceName" placeholder="设备名称"></el-input>
</el-form-item>
<el-form-item label="设备编码" prop="deviceCode">
<el-input v-model="dataForm.deviceCode" placeholder="设备编码"></el-input>
</el-form-item>
<el-form-item label="设备ip地址" prop="deviceIp">
<el-input v-model="dataForm.deviceIp" placeholder="设备ip地址"></el-input>
</el-form-item>
<el-form-item label="设备通讯端口号" prop="port">
<el-input v-model="dataForm.port" placeholder="设备通讯端口号"></el-input>
</el-form-item>
<el-form-item label="联系方式00:无线连接方式01有线连接02:芯片方式" prop="connMethod">
<el-input v-model="dataForm.connMethod" placeholder="联系方式00:无线连接方式01有线连接02:芯片方式"></el-input>
</el-form-item>
<el-form-item label="描述信息" prop="description">
<el-input v-model="dataForm.description" placeholder="描述信息"></el-input>
</el-form-item>
<el-form-item label="备注" prop="note">
<el-input v-model="dataForm.note" placeholder="备注"></el-input>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false">取消</el-button>
<el-button type="primary" @click="dataFormSubmit()">确定</el-button>
</span>
</el-dialog>
</template>
<script>
export default {
data () {
return {
visible: false,
dataForm: {
id: 0,
operatorId: '',
createTime: '',
updateTime: '',
creatorId: '',
updaterId: '',
version: '',
status: '',
deviceName: '',
deviceCode: '',
deviceIp: '',
port: '',
connMethod: '',
description: '',
note: ''
},
dataRule: {
operatorId: [
{ required: true, message: '操作员id不能为空', trigger: 'blur' }
],
createTime: [
{ required: true, message: '添加时间不能为空', trigger: 'blur' }
],
updateTime: [
{ required: true, message: '修改时间不能为空', trigger: 'blur' }
],
creatorId: [
{ required: true, message: '创建人id不能为空', trigger: 'blur' }
],
updaterId: [
{ required: true, message: '更新人id不能为空', trigger: 'blur' }
],
version: [
{ required: true, message: '版本号 默认为 1不能为空', trigger: 'blur' }
],
status: [
{ required: true, message: '状态 0表是可以1表示停止2表示维修中不能为空', trigger: 'blur' }
],
deviceName: [
{ required: true, message: '设备名称不能为空', trigger: 'blur' }
],
deviceCode: [
{ required: true, message: '设备编码不能为空', trigger: 'blur' }
],
deviceIp: [
{ required: true, message: '设备ip地址不能为空', trigger: 'blur' }
],
port: [
{ required: true, message: '设备通讯端口号不能为空', trigger: 'blur' }
],
connMethod: [
{ required: true, message: '联系方式00:无线连接方式01有线连接02:芯片方式不能为空', trigger: 'blur' }
],
description: [
{ required: true, message: '描述信息不能为空', trigger: 'blur' }
],
note: [
{ required: true, message: '备注不能为空', trigger: 'blur' }
]
}
}
},
methods: {
init (id) {
this.dataForm.id = id || 0
this.visible = true
this.$nextTick(() => {
this.$refs['dataForm'].resetFields()
if (this.dataForm.id) {
this.$http({
url: this.$http.adornUrl(`/wcs/mtdddeviceinfo/info/${this.dataForm.id}`),
method: 'get',
params: this.$http.adornParams()
}).then(({data}) => {
if (data && data.code === 0) {
this.dataForm.operatorId = data.mtDdDeviceInfo.operatorId
this.dataForm.createTime = data.mtDdDeviceInfo.createTime
this.dataForm.updateTime = data.mtDdDeviceInfo.updateTime
this.dataForm.creatorId = data.mtDdDeviceInfo.creatorId
this.dataForm.updaterId = data.mtDdDeviceInfo.updaterId
this.dataForm.version = data.mtDdDeviceInfo.version
this.dataForm.status = data.mtDdDeviceInfo.status
this.dataForm.deviceName = data.mtDdDeviceInfo.deviceName
this.dataForm.deviceCode = data.mtDdDeviceInfo.deviceCode
this.dataForm.deviceIp = data.mtDdDeviceInfo.deviceIp
this.dataForm.port = data.mtDdDeviceInfo.port
this.dataForm.connMethod = data.mtDdDeviceInfo.connMethod
this.dataForm.description = data.mtDdDeviceInfo.description
this.dataForm.note = data.mtDdDeviceInfo.note
}
})
}
})
},
// 表单提交
dataFormSubmit () {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.$http({
url: this.$http.adornUrl(`/wcs/mtdddeviceinfo/${!this.dataForm.id ? 'save' : 'update'}`),
method: 'post',
data: this.$http.adornData({
'id': this.dataForm.id || undefined,
'operatorId': this.dataForm.operatorId,
'createTime': this.dataForm.createTime,
'updateTime': this.dataForm.updateTime,
'creatorId': this.dataForm.creatorId,
'updaterId': this.dataForm.updaterId,
'version': this.dataForm.version,
'status': this.dataForm.status,
'deviceName': this.dataForm.deviceName,
'deviceCode': this.dataForm.deviceCode,
'deviceIp': this.dataForm.deviceIp,
'port': this.dataForm.port,
'connMethod': this.dataForm.connMethod,
'description': this.dataForm.description,
'note': this.dataForm.note
})
}).then(({data}) => {
if (data && data.code === 0) {
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {
this.visible = false
this.$emit('refreshDataList')
}
})
} else {
this.$message.error(data.msg)
}
})
}
})
}
}
}
</script>

View File

@@ -0,0 +1,241 @@
<template>
<div class="mod-config">
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
<el-form-item>
<el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input>
</el-form-item>
<el-form-item>
<el-button @click="getDataList()">查询</el-button>
<el-button v-if="isAuth('wcs:mtdddeviceinfo:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
<el-button v-if="isAuth('wcs:mtdddeviceinfo:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button>
</el-form-item>
</el-form>
<el-table
:data="dataList"
border
v-loading="dataListLoading"
@selection-change="selectionChangeHandle"
style="width: 100%;">
<el-table-column
type="selection"
header-align="center"
align="center"
width="50">
</el-table-column>
<el-table-column
prop="id"
header-align="center"
align="center"
label="">
</el-table-column>
<el-table-column
prop="operatorId"
header-align="center"
align="center"
label="操作员id">
</el-table-column>
<el-table-column
prop="createTime"
header-align="center"
align="center"
label="添加时间">
</el-table-column>
<el-table-column
prop="updateTime"
header-align="center"
align="center"
label="修改时间">
</el-table-column>
<el-table-column
prop="creatorId"
header-align="center"
align="center"
label="创建人id">
</el-table-column>
<el-table-column
prop="updaterId"
header-align="center"
align="center"
label="更新人id">
</el-table-column>
<el-table-column
prop="version"
header-align="center"
align="center"
label="版本号 默认为 1">
</el-table-column>
<el-table-column
prop="status"
header-align="center"
align="center"
label="状态 0表是可以1表示停止2表示维修中">
</el-table-column>
<el-table-column
prop="deviceName"
header-align="center"
align="center"
label="设备名称">
</el-table-column>
<el-table-column
prop="deviceCode"
header-align="center"
align="center"
label="设备编码">
</el-table-column>
<el-table-column
prop="deviceIp"
header-align="center"
align="center"
label="设备ip地址">
</el-table-column>
<el-table-column
prop="port"
header-align="center"
align="center"
label="设备通讯端口号">
</el-table-column>
<el-table-column
prop="connMethod"
header-align="center"
align="center"
label="联系方式00:无线连接方式01有线连接02:芯片方式">
</el-table-column>
<el-table-column
prop="description"
header-align="center"
align="center"
label="描述信息">
</el-table-column>
<el-table-column
prop="note"
header-align="center"
align="center"
label="备注">
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
label="操作">
<template slot-scope="scope">
<el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button>
<el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button>
</template>
</el-table-column>
</el-table>
<el-pagination
@size-change="sizeChangeHandle"
@current-change="currentChangeHandle"
:current-page="pageIndex"
:page-sizes="[10, 20, 50, 100]"
:page-size="pageSize"
:total="totalPage"
layout="total, sizes, prev, pager, next, jumper">
</el-pagination>
<!-- 弹窗, 新增 / 修改 -->
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
</div>
</template>
<script>
import AddOrUpdate from './mtdddeviceinfo-add-or-update'
export default {
data () {
return {
dataForm: {
key: ''
},
dataList: [],
pageIndex: 1,
pageSize: 10,
totalPage: 0,
dataListLoading: false,
dataListSelections: [],
addOrUpdateVisible: false
}
},
components: {
AddOrUpdate
},
activated () {
this.getDataList()
},
methods: {
// 获取数据列表
getDataList () {
this.dataListLoading = true
this.$http({
url: this.$http.adornUrl('/wcs/mtdddeviceinfo/list'),
method: 'get',
params: this.$http.adornParams({
'page': this.pageIndex,
'limit': this.pageSize,
'key': this.dataForm.key
})
}).then(({data}) => {
if (data && data.code === 0) {
this.dataList = data.page.list
this.totalPage = data.page.totalCount
} else {
this.dataList = []
this.totalPage = 0
}
this.dataListLoading = false
})
},
// 每页数
sizeChangeHandle (val) {
this.pageSize = val
this.pageIndex = 1
this.getDataList()
},
// 当前页
currentChangeHandle (val) {
this.pageIndex = val
this.getDataList()
},
// 多选
selectionChangeHandle (val) {
this.dataListSelections = val
},
// 新增 / 修改
addOrUpdateHandle (id) {
this.addOrUpdateVisible = true
this.$nextTick(() => {
this.$refs.addOrUpdate.init(id)
})
},
// 删除
deleteHandle (id) {
var ids = id ? [id] : this.dataListSelections.map(item => {
return item.id
})
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$http({
url: this.$http.adornUrl('/wcs/mtdddeviceinfo/delete'),
method: 'post',
data: this.$http.adornData(ids, false)
}).then(({data}) => {
if (data && data.code === 0) {
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {
this.getDataList()
}
})
} else {
this.$message.error(data.msg)
}
})
})
}
}
}
</script>

View File

@@ -0,0 +1,219 @@
<template>
<el-dialog
:title="!dataForm.id ? '新增' : '修改'"
:close-on-click-modal="false"
:visible.sync="visible">
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px">
<el-form-item label="操作员id" prop="operatorId">
<el-input v-model="dataForm.operatorId" placeholder="操作员id"></el-input>
</el-form-item>
<el-form-item label="添加时间" prop="createTime">
<el-input v-model="dataForm.createTime" placeholder="添加时间"></el-input>
</el-form-item>
<el-form-item label="修改时间" prop="updateTime">
<el-input v-model="dataForm.updateTime" placeholder="修改时间"></el-input>
</el-form-item>
<el-form-item label="创建人id" prop="creatorId">
<el-input v-model="dataForm.creatorId" placeholder="创建人id"></el-input>
</el-form-item>
<el-form-item label="更新人id" prop="updaterId">
<el-input v-model="dataForm.updaterId" placeholder="更新人id"></el-input>
</el-form-item>
<el-form-item label="版本号 默认为 1" prop="version">
<el-input v-model="dataForm.version" placeholder="版本号 默认为 1"></el-input>
</el-form-item>
<el-form-item label="状态 0:调用设备1设备返回信息" prop="status">
<el-input v-model="dataForm.status" placeholder="状态 0:调用设备1设备返回信息"></el-input>
</el-form-item>
<el-form-item label="设备id关联表mt_dd_device_info" prop="deviceId">
<el-input v-model="dataForm.deviceId" placeholder="设备id关联表mt_dd_device_info"></el-input>
</el-form-item>
<el-form-item label="设备名称" prop="deviceName">
<el-input v-model="dataForm.deviceName" placeholder="设备名称"></el-input>
</el-form-item>
<el-form-item label="当前层" prop="currentLayer">
<el-input v-model="dataForm.currentLayer" placeholder="当前层"></el-input>
</el-form-item>
<el-form-item label="当前列" prop="currentColumn">
<el-input v-model="dataForm.currentColumn" placeholder="当前列"></el-input>
</el-form-item>
<el-form-item label="当前位号" prop="currentRow">
<el-input v-model="dataForm.currentRow" placeholder="当前位号"></el-input>
</el-form-item>
<el-form-item label="状态 0:启动状态1关闭状态" prop="lStart">
<el-input v-model="dataForm.lStart" placeholder="状态 0:启动状态1关闭状态"></el-input>
</el-form-item>
<el-form-item label="运行内容,每次调用设备,或者设备返回信息内容都要记录" prop="runContent">
<el-input v-model="dataForm.runContent" placeholder="运行内容,每次调用设备,或者设备返回信息内容都要记录"></el-input>
</el-form-item>
<el-form-item label="描述信息" prop="description">
<el-input v-model="dataForm.description" placeholder="描述信息"></el-input>
</el-form-item>
<el-form-item label="备注" prop="note">
<el-input v-model="dataForm.note" placeholder="备注"></el-input>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false">取消</el-button>
<el-button type="primary" @click="dataFormSubmit()">确定</el-button>
</span>
</el-dialog>
</template>
<script>
export default {
data () {
return {
visible: false,
dataForm: {
id: 0,
operatorId: '',
createTime: '',
updateTime: '',
creatorId: '',
updaterId: '',
version: '',
status: '',
deviceId: '',
deviceName: '',
currentLayer: '',
currentColumn: '',
currentRow: '',
lStart: '',
runContent: '',
description: '',
note: ''
},
dataRule: {
operatorId: [
{ required: true, message: '操作员id不能为空', trigger: 'blur' }
],
createTime: [
{ required: true, message: '添加时间不能为空', trigger: 'blur' }
],
updateTime: [
{ required: true, message: '修改时间不能为空', trigger: 'blur' }
],
creatorId: [
{ required: true, message: '创建人id不能为空', trigger: 'blur' }
],
updaterId: [
{ required: true, message: '更新人id不能为空', trigger: 'blur' }
],
version: [
{ required: true, message: '版本号 默认为 1不能为空', trigger: 'blur' }
],
status: [
{ required: true, message: '状态 0:调用设备1设备返回信息不能为空', trigger: 'blur' }
],
deviceId: [
{ required: true, message: '设备id关联表mt_dd_device_info不能为空', trigger: 'blur' }
],
deviceName: [
{ required: true, message: '设备名称不能为空', trigger: 'blur' }
],
currentLayer: [
{ required: true, message: '当前层不能为空', trigger: 'blur' }
],
currentColumn: [
{ required: true, message: '当前列不能为空', trigger: 'blur' }
],
currentRow: [
{ required: true, message: '当前位号不能为空', trigger: 'blur' }
],
lStart: [
{ required: true, message: '状态 0:启动状态1关闭状态不能为空', trigger: 'blur' }
],
runContent: [
{ required: true, message: '运行内容,每次调用设备,或者设备返回信息内容都要记录不能为空', trigger: 'blur' }
],
description: [
{ required: true, message: '描述信息不能为空', trigger: 'blur' }
],
note: [
{ required: true, message: '备注不能为空', trigger: 'blur' }
]
}
}
},
methods: {
init (id) {
this.dataForm.id = id || 0
this.visible = true
this.$nextTick(() => {
this.$refs['dataForm'].resetFields()
if (this.dataForm.id) {
this.$http({
url: this.$http.adornUrl(`/wcs/mtdddevicerunlog/info/${this.dataForm.id}`),
method: 'get',
params: this.$http.adornParams()
}).then(({data}) => {
if (data && data.code === 0) {
this.dataForm.operatorId = data.mtDdDeviceRunLog.operatorId
this.dataForm.createTime = data.mtDdDeviceRunLog.createTime
this.dataForm.updateTime = data.mtDdDeviceRunLog.updateTime
this.dataForm.creatorId = data.mtDdDeviceRunLog.creatorId
this.dataForm.updaterId = data.mtDdDeviceRunLog.updaterId
this.dataForm.version = data.mtDdDeviceRunLog.version
this.dataForm.status = data.mtDdDeviceRunLog.status
this.dataForm.deviceId = data.mtDdDeviceRunLog.deviceId
this.dataForm.deviceName = data.mtDdDeviceRunLog.deviceName
this.dataForm.currentLayer = data.mtDdDeviceRunLog.currentLayer
this.dataForm.currentColumn = data.mtDdDeviceRunLog.currentColumn
this.dataForm.currentRow = data.mtDdDeviceRunLog.currentRow
this.dataForm.lStart = data.mtDdDeviceRunLog.lStart
this.dataForm.runContent = data.mtDdDeviceRunLog.runContent
this.dataForm.description = data.mtDdDeviceRunLog.description
this.dataForm.note = data.mtDdDeviceRunLog.note
}
})
}
})
},
// 表单提交
dataFormSubmit () {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.$http({
url: this.$http.adornUrl(`/wcs/mtdddevicerunlog/${!this.dataForm.id ? 'save' : 'update'}`),
method: 'post',
data: this.$http.adornData({
'id': this.dataForm.id || undefined,
'operatorId': this.dataForm.operatorId,
'createTime': this.dataForm.createTime,
'updateTime': this.dataForm.updateTime,
'creatorId': this.dataForm.creatorId,
'updaterId': this.dataForm.updaterId,
'version': this.dataForm.version,
'status': this.dataForm.status,
'deviceId': this.dataForm.deviceId,
'deviceName': this.dataForm.deviceName,
'currentLayer': this.dataForm.currentLayer,
'currentColumn': this.dataForm.currentColumn,
'currentRow': this.dataForm.currentRow,
'lStart': this.dataForm.lStart,
'runContent': this.dataForm.runContent,
'description': this.dataForm.description,
'note': this.dataForm.note
})
}).then(({data}) => {
if (data && data.code === 0) {
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {
this.visible = false
this.$emit('refreshDataList')
}
})
} else {
this.$message.error(data.msg)
}
})
}
})
}
}
}
</script>

View File

@@ -0,0 +1,253 @@
<template>
<div class="mod-config">
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
<el-form-item>
<el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input>
</el-form-item>
<el-form-item>
<el-button @click="getDataList()">查询</el-button>
<el-button v-if="isAuth('wcs:mtdddevicerunlog:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
<el-button v-if="isAuth('wcs:mtdddevicerunlog:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button>
</el-form-item>
</el-form>
<el-table
:data="dataList"
border
v-loading="dataListLoading"
@selection-change="selectionChangeHandle"
style="width: 100%;">
<el-table-column
type="selection"
header-align="center"
align="center"
width="50">
</el-table-column>
<el-table-column
prop="id"
header-align="center"
align="center"
label="">
</el-table-column>
<el-table-column
prop="operatorId"
header-align="center"
align="center"
label="操作员id">
</el-table-column>
<el-table-column
prop="createTime"
header-align="center"
align="center"
label="添加时间">
</el-table-column>
<el-table-column
prop="updateTime"
header-align="center"
align="center"
label="修改时间">
</el-table-column>
<el-table-column
prop="creatorId"
header-align="center"
align="center"
label="创建人id">
</el-table-column>
<el-table-column
prop="updaterId"
header-align="center"
align="center"
label="更新人id">
</el-table-column>
<el-table-column
prop="version"
header-align="center"
align="center"
label="版本号 默认为 1">
</el-table-column>
<el-table-column
prop="status"
header-align="center"
align="center"
label="状态 0:调用设备1设备返回信息">
</el-table-column>
<el-table-column
prop="deviceId"
header-align="center"
align="center"
label="设备id关联表mt_dd_device_info">
</el-table-column>
<el-table-column
prop="deviceName"
header-align="center"
align="center"
label="设备名称">
</el-table-column>
<el-table-column
prop="currentLayer"
header-align="center"
align="center"
label="当前层">
</el-table-column>
<el-table-column
prop="currentColumn"
header-align="center"
align="center"
label="当前列">
</el-table-column>
<el-table-column
prop="currentRow"
header-align="center"
align="center"
label="当前位号">
</el-table-column>
<el-table-column
prop="lStart"
header-align="center"
align="center"
label="状态 0:启动状态1关闭状态">
</el-table-column>
<el-table-column
prop="runContent"
header-align="center"
align="center"
label="运行内容,每次调用设备,或者设备返回信息内容都要记录">
</el-table-column>
<el-table-column
prop="description"
header-align="center"
align="center"
label="描述信息">
</el-table-column>
<el-table-column
prop="note"
header-align="center"
align="center"
label="备注">
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
label="操作">
<template slot-scope="scope">
<el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button>
<el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button>
</template>
</el-table-column>
</el-table>
<el-pagination
@size-change="sizeChangeHandle"
@current-change="currentChangeHandle"
:current-page="pageIndex"
:page-sizes="[10, 20, 50, 100]"
:page-size="pageSize"
:total="totalPage"
layout="total, sizes, prev, pager, next, jumper">
</el-pagination>
<!-- 弹窗, 新增 / 修改 -->
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
</div>
</template>
<script>
import AddOrUpdate from './mtdddevicerunlog-add-or-update'
export default {
data () {
return {
dataForm: {
key: ''
},
dataList: [],
pageIndex: 1,
pageSize: 10,
totalPage: 0,
dataListLoading: false,
dataListSelections: [],
addOrUpdateVisible: false
}
},
components: {
AddOrUpdate
},
activated () {
this.getDataList()
},
methods: {
// 获取数据列表
getDataList () {
this.dataListLoading = true
this.$http({
url: this.$http.adornUrl('/wcs/mtdddevicerunlog/list'),
method: 'get',
params: this.$http.adornParams({
'page': this.pageIndex,
'limit': this.pageSize,
'key': this.dataForm.key
})
}).then(({data}) => {
if (data && data.code === 0) {
this.dataList = data.page.list
this.totalPage = data.page.totalCount
} else {
this.dataList = []
this.totalPage = 0
}
this.dataListLoading = false
})
},
// 每页数
sizeChangeHandle (val) {
this.pageSize = val
this.pageIndex = 1
this.getDataList()
},
// 当前页
currentChangeHandle (val) {
this.pageIndex = val
this.getDataList()
},
// 多选
selectionChangeHandle (val) {
this.dataListSelections = val
},
// 新增 / 修改
addOrUpdateHandle (id) {
this.addOrUpdateVisible = true
this.$nextTick(() => {
this.$refs.addOrUpdate.init(id)
})
},
// 删除
deleteHandle (id) {
var ids = id ? [id] : this.dataListSelections.map(item => {
return item.id
})
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$http({
url: this.$http.adornUrl('/wcs/mtdddevicerunlog/delete'),
method: 'post',
data: this.$http.adornData(ids, false)
}).then(({data}) => {
if (data && data.code === 0) {
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {
this.getDataList()
}
})
} else {
this.$message.error(data.msg)
}
})
})
}
}
}
</script>

View File

@@ -0,0 +1,192 @@
<template>
<el-dialog
:title="!dataForm.id ? '新增' : '修改'"
:close-on-click-modal="false"
:visible.sync="visible">
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px">
<el-form-item label="操作员id" prop="operatorId">
<el-input v-model="dataForm.operatorId" placeholder="操作员id"></el-input>
</el-form-item>
<el-form-item label="添加时间" prop="createTime">
<el-input v-model="dataForm.createTime" placeholder="添加时间"></el-input>
</el-form-item>
<el-form-item label="修改时间" prop="updateTime">
<el-input v-model="dataForm.updateTime" placeholder="修改时间"></el-input>
</el-form-item>
<el-form-item label="创建人id" prop="creatorId">
<el-input v-model="dataForm.creatorId" placeholder="创建人id"></el-input>
</el-form-item>
<el-form-item label="更新人id" prop="updaterId">
<el-input v-model="dataForm.updaterId" placeholder="更新人id"></el-input>
</el-form-item>
<el-form-item label="版本号 默认为 1" prop="version">
<el-input v-model="dataForm.version" placeholder="版本号 默认为 1"></el-input>
</el-form-item>
<el-form-item label="状态 0执行完成1取消" prop="status">
<el-input v-model="dataForm.status" placeholder="状态 0执行完成1取消"></el-input>
</el-form-item>
<el-form-item label="接口名称" prop="interfaceName">
<el-input v-model="dataForm.interfaceName" placeholder="接口名称"></el-input>
</el-form-item>
<el-form-item label="接收数据,存储格式为:{"变量1"值1"变量2"值2...}" prop="receiveValue">
<el-input v-model="dataForm.receiveValue" placeholder="接收数据,存储格式为:{"变量1"值1"变量2"值2...}"></el-input>
</el-form-item>
<el-form-item label="上层系统名称,如:仓库业务系统" prop="systemSource">
<el-input v-model="dataForm.systemSource" placeholder="上层系统名称,如:仓库业务系统"></el-input>
</el-form-item>
<el-form-item label="返回数据,如:存储格式为:{"变量1"值1"变量2"值2...}" prop="returnValue">
<el-input v-model="dataForm.returnValue" placeholder="返回数据,如:存储格式为:{"变量1"值1"变量2"值2...}"></el-input>
</el-form-item>
<el-form-item label="描述信息" prop="description">
<el-input v-model="dataForm.description" placeholder="描述信息"></el-input>
</el-form-item>
<el-form-item label="备注" prop="note">
<el-input v-model="dataForm.note" placeholder="备注"></el-input>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false">取消</el-button>
<el-button type="primary" @click="dataFormSubmit()">确定</el-button>
</span>
</el-dialog>
</template>
<script>
export default {
data () {
return {
visible: false,
dataForm: {
id: 0,
operatorId: '',
createTime: '',
updateTime: '',
creatorId: '',
updaterId: '',
version: '',
status: '',
interfaceName: '',
receiveValue: '',
systemSource: '',
returnValue: '',
description: '',
note: ''
},
dataRule: {
operatorId: [
{ required: true, message: '操作员id不能为空', trigger: 'blur' }
],
createTime: [
{ required: true, message: '添加时间不能为空', trigger: 'blur' }
],
updateTime: [
{ required: true, message: '修改时间不能为空', trigger: 'blur' }
],
creatorId: [
{ required: true, message: '创建人id不能为空', trigger: 'blur' }
],
updaterId: [
{ required: true, message: '更新人id不能为空', trigger: 'blur' }
],
version: [
{ required: true, message: '版本号 默认为 1不能为空', trigger: 'blur' }
],
status: [
{ required: true, message: '状态 0执行完成1取消不能为空', trigger: 'blur' }
],
interfaceName: [
{ required: true, message: '接口名称不能为空', trigger: 'blur' }
],
receiveValue: [
{ required: true, message: '接收数据,存储格式为:{"变量1"值1"变量2"值2...}不能为空', trigger: 'blur' }
],
systemSource: [
{ required: true, message: '上层系统名称,如:仓库业务系统不能为空', trigger: 'blur' }
],
returnValue: [
{ required: true, message: '返回数据,如:存储格式为:{"变量1"值1"变量2"值2...}不能为空', trigger: 'blur' }
],
description: [
{ required: true, message: '描述信息不能为空', trigger: 'blur' }
],
note: [
{ required: true, message: '备注不能为空', trigger: 'blur' }
]
}
}
},
methods: {
init (id) {
this.dataForm.id = id || 0
this.visible = true
this.$nextTick(() => {
this.$refs['dataForm'].resetFields()
if (this.dataForm.id) {
this.$http({
url: this.$http.adornUrl(`/wcs/mtddinterfaceinfolog/info/${this.dataForm.id}`),
method: 'get',
params: this.$http.adornParams()
}).then(({data}) => {
if (data && data.code === 0) {
this.dataForm.operatorId = data.mtDdInterfaceInfoLog.operatorId
this.dataForm.createTime = data.mtDdInterfaceInfoLog.createTime
this.dataForm.updateTime = data.mtDdInterfaceInfoLog.updateTime
this.dataForm.creatorId = data.mtDdInterfaceInfoLog.creatorId
this.dataForm.updaterId = data.mtDdInterfaceInfoLog.updaterId
this.dataForm.version = data.mtDdInterfaceInfoLog.version
this.dataForm.status = data.mtDdInterfaceInfoLog.status
this.dataForm.interfaceName = data.mtDdInterfaceInfoLog.interfaceName
this.dataForm.receiveValue = data.mtDdInterfaceInfoLog.receiveValue
this.dataForm.systemSource = data.mtDdInterfaceInfoLog.systemSource
this.dataForm.returnValue = data.mtDdInterfaceInfoLog.returnValue
this.dataForm.description = data.mtDdInterfaceInfoLog.description
this.dataForm.note = data.mtDdInterfaceInfoLog.note
}
})
}
})
},
// 表单提交
dataFormSubmit () {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.$http({
url: this.$http.adornUrl(`/wcs/mtddinterfaceinfolog/${!this.dataForm.id ? 'save' : 'update'}`),
method: 'post',
data: this.$http.adornData({
'id': this.dataForm.id || undefined,
'operatorId': this.dataForm.operatorId,
'createTime': this.dataForm.createTime,
'updateTime': this.dataForm.updateTime,
'creatorId': this.dataForm.creatorId,
'updaterId': this.dataForm.updaterId,
'version': this.dataForm.version,
'status': this.dataForm.status,
'interfaceName': this.dataForm.interfaceName,
'receiveValue': this.dataForm.receiveValue,
'systemSource': this.dataForm.systemSource,
'returnValue': this.dataForm.returnValue,
'description': this.dataForm.description,
'note': this.dataForm.note
})
}).then(({data}) => {
if (data && data.code === 0) {
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {
this.visible = false
this.$emit('refreshDataList')
}
})
} else {
this.$message.error(data.msg)
}
})
}
})
}
}
}
</script>

View File

@@ -0,0 +1,235 @@
<template>
<div class="mod-config">
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
<el-form-item>
<el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input>
</el-form-item>
<el-form-item>
<el-button @click="getDataList()">查询</el-button>
<el-button v-if="isAuth('wcs:mtddinterfaceinfolog:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
<el-button v-if="isAuth('wcs:mtddinterfaceinfolog:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button>
</el-form-item>
</el-form>
<el-table
:data="dataList"
border
v-loading="dataListLoading"
@selection-change="selectionChangeHandle"
style="width: 100%;">
<el-table-column
type="selection"
header-align="center"
align="center"
width="50">
</el-table-column>
<el-table-column
prop="id"
header-align="center"
align="center"
label="">
</el-table-column>
<el-table-column
prop="operatorId"
header-align="center"
align="center"
label="操作员id">
</el-table-column>
<el-table-column
prop="createTime"
header-align="center"
align="center"
label="添加时间">
</el-table-column>
<el-table-column
prop="updateTime"
header-align="center"
align="center"
label="修改时间">
</el-table-column>
<el-table-column
prop="creatorId"
header-align="center"
align="center"
label="创建人id">
</el-table-column>
<el-table-column
prop="updaterId"
header-align="center"
align="center"
label="更新人id">
</el-table-column>
<el-table-column
prop="version"
header-align="center"
align="center"
label="版本号 默认为 1">
</el-table-column>
<el-table-column
prop="status"
header-align="center"
align="center"
label="状态 0执行完成1取消">
</el-table-column>
<el-table-column
prop="interfaceName"
header-align="center"
align="center"
label="接口名称">
</el-table-column>
<el-table-column
prop="receiveValue"
header-align="center"
align="center"
label="接收数据,存储格式为:{"变量1"值1"变量2"值2...}">
</el-table-column>
<el-table-column
prop="systemSource"
header-align="center"
align="center"
label="上层系统名称,如:仓库业务系统">
</el-table-column>
<el-table-column
prop="returnValue"
header-align="center"
align="center"
label="返回数据,如:存储格式为:{"变量1"值1"变量2"值2...}">
</el-table-column>
<el-table-column
prop="description"
header-align="center"
align="center"
label="描述信息">
</el-table-column>
<el-table-column
prop="note"
header-align="center"
align="center"
label="备注">
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
label="操作">
<template slot-scope="scope">
<el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button>
<el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button>
</template>
</el-table-column>
</el-table>
<el-pagination
@size-change="sizeChangeHandle"
@current-change="currentChangeHandle"
:current-page="pageIndex"
:page-sizes="[10, 20, 50, 100]"
:page-size="pageSize"
:total="totalPage"
layout="total, sizes, prev, pager, next, jumper">
</el-pagination>
<!-- 弹窗, 新增 / 修改 -->
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
</div>
</template>
<script>
import AddOrUpdate from './mtddinterfaceinfolog-add-or-update'
export default {
data () {
return {
dataForm: {
key: ''
},
dataList: [],
pageIndex: 1,
pageSize: 10,
totalPage: 0,
dataListLoading: false,
dataListSelections: [],
addOrUpdateVisible: false
}
},
components: {
AddOrUpdate
},
activated () {
this.getDataList()
},
methods: {
// 获取数据列表
getDataList () {
this.dataListLoading = true
this.$http({
url: this.$http.adornUrl('/wcs/mtddinterfaceinfolog/list'),
method: 'get',
params: this.$http.adornParams({
'page': this.pageIndex,
'limit': this.pageSize,
'key': this.dataForm.key
})
}).then(({data}) => {
if (data && data.code === 0) {
this.dataList = data.page.list
this.totalPage = data.page.totalCount
} else {
this.dataList = []
this.totalPage = 0
}
this.dataListLoading = false
})
},
// 每页数
sizeChangeHandle (val) {
this.pageSize = val
this.pageIndex = 1
this.getDataList()
},
// 当前页
currentChangeHandle (val) {
this.pageIndex = val
this.getDataList()
},
// 多选
selectionChangeHandle (val) {
this.dataListSelections = val
},
// 新增 / 修改
addOrUpdateHandle (id) {
this.addOrUpdateVisible = true
this.$nextTick(() => {
this.$refs.addOrUpdate.init(id)
})
},
// 删除
deleteHandle (id) {
var ids = id ? [id] : this.dataListSelections.map(item => {
return item.id
})
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$http({
url: this.$http.adornUrl('/wcs/mtddinterfaceinfolog/delete'),
method: 'post',
data: this.$http.adornData(ids, false)
}).then(({data}) => {
if (data && data.code === 0) {
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {
this.getDataList()
}
})
} else {
this.$message.error(data.msg)
}
})
})
}
}
}
</script>

View File

@@ -0,0 +1,201 @@
<template>
<el-dialog
:title="!dataForm.id ? '新增' : '修改'"
:close-on-click-modal="false"
:visible.sync="visible">
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px">
<el-form-item label="操作员id" prop="operatorId">
<el-input v-model="dataForm.operatorId" placeholder="操作员id"></el-input>
</el-form-item>
<el-form-item label="添加时间" prop="createTime">
<el-input v-model="dataForm.createTime" placeholder="添加时间"></el-input>
</el-form-item>
<el-form-item label="修改时间" prop="updateTime">
<el-input v-model="dataForm.updateTime" placeholder="修改时间"></el-input>
</el-form-item>
<el-form-item label="创建人id" prop="creatorId">
<el-input v-model="dataForm.creatorId" placeholder="创建人id"></el-input>
</el-form-item>
<el-form-item label="更新人id" prop="updaterId">
<el-input v-model="dataForm.updaterId" placeholder="更新人id"></el-input>
</el-form-item>
<el-form-item label="版本号 默认为 1" prop="version">
<el-input v-model="dataForm.version" placeholder="版本号 默认为 1"></el-input>
</el-form-item>
<el-form-item label="状态 0执行等待中1正在执行" prop="status">
<el-input v-model="dataForm.status" placeholder="状态 0执行等待中1正在执行"></el-input>
</el-form-item>
<el-form-item label="运行状态 0出库1入库" prop="runType">
<el-input v-model="dataForm.runType" placeholder="运行状态 0出库1入库"></el-input>
</el-form-item>
<el-form-item label="运行编码0 0 01 00 001 001" prop="runCode">
<el-input v-model="dataForm.runCode" placeholder="运行编码0 0 01 00 001 001"></el-input>
</el-form-item>
<el-form-item label="任务编码,作为当前执行任务标识,也可以作为系统扫描硬件执行确认标识,生成规则:时间年到秒-中间表id建议用一个公用表id值如果有更好的方式可以借用" prop="taskCode">
<el-input v-model="dataForm.taskCode" placeholder="任务编码,作为当前执行任务标识,也可以作为系统扫描硬件执行确认标识,生成规则:时间年到秒-中间表id建议用一个公用表id值如果有更好的方式可以借用"></el-input>
</el-form-item>
<el-form-item label="信息来源0本业务系统 1其他" prop="source">
<el-input v-model="dataForm.source" placeholder="信息来源0本业务系统 1其他"></el-input>
</el-form-item>
<el-form-item label="信息来源系统名,如:仓库系统,第三方仓库系统,小布仓库业务系统等" prop="sourceName">
<el-input v-model="dataForm.sourceName" placeholder="信息来源系统名,如:仓库系统,第三方仓库系统,小布仓库业务系统等"></el-input>
</el-form-item>
<el-form-item label="描述信息" prop="description">
<el-input v-model="dataForm.description" placeholder="描述信息"></el-input>
</el-form-item>
<el-form-item label="备注" prop="note">
<el-input v-model="dataForm.note" placeholder="备注"></el-input>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false">取消</el-button>
<el-button type="primary" @click="dataFormSubmit()">确定</el-button>
</span>
</el-dialog>
</template>
<script>
export default {
data () {
return {
visible: false,
dataForm: {
id: 0,
operatorId: '',
createTime: '',
updateTime: '',
creatorId: '',
updaterId: '',
version: '',
status: '',
runType: '',
runCode: '',
taskCode: '',
source: '',
sourceName: '',
description: '',
note: ''
},
dataRule: {
operatorId: [
{ required: true, message: '操作员id不能为空', trigger: 'blur' }
],
createTime: [
{ required: true, message: '添加时间不能为空', trigger: 'blur' }
],
updateTime: [
{ required: true, message: '修改时间不能为空', trigger: 'blur' }
],
creatorId: [
{ required: true, message: '创建人id不能为空', trigger: 'blur' }
],
updaterId: [
{ required: true, message: '更新人id不能为空', trigger: 'blur' }
],
version: [
{ required: true, message: '版本号 默认为 1不能为空', trigger: 'blur' }
],
status: [
{ required: true, message: '状态 0执行等待中1正在执行不能为空', trigger: 'blur' }
],
runType: [
{ required: true, message: '运行状态 0出库1入库不能为空', trigger: 'blur' }
],
runCode: [
{ required: true, message: '运行编码0 0 01 00 001 001不能为空', trigger: 'blur' }
],
taskCode: [
{ required: true, message: '任务编码,作为当前执行任务标识,也可以作为系统扫描硬件执行确认标识,生成规则:时间年到秒-中间表id建议用一个公用表id值如果有更好的方式可以借用不能为空', trigger: 'blur' }
],
source: [
{ required: true, message: '信息来源0本业务系统 1其他不能为空', trigger: 'blur' }
],
sourceName: [
{ required: true, message: '信息来源系统名,如:仓库系统,第三方仓库系统,小布仓库业务系统等不能为空', trigger: 'blur' }
],
description: [
{ required: true, message: '描述信息不能为空', trigger: 'blur' }
],
note: [
{ required: true, message: '备注不能为空', trigger: 'blur' }
]
}
}
},
methods: {
init (id) {
this.dataForm.id = id || 0
this.visible = true
this.$nextTick(() => {
this.$refs['dataForm'].resetFields()
if (this.dataForm.id) {
this.$http({
url: this.$http.adornUrl(`/wcs/mtddtaskinfo/info/${this.dataForm.id}`),
method: 'get',
params: this.$http.adornParams()
}).then(({data}) => {
if (data && data.code === 0) {
this.dataForm.operatorId = data.mtDdTaskInfo.operatorId
this.dataForm.createTime = data.mtDdTaskInfo.createTime
this.dataForm.updateTime = data.mtDdTaskInfo.updateTime
this.dataForm.creatorId = data.mtDdTaskInfo.creatorId
this.dataForm.updaterId = data.mtDdTaskInfo.updaterId
this.dataForm.version = data.mtDdTaskInfo.version
this.dataForm.status = data.mtDdTaskInfo.status
this.dataForm.runType = data.mtDdTaskInfo.runType
this.dataForm.runCode = data.mtDdTaskInfo.runCode
this.dataForm.taskCode = data.mtDdTaskInfo.taskCode
this.dataForm.source = data.mtDdTaskInfo.source
this.dataForm.sourceName = data.mtDdTaskInfo.sourceName
this.dataForm.description = data.mtDdTaskInfo.description
this.dataForm.note = data.mtDdTaskInfo.note
}
})
}
})
},
// 表单提交
dataFormSubmit () {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.$http({
url: this.$http.adornUrl(`/wcs/mtddtaskinfo/${!this.dataForm.id ? 'save' : 'update'}`),
method: 'post',
data: this.$http.adornData({
'id': this.dataForm.id || undefined,
'operatorId': this.dataForm.operatorId,
'createTime': this.dataForm.createTime,
'updateTime': this.dataForm.updateTime,
'creatorId': this.dataForm.creatorId,
'updaterId': this.dataForm.updaterId,
'version': this.dataForm.version,
'status': this.dataForm.status,
'runType': this.dataForm.runType,
'runCode': this.dataForm.runCode,
'taskCode': this.dataForm.taskCode,
'source': this.dataForm.source,
'sourceName': this.dataForm.sourceName,
'description': this.dataForm.description,
'note': this.dataForm.note
})
}).then(({data}) => {
if (data && data.code === 0) {
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {
this.visible = false
this.$emit('refreshDataList')
}
})
} else {
this.$message.error(data.msg)
}
})
}
})
}
}
}
</script>

View File

@@ -0,0 +1,241 @@
<template>
<div class="mod-config">
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
<el-form-item>
<el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input>
</el-form-item>
<el-form-item>
<el-button @click="getDataList()">查询</el-button>
<el-button v-if="isAuth('wcs:mtddtaskinfo:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
<el-button v-if="isAuth('wcs:mtddtaskinfo:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button>
</el-form-item>
</el-form>
<el-table
:data="dataList"
border
v-loading="dataListLoading"
@selection-change="selectionChangeHandle"
style="width: 100%;">
<el-table-column
type="selection"
header-align="center"
align="center"
width="50">
</el-table-column>
<el-table-column
prop="id"
header-align="center"
align="center"
label="">
</el-table-column>
<el-table-column
prop="operatorId"
header-align="center"
align="center"
label="操作员id">
</el-table-column>
<el-table-column
prop="createTime"
header-align="center"
align="center"
label="添加时间">
</el-table-column>
<el-table-column
prop="updateTime"
header-align="center"
align="center"
label="修改时间">
</el-table-column>
<el-table-column
prop="creatorId"
header-align="center"
align="center"
label="创建人id">
</el-table-column>
<el-table-column
prop="updaterId"
header-align="center"
align="center"
label="更新人id">
</el-table-column>
<el-table-column
prop="version"
header-align="center"
align="center"
label="版本号 默认为 1">
</el-table-column>
<el-table-column
prop="status"
header-align="center"
align="center"
label="状态 0执行等待中1正在执行">
</el-table-column>
<el-table-column
prop="runType"
header-align="center"
align="center"
label="运行状态 0出库1入库">
</el-table-column>
<el-table-column
prop="runCode"
header-align="center"
align="center"
label="运行编码0 0 01 00 001 001">
</el-table-column>
<el-table-column
prop="taskCode"
header-align="center"
align="center"
label="任务编码,作为当前执行任务标识,也可以作为系统扫描硬件执行确认标识,生成规则:时间年到秒-中间表id建议用一个公用表id值如果有更好的方式可以借用">
</el-table-column>
<el-table-column
prop="source"
header-align="center"
align="center"
label="信息来源0本业务系统 1其他">
</el-table-column>
<el-table-column
prop="sourceName"
header-align="center"
align="center"
label="信息来源系统名,如:仓库系统,第三方仓库系统,小布仓库业务系统等">
</el-table-column>
<el-table-column
prop="description"
header-align="center"
align="center"
label="描述信息">
</el-table-column>
<el-table-column
prop="note"
header-align="center"
align="center"
label="备注">
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
label="操作">
<template slot-scope="scope">
<el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button>
<el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button>
</template>
</el-table-column>
</el-table>
<el-pagination
@size-change="sizeChangeHandle"
@current-change="currentChangeHandle"
:current-page="pageIndex"
:page-sizes="[10, 20, 50, 100]"
:page-size="pageSize"
:total="totalPage"
layout="total, sizes, prev, pager, next, jumper">
</el-pagination>
<!-- 弹窗, 新增 / 修改 -->
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
</div>
</template>
<script>
import AddOrUpdate from './mtddtaskinfo-add-or-update'
export default {
data () {
return {
dataForm: {
key: ''
},
dataList: [],
pageIndex: 1,
pageSize: 10,
totalPage: 0,
dataListLoading: false,
dataListSelections: [],
addOrUpdateVisible: false
}
},
components: {
AddOrUpdate
},
activated () {
this.getDataList()
},
methods: {
// 获取数据列表
getDataList () {
this.dataListLoading = true
this.$http({
url: this.$http.adornUrl('/wcs/mtddtaskinfo/list'),
method: 'get',
params: this.$http.adornParams({
'page': this.pageIndex,
'limit': this.pageSize,
'key': this.dataForm.key
})
}).then(({data}) => {
if (data && data.code === 0) {
this.dataList = data.page.list
this.totalPage = data.page.totalCount
} else {
this.dataList = []
this.totalPage = 0
}
this.dataListLoading = false
})
},
// 每页数
sizeChangeHandle (val) {
this.pageSize = val
this.pageIndex = 1
this.getDataList()
},
// 当前页
currentChangeHandle (val) {
this.pageIndex = val
this.getDataList()
},
// 多选
selectionChangeHandle (val) {
this.dataListSelections = val
},
// 新增 / 修改
addOrUpdateHandle (id) {
this.addOrUpdateVisible = true
this.$nextTick(() => {
this.$refs.addOrUpdate.init(id)
})
},
// 删除
deleteHandle (id) {
var ids = id ? [id] : this.dataListSelections.map(item => {
return item.id
})
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$http({
url: this.$http.adornUrl('/wcs/mtddtaskinfo/delete'),
method: 'post',
data: this.$http.adornData(ids, false)
}).then(({data}) => {
if (data && data.code === 0) {
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {
this.getDataList()
}
})
} else {
this.$message.error(data.msg)
}
})
})
}
}
}
</script>

View File

@@ -0,0 +1,201 @@
<template>
<el-dialog
:title="!dataForm.id ? '新增' : '修改'"
:close-on-click-modal="false"
:visible.sync="visible">
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px">
<el-form-item label="操作员id" prop="operatorId">
<el-input v-model="dataForm.operatorId" placeholder="操作员id"></el-input>
</el-form-item>
<el-form-item label="添加时间" prop="createTime">
<el-input v-model="dataForm.createTime" placeholder="添加时间"></el-input>
</el-form-item>
<el-form-item label="修改时间" prop="updateTime">
<el-input v-model="dataForm.updateTime" placeholder="修改时间"></el-input>
</el-form-item>
<el-form-item label="创建人id" prop="creatorId">
<el-input v-model="dataForm.creatorId" placeholder="创建人id"></el-input>
</el-form-item>
<el-form-item label="更新人id" prop="updaterId">
<el-input v-model="dataForm.updaterId" placeholder="更新人id"></el-input>
</el-form-item>
<el-form-item label="版本号 默认为 1" prop="version">
<el-input v-model="dataForm.version" placeholder="版本号 默认为 1"></el-input>
</el-form-item>
<el-form-item label="状态 0执行完成1签字取消" prop="status">
<el-input v-model="dataForm.status" placeholder="状态 0执行完成1签字取消"></el-input>
</el-form-item>
<el-form-item label="运行状态 0出库1入库" prop="runType">
<el-input v-model="dataForm.runType" placeholder="运行状态 0出库1入库"></el-input>
</el-form-item>
<el-form-item label="运行编码0 0 01 00 001 001" prop="runCode">
<el-input v-model="dataForm.runCode" placeholder="运行编码0 0 01 00 001 001"></el-input>
</el-form-item>
<el-form-item label="任务编码,作为当前执行任务标识,也可以作为系统扫描硬件执行确认标识,生成规则:时间年到秒-中间表id建议用一个公用表id值如果有更好的方式可以借用" prop="taskCode">
<el-input v-model="dataForm.taskCode" placeholder="任务编码,作为当前执行任务标识,也可以作为系统扫描硬件执行确认标识,生成规则:时间年到秒-中间表id建议用一个公用表id值如果有更好的方式可以借用"></el-input>
</el-form-item>
<el-form-item label="信息来源0本业务系统 1其他" prop="source">
<el-input v-model="dataForm.source" placeholder="信息来源0本业务系统 1其他"></el-input>
</el-form-item>
<el-form-item label="信息来源系统名,如:仓库系统,第三方仓库系统,小布仓库业务系统等" prop="sourceName">
<el-input v-model="dataForm.sourceName" placeholder="信息来源系统名,如:仓库系统,第三方仓库系统,小布仓库业务系统等"></el-input>
</el-form-item>
<el-form-item label="描述信息" prop="description">
<el-input v-model="dataForm.description" placeholder="描述信息"></el-input>
</el-form-item>
<el-form-item label="备注" prop="note">
<el-input v-model="dataForm.note" placeholder="备注"></el-input>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false">取消</el-button>
<el-button type="primary" @click="dataFormSubmit()">确定</el-button>
</span>
</el-dialog>
</template>
<script>
export default {
data () {
return {
visible: false,
dataForm: {
id: 0,
operatorId: '',
createTime: '',
updateTime: '',
creatorId: '',
updaterId: '',
version: '',
status: '',
runType: '',
runCode: '',
taskCode: '',
source: '',
sourceName: '',
description: '',
note: ''
},
dataRule: {
operatorId: [
{ required: true, message: '操作员id不能为空', trigger: 'blur' }
],
createTime: [
{ required: true, message: '添加时间不能为空', trigger: 'blur' }
],
updateTime: [
{ required: true, message: '修改时间不能为空', trigger: 'blur' }
],
creatorId: [
{ required: true, message: '创建人id不能为空', trigger: 'blur' }
],
updaterId: [
{ required: true, message: '更新人id不能为空', trigger: 'blur' }
],
version: [
{ required: true, message: '版本号 默认为 1不能为空', trigger: 'blur' }
],
status: [
{ required: true, message: '状态 0执行完成1签字取消不能为空', trigger: 'blur' }
],
runType: [
{ required: true, message: '运行状态 0出库1入库不能为空', trigger: 'blur' }
],
runCode: [
{ required: true, message: '运行编码0 0 01 00 001 001不能为空', trigger: 'blur' }
],
taskCode: [
{ required: true, message: '任务编码,作为当前执行任务标识,也可以作为系统扫描硬件执行确认标识,生成规则:时间年到秒-中间表id建议用一个公用表id值如果有更好的方式可以借用不能为空', trigger: 'blur' }
],
source: [
{ required: true, message: '信息来源0本业务系统 1其他不能为空', trigger: 'blur' }
],
sourceName: [
{ required: true, message: '信息来源系统名,如:仓库系统,第三方仓库系统,小布仓库业务系统等不能为空', trigger: 'blur' }
],
description: [
{ required: true, message: '描述信息不能为空', trigger: 'blur' }
],
note: [
{ required: true, message: '备注不能为空', trigger: 'blur' }
]
}
}
},
methods: {
init (id) {
this.dataForm.id = id || 0
this.visible = true
this.$nextTick(() => {
this.$refs['dataForm'].resetFields()
if (this.dataForm.id) {
this.$http({
url: this.$http.adornUrl(`/wcs/mtddtaskinfolog/info/${this.dataForm.id}`),
method: 'get',
params: this.$http.adornParams()
}).then(({data}) => {
if (data && data.code === 0) {
this.dataForm.operatorId = data.mtDdTaskInfoLog.operatorId
this.dataForm.createTime = data.mtDdTaskInfoLog.createTime
this.dataForm.updateTime = data.mtDdTaskInfoLog.updateTime
this.dataForm.creatorId = data.mtDdTaskInfoLog.creatorId
this.dataForm.updaterId = data.mtDdTaskInfoLog.updaterId
this.dataForm.version = data.mtDdTaskInfoLog.version
this.dataForm.status = data.mtDdTaskInfoLog.status
this.dataForm.runType = data.mtDdTaskInfoLog.runType
this.dataForm.runCode = data.mtDdTaskInfoLog.runCode
this.dataForm.taskCode = data.mtDdTaskInfoLog.taskCode
this.dataForm.source = data.mtDdTaskInfoLog.source
this.dataForm.sourceName = data.mtDdTaskInfoLog.sourceName
this.dataForm.description = data.mtDdTaskInfoLog.description
this.dataForm.note = data.mtDdTaskInfoLog.note
}
})
}
})
},
// 表单提交
dataFormSubmit () {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.$http({
url: this.$http.adornUrl(`/wcs/mtddtaskinfolog/${!this.dataForm.id ? 'save' : 'update'}`),
method: 'post',
data: this.$http.adornData({
'id': this.dataForm.id || undefined,
'operatorId': this.dataForm.operatorId,
'createTime': this.dataForm.createTime,
'updateTime': this.dataForm.updateTime,
'creatorId': this.dataForm.creatorId,
'updaterId': this.dataForm.updaterId,
'version': this.dataForm.version,
'status': this.dataForm.status,
'runType': this.dataForm.runType,
'runCode': this.dataForm.runCode,
'taskCode': this.dataForm.taskCode,
'source': this.dataForm.source,
'sourceName': this.dataForm.sourceName,
'description': this.dataForm.description,
'note': this.dataForm.note
})
}).then(({data}) => {
if (data && data.code === 0) {
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {
this.visible = false
this.$emit('refreshDataList')
}
})
} else {
this.$message.error(data.msg)
}
})
}
})
}
}
}
</script>

View File

@@ -0,0 +1,241 @@
<template>
<div class="mod-config">
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
<el-form-item>
<el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input>
</el-form-item>
<el-form-item>
<el-button @click="getDataList()">查询</el-button>
<el-button v-if="isAuth('wcs:mtddtaskinfolog:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
<el-button v-if="isAuth('wcs:mtddtaskinfolog:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button>
</el-form-item>
</el-form>
<el-table
:data="dataList"
border
v-loading="dataListLoading"
@selection-change="selectionChangeHandle"
style="width: 100%;">
<el-table-column
type="selection"
header-align="center"
align="center"
width="50">
</el-table-column>
<el-table-column
prop="id"
header-align="center"
align="center"
label="">
</el-table-column>
<el-table-column
prop="operatorId"
header-align="center"
align="center"
label="操作员id">
</el-table-column>
<el-table-column
prop="createTime"
header-align="center"
align="center"
label="添加时间">
</el-table-column>
<el-table-column
prop="updateTime"
header-align="center"
align="center"
label="修改时间">
</el-table-column>
<el-table-column
prop="creatorId"
header-align="center"
align="center"
label="创建人id">
</el-table-column>
<el-table-column
prop="updaterId"
header-align="center"
align="center"
label="更新人id">
</el-table-column>
<el-table-column
prop="version"
header-align="center"
align="center"
label="版本号 默认为 1">
</el-table-column>
<el-table-column
prop="status"
header-align="center"
align="center"
label="状态 0执行完成1签字取消">
</el-table-column>
<el-table-column
prop="runType"
header-align="center"
align="center"
label="运行状态 0出库1入库">
</el-table-column>
<el-table-column
prop="runCode"
header-align="center"
align="center"
label="运行编码0 0 01 00 001 001">
</el-table-column>
<el-table-column
prop="taskCode"
header-align="center"
align="center"
label="任务编码,作为当前执行任务标识,也可以作为系统扫描硬件执行确认标识,生成规则:时间年到秒-中间表id建议用一个公用表id值如果有更好的方式可以借用">
</el-table-column>
<el-table-column
prop="source"
header-align="center"
align="center"
label="信息来源0本业务系统 1其他">
</el-table-column>
<el-table-column
prop="sourceName"
header-align="center"
align="center"
label="信息来源系统名,如:仓库系统,第三方仓库系统,小布仓库业务系统等">
</el-table-column>
<el-table-column
prop="description"
header-align="center"
align="center"
label="描述信息">
</el-table-column>
<el-table-column
prop="note"
header-align="center"
align="center"
label="备注">
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
label="操作">
<template slot-scope="scope">
<el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button>
<el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button>
</template>
</el-table-column>
</el-table>
<el-pagination
@size-change="sizeChangeHandle"
@current-change="currentChangeHandle"
:current-page="pageIndex"
:page-sizes="[10, 20, 50, 100]"
:page-size="pageSize"
:total="totalPage"
layout="total, sizes, prev, pager, next, jumper">
</el-pagination>
<!-- 弹窗, 新增 / 修改 -->
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
</div>
</template>
<script>
import AddOrUpdate from './mtddtaskinfolog-add-or-update'
export default {
data () {
return {
dataForm: {
key: ''
},
dataList: [],
pageIndex: 1,
pageSize: 10,
totalPage: 0,
dataListLoading: false,
dataListSelections: [],
addOrUpdateVisible: false
}
},
components: {
AddOrUpdate
},
activated () {
this.getDataList()
},
methods: {
// 获取数据列表
getDataList () {
this.dataListLoading = true
this.$http({
url: this.$http.adornUrl('/wcs/mtddtaskinfolog/list'),
method: 'get',
params: this.$http.adornParams({
'page': this.pageIndex,
'limit': this.pageSize,
'key': this.dataForm.key
})
}).then(({data}) => {
if (data && data.code === 0) {
this.dataList = data.page.list
this.totalPage = data.page.totalCount
} else {
this.dataList = []
this.totalPage = 0
}
this.dataListLoading = false
})
},
// 每页数
sizeChangeHandle (val) {
this.pageSize = val
this.pageIndex = 1
this.getDataList()
},
// 当前页
currentChangeHandle (val) {
this.pageIndex = val
this.getDataList()
},
// 多选
selectionChangeHandle (val) {
this.dataListSelections = val
},
// 新增 / 修改
addOrUpdateHandle (id) {
this.addOrUpdateVisible = true
this.$nextTick(() => {
this.$refs.addOrUpdate.init(id)
})
},
// 删除
deleteHandle (id) {
var ids = id ? [id] : this.dataListSelections.map(item => {
return item.id
})
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$http({
url: this.$http.adornUrl('/wcs/mtddtaskinfolog/delete'),
method: 'post',
data: this.$http.adornData(ids, false)
}).then(({data}) => {
if (data && data.code === 0) {
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {
this.getDataList()
}
})
} else {
this.$message.error(data.msg)
}
})
})
}
}
}
</script>

View File

@@ -0,0 +1,716 @@
/*
Navicat Premium Data Transfer
Source Server : 本地
Source Server Type : MySQL
Source Server Version : 50717
Source Host : 127.0.0.1:3306
Source Schema : wcs-renren
Target Server Type : MySQL
Target Server Version : 50717
File Encoding : 65001
Date: 19/06/2020 14:22:25
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for mt_dd_device_code_info
-- ----------------------------
DROP TABLE IF EXISTS `mt_dd_device_code_info`;
CREATE TABLE `mt_dd_device_code_info` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`operator_id` int(11) NULL DEFAULT NULL COMMENT '操作员id',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '添加时间',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
`creator_id` int(11) NULL DEFAULT 0 COMMENT '创建人id',
`updater_id` int(11) NULL DEFAULT 0 COMMENT '更新人id',
`version` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '1.0.0' COMMENT '版本号 默认为 1',
`status` int(1) NULL DEFAULT 0 COMMENT '状态 0:正常信息1警告2报警信息',
`code` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '编码BJ0010等',
`content` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '编码内容',
`description` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '描述信息',
`note` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 12 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of mt_dd_device_code_info
-- ----------------------------
INSERT INTO `mt_dd_device_code_info` VALUES (1, 0, '2020-04-10 16:35:26', NULL, 0, 0, '', 1, 'asdwer1', '{\"userId\":\"701\",\"userName\":\"开发\"}', '11', '11');
INSERT INTO `mt_dd_device_code_info` VALUES (2, 0, '2020-04-02 14:09:09', NULL, 0, 0, '', 0, 'asdwer2', '{\"userId\":\"702\",\"userName\":\"测试\"}', '', '');
INSERT INTO `mt_dd_device_code_info` VALUES (5, 0, '2020-04-02 14:09:09', NULL, 0, 0, '', 0, 'asdwer3', '{\"userId\":\"703\",\"userName\":\"开发\"}', '', '');
INSERT INTO `mt_dd_device_code_info` VALUES (6, 0, '2020-04-02 14:09:09', NULL, 0, 0, '', 0, 'asdwer4', '{\"userId\":\"704\",\"userName\":\"测试\"}', '', '');
INSERT INTO `mt_dd_device_code_info` VALUES (7, 0, '2020-04-02 14:09:09', NULL, 0, 0, '', 0, 'asdwer5', '{\"userId\":\"705\",\"userName\":\"测试\"}', '', '');
INSERT INTO `mt_dd_device_code_info` VALUES (8, 0, '2020-04-02 14:09:09', NULL, 0, 0, '', 0, 'asdwer6', '{\"userId\":\"706\",\"userName\":\"开发\"}', '', '');
INSERT INTO `mt_dd_device_code_info` VALUES (9, 0, '2020-04-02 14:09:09', NULL, 0, 0, '', 0, 'asdwer7', '{\"userId\":\"707\",\"userName\":\"测试\"}', '', '');
INSERT INTO `mt_dd_device_code_info` VALUES (10, 0, '2020-04-02 14:09:09', NULL, 0, 0, '', 0, 'asdwer8', '{\"userId\":\"708\",\"userName\":\"开发\"}', '', '');
INSERT INTO `mt_dd_device_code_info` VALUES (11, 0, '2020-04-02 14:09:09', NULL, 0, 0, '', 0, 'asdwer9', '{\"userId\":\"709\",\"userName\":\"开发\"}', '', '');
-- ----------------------------
-- Table structure for mt_dd_device_code_log
-- ----------------------------
DROP TABLE IF EXISTS `mt_dd_device_code_log`;
CREATE TABLE `mt_dd_device_code_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`operator_id` int(11) NULL DEFAULT NULL COMMENT '操作员id',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '添加时间',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
`creator_id` int(11) NULL DEFAULT 0 COMMENT '创建人id',
`updater_id` int(11) NULL DEFAULT 0 COMMENT '更新人id',
`version` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '1.0.0' COMMENT '版本号 默认为 1',
`status` int(1) NULL DEFAULT 0 COMMENT '状态 0:正常信息1警告2报警信息',
`code` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '编码BJ0010等',
`content` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '编码内容,查询表出来 写入内容',
`code_info_id` int(11) NOT NULL COMMENT '编码信息id关联表mt_dd_device_code_info',
`device_id` int(11) NOT NULL COMMENT '设备id当然调用设备id关联表mt_dd_device_info',
`description` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '描述信息',
`note` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of mt_dd_device_code_log
-- ----------------------------
INSERT INTO `mt_dd_device_code_log` VALUES (1, 0, '2020-04-01 10:50:25', NULL, 0, 0, '', 0, 'asdwer1', '{\"userId\":\"701\",\"userName\":\"开发\"}', 0, 0, '', '');
INSERT INTO `mt_dd_device_code_log` VALUES (2, 0, '2020-04-02 12:50:25', NULL, 0, 0, '', 0, 'asdwer2', '{\"userId\":\"702\",\"userName\":\"测试\"}', 0, 0, '', '');
INSERT INTO `mt_dd_device_code_log` VALUES (3, 0, '2020-04-02 13:50:25', NULL, 0, 0, '', 0, 'asdwer3', '{\"userId\":\"703\",\"userName\":\"开发\"}', 0, 0, '', '');
INSERT INTO `mt_dd_device_code_log` VALUES (4, 0, '2020-04-02 14:50:25', NULL, 0, 0, '', 0, 'asdwer4', '{\"userId\":\"704\",\"userName\":\"测试\"}', 0, 0, '', '');
INSERT INTO `mt_dd_device_code_log` VALUES (5, 0, '2020-04-02 15:50:25', NULL, 0, 0, '', 0, 'asdwer5', '{\"userId\":\"705\",\"userName\":\"测试\"}', 0, 0, '', '');
INSERT INTO `mt_dd_device_code_log` VALUES (6, 0, '2020-04-02 16:50:25', NULL, 0, 0, '', 0, 'asdwer6', '{\"userId\":\"706\",\"userName\":\"开发\"}', 0, 0, '', '');
INSERT INTO `mt_dd_device_code_log` VALUES (7, 0, '2020-04-02 17:50:25', NULL, 0, 0, '', 0, 'asdwer7', '{\"userId\":\"707\",\"userName\":\"测试\"}', 0, 0, '', '');
-- ----------------------------
-- Table structure for mt_dd_device_info
-- ----------------------------
DROP TABLE IF EXISTS `mt_dd_device_info`;
CREATE TABLE `mt_dd_device_info` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`operator_id` int(11) NULL DEFAULT NULL COMMENT '操作员id',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '添加时间',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
`creator_id` int(11) NULL DEFAULT 0 COMMENT '创建人id',
`updater_id` int(11) NULL DEFAULT 0 COMMENT '更新人id',
`version` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '1.0.0' COMMENT '版本号 默认为 1',
`status` int(1) NULL DEFAULT 0 COMMENT '状态 0表是可以1表示停止2表示维修中',
`device_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '设备名称',
`device_code` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '设备编码',
`device_ip` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '设备ip地址',
`port` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '设备通讯端口号',
`conn_method` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '联系方式00:无线连接方式01有线连接02:芯片方式',
`description` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '描述信息',
`note` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of mt_dd_device_info
-- ----------------------------
INSERT INTO `mt_dd_device_info` VALUES (1, 0, '2020-04-10 16:54:20', NULL, 0, 0, '', 0, '小车001', 'xc001', '127.0.0.1', '91', '2', '1', '');
INSERT INTO `mt_dd_device_info` VALUES (2, 0, '2020-04-10 15:47:50', NULL, 0, 0, '', 0, '小车002', 'xc002', '127.0.0.1', '86', '1', '', '');
INSERT INTO `mt_dd_device_info` VALUES (3, 0, '2020-04-10 16:51:22', NULL, 0, 0, '', 1, '小车003', 'xc003', '192.168.0.185', '88', '1', '', '');
INSERT INTO `mt_dd_device_info` VALUES (4, 0, '2020-04-10 15:49:17', NULL, 0, 0, '', 2, '小车004', 'xc004', '192.168.9.152', '87', '0', '', '');
INSERT INTO `mt_dd_device_info` VALUES (5, 0, '2020-04-10 16:54:32', NULL, 0, 0, '', 1, '堆垛机001', 'ddj001', '192.168.9.153', '85', '2', '', '');
INSERT INTO `mt_dd_device_info` VALUES (6, 0, '2020-04-10 15:49:57', NULL, 0, 0, '', 1, '堆垛机002', 'ddj002', '192.168.9.154', '84', '1', '', '');
INSERT INTO `mt_dd_device_info` VALUES (7, 0, '2020-04-10 16:50:46', NULL, 0, 0, '', 1, '堆垛机003', 'ddj003', '192.168.9.155', '83', '0', '', '');
INSERT INTO `mt_dd_device_info` VALUES (8, 0, '2020-04-10 16:50:26', NULL, 0, 0, '', 2, '堆垛机004', 'ddj004', '192.168.9.156', '82', '1', '', '');
-- ----------------------------
-- Table structure for mt_dd_device_run_log
-- ----------------------------
DROP TABLE IF EXISTS `mt_dd_device_run_log`;
CREATE TABLE `mt_dd_device_run_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`operator_id` int(11) NULL DEFAULT NULL COMMENT '操作员id',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '添加时间',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
`creator_id` int(11) NULL DEFAULT 0 COMMENT '创建人id',
`updater_id` int(11) NULL DEFAULT 0 COMMENT '更新人id',
`version` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '1.0.0' COMMENT '版本号 默认为 1',
`status` int(1) NULL DEFAULT 0 COMMENT '状态 0:调用设备1设备返回信息',
`device_id` int(11) NOT NULL COMMENT '设备id关联表mt_dd_device_info',
`device_name` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '设备名称',
`current_layer` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '当前层',
`current_column` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '当前列',
`current_row` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '当前位号',
`l_Start` int(1) NULL DEFAULT 0 COMMENT '状态 0:启动状态1关闭状态',
`run_content` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '运行内容,每次调用设备,或者设备返回信息内容都要记录',
`description` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '描述信息',
`note` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of mt_dd_device_run_log
-- ----------------------------
INSERT INTO `mt_dd_device_run_log` VALUES (1, 0, '2020-04-01 10:50:25', NULL, 0, 0, '', 0, 0, '堆垛机001', '1', '2', '2', 0, '运行至1号门口', '', '');
INSERT INTO `mt_dd_device_run_log` VALUES (2, 0, '2020-04-02 12:50:25', NULL, 0, 0, '', 0, 0, '堆垛机002', '1', '2', '2', 0, '运行至2号门口', '', '');
INSERT INTO `mt_dd_device_run_log` VALUES (3, 0, '2020-04-02 13:50:25', NULL, 0, 0, '', 0, 0, '堆垛机003', '1', '3', '3', 0, '运行至3号门口', '', '');
INSERT INTO `mt_dd_device_run_log` VALUES (4, 0, '2020-04-02 14:50:25', NULL, 0, 0, '', 0, 0, '小车001', '1', '2', '2', 0, '运行至4号门口', '', '');
INSERT INTO `mt_dd_device_run_log` VALUES (5, 0, '2020-04-02 15:50:25', NULL, 0, 0, '', 0, 0, '小车002', '1', '2', '2', 0, '运行至5号门口', '', '');
INSERT INTO `mt_dd_device_run_log` VALUES (6, 0, '2020-04-02 16:50:25', NULL, 0, 0, '', 0, 0, '小车003', '1', '1', '1', 0, '运行至6号门口', '', '');
INSERT INTO `mt_dd_device_run_log` VALUES (7, 0, '2020-04-02 17:50:25', NULL, 0, 0, '', 0, 0, '小车004', '1', '1', '1', 0, '运行至7号门口', '', '');
INSERT INTO `mt_dd_device_run_log` VALUES (8, 0, '2020-04-02 18:50:25', NULL, 0, 0, '', 0, 0, '小车005', '1', '1', '1', 0, '运行至8号门口', '', '');
-- ----------------------------
-- Table structure for mt_dd_interface_info_log
-- ----------------------------
DROP TABLE IF EXISTS `mt_dd_interface_info_log`;
CREATE TABLE `mt_dd_interface_info_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`operator_id` int(11) NULL DEFAULT NULL COMMENT '操作员id',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '添加时间',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
`creator_id` int(11) NULL DEFAULT 0 COMMENT '创建人id',
`updater_id` int(11) NULL DEFAULT 0 COMMENT '更新人id',
`version` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '1.0.0' COMMENT '版本号 默认为 1',
`status` int(1) NULL DEFAULT 0 COMMENT '状态 0执行完成1取消',
`interface_name` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '接口名称',
`receive_value` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '接收数据,存储格式为:{\"变量1\"值1\"变量2\"值2...}',
`system_source` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '上层系统名称,如:仓库业务系统',
`return_value` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '返回数据,如:存储格式为:{\"变量1\"值1\"变量2\"值2...}',
`description` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '描述信息',
`note` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of mt_dd_interface_info_log
-- ----------------------------
INSERT INTO `mt_dd_interface_info_log` VALUES (1, 222, '2020-04-01 10:50:25', NULL, 222, 222, '1', 0, 'asd', 'json', 'wms', 'json', 'asd', 'asd');
INSERT INTO `mt_dd_interface_info_log` VALUES (2, 0, '2020-04-02 12:50:25', NULL, 0, 0, '', 0, 'zxc', 'json', 'wcs', 'json', 'zxc', '');
INSERT INTO `mt_dd_interface_info_log` VALUES (3, 0, '2020-04-02 13:50:25', NULL, 0, 0, '', 0, 'qwe', 'json', 'wms\r\nwcs\r\n', 'json', 'qwe', '');
INSERT INTO `mt_dd_interface_info_log` VALUES (4, 0, '2020-04-02 14:50:25', NULL, 0, 0, '', 0, 'ewt', 'json', 'wms', 'json', 'ewt', '');
INSERT INTO `mt_dd_interface_info_log` VALUES (5, 0, '2020-04-02 15:50:25', NULL, 0, 0, '', 0, 'fgh', 'json', 'wcs', 'json', 'fgh', '');
INSERT INTO `mt_dd_interface_info_log` VALUES (6, 0, '2020-04-02 16:50:25', NULL, 0, 0, '', 0, 'cvb', 'json', 'wms', 'json', 'cvb', '');
INSERT INTO `mt_dd_interface_info_log` VALUES (7, 0, '2020-04-02 17:50:25', NULL, 0, 0, '', 0, 'wbs', 'json', 'wcs', 'json', 'wbs', '');
-- ----------------------------
-- Table structure for mt_dd_task_info
-- ----------------------------
DROP TABLE IF EXISTS `mt_dd_task_info`;
CREATE TABLE `mt_dd_task_info` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`operator_id` int(11) NULL DEFAULT NULL COMMENT '操作员id',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '添加时间',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
`creator_id` int(11) NULL DEFAULT 0 COMMENT '创建人id',
`updater_id` int(11) NULL DEFAULT 0 COMMENT '更新人id',
`version` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '1.0.0' COMMENT '版本号 默认为 1',
`status` int(1) NULL DEFAULT 0 COMMENT '状态 0执行等待中1正在执行',
`run_type` int(1) NULL DEFAULT 0 COMMENT '运行状态 0出库1入库',
`run_code` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '运行编码0 0 01 00 001 001',
`task_code` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '任务编码,作为当前执行任务标识,也可以作为系统扫描硬件执行确认标识,生成规则:时间年到秒-中间表id建议用一个公用表id值如果有更好的方式可以借用',
`source` int(1) NULL DEFAULT 0 COMMENT '信息来源0本业务系统 1其他',
`source_name` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '信息来源系统名,如:仓库系统,第三方仓库系统,小布仓库业务系统等',
`description` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '描述信息',
`note` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 11 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of mt_dd_task_info
-- ----------------------------
INSERT INTO `mt_dd_task_info` VALUES (2, -1, '2020-04-10 16:35:05', NULL, 0, 0, '1.0.0', 0, 1, '010101', '010101', 0, 'wms', 'wms', 'wms');
INSERT INTO `mt_dd_task_info` VALUES (3, 0, '2020-04-10 16:35:53', NULL, 0, 0, '', 1, 0, '010102', '123123', 0, 'mes', '123', '123');
INSERT INTO `mt_dd_task_info` VALUES (4, 0, '2020-04-02 13:50:25', NULL, 0, 0, '', 1, 0, '010103', '010103', 0, 'wms', '2323', '23232');
INSERT INTO `mt_dd_task_info` VALUES (5, 0, '2020-04-02 14:50:25', NULL, 0, 0, '', 0, 0, '010104', '01010', 1010, '01010', '01010', '01010');
INSERT INTO `mt_dd_task_info` VALUES (6, 0, '2020-04-02 15:50:25', NULL, 0, 0, '', 0, 0, '010105', '010105', 0, '01010', '01010', '01010');
INSERT INTO `mt_dd_task_info` VALUES (7, 0, '2020-04-02 16:50:25', NULL, 0, 0, '', 1, 0, '010106', '010106', 0, '010106', '010106', '010106');
INSERT INTO `mt_dd_task_info` VALUES (8, 0, '2020-04-02 17:50:25', NULL, 0, 0, '', 0, 0, '010107', '010107', 0, '010107', '010107', '010107');
-- ----------------------------
-- Table structure for mt_dd_task_info_log
-- ----------------------------
DROP TABLE IF EXISTS `mt_dd_task_info_log`;
CREATE TABLE `mt_dd_task_info_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`operator_id` int(11) NULL DEFAULT NULL COMMENT '操作员id',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '添加时间',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
`creator_id` int(11) NULL DEFAULT 0 COMMENT '创建人id',
`updater_id` int(11) NULL DEFAULT 0 COMMENT '更新人id',
`version` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '1.0.0' COMMENT '版本号 默认为 1',
`status` int(1) NULL DEFAULT 0 COMMENT '状态 0执行完成1签字取消',
`run_type` int(1) NULL DEFAULT 0 COMMENT '运行状态 0出库1入库',
`run_code` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '运行编码0 0 01 00 001 001',
`task_code` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '任务编码,作为当前执行任务标识,也可以作为系统扫描硬件执行确认标识,生成规则:时间年到秒-中间表id建议用一个公用表id值如果有更好的方式可以借用',
`source` int(1) NULL DEFAULT 0 COMMENT '信息来源0本业务系统 1其他',
`source_name` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '信息来源系统名,如:仓库系统,第三方仓库系统,小布仓库业务系统等',
`description` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '描述信息',
`note` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of mt_dd_task_info_log
-- ----------------------------
INSERT INTO `mt_dd_task_info_log` VALUES (1, 0, '2020-04-01 10:50:25', NULL, 0, 0, '', 0, 0, '010101', '010101', 0, 'wms', '', '');
INSERT INTO `mt_dd_task_info_log` VALUES (2, 0, '2020-04-02 12:50:25', NULL, 0, 0, '', 0, 0, '010102', '123123', 0, '123', '', '');
INSERT INTO `mt_dd_task_info_log` VALUES (3, 0, '2020-04-02 13:50:25', NULL, 0, 0, '', 0, 0, '010103', '010103', 0, 'wms', '', '');
INSERT INTO `mt_dd_task_info_log` VALUES (4, 0, '2020-04-02 14:50:25', NULL, 0, 0, '', 0, 0, '010104', '01010', 0, '01010', '', '');
INSERT INTO `mt_dd_task_info_log` VALUES (5, 0, '2020-04-02 15:50:25', NULL, 0, 0, '', 0, 0, '010105', '010105', 0, '01010', '', '');
INSERT INTO `mt_dd_task_info_log` VALUES (6, 0, '2020-04-02 16:50:25', NULL, 0, 0, '', 0, 0, '010106', '010106', 0, '010106', '', '');
INSERT INTO `mt_dd_task_info_log` VALUES (7, 0, '2020-04-02 17:50:25', NULL, 0, 0, '', 0, 0, '010107', '010107', 0, '010107', '', '');
-- ----------------------------
-- Table structure for qrtz_blob_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_blob_triggers`;
CREATE TABLE `qrtz_blob_triggers` (
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`TRIGGER_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`TRIGGER_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`BLOB_DATA` blob NULL,
PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
INDEX `SCHED_NAME`(`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
CONSTRAINT `qrtz_blob_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `qrtz_triggers` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for qrtz_calendars
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_calendars`;
CREATE TABLE `qrtz_calendars` (
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`CALENDAR_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`CALENDAR` blob NOT NULL,
PRIMARY KEY (`SCHED_NAME`, `CALENDAR_NAME`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for qrtz_cron_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_cron_triggers`;
CREATE TABLE `qrtz_cron_triggers` (
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`TRIGGER_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`TRIGGER_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`CRON_EXPRESSION` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`TIME_ZONE_ID` varchar(80) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
CONSTRAINT `qrtz_cron_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `qrtz_triggers` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of qrtz_cron_triggers
-- ----------------------------
INSERT INTO `qrtz_cron_triggers` VALUES ('RenrenScheduler', 'TASK_1', 'DEFAULT', '0 0/30 * * * ?', 'Asia/Shanghai');
-- ----------------------------
-- Table structure for qrtz_fired_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_fired_triggers`;
CREATE TABLE `qrtz_fired_triggers` (
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`ENTRY_ID` varchar(95) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`TRIGGER_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`TRIGGER_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`INSTANCE_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`FIRED_TIME` bigint(13) NOT NULL,
`SCHED_TIME` bigint(13) NOT NULL,
`PRIORITY` int(11) NOT NULL,
`STATE` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`JOB_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`JOB_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`IS_NONCONCURRENT` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`REQUESTS_RECOVERY` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`SCHED_NAME`, `ENTRY_ID`) USING BTREE,
INDEX `IDX_QRTZ_FT_TRIG_INST_NAME`(`SCHED_NAME`, `INSTANCE_NAME`) USING BTREE,
INDEX `IDX_QRTZ_FT_INST_JOB_REQ_RCVRY`(`SCHED_NAME`, `INSTANCE_NAME`, `REQUESTS_RECOVERY`) USING BTREE,
INDEX `IDX_QRTZ_FT_J_G`(`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) USING BTREE,
INDEX `IDX_QRTZ_FT_JG`(`SCHED_NAME`, `JOB_GROUP`) USING BTREE,
INDEX `IDX_QRTZ_FT_T_G`(`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
INDEX `IDX_QRTZ_FT_TG`(`SCHED_NAME`, `TRIGGER_GROUP`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for qrtz_job_details
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_job_details`;
CREATE TABLE `qrtz_job_details` (
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`JOB_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`JOB_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`DESCRIPTION` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`JOB_CLASS_NAME` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`IS_DURABLE` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`IS_NONCONCURRENT` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`IS_UPDATE_DATA` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`REQUESTS_RECOVERY` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`JOB_DATA` blob NULL,
PRIMARY KEY (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) USING BTREE,
INDEX `IDX_QRTZ_J_REQ_RECOVERY`(`SCHED_NAME`, `REQUESTS_RECOVERY`) USING BTREE,
INDEX `IDX_QRTZ_J_GRP`(`SCHED_NAME`, `JOB_GROUP`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of qrtz_job_details
-- ----------------------------
INSERT INTO `qrtz_job_details` VALUES ('RenrenScheduler', 'TASK_1', 'DEFAULT', NULL, 'io.renren.modules.job.utils.ScheduleJob', '0', '0', '0', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C7708000000100000000174000D4A4F425F504152414D5F4B45597372002E696F2E72656E72656E2E6D6F64756C65732E6A6F622E656E746974792E5363686564756C654A6F62456E7469747900000000000000010200074C00086265616E4E616D657400124C6A6176612F6C616E672F537472696E673B4C000A63726561746554696D657400104C6A6176612F7574696C2F446174653B4C000E63726F6E45787072657373696F6E71007E00094C00056A6F6249647400104C6A6176612F6C616E672F4C6F6E673B4C0006706172616D7371007E00094C000672656D61726B71007E00094C00067374617475737400134C6A6176612F6C616E672F496E74656765723B7870740008746573745461736B7372000E6A6176612E7574696C2E44617465686A81014B5974190300007870770800000172BAFAC0987874000E3020302F3330202A202A202A203F7372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B0200007870000000000000000174000672656E72656E74000CE58F82E695B0E6B58BE8AF95737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C75657871007E0013000000007800);
-- ----------------------------
-- Table structure for qrtz_locks
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_locks`;
CREATE TABLE `qrtz_locks` (
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`LOCK_NAME` varchar(40) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
PRIMARY KEY (`SCHED_NAME`, `LOCK_NAME`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of qrtz_locks
-- ----------------------------
INSERT INTO `qrtz_locks` VALUES ('RenrenScheduler', 'STATE_ACCESS');
INSERT INTO `qrtz_locks` VALUES ('RenrenScheduler', 'TRIGGER_ACCESS');
-- ----------------------------
-- Table structure for qrtz_paused_trigger_grps
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_paused_trigger_grps`;
CREATE TABLE `qrtz_paused_trigger_grps` (
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`TRIGGER_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
PRIMARY KEY (`SCHED_NAME`, `TRIGGER_GROUP`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for qrtz_scheduler_state
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_scheduler_state`;
CREATE TABLE `qrtz_scheduler_state` (
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`INSTANCE_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`LAST_CHECKIN_TIME` bigint(13) NOT NULL,
`CHECKIN_INTERVAL` bigint(13) NOT NULL,
PRIMARY KEY (`SCHED_NAME`, `INSTANCE_NAME`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of qrtz_scheduler_state
-- ----------------------------
INSERT INTO `qrtz_scheduler_state` VALUES ('RenrenScheduler', 'LIN1592361270279', 1592361392767, 15000);
-- ----------------------------
-- Table structure for qrtz_simple_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_simple_triggers`;
CREATE TABLE `qrtz_simple_triggers` (
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`TRIGGER_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`TRIGGER_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`REPEAT_COUNT` bigint(7) NOT NULL,
`REPEAT_INTERVAL` bigint(12) NOT NULL,
`TIMES_TRIGGERED` bigint(10) NOT NULL,
PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
CONSTRAINT `qrtz_simple_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `qrtz_triggers` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for qrtz_simprop_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_simprop_triggers`;
CREATE TABLE `qrtz_simprop_triggers` (
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`TRIGGER_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`TRIGGER_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`STR_PROP_1` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`STR_PROP_2` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`STR_PROP_3` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`INT_PROP_1` int(11) NULL DEFAULT NULL,
`INT_PROP_2` int(11) NULL DEFAULT NULL,
`LONG_PROP_1` bigint(20) NULL DEFAULT NULL,
`LONG_PROP_2` bigint(20) NULL DEFAULT NULL,
`DEC_PROP_1` decimal(13, 4) NULL DEFAULT NULL,
`DEC_PROP_2` decimal(13, 4) NULL DEFAULT NULL,
`BOOL_PROP_1` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`BOOL_PROP_2` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
CONSTRAINT `qrtz_simprop_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `qrtz_triggers` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for qrtz_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_triggers`;
CREATE TABLE `qrtz_triggers` (
`SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`TRIGGER_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`TRIGGER_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`JOB_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`JOB_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`DESCRIPTION` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`NEXT_FIRE_TIME` bigint(13) NULL DEFAULT NULL,
`PREV_FIRE_TIME` bigint(13) NULL DEFAULT NULL,
`PRIORITY` int(11) NULL DEFAULT NULL,
`TRIGGER_STATE` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`TRIGGER_TYPE` varchar(8) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`START_TIME` bigint(13) NOT NULL,
`END_TIME` bigint(13) NULL DEFAULT NULL,
`CALENDAR_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`MISFIRE_INSTR` smallint(2) NULL DEFAULT NULL,
`JOB_DATA` blob NULL,
PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) USING BTREE,
INDEX `IDX_QRTZ_T_J`(`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) USING BTREE,
INDEX `IDX_QRTZ_T_JG`(`SCHED_NAME`, `JOB_GROUP`) USING BTREE,
INDEX `IDX_QRTZ_T_C`(`SCHED_NAME`, `CALENDAR_NAME`) USING BTREE,
INDEX `IDX_QRTZ_T_G`(`SCHED_NAME`, `TRIGGER_GROUP`) USING BTREE,
INDEX `IDX_QRTZ_T_STATE`(`SCHED_NAME`, `TRIGGER_STATE`) USING BTREE,
INDEX `IDX_QRTZ_T_N_STATE`(`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`, `TRIGGER_STATE`) USING BTREE,
INDEX `IDX_QRTZ_T_N_G_STATE`(`SCHED_NAME`, `TRIGGER_GROUP`, `TRIGGER_STATE`) USING BTREE,
INDEX `IDX_QRTZ_T_NEXT_FIRE_TIME`(`SCHED_NAME`, `NEXT_FIRE_TIME`) USING BTREE,
INDEX `IDX_QRTZ_T_NFT_ST`(`SCHED_NAME`, `TRIGGER_STATE`, `NEXT_FIRE_TIME`) USING BTREE,
INDEX `IDX_QRTZ_T_NFT_MISFIRE`(`SCHED_NAME`, `MISFIRE_INSTR`, `NEXT_FIRE_TIME`) USING BTREE,
INDEX `IDX_QRTZ_T_NFT_ST_MISFIRE`(`SCHED_NAME`, `MISFIRE_INSTR`, `NEXT_FIRE_TIME`, `TRIGGER_STATE`) USING BTREE,
INDEX `IDX_QRTZ_T_NFT_ST_MISFIRE_GRP`(`SCHED_NAME`, `MISFIRE_INSTR`, `NEXT_FIRE_TIME`, `TRIGGER_GROUP`, `TRIGGER_STATE`) USING BTREE,
CONSTRAINT `qrtz_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) REFERENCES `qrtz_job_details` (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of qrtz_triggers
-- ----------------------------
INSERT INTO `qrtz_triggers` VALUES ('RenrenScheduler', 'TASK_1', 'DEFAULT', 'TASK_1', 'DEFAULT', NULL, 1592278200000, -1, 5, 'WAITING', 'CRON', 1592276502000, 0, NULL, 2, 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C7708000000100000000174000D4A4F425F504152414D5F4B45597372002E696F2E72656E72656E2E6D6F64756C65732E6A6F622E656E746974792E5363686564756C654A6F62456E7469747900000000000000010200074C00086265616E4E616D657400124C6A6176612F6C616E672F537472696E673B4C000A63726561746554696D657400104C6A6176612F7574696C2F446174653B4C000E63726F6E45787072657373696F6E71007E00094C00056A6F6249647400104C6A6176612F6C616E672F4C6F6E673B4C0006706172616D7371007E00094C000672656D61726B71007E00094C00067374617475737400134C6A6176612F6C616E672F496E74656765723B7870740008746573745461736B7372000E6A6176612E7574696C2E44617465686A81014B5974190300007870770800000172BAFAC0987874000E3020302F3330202A202A202A203F7372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B0200007870000000000000000174000672656E72656E74000CE58F82E695B0E6B58BE8AF95737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C75657871007E0013000000007800);
-- ----------------------------
-- Table structure for schedule_job
-- ----------------------------
DROP TABLE IF EXISTS `schedule_job`;
CREATE TABLE `schedule_job` (
`job_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '任务id',
`bean_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'spring bean名称',
`params` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数',
`cron_expression` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'cron表达式',
`status` tinyint(4) NULL DEFAULT NULL COMMENT '任务状态 0正常 1暂停',
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`job_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '定时任务' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of schedule_job
-- ----------------------------
INSERT INTO `schedule_job` VALUES (1, 'testTask', 'renren', '0 0/30 * * * ?', 0, '参数测试', '2020-06-16 10:34:55');
-- ----------------------------
-- Table structure for schedule_job_log
-- ----------------------------
DROP TABLE IF EXISTS `schedule_job_log`;
CREATE TABLE `schedule_job_log` (
`log_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '任务日志id',
`job_id` bigint(20) NOT NULL COMMENT '任务id',
`bean_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'spring bean名称',
`params` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数',
`status` tinyint(4) NOT NULL COMMENT '任务状态 0成功 1失败',
`error` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '失败信息',
`times` int(11) NOT NULL COMMENT '耗时(单位:毫秒)',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`log_id`) USING BTREE,
INDEX `job_id`(`job_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '定时任务日志' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of schedule_job_log
-- ----------------------------
INSERT INTO `schedule_job_log` VALUES (1, 1, 'testTask', 'renren', 0, NULL, 0, '2020-06-16 11:30:00');
-- ----------------------------
-- Table structure for sys_captcha
-- ----------------------------
DROP TABLE IF EXISTS `sys_captcha`;
CREATE TABLE `sys_captcha` (
`uuid` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'uuid',
`code` varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '验证码',
`expire_time` datetime(0) NULL DEFAULT NULL COMMENT '过期时间',
PRIMARY KEY (`uuid`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统验证码' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for sys_config
-- ----------------------------
DROP TABLE IF EXISTS `sys_config`;
CREATE TABLE `sys_config` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`param_key` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'key',
`param_value` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'value',
`status` tinyint(4) NULL DEFAULT 1 COMMENT '状态 0隐藏 1显示',
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `param_key`(`param_key`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统配置信息表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_config
-- ----------------------------
INSERT INTO `sys_config` VALUES (1, 'CLOUD_STORAGE_CONFIG_KEY', '{\"aliyunAccessKeyId\":\"\",\"aliyunAccessKeySecret\":\"\",\"aliyunBucketName\":\"\",\"aliyunDomain\":\"\",\"aliyunEndPoint\":\"\",\"aliyunPrefix\":\"\",\"qcloudBucketName\":\"\",\"qcloudDomain\":\"\",\"qcloudPrefix\":\"\",\"qcloudSecretId\":\"\",\"qcloudSecretKey\":\"\",\"qiniuAccessKey\":\"NrgMfABZxWLo5B-YYSjoE8-AZ1EISdi1Z3ubLOeZ\",\"qiniuBucketName\":\"ios-app\",\"qiniuDomain\":\"http://7xqbwh.dl1.z0.glb.clouddn.com\",\"qiniuPrefix\":\"upload\",\"qiniuSecretKey\":\"uIwJHevMRWU0VLxFvgy0tAcOdGqasdtVlJkdy6vV\",\"type\":1}', 0, '云存储配置信息');
-- ----------------------------
-- Table structure for sys_log
-- ----------------------------
DROP TABLE IF EXISTS `sys_log`;
CREATE TABLE `sys_log` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`username` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户名',
`operation` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户操作',
`method` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '请求方法',
`params` varchar(5000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '请求参数',
`time` bigint(20) NOT NULL COMMENT '执行时长(毫秒)',
`ip` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'IP地址',
`create_date` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统日志' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for sys_menu
-- ----------------------------
DROP TABLE IF EXISTS `sys_menu`;
CREATE TABLE `sys_menu` (
`menu_id` bigint(20) NOT NULL AUTO_INCREMENT,
`parent_id` bigint(20) NULL DEFAULT NULL COMMENT '父菜单ID一级菜单为0',
`name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '菜单名称',
`url` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '菜单URL',
`perms` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '授权(多个用逗号分隔user:list,user:create)',
`type` int(11) NULL DEFAULT NULL COMMENT '类型 0目录 1菜单 2按钮',
`icon` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '菜单图标',
`order_num` int(11) NULL DEFAULT NULL COMMENT '排序',
PRIMARY KEY (`menu_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 31 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '菜单管理' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_menu
-- ----------------------------
INSERT INTO `sys_menu` VALUES (1, 0, '系统管理', NULL, NULL, 0, 'system', 0);
INSERT INTO `sys_menu` VALUES (2, 1, '管理员列表', 'sys/user', NULL, 1, 'admin', 1);
INSERT INTO `sys_menu` VALUES (3, 1, '角色管理', 'sys/role', NULL, 1, 'role', 2);
INSERT INTO `sys_menu` VALUES (4, 1, '菜单管理', 'sys/menu', NULL, 1, 'menu', 3);
INSERT INTO `sys_menu` VALUES (5, 1, 'SQL监控', 'http://localhost:8080/renren-fast/druid/sql.html', NULL, 1, 'sql', 4);
INSERT INTO `sys_menu` VALUES (6, 1, '定时任务', 'job/schedule', NULL, 1, 'job', 5);
INSERT INTO `sys_menu` VALUES (7, 6, '查看', NULL, 'sys:schedule:list,sys:schedule:info', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (8, 6, '新增', NULL, 'sys:schedule:save', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (9, 6, '修改', NULL, 'sys:schedule:update', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (10, 6, '删除', NULL, 'sys:schedule:delete', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (11, 6, '暂停', NULL, 'sys:schedule:pause', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (12, 6, '恢复', NULL, 'sys:schedule:resume', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (13, 6, '立即执行', NULL, 'sys:schedule:run', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (14, 6, '日志列表', NULL, 'sys:schedule:log', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (15, 2, '查看', NULL, 'sys:user:list,sys:user:info', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (16, 2, '新增', NULL, 'sys:user:save,sys:role:select', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (17, 2, '修改', NULL, 'sys:user:update,sys:role:select', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (18, 2, '删除', NULL, 'sys:user:delete', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (19, 3, '查看', NULL, 'sys:role:list,sys:role:info', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (20, 3, '新增', NULL, 'sys:role:save,sys:menu:list', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (21, 3, '修改', NULL, 'sys:role:update,sys:menu:list', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (22, 3, '删除', NULL, 'sys:role:delete', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (23, 4, '查看', NULL, 'sys:menu:list,sys:menu:info', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (24, 4, '新增', NULL, 'sys:menu:save,sys:menu:select', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (25, 4, '修改', NULL, 'sys:menu:update,sys:menu:select', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (26, 4, '删除', NULL, 'sys:menu:delete', 2, NULL, 0);
INSERT INTO `sys_menu` VALUES (27, 1, '参数管理', 'sys/config', 'sys:config:list,sys:config:info,sys:config:save,sys:config:update,sys:config:delete', 1, 'config', 6);
INSERT INTO `sys_menu` VALUES (29, 1, '系统日志', 'sys/log', 'sys:log:list', 1, 'log', 7);
INSERT INTO `sys_menu` VALUES (30, 1, '文件上传', 'oss/oss', 'sys:oss:all', 1, 'oss', 6);
-- ----------------------------
-- Table structure for sys_oss
-- ----------------------------
DROP TABLE IF EXISTS `sys_oss`;
CREATE TABLE `sys_oss` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`url` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'URL地址',
`create_date` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '文件上传' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for sys_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_role`;
CREATE TABLE `sys_role` (
`role_id` bigint(20) NOT NULL AUTO_INCREMENT,
`role_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '角色名称',
`remark` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
`create_user_id` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`role_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for sys_role_menu
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_menu`;
CREATE TABLE `sys_role_menu` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`role_id` bigint(20) NULL DEFAULT NULL COMMENT '角色ID',
`menu_id` bigint(20) NULL DEFAULT NULL COMMENT '菜单ID',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色与菜单对应关系' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for sys_user
-- ----------------------------
DROP TABLE IF EXISTS `sys_user`;
CREATE TABLE `sys_user` (
`user_id` bigint(20) NOT NULL AUTO_INCREMENT,
`username` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户名',
`password` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '密码',
`salt` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '',
`email` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮箱',
`mobile` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '手机号',
`status` tinyint(4) NULL DEFAULT NULL COMMENT '状态 0禁用 1正常',
`create_user_id` bigint(20) NULL DEFAULT NULL COMMENT '创建者ID',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`user_id`) USING BTREE,
UNIQUE INDEX `username`(`username`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统用户' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_user
-- ----------------------------
INSERT INTO `sys_user` VALUES (1, 'admin', '9ec9750e709431dad22365cabc5c625482e574c74adaebba7dd02f1129e4ce1d', 'YzcmCZNvbXocrsz9dm8e', 'root@renren.io', '13612345678', 1, 1, '2016-11-11 11:11:11');
-- ----------------------------
-- Table structure for sys_user_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_role`;
CREATE TABLE `sys_user_role` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户ID',
`role_id` bigint(20) NULL DEFAULT NULL COMMENT '角色ID',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户与角色对应关系' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for sys_user_token
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_token`;
CREATE TABLE `sys_user_token` (
`user_id` bigint(20) NOT NULL,
`token` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'token',
`expire_time` datetime(0) NULL DEFAULT NULL COMMENT '过期时间',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`user_id`) USING BTREE,
UNIQUE INDEX `token`(`token`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统用户Token' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for tb_user
-- ----------------------------
DROP TABLE IF EXISTS `tb_user`;
CREATE TABLE `tb_user` (
`user_id` bigint(20) NOT NULL AUTO_INCREMENT,
`username` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户名',
`mobile` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '手机号',
`password` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '密码',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`user_id`) USING BTREE,
UNIQUE INDEX `username`(`username`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of tb_user
-- ----------------------------
INSERT INTO `tb_user` VALUES (1, 'mark', '13612345678', '8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918', '2017-03-23 22:37:41');
SET FOREIGN_KEY_CHECKS = 1;

View File

@@ -0,0 +1,16 @@
-- 菜单SQL
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
VALUES ('1', '', 'wcs/mtdddevicecodeinfo', NULL, '1', 'config', '6');
-- 按钮父菜单ID
set @parentId = @@identity;
-- 菜单对应按钮SQL
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
SELECT @parentId, '查看', null, 'wcs:mtdddevicecodeinfo:list,wcs:mtdddevicecodeinfo:info', '2', null, '6';
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
SELECT @parentId, '新增', null, 'wcs:mtdddevicecodeinfo:save', '2', null, '6';
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
SELECT @parentId, '修改', null, 'wcs:mtdddevicecodeinfo:update', '2', null, '6';
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
SELECT @parentId, '删除', null, 'wcs:mtdddevicecodeinfo:delete', '2', null, '6';

View File

@@ -0,0 +1,16 @@
-- 菜单SQL
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
VALUES ('1', '', 'wcs/mtdddevicecodelog', NULL, '1', 'config', '6');
-- 按钮父菜单ID
set @parentId = @@identity;
-- 菜单对应按钮SQL
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
SELECT @parentId, '查看', null, 'wcs:mtdddevicecodelog:list,wcs:mtdddevicecodelog:info', '2', null, '6';
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
SELECT @parentId, '新增', null, 'wcs:mtdddevicecodelog:save', '2', null, '6';
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
SELECT @parentId, '修改', null, 'wcs:mtdddevicecodelog:update', '2', null, '6';
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
SELECT @parentId, '删除', null, 'wcs:mtdddevicecodelog:delete', '2', null, '6';

View File

@@ -0,0 +1,16 @@
-- 菜单SQL
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
VALUES ('1', '', 'wcs/mtdddeviceinfo', NULL, '1', 'config', '6');
-- 按钮父菜单ID
set @parentId = @@identity;
-- 菜单对应按钮SQL
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
SELECT @parentId, '查看', null, 'wcs:mtdddeviceinfo:list,wcs:mtdddeviceinfo:info', '2', null, '6';
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
SELECT @parentId, '新增', null, 'wcs:mtdddeviceinfo:save', '2', null, '6';
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
SELECT @parentId, '修改', null, 'wcs:mtdddeviceinfo:update', '2', null, '6';
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
SELECT @parentId, '删除', null, 'wcs:mtdddeviceinfo:delete', '2', null, '6';

View File

@@ -0,0 +1,16 @@
-- 菜单SQL
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
VALUES ('1', '', 'wcs/mtdddevicerunlog', NULL, '1', 'config', '6');
-- 按钮父菜单ID
set @parentId = @@identity;
-- 菜单对应按钮SQL
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
SELECT @parentId, '查看', null, 'wcs:mtdddevicerunlog:list,wcs:mtdddevicerunlog:info', '2', null, '6';
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
SELECT @parentId, '新增', null, 'wcs:mtdddevicerunlog:save', '2', null, '6';
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
SELECT @parentId, '修改', null, 'wcs:mtdddevicerunlog:update', '2', null, '6';
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
SELECT @parentId, '删除', null, 'wcs:mtdddevicerunlog:delete', '2', null, '6';

View File

@@ -0,0 +1,16 @@
-- 菜单SQL
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
VALUES ('1', '', 'wcs/mtddinterfaceinfolog', NULL, '1', 'config', '6');
-- 按钮父菜单ID
set @parentId = @@identity;
-- 菜单对应按钮SQL
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
SELECT @parentId, '查看', null, 'wcs:mtddinterfaceinfolog:list,wcs:mtddinterfaceinfolog:info', '2', null, '6';
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
SELECT @parentId, '新增', null, 'wcs:mtddinterfaceinfolog:save', '2', null, '6';
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
SELECT @parentId, '修改', null, 'wcs:mtddinterfaceinfolog:update', '2', null, '6';
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
SELECT @parentId, '删除', null, 'wcs:mtddinterfaceinfolog:delete', '2', null, '6';

View File

@@ -0,0 +1,16 @@
-- 菜单SQL
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
VALUES ('1', '', 'wcs/mtddtaskinfo', NULL, '1', 'config', '6');
-- 按钮父菜单ID
set @parentId = @@identity;
-- 菜单对应按钮SQL
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
SELECT @parentId, '查看', null, 'wcs:mtddtaskinfo:list,wcs:mtddtaskinfo:info', '2', null, '6';
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
SELECT @parentId, '新增', null, 'wcs:mtddtaskinfo:save', '2', null, '6';
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
SELECT @parentId, '修改', null, 'wcs:mtddtaskinfo:update', '2', null, '6';
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
SELECT @parentId, '删除', null, 'wcs:mtddtaskinfo:delete', '2', null, '6';

View File

@@ -0,0 +1,16 @@
-- 菜单SQL
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
VALUES ('1', '', 'wcs/mtddtaskinfolog', NULL, '1', 'config', '6');
-- 按钮父菜单ID
set @parentId = @@identity;
-- 菜单对应按钮SQL
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
SELECT @parentId, '查看', null, 'wcs:mtddtaskinfolog:list,wcs:mtddtaskinfolog:info', '2', null, '6';
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
SELECT @parentId, '新增', null, 'wcs:mtddtaskinfolog:save', '2', null, '6';
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
SELECT @parentId, '修改', null, 'wcs:mtddtaskinfolog:update', '2', null, '6';
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
SELECT @parentId, '删除', null, 'wcs:mtddtaskinfolog:delete', '2', null, '6';