20220909-data

zhc4dev
lenovo 2 years ago
parent 4ddc2007ba
commit 5fa329bdc0
  1. 5
      jeecg-boot/jeecg-boot-module-erp/src/main/java/org/jeecg/modules/demo/tools/mapper/ZyToolTypesMapper.java
  2. 3
      jeecg-boot/jeecg-boot-module-erp/src/main/java/org/jeecg/modules/demo/tools/service/IZyToolTypesService.java
  3. 9
      jeecg-boot/jeecg-boot-module-erp/src/main/java/org/jeecg/modules/demo/tools/service/impl/ZyToolTypesServiceImpl.java
  4. 7
      jeecg-boot/jeecg-boot-module-process/pom.xml
  5. 50
      jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/controller/ZyProcessController.java
  6. 15
      jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/entity/ZyAllProcess.java
  7. 101
      jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/device/entity/ZyDevicetypel.java
  8. 21
      jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/device/mapper/ZyDevicetypeMapper1.java
  9. 20
      jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/device/service/IZyDevicetypeService1.java
  10. 30
      jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/device/service/impl/ZyDevicetypeServiceImpl1.java
  11. 3
      jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/entity/ZyProcessAccessories.java
  12. 3
      jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/entity/ZyProcessAction.java
  13. 3
      jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/entity/ZyProcessFabric.java
  14. 5
      jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/mapper/ZyProcessAccessoriesMapper.java
  15. 5
      jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/mapper/ZyProcessActionMapper.java
  16. 5
      jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/mapper/ZyProcessFabricMapper.java
  17. 3
      jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/service/IZyProcessAccessoriesService.java
  18. 3
      jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/service/IZyProcessActionService.java
  19. 3
      jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/service/IZyProcessFabricService.java
  20. 3
      jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/service/impl/ZyProcessAccessoriesServiceImpl.java
  21. 3
      jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/service/impl/ZyProcessActionServiceImpl.java
  22. 3
      jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/service/impl/ZyProcessFabricServiceImpl.java
  23. 3
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/devicetype/mapper/ZyDevicetypeMapper.java
  24. 1
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/devicetype/service/IZyDevicetypeService.java
  25. 5
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/devicetype/service/impl/ZyDevicetypeServiceImpl.java

@ -2,7 +2,9 @@ package org.jeecg.modules.demo.tools.mapper;
import java.util.List; import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.demo.tools.entity.ZyToolTypes; import org.jeecg.modules.demo.tools.entity.ZyToolTypes;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
@ -12,6 +14,9 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* @Date: 2021-11-12 * @Date: 2021-11-12
* @Version: V1.0 * @Version: V1.0
*/ */
@Mapper
public interface ZyToolTypesMapper extends BaseMapper<ZyToolTypes> { public interface ZyToolTypesMapper extends BaseMapper<ZyToolTypes> {
@Select("select * from zy_tool_types where id in (select toolid from zy_operationtool where operationid=#{id})")
List<ZyToolTypes> selectByid(String id);
} }

@ -3,6 +3,8 @@ package org.jeecg.modules.demo.tools.service;
import org.jeecg.modules.demo.tools.entity.ZyToolTypes; import org.jeecg.modules.demo.tools.entity.ZyToolTypes;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/** /**
* @Description: 工具类型表 * @Description: 工具类型表
* @Author: jeecg-boot * @Author: jeecg-boot
@ -11,4 +13,5 @@ import com.baomidou.mybatisplus.extension.service.IService;
*/ */
public interface IZyToolTypesService extends IService<ZyToolTypes> { public interface IZyToolTypesService extends IService<ZyToolTypes> {
List<ZyToolTypes> selectByid(String id);
} }

@ -3,10 +3,13 @@ package org.jeecg.modules.demo.tools.service.impl;
import org.jeecg.modules.demo.tools.entity.ZyToolTypes; import org.jeecg.modules.demo.tools.entity.ZyToolTypes;
import org.jeecg.modules.demo.tools.mapper.ZyToolTypesMapper; import org.jeecg.modules.demo.tools.mapper.ZyToolTypesMapper;
import org.jeecg.modules.demo.tools.service.IZyToolTypesService; import org.jeecg.modules.demo.tools.service.IZyToolTypesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
/** /**
* @Description: 工具类型表 * @Description: 工具类型表
* @Author: jeecg-boot * @Author: jeecg-boot
@ -16,4 +19,10 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
@Service @Service
public class ZyToolTypesServiceImpl extends ServiceImpl<ZyToolTypesMapper, ZyToolTypes> implements IZyToolTypesService { public class ZyToolTypesServiceImpl extends ServiceImpl<ZyToolTypesMapper, ZyToolTypes> implements IZyToolTypesService {
@Autowired
ZyToolTypesMapper zyToolTypesMapper;
@Override
public List<ZyToolTypes> selectByid(String id) {
return zyToolTypesMapper.selectByid(id);
}
} }

@ -14,6 +14,13 @@
<groupId>org.jeecgframework.boot</groupId> <groupId>org.jeecgframework.boot</groupId>
<artifactId>jeecg-boot-base-core</artifactId> <artifactId>jeecg-boot-base-core</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.jeecgframework.boot</groupId>
<artifactId>jeecg-boot-module-erp</artifactId>
<version>2.4.5</version>
<scope>compile</scope>
</dependency>
</dependencies> </dependencies>
</project> </project>

@ -2,19 +2,13 @@ package org.jeecg.modules.demo.base.controller;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import org.jeecg.common.api.vo.Result; import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.query.QueryGenerator; import org.jeecg.modules.demo.accessories.entity.ZyAccessories;
import org.jeecg.common.util.oConvertUtils;
import org.jeecg.modules.demo.base.entity.ZyAllProcess; import org.jeecg.modules.demo.base.entity.ZyAllProcess;
import org.jeecg.modules.demo.base.entity.ZyClothAction;
import org.jeecg.modules.demo.base.entity.ZyProcess; import org.jeecg.modules.demo.base.entity.ZyProcess;
import org.jeecg.modules.demo.base.entity.vo.ZyClothActionVo;
import org.jeecg.modules.demo.base.service.IZyProcessService; import org.jeecg.modules.demo.base.service.IZyProcessService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
@ -22,27 +16,18 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.demo.pro.entity.ZyProcessAccessories; import org.jeecg.modules.demo.device.entity.ZyDevicetypel;
import org.jeecg.modules.demo.pro.entity.ZyProcessAction; import org.jeecg.modules.demo.device.service.IZyDevicetypeService1;
import org.jeecg.modules.demo.pro.entity.ZyProcessFabric; import org.jeecg.modules.demo.fabric.entity.ZyFabric;
import org.jeecg.modules.demo.pro.mapper.ZyProcessAccessoriesMapper;
import org.jeecg.modules.demo.pro.mapper.ZyProcessActionMapper;
import org.jeecg.modules.demo.pro.mapper.ZyProcessFabricMapper;
import org.jeecg.modules.demo.pro.service.IZyProcessAccessoriesService; import org.jeecg.modules.demo.pro.service.IZyProcessAccessoriesService;
import org.jeecg.modules.demo.pro.service.IZyProcessActionService; import org.jeecg.modules.demo.pro.service.IZyProcessActionService;
import org.jeecg.modules.demo.pro.service.IZyProcessFabricService; import org.jeecg.modules.demo.pro.service.IZyProcessFabricService;
import org.jeecgframework.poi.excel.ExcelImportUtil; import org.jeecg.modules.demo.tools.entity.ZyToolTypes;
import org.jeecgframework.poi.excel.def.NormalExcelConstants; import org.jeecg.modules.demo.tools.service.IZyToolTypesService;
import org.jeecgframework.poi.excel.entity.ExportParams;
import org.jeecgframework.poi.excel.entity.ImportParams;
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
import org.jeecg.common.system.base.controller.JeecgController; import org.jeecg.common.system.base.controller.JeecgController;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.common.aspect.annotation.AutoLog;
@ -66,6 +51,10 @@ public class ZyProcessController extends JeecgController<ZyProcess, IZyProcessSe
IZyProcessActionService zyProcessActionService; IZyProcessActionService zyProcessActionService;
@Autowired @Autowired
IZyProcessFabricService zyProcessFabricService; IZyProcessFabricService zyProcessFabricService;
@Autowired
private IZyDevicetypeService1 zyDevicetypeService;
@Autowired
private IZyToolTypesService zyToolTypesService;
/** /**
* 分页列表查询 * 分页列表查询
* *
@ -156,14 +145,19 @@ public class ZyProcessController extends JeecgController<ZyProcess, IZyProcessSe
@GetMapping(value = "/queryById") @GetMapping(value = "/queryById")
public Result<?> queryById(@RequestParam(name="id",required=true) String id) { public Result<?> queryById(@RequestParam(name="id",required=true) String id) {
ZyProcess zyProcess=zyProcessService.selectZyprocess(id); ZyProcess zyProcess=zyProcessService.selectZyprocess(id);
List<ZyProcessAccessories> pageList=zyProcessAccessoriesService.selectByid(id); List<ZyAccessories> pageList=zyProcessAccessoriesService.selectByid(id);
List<ZyProcessAction> pageList1=zyProcessActionService.selectByid(id); List<ZyClothAction> pageList1=zyProcessActionService.selectByid(id);
List<ZyProcessFabric> pageList2=zyProcessFabricService.selectByid(id); List<ZyFabric> pageList2=zyProcessFabricService.selectByid(id);
List<ZyDevicetypel> pageList3=zyDevicetypeService.selectByid(id);
List<ZyToolTypes> pageList4=zyToolTypesService.selectByid(id);
ZyAllProcess zyAllProcess=new ZyAllProcess(); ZyAllProcess zyAllProcess=new ZyAllProcess();
zyAllProcess.setZyProcess(zyProcess); zyAllProcess.setZyProcess(zyProcess);
zyAllProcess.setZyProcessAction(pageList1); zyAllProcess.setZyClothActions(pageList1);
zyAllProcess.setZyProcessAccessories(pageList); zyAllProcess.setZyAccessories(pageList);
zyAllProcess.setZyProcessFabric(pageList2); zyAllProcess.setZyFabrics(pageList2);
zyAllProcess.setZyDevicetypes(pageList3);
zyAllProcess.setZyToolTypes(pageList4);
if(zyAllProcess==null) { if(zyAllProcess==null) {
return Result.error("未找到对应数据"); return Result.error("未找到对应数据");
} }

@ -1,16 +1,19 @@
package org.jeecg.modules.demo.base.entity; package org.jeecg.modules.demo.base.entity;
import lombok.Data; import lombok.Data;
import org.jeecg.modules.demo.pro.entity.ZyProcessAccessories; import org.jeecg.modules.demo.accessories.entity.ZyAccessories;
import org.jeecg.modules.demo.pro.entity.ZyProcessAction; import org.jeecg.modules.demo.device.entity.ZyDevicetypel;
import org.jeecg.modules.demo.pro.entity.ZyProcessFabric; import org.jeecg.modules.demo.fabric.entity.ZyFabric;
import org.jeecg.modules.demo.tools.entity.ZyToolTypes;
import java.util.List; import java.util.List;
@Data @Data
public class ZyAllProcess { public class ZyAllProcess {
private ZyProcess zyProcess; private ZyProcess zyProcess;
private List<ZyProcessAccessories> zyProcessAccessories; private List<ZyClothAction> zyClothActions;//基础动作
private List<ZyProcessFabric> zyProcessFabric; private List<ZyAccessories> zyAccessories;//辅料管理
private List<ZyProcessAction> zyProcessAction; private List<ZyFabric> zyFabrics;//面料管理
private List<ZyDevicetypel> zyDevicetypes;//设备管理
private List<ZyToolTypes> zyToolTypes; //工具管理
} }

@ -0,0 +1,101 @@
package org.jeecg.modules.demo.device.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 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: 2021-11-11
* @Version: V1.0
*/
@Data
@TableName("zy_devicetype")
@ApiModel(value="zy_devicetype对象", description="设备类型")
public class ZyDevicetypel 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;
/**所属部门*/
@ApiModelProperty(value = "所属部门")
private String sysOrgCode;
/**父级节点*/
@Excel(name = "父级节点", width = 15)
@ApiModelProperty(value = "父级节点")
private String pid;
/**是否有子节点*/
@Excel(name = "是否有子节点", width = 15, dicCode = "yn")
@Dict(dicCode = "yn")
@ApiModelProperty(value = "是否有子节点")
private String hasChild;
/**类型编号*/
@Excel(name = "类型编号", width = 15)
@ApiModelProperty(value = "类型编号")
private String code;
/**类型名称*/
@Excel(name = "类型名称", width = 15)
@ApiModelProperty(value = "类型名称")
private String name;
/**类型图片*/
@Excel(name = "类型图片", width = 15)
@ApiModelProperty(value = "类型图片")
private String img;
/**类型品牌*/
@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 manufacturer;
/**供货商*/
@Excel(name = "供货商", width = 15)
@ApiModelProperty(value = "供货商")
private String supplier;
/**联系人*/
@Excel(name = "联系人", width = 15)
@ApiModelProperty(value = "联系人")
private String contact;
/**产地*/
@Excel(name = "产地", width = 15)
@ApiModelProperty(value = "产地")
private String place;
/**二维码*/
@Excel(name = "二维码", width = 15)
@ApiModelProperty(value = "二维码")
private String erweima;
}

@ -0,0 +1,21 @@
package org.jeecg.modules.demo.device.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.demo.device.entity.ZyDevicetypel;
import java.util.List;
/**
* @Description: 设备类型
* @Author: jeecg-boot
* @Date: 2021-11-11
* @Version: V1.0
*/
@Mapper
public interface ZyDevicetypeMapper1 extends BaseMapper<ZyDevicetypel> {
@Select("select * from zy_devicetype where id in (select machine_id from zy_process_machine where process_id=#{id})")
List<ZyDevicetypel> selectByid(String id);
}

@ -0,0 +1,20 @@
package org.jeecg.modules.demo.device.service;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.demo.device.entity.ZyDevicetypel;
import java.util.List;
/**
* @Description: 设备类型
* @Author: jeecg-boot
* @Date: 2021-11-11
* @Version: V1.0
*/
public interface IZyDevicetypeService1 extends IService<ZyDevicetypel> {
List<ZyDevicetypel> selectByid(String id);
}

@ -0,0 +1,30 @@
package org.jeecg.modules.demo.device.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.device.entity.ZyDevicetypel;
import org.jeecg.modules.demo.device.mapper.ZyDevicetypeMapper1;
import org.jeecg.modules.demo.device.service.IZyDevicetypeService1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* @Description: 设备类型
* @Author: jeecg-boot
* @Date: 2021-11-11
* @Version: V1.0
*/
@Service
public class ZyDevicetypeServiceImpl1 extends ServiceImpl<ZyDevicetypeMapper1, ZyDevicetypel> implements IZyDevicetypeService1 {
@Autowired
private ZyDevicetypeMapper1 zyDevicetypeMapper;
@Override
public List<ZyDevicetypel> selectByid(String id) {
return zyDevicetypeMapper.selectByid(id);
}
}

@ -65,6 +65,5 @@ public class ZyProcessAccessories implements Serializable {
@ApiModelProperty(value = "面料表id") @ApiModelProperty(value = "面料表id")
private String accessoriesId; private String accessoriesId;
private String processname;
private String accessoriesname;
} }

@ -54,6 +54,5 @@ public class ZyProcessAction implements Serializable {
@ApiModelProperty(value = "创建时间") @ApiModelProperty(value = "创建时间")
private Date createTime; private Date createTime;
private String processname;
private String actionname;
} }

@ -49,6 +49,5 @@ public class ZyProcessFabric implements Serializable {
@DateTimeFormat(pattern="yyyy-MM-dd") @DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "创建时间") @ApiModelProperty(value = "创建时间")
private Date createTime; private Date createTime;
private String processname;
private String fabricname;
} }

@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.demo.accessories.entity.ZyAccessories;
import org.jeecg.modules.demo.pro.entity.ZyProcessAccessories; import org.jeecg.modules.demo.pro.entity.ZyProcessAccessories;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
@ -19,8 +20,8 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
@Mapper @Mapper
public interface ZyProcessAccessoriesMapper extends BaseMapper<ZyProcessAccessories> { public interface ZyProcessAccessoriesMapper extends BaseMapper<ZyProcessAccessories> {
@Select("select a.*,b.process_name as processname,c.contents as accessoriesname from zy_accessories as c,zy_process as b,zy_process_accessories as a where a.process_id=b.id and a.accessories_id=c.id and a.process_id=#{id}") @Select("select * from zy_accessories where id in (select accessories_id from zy_process_accessories where process_id=#{id})")
List<ZyProcessAccessories> selectByid(String id); List<ZyAccessories> selectByid(String id);
@Select("<script>select * from zy_process_accessories <where><if test=\" p != null\">process_id in (select id from zy_process where process_name like #{p})</if><if test=\" m != null\"> and accessories_id in (select id from zy_accessories where contents like #{m})</if></where></script>") @Select("<script>select * from zy_process_accessories <where><if test=\" p != null\">process_id in (select id from zy_process where process_name like #{p})</if><if test=\" m != null\"> and accessories_id in (select id from zy_accessories where contents like #{m})</if></where></script>")
IPage<ZyProcessAccessories> page(Page<ZyProcessAccessories> page, @Param("p") String s, @Param("m") String t); IPage<ZyProcessAccessories> page(Page<ZyProcessAccessories> page, @Param("p") String s, @Param("m") String t);
@Select("<script>select * from zy_process_accessories <where>process_id =#{p}<if test=\" m != null\"> and accessories_id in (select id from zy_accessories where contents like #{m})</if></where></script>") @Select("<script>select * from zy_process_accessories <where>process_id =#{p}<if test=\" m != null\"> and accessories_id in (select id from zy_accessories where contents like #{m})</if></where></script>")

@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.demo.base.entity.ZyClothAction;
import org.jeecg.modules.demo.pro.entity.ZyProcessAction; import org.jeecg.modules.demo.pro.entity.ZyProcessAction;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
@ -22,6 +23,6 @@ public interface ZyProcessActionMapper extends BaseMapper<ZyProcessAction> {
IPage<ZyProcessAction> page(Page<ZyProcessAction> page, @Param("p") String s, @Param("m") String t); IPage<ZyProcessAction> page(Page<ZyProcessAction> page, @Param("p") String s, @Param("m") String t);
@Select("<script>select * from zy_process_action <where>process_id =#{p}<if test=\" m != null\"> and action_id in (select id from zy_cloth_action where descr like #{m})</if></where></script>") @Select("<script>select * from zy_process_action <where>process_id =#{p}<if test=\" m != null\"> and action_id in (select id from zy_cloth_action where descr like #{m})</if></where></script>")
IPage<ZyProcessAction> page1(Page<ZyProcessAction> page, @Param("p") String s, @Param("m") String t); IPage<ZyProcessAction> page1(Page<ZyProcessAction> page, @Param("p") String s, @Param("m") String t);
@Select("select a.*,b.process_name as processname,c.descr as actionname from zy_cloth_action as c,zy_process as b,zy_process_action as a where a.process_id=b.id and a.action_id=c.id and a.process_id=#{id}") @Select("select * from zy_cloth_action where id in (select action_id from zy_process_action where process_id=#{id}) ")
List<ZyProcessAction> selectByid(String id); List<ZyClothAction> selectByid(String id);
} }

@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.demo.fabric.entity.ZyFabric;
import org.jeecg.modules.demo.pro.entity.ZyProcessAction; import org.jeecg.modules.demo.pro.entity.ZyProcessAction;
import org.jeecg.modules.demo.pro.entity.ZyProcessFabric; import org.jeecg.modules.demo.pro.entity.ZyProcessFabric;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
@ -24,6 +25,6 @@ public interface ZyProcessFabricMapper extends BaseMapper<ZyProcessFabric> {
IPage<ZyProcessFabric> page(Page<ZyProcessFabric> page, @Param("p") String s, @Param("m") String t); IPage<ZyProcessFabric> page(Page<ZyProcessFabric> page, @Param("p") String s, @Param("m") String t);
@Select("<script>select * from zy_process_fabric <where>process_id =#{p}<if test=\" m != null\"> and fabric_id in (select id from zy_fabric where name like #{m})</if></where></script>") @Select("<script>select * from zy_process_fabric <where>process_id =#{p}<if test=\" m != null\"> and fabric_id in (select id from zy_fabric where name like #{m})</if></where></script>")
IPage<ZyProcessFabric> page1(Page<ZyProcessFabric> page, @Param("p") String s, @Param("m") String t); IPage<ZyProcessFabric> page1(Page<ZyProcessFabric> page, @Param("p") String s, @Param("m") String t);
@Select("select a.*,b.process_name as processname,c.name as fabricname from zy_fabric as c,zy_process as b,zy_process_fabric as a where a.process_id=b.id and a.fabric_id=c.id and a.process_id=#{id}") @Select("select * from zy_fabric where id in (select fabric_id from zy_process_fabric where process_id=#{id})")
List<ZyProcessFabric> selectByid(String id); List<ZyFabric> selectByid(String id);
} }

@ -2,6 +2,7 @@ package org.jeecg.modules.demo.pro.service;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.demo.accessories.entity.ZyAccessories;
import org.jeecg.modules.demo.pro.entity.ZyProcessAccessories; import org.jeecg.modules.demo.pro.entity.ZyProcessAccessories;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
@ -19,5 +20,5 @@ public interface IZyProcessAccessoriesService extends IService<ZyProcessAccessor
IPage<ZyProcessAccessories> page1(Page<ZyProcessAccessories> page, String s, String t); IPage<ZyProcessAccessories> page1(Page<ZyProcessAccessories> page, String s, String t);
List<ZyProcessAccessories> selectByid(String id); List<ZyAccessories> selectByid(String id);
} }

@ -2,6 +2,7 @@ package org.jeecg.modules.demo.pro.service;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.demo.base.entity.ZyClothAction;
import org.jeecg.modules.demo.pro.entity.ZyProcessAction; import org.jeecg.modules.demo.pro.entity.ZyProcessAction;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
@ -20,5 +21,5 @@ public interface IZyProcessActionService extends IService<ZyProcessAction> {
IPage<ZyProcessAction> page1(Page<ZyProcessAction> page, String s, String t); IPage<ZyProcessAction> page1(Page<ZyProcessAction> page, String s, String t);
List<ZyProcessAction> selectByid(String id); List<ZyClothAction> selectByid(String id);
} }

@ -2,6 +2,7 @@ package org.jeecg.modules.demo.pro.service;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.demo.fabric.entity.ZyFabric;
import org.jeecg.modules.demo.pro.entity.ZyProcessFabric; import org.jeecg.modules.demo.pro.entity.ZyProcessFabric;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
@ -19,5 +20,5 @@ public interface IZyProcessFabricService extends IService<ZyProcessFabric> {
IPage<ZyProcessFabric> page1(Page<ZyProcessFabric> page, String s, String t); IPage<ZyProcessFabric> page1(Page<ZyProcessFabric> page, String s, String t);
List<ZyProcessFabric> selectByid(String id); List<ZyFabric> selectByid(String id);
} }

@ -2,6 +2,7 @@ package org.jeecg.modules.demo.pro.service.impl;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.demo.accessories.entity.ZyAccessories;
import org.jeecg.modules.demo.pro.entity.ZyProcessAccessories; import org.jeecg.modules.demo.pro.entity.ZyProcessAccessories;
import org.jeecg.modules.demo.pro.mapper.ZyProcessAccessoriesMapper; import org.jeecg.modules.demo.pro.mapper.ZyProcessAccessoriesMapper;
import org.jeecg.modules.demo.pro.service.IZyProcessAccessoriesService; import org.jeecg.modules.demo.pro.service.IZyProcessAccessoriesService;
@ -34,7 +35,7 @@ public class ZyProcessAccessoriesServiceImpl extends ServiceImpl<ZyProcessAccess
} }
@Override @Override
public List<ZyProcessAccessories> selectByid(String id) { public List<ZyAccessories> selectByid(String id) {
return zyProcessAccessoriesMapper.selectByid(id); return zyProcessAccessoriesMapper.selectByid(id);
} }
} }

@ -2,6 +2,7 @@ package org.jeecg.modules.demo.pro.service.impl;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.demo.base.entity.ZyClothAction;
import org.jeecg.modules.demo.pro.entity.ZyProcessAction; import org.jeecg.modules.demo.pro.entity.ZyProcessAction;
import org.jeecg.modules.demo.pro.mapper.ZyProcessActionMapper; import org.jeecg.modules.demo.pro.mapper.ZyProcessActionMapper;
import org.jeecg.modules.demo.pro.service.IZyProcessActionService; import org.jeecg.modules.demo.pro.service.IZyProcessActionService;
@ -35,7 +36,7 @@ public class ZyProcessActionServiceImpl extends ServiceImpl<ZyProcessActionMappe
} }
@Override @Override
public List<ZyProcessAction> selectByid(String id) { public List<ZyClothAction> selectByid(String id) {
return zyProcessActionMapper.selectByid(id); return zyProcessActionMapper.selectByid(id);
} }
} }

@ -2,6 +2,7 @@ package org.jeecg.modules.demo.pro.service.impl;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.demo.fabric.entity.ZyFabric;
import org.jeecg.modules.demo.pro.entity.ZyProcessFabric; import org.jeecg.modules.demo.pro.entity.ZyProcessFabric;
import org.jeecg.modules.demo.pro.mapper.ZyProcessFabricMapper; import org.jeecg.modules.demo.pro.mapper.ZyProcessFabricMapper;
import org.jeecg.modules.demo.pro.service.IZyProcessFabricService; import org.jeecg.modules.demo.pro.service.IZyProcessFabricService;
@ -34,7 +35,7 @@ public class ZyProcessFabricServiceImpl extends ServiceImpl<ZyProcessFabricMappe
} }
@Override @Override
public List<ZyProcessFabric> selectByid(String id) { public List<ZyFabric> selectByid(String id) {
return zyProcessFabricMapper.selectByid(id); return zyProcessFabricMapper.selectByid(id);
} }
} }

@ -3,6 +3,7 @@ package org.jeecg.modules.devicetype.mapper;
import java.util.List; import java.util.List;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.devicetype.entity.ZyDevicetype; import org.jeecg.modules.devicetype.entity.ZyDevicetype;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
@ -14,4 +15,6 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*/ */
public interface ZyDevicetypeMapper extends BaseMapper<ZyDevicetype> { public interface ZyDevicetypeMapper extends BaseMapper<ZyDevicetype> {
@Select("select * from zy_devicetype where id in (select machine_id from zy_process_machine where process_id=#{id})")
List<ZyDevicetype> selectByid(String id);
} }

@ -28,4 +28,5 @@ public interface IZyDevicetypeService extends IService<ZyDevicetype> {
public void delBatchMain (Collection<? extends Serializable> idList); public void delBatchMain (Collection<? extends Serializable> idList);
List<ZyDevicetype> selectByid(String id);
} }

@ -49,4 +49,9 @@ public class ZyDevicetypeServiceImpl extends ServiceImpl<ZyDevicetypeMapper, ZyD
} }
} }
@Override
public List<ZyDevicetype> selectByid(String id) {
return zyDevicetypeMapper.selectByid(id);
}
} }

Loading…
Cancel
Save