Browse Source

委托查询

110 2 years ago
parent
commit
3afd423ce3

+ 49 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/weituochaxun/controller/ItdmWeituochaxunController.java

@@ -0,0 +1,49 @@
+package org.jeecg.modules.weituochaxun.controller;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+
+import io.swagger.annotations.ApiOperation;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.modules.weituo.entity.ItdmWeituoInfo;
+import org.jeecg.modules.weituo.service.IItdmWeituoInfoService;
+import org.jeecg.modules.weituochaxun.service.IItdmWeituochaxunService;
+import org.jeecg.modules.weituochaxun.vo.ItdmWeituoAllVO;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import io.swagger.annotations.Api;
+
+import javax.servlet.http.HttpServletRequest;
+import java.util.List;
+
+/**
+ * @Description: 委托信息
+ * @Author: jeecg-boot
+ * @Date:   2023-05-17
+ * @Version: V1.0
+ */
+@Api(tags="委托查询")
+@RestController
+@RequestMapping("/weituo/ItdmWeituochaxun")
+@Slf4j
+public class ItdmWeituochaxunController {
+	@Autowired
+	private IItdmWeituochaxunService iItdmWeituochaxunService;
+
+
+	// 三表关联查询
+	@ApiOperation(value="委托查询-三表关联查询", notes="委托查询-三表关联查询")
+	@GetMapping("/list")
+	public Result<IPage<ItdmWeituoAllVO>> get(@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+																   @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+																   HttpServletRequest req){
+
+		Page<ItdmWeituoAllVO> page = new Page<ItdmWeituoAllVO>(pageNo, pageSize);
+		List<ItdmWeituoAllVO> itdmWeituoAllVOS =  iItdmWeituochaxunService.getAll(page);
+		page.setRecords(itdmWeituoAllVOS);
+		return Result.OK(page);
+	}
+
+}

+ 18 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/weituochaxun/mapper/ItdmWeituochaxunMapper.java

@@ -0,0 +1,18 @@
+package org.jeecg.modules.weituochaxun.mapper;
+
+import java.util.List;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.jeecg.modules.weituo.entity.ItdmWeituoInfo;
+import org.jeecg.modules.weituochaxun.vo.ItdmWeituoAllVO;
+
+/**
+ * @Description: 委托信息
+ * @Author: jeecg-boot
+ * @Date:   2023-05-17
+ * @Version: V1.0
+ */
+public interface ItdmWeituochaxunMapper extends BaseMapper<ItdmWeituoInfo> {
+    public List<ItdmWeituoAllVO> listAlls(IPage page);
+}

+ 15 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/weituochaxun/mapper/xml/ItdmWeituochaxunMapper.xml

@@ -0,0 +1,15 @@
+<?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="org.jeecg.modules.weituochaxun.mapper.ItdmWeituochaxunMapper">
+
+
+    <select id="listAlls" resultType="org.jeecg.modules.weituochaxun.vo.ItdmWeituoAllVO">
+        SELECT * FROM itdm_weituo_yangpin_extend iwye
+                          LEFT JOIN itdm_weituo_yangpin iwy on iwye.yangpin_id = iwy.id
+                          LEFT JOIN itdm_weituo_info iwi on iwye.weituo_id = iwi.id
+    </select>
+
+</mapper>

+ 22 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/weituochaxun/service/IItdmWeituochaxunService.java

@@ -0,0 +1,22 @@
+package org.jeecg.modules.weituochaxun.service;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.service.IService;
+import org.jeecg.modules.weituo.entity.ItdmWeituoInfo;
+import org.jeecg.modules.weituochaxun.vo.ItdmWeituoAllVO;
+
+
+import java.util.List;
+
+/**
+ * @Description: 委托信息
+ * @Author: jeecg-boot
+ * @Date:   2023-05-17
+ * @Version: V1.0
+ */
+public interface IItdmWeituochaxunService extends IService<ItdmWeituoInfo> {
+
+    List<ItdmWeituoAllVO> getAll(IPage page);
+}
+
+

+ 30 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/weituochaxun/service/impl/IItdmWeituochaxunServiceImpl.java

@@ -0,0 +1,30 @@
+package org.jeecg.modules.weituochaxun.service.impl;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import org.jeecg.modules.weituo.entity.ItdmWeituoInfo;
+import org.jeecg.modules.weituo.mapper.ItdmWeituoInfoMapper;
+import org.jeecg.modules.weituochaxun.mapper.ItdmWeituochaxunMapper;
+import org.jeecg.modules.weituochaxun.service.IItdmWeituochaxunService;
+import org.jeecg.modules.weituochaxun.vo.ItdmWeituoAllVO;
+import org.springframework.stereotype.Service;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+import java.util.List;
+
+/**
+ * @Description: 委托信息
+ * @Author: jeecg-boot
+ * @Date: 2023-05-17
+ * @Version: V1.0
+ */
+@Service
+public class IItdmWeituochaxunServiceImpl extends ServiceImpl<ItdmWeituochaxunMapper, ItdmWeituoInfo> implements IItdmWeituochaxunService {
+
+
+    @Override
+    public List<ItdmWeituoAllVO> getAll(IPage page) {
+        return baseMapper.listAlls(page);
+    }
+
+}

+ 84 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/weituochaxun/vo/ItdmWeituoAllVO.java

@@ -0,0 +1,84 @@
+package org.jeecg.modules.weituochaxun.vo;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.Getter;
+import lombok.Setter;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import java.util.Date;
+import java.util.List;
+
+@Data
+public class ItdmWeituoAllVO  {
+
+    /**主键*/
+    private String id;
+    /**创建人*/
+    private String createBy;
+    /**创建日期*/
+    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    private Date createTime;
+    /**更新人*/
+    private String updateBy;
+    /**更新日期*/
+    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    private Date updateTime;
+    /**所属部门*/
+    private String sysOrgCode;
+    /**委托编号*/
+    private String weituoNo;
+    /**委托单位名称*/
+    private String weituoClient;
+    /**委托单位地址*/
+    private String weituoAddress;
+    /**委托联系人*/
+    private String weituoLxr;
+    /**委托电话*/
+    private String weituoPhone;
+    /**委托邮箱*/
+    private String weituoEmail;
+    /**报告用章*/
+    private String bgyz;
+    /**报告形式*/
+    private String bgxs;
+    /**特殊要求*/
+    private String teshuyaoqiu;
+    /**审核状态*/
+    private String shenheStatus;
+    /**审核错误原因*/
+    private String shenheMsg;
+    /**审核时间*/
+    private String shenheTime;
+    /**试验条件文件地址*/
+    private String tiaojianFile;
+
+    private String weituoId;
+    /**样品名称*/
+    private String sampleName;
+    /**样品规格/型号*/
+    private String sampleModelSpecification;
+    /**样品数量*/
+    private String sampleQuantities;
+    /**生产厂家*/
+    private String sampleManufacturer;
+    /**样品编号*/
+    private String sampleCode;
+
+    /**样品id*/
+    private String yangpinId;
+    /**检测项目*/
+    private String testItems;
+    /**检测依据*/
+    private String standardRequirement;
+    /**判定依据*/
+    private String judgementBasis;
+    /**备注*/
+    private String beizhu;
+}