From 9d97205281a3549500ac4523614888dee621ad40 Mon Sep 17 00:00:00 2001
From: zhc077 <565291854>
Date: Thu, 2 Feb 2023 17:58:53 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E5=90=8A=E6=8C=82=E5=9F=BA=E6=9C=AC?=
=?UTF-8?q?=E4=BF=A1=E6=81=AF=202.2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/views/hanger/ZyHangList.vue | 236 ++++++++++++++++++
.../src/views/hanger/modules/ZyHangForm.vue | 219 ++++++++++++++++
.../src/views/hanger/modules/ZyHangModal.vue | 60 +++++
.../modules/ZyHangModal__Style#Drawer.vue | 84 +++++++
.../hanger/controller/ZyHangController.java | 172 +++++++++++++
.../jeecg/modules/hanger/entity/ZyHang.java | 149 +++++++++++
.../modules/hanger/mapper/ZyHangMapper.java | 15 ++
.../hanger/service/IZyHangService.java | 15 ++
.../service/impl/ZyHangServiceImpl.java | 19 ++
9 files changed, 969 insertions(+)
create mode 100644 ant-design-vue-jeecg/src/views/hanger/ZyHangList.vue
create mode 100644 ant-design-vue-jeecg/src/views/hanger/modules/ZyHangForm.vue
create mode 100644 ant-design-vue-jeecg/src/views/hanger/modules/ZyHangModal.vue
create mode 100644 ant-design-vue-jeecg/src/views/hanger/modules/ZyHangModal__Style#Drawer.vue
create mode 100644 jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/controller/ZyHangController.java
create mode 100644 jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/entity/ZyHang.java
create mode 100644 jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/mapper/ZyHangMapper.java
create mode 100644 jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/service/IZyHangService.java
create mode 100644 jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/service/impl/ZyHangServiceImpl.java
diff --git a/ant-design-vue-jeecg/src/views/hanger/ZyHangList.vue b/ant-design-vue-jeecg/src/views/hanger/ZyHangList.vue
new file mode 100644
index 00000000..49b489ba
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/hanger/ZyHangList.vue
@@ -0,0 +1,236 @@
+
+
+
+
+
+
+
+
+
新增
+
导出
+
+
+
+
+
+
+
+ 删除
+
+ 批量操作
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 无图片
+
+
+
+ 无文件
+
+ 下载
+
+
+
+
+ 编辑
+
+ handleDelete(record.id)">
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangForm.vue b/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangForm.vue
new file mode 100644
index 00000000..2bd149cb
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangForm.vue
@@ -0,0 +1,219 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangModal.vue b/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangModal.vue
new file mode 100644
index 00000000..ac2423ef
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangModal.vue
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangModal__Style#Drawer.vue b/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangModal__Style#Drawer.vue
new file mode 100644
index 00000000..297b3480
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangModal__Style#Drawer.vue
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/controller/ZyHangController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/controller/ZyHangController.java
new file mode 100644
index 00000000..8fd4607e
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/controller/ZyHangController.java
@@ -0,0 +1,172 @@
+package org.jeecg.modules.hanger.controller;
+
+
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import lombok.extern.slf4j.Slf4j;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.aspect.annotation.AutoLog;
+import org.jeecg.common.system.base.controller.JeecgController;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.modules.hanger.entity.ZyHang;
+import org.jeecg.modules.hanger.service.IZyHangService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.util.ObjectUtils;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.servlet.ModelAndView;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import java.util.Arrays;
+import java.util.List;
+
+/**
+ * @Description: 吊挂表
+ * @Author: jeecg-boot
+ * @Date: 2023-02-02
+ * @Version: V1.0
+ */
+@Api(tags = "吊挂表")
+@RestController
+@RequestMapping("/org.jeecg.modules.hanger/zyHang")
+@Slf4j
+public class ZyHangController extends JeecgController {
+ @Autowired
+ private IZyHangService zyHangService;
+
+ /**
+ * 分页列表查询
+ *
+ * @param zyHang
+ * @param pageNo
+ * @param pageSize
+ * @param req
+ * @return
+ */
+ @AutoLog(value = "吊挂表-分页列表查询")
+ @ApiOperation(value = "吊挂表-分页列表查询", notes = "吊挂表-分页列表查询")
+ @GetMapping(value = "/list")
+ public Result> queryPageList(ZyHang zyHang,
+ @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
+ @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
+ HttpServletRequest req) {
+ QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(zyHang, req.getParameterMap());
+ Page page = new Page(pageNo, pageSize);
+ IPage pageList = zyHangService.page(page, queryWrapper);
+ return Result.OK(pageList);
+ }
+
+ /**
+ * 添加
+ *
+ * @param zyHang
+ * @return
+ */
+ @AutoLog(value = "吊挂表-添加")
+ @ApiOperation(value = "吊挂表-添加", notes = "吊挂表-添加")
+ @PostMapping(value = "/add")
+ public Result> add(@RequestBody ZyHang zyHang) {
+ List list = zyHangService.list(new LambdaQueryWrapper()
+ .eq(ZyHang::getStatus, "0")
+ .orderByDesc(ZyHang::getCode));
+ String code = "";
+ if (ObjectUtils.isEmpty(list)) {
+ code = "DG1000";
+ } else {
+ String[] dgs = list.get(0).getCode().split("DG");
+ int val = new Integer(dgs[1]).intValue() + 1 ;
+ code = "DG" + val+ "";
+ }
+ zyHang.setCode(code);
+ zyHang.setStatus("0");
+ zyHangService.save(zyHang);
+ return Result.OK("添加成功!");
+ }
+
+ /**
+ * 编辑
+ *
+ * @param zyHang
+ * @return
+ */
+ @AutoLog(value = "吊挂表-编辑")
+ @ApiOperation(value = "吊挂表-编辑", notes = "吊挂表-编辑")
+ @PutMapping(value = "/edit")
+ public Result> edit(@RequestBody ZyHang zyHang) {
+ zyHangService.updateById(zyHang);
+ return Result.OK("编辑成功!");
+ }
+
+ /**
+ * 通过id删除
+ *
+ * @param id
+ * @return
+ */
+ @AutoLog(value = "吊挂表-通过id删除")
+ @ApiOperation(value = "吊挂表-通过id删除", notes = "吊挂表-通过id删除")
+ @DeleteMapping(value = "/delete")
+ public Result> delete(@RequestParam(name = "id", required = true) String id) {
+ zyHangService.removeById(id);
+ return Result.OK("删除成功!");
+ }
+
+ /**
+ * 批量删除
+ *
+ * @param ids
+ * @return
+ */
+ @AutoLog(value = "吊挂表-批量删除")
+ @ApiOperation(value = "吊挂表-批量删除", notes = "吊挂表-批量删除")
+ @DeleteMapping(value = "/deleteBatch")
+ public Result> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
+ this.zyHangService.removeByIds(Arrays.asList(ids.split(",")));
+ return Result.OK("批量删除成功!");
+ }
+
+ /**
+ * 通过id查询
+ *
+ * @param id
+ * @return
+ */
+ @AutoLog(value = "吊挂表-通过id查询")
+ @ApiOperation(value = "吊挂表-通过id查询", notes = "吊挂表-通过id查询")
+ @GetMapping(value = "/queryById")
+ public Result> queryById(@RequestParam(name = "id", required = true) String id) {
+ ZyHang zyHang = zyHangService.getById(id);
+ if (zyHang == null) {
+ return Result.error("未找到对应数据");
+ }
+ return Result.OK(zyHang);
+ }
+
+ /**
+ * 导出excel
+ *
+ * @param request
+ * @param zyHang
+ */
+ @RequestMapping(value = "/exportXls")
+ public ModelAndView exportXls(HttpServletRequest request, ZyHang zyHang) {
+ return super.exportXls(request, zyHang, ZyHang.class, "吊挂表");
+ }
+
+ /**
+ * 通过excel导入数据
+ *
+ * @param request
+ * @param response
+ * @return
+ */
+ @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+ public Result> importExcel(HttpServletRequest request, HttpServletResponse response) {
+ return super.importExcel(request, response, ZyHang.class);
+ }
+
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/entity/ZyHang.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/entity/ZyHang.java
new file mode 100644
index 00000000..8273c52c
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/entity/ZyHang.java
@@ -0,0 +1,149 @@
+package org.jeecg.modules.hanger.entity;
+
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+import org.jeecg.common.aspect.annotation.Dict;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * @Description: 吊挂表
+ * @Author: jeecg-boot
+ * @Date: 2023-02-02
+ * @Version: V1.0
+ */
+@Data
+@TableName("zy_hang")
+@Accessors(chain = true)
+@EqualsAndHashCode(callSuper = false)
+@ApiModel(value = "zy_hang对象", description = "吊挂表")
+public class ZyHang implements Serializable {
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * 主键
+ */
+ @TableId(type = IdType.ASSIGN_ID)
+ @ApiModelProperty(value = "主键")
+ private String id;
+ /**
+ * 创建人
+ */
+ @ApiModelProperty(value = "创建人")
+ private String createBy;
+ /**
+ * 创建日期
+ */
+ @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
+ @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+ @ApiModelProperty(value = "创建日期")
+ private Date createTime;
+ /**
+ * 更新人
+ */
+ @ApiModelProperty(value = "更新人")
+ private String updateBy;
+ /**
+ * 更新日期
+ */
+ @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
+ @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+ @ApiModelProperty(value = "更新日期")
+ private Date updateTime;
+ /**
+ * 车间
+ */
+ @Excel(name = "车间", width = 15)
+ @ApiModelProperty(value = "车间")
+ @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
+ private String workshopId;
+ /**
+ * 品牌
+ */
+ @Excel(name = "品牌", width = 15)
+ @ApiModelProperty(value = "品牌")
+ private String brand;
+ /**
+ * 型号
+ */
+ @Excel(name = "型号", width = 15)
+ @ApiModelProperty(value = "型号")
+ private String model;
+ /**
+ * 编号
+ */
+ @Excel(name = "编号", width = 15)
+ @ApiModelProperty(value = "编号")
+ private String code;
+ /**
+ * 工站数
+ */
+ @Excel(name = "工站数", width = 15)
+ @ApiModelProperty(value = "工站数")
+ private Integer pointnumber;
+ /**
+ * 购买时间
+ */
+ @Excel(name = "购买时间", width = 15)
+ @ApiModelProperty(value = "购买时间")
+ private String buydate;
+ /**
+ * 经办人
+ */
+ @Excel(name = "经办人", width = 15)
+ @ApiModelProperty(value = "经办人")
+ private String agent;
+ /**
+ * 状态
+ */
+ @Excel(name = "状态", width = 15)
+ @ApiModelProperty(value = "状态")
+ private String status;
+ /**
+ * 二维码
+ */
+ @Excel(name = "二维码", width = 15)
+ @ApiModelProperty(value = "二维码")
+ private String qrcode;
+ /**
+ * 维护周期
+ */
+ @Excel(name = "维护周期", width = 15)
+ @ApiModelProperty(value = "维护周期")
+ private Integer maintenancecycle;
+ /**
+ * 管理 人
+ */
+ @Excel(name = "管理 人", width = 15)
+ @ApiModelProperty(value = "管理 人")
+ private String administrator;
+ /**
+ * 上次维护时间
+ */
+ @Excel(name = "上次维护时间", width = 15)
+ @ApiModelProperty(value = "上次维护时间")
+ private String maintenancedate;
+ /**
+ * 图片
+ */
+ @Excel(name = "图片", width = 15)
+ @ApiModelProperty(value = "图片")
+ private String img;
+ /**
+ * 3d模型
+ */
+ @Excel(name = "3d模型", width = 15)
+ @ApiModelProperty(value = "3d模型")
+ private String img3d;
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/mapper/ZyHangMapper.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/mapper/ZyHangMapper.java
new file mode 100644
index 00000000..769d78bd
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/mapper/ZyHangMapper.java
@@ -0,0 +1,15 @@
+package org.jeecg.modules.hanger.mapper;
+
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.jeecg.modules.hanger.entity.ZyHang;
+
+/**
+ * @Description: 吊挂表
+ * @Author: jeecg-boot
+ * @Date: 2023-02-02
+ * @Version: V1.0
+ */
+public interface ZyHangMapper extends BaseMapper {
+
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/service/IZyHangService.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/service/IZyHangService.java
new file mode 100644
index 00000000..8b12290b
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/service/IZyHangService.java
@@ -0,0 +1,15 @@
+package org.jeecg.modules.hanger.service;
+
+
+import org.jeecg.modules.hanger.entity.ZyHang;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * @Description: 吊挂表
+ * @Author: jeecg-boot
+ * @Date: 2023-02-02
+ * @Version: V1.0
+ */
+public interface IZyHangService extends IService {
+
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/service/impl/ZyHangServiceImpl.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/service/impl/ZyHangServiceImpl.java
new file mode 100644
index 00000000..ba2daec4
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/service/impl/ZyHangServiceImpl.java
@@ -0,0 +1,19 @@
+package org.jeecg.modules.hanger.service.impl;
+
+import org.jeecg.modules.hanger.entity.ZyHang;
+import org.jeecg.modules.hanger.mapper.ZyHangMapper;
+import org.jeecg.modules.hanger.service.IZyHangService;
+import org.springframework.stereotype.Service;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+/**
+ * @Description: 吊挂表
+ * @Author: jeecg-boot
+ * @Date: 2023-02-02
+ * @Version: V1.0
+ */
+@Service
+public class ZyHangServiceImpl extends ServiceImpl implements IZyHangService {
+
+}
From b8aff2e54ea280041adf10440eb7eb85a144b07b Mon Sep 17 00:00:00 2001
From: zhc077 <565291854>
Date: Fri, 3 Feb 2023 15:38:27 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E5=90=8A=E6=8C=82=E7=AE=A1=E7=90=86-?=
=?UTF-8?q?=E5=90=8A=E6=8C=82=E5=9F=BA=E6=9C=AC=E4=BF=A1=E6=81=AF=202.3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/views/hanger/ZyHangList.vue | 343 ++++++++++--------
.../src/views/hanger/ZyHangPointList.vue | 183 ++++++++++
.../src/views/hanger/modules/ZyHangForm.vue | 34 +-
.../views/hanger/modules/ZyHangPointForm.vue | 118 ++++++
.../views/hanger/modules/ZyHangPointModal.vue | 60 +++
.../ZyHangPointModal__Style#Drawer.vue | 84 +++++
.../views/productplan/ZyProductPlanList.vue | 1 -
.../hanger/controller/ZyHangController.java | 50 ++-
.../controller/ZyHangPointController.java | 156 ++++++++
.../jeecg/modules/hanger/entity/ZyHang.java | 19 +-
.../modules/hanger/entity/ZyHangPoint.java | 81 +++++
.../hanger/mapper/ZyHangPointMapper.java | 15 +
.../hanger/service/IZyHangPointService.java | 15 +
.../service/impl/ZyHangPointServiceImpl.java | 19 +
14 files changed, 1006 insertions(+), 172 deletions(-)
create mode 100644 ant-design-vue-jeecg/src/views/hanger/ZyHangPointList.vue
create mode 100644 ant-design-vue-jeecg/src/views/hanger/modules/ZyHangPointForm.vue
create mode 100644 ant-design-vue-jeecg/src/views/hanger/modules/ZyHangPointModal.vue
create mode 100644 ant-design-vue-jeecg/src/views/hanger/modules/ZyHangPointModal__Style#Drawer.vue
create mode 100644 jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/controller/ZyHangPointController.java
create mode 100644 jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/entity/ZyHangPoint.java
create mode 100644 jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/mapper/ZyHangPointMapper.java
create mode 100644 jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/service/IZyHangPointService.java
create mode 100644 jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/service/impl/ZyHangPointServiceImpl.java
diff --git a/ant-design-vue-jeecg/src/views/hanger/ZyHangList.vue b/ant-design-vue-jeecg/src/views/hanger/ZyHangList.vue
index 49b489ba..228f5493 100644
--- a/ant-design-vue-jeecg/src/views/hanger/ZyHangList.vue
+++ b/ant-design-vue-jeecg/src/views/hanger/ZyHangList.vue
@@ -4,6 +4,38 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
@@ -13,23 +45,30 @@
新增
导出
-
-
+
+
-
+
- 删除
+
+
+ 删除
+
- 批量操作
+ 批量操作
+
+
@@ -52,8 +91,16 @@
无图片
-
+
+
+
+
+
+ 显示3d模型
+
+
无文件
编辑
-
+
handleDelete(record.id)">
删除
@@ -84,153 +131,155 @@
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/hanger/ZyHangPointList.vue b/ant-design-vue-jeecg/src/views/hanger/ZyHangPointList.vue
new file mode 100644
index 00000000..ce4cb2f1
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/hanger/ZyHangPointList.vue
@@ -0,0 +1,183 @@
+
+
+
+
+
+
+
+
+
新增
+
导出
+
+ 导入
+
+
+
+
+
+ 删除
+
+ 批量操作
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 无图片
+
+
+
+ 无文件
+
+ 下载
+
+
+
+
+ 编辑
+
+
+
+ 更多
+
+
+ 详情
+
+
+ handleDelete(record.id)">
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangForm.vue b/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangForm.vue
index 2bd149cb..f8e1ad1d 100644
--- a/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangForm.vue
+++ b/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangForm.vue
@@ -6,8 +6,6 @@
-
-
@@ -32,42 +30,49 @@
-
+
+
-
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
-
+
+
-
+
+
-
+
+
@@ -101,6 +106,7 @@ export default {
data () {
return {
model:{
+ status:1,
},
labelCol: {
xs: { span: 24 },
diff --git a/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangPointForm.vue b/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangPointForm.vue
new file mode 100644
index 00000000..f31173ae
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangPointForm.vue
@@ -0,0 +1,118 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangPointModal.vue b/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangPointModal.vue
new file mode 100644
index 00000000..884b144e
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangPointModal.vue
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangPointModal__Style#Drawer.vue b/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangPointModal__Style#Drawer.vue
new file mode 100644
index 00000000..30a01652
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/hanger/modules/ZyHangPointModal__Style#Drawer.vue
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/productplan/ZyProductPlanList.vue b/ant-design-vue-jeecg/src/views/productplan/ZyProductPlanList.vue
index 14e63ec8..2429657f 100644
--- a/ant-design-vue-jeecg/src/views/productplan/ZyProductPlanList.vue
+++ b/ant-design-vue-jeecg/src/views/productplan/ZyProductPlanList.vue
@@ -313,7 +313,6 @@ export default {
getPaiWeiTu(record) {
// alert(JSON.stringify(record));
- alert("请稍等,正在开发中。。。")
getAction(this.url.paiweitu, record).then((res) => {
if (res.success) {
console.log("the paiweitu----------" + JSON.stringify(res.result))
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/controller/ZyHangController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/controller/ZyHangController.java
index 8fd4607e..c86750ca 100644
--- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/controller/ZyHangController.java
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/hanger/controller/ZyHangController.java
@@ -5,11 +5,19 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.google.zxing.BarcodeFormat;
+import com.google.zxing.EncodeHintType;
+import com.google.zxing.WriterException;
+import com.google.zxing.client.j2se.MatrixToImageWriter;
+import com.google.zxing.common.BitMatrix;
+import com.google.zxing.qrcode.QRCodeWriter;
+import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog;
+import org.jeecg.common.exception.JeecgBootException;
import org.jeecg.common.system.base.controller.JeecgController;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.modules.hanger.entity.ZyHang;
@@ -21,8 +29,9 @@ import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
-import java.util.Arrays;
-import java.util.List;
+import java.io.ByteArrayOutputStream;
+import java.io.IOException;
+import java.util.*;
/**
* @Description: 吊挂表
@@ -57,6 +66,38 @@ public class ZyHangController extends JeecgController {
QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(zyHang, req.getParameterMap());
Page page = new Page(pageNo, pageSize);
IPage pageList = zyHangService.page(page, queryWrapper);
+ if (!ObjectUtils.isEmpty(pageList)) {
+ Map hints = new HashMap();
+ //设置UTF-8, 防止中文乱码
+ hints.put(EncodeHintType.CHARACTER_SET, "UTF-8");
+ //设置二维码四周白色区域的大小
+ hints.put(EncodeHintType.MARGIN, 1);
+ //设置二维码的容错性
+ hints.put(EncodeHintType.ERROR_CORRECTION, ErrorCorrectionLevel.H);
+ //width:图片完整的宽;height:图片完整的高
+ //因为要在二维码下方附上文字,所以把图片设置为长方形(高大于宽)
+ int width = 150;
+ int height = 150;
+ //画二维码,记得调用multiFormatWriter.encode()时最后要带上hints参数,不然上面设置无效
+ QRCodeWriter qrCodeWriter = new QRCodeWriter();
+// List