wangchangsheng 3 år sedan
förälder
incheckning
ae876f916d

+ 49 - 0
src/main/java/com/gyee/viewticket/controller/viewticket/EquoperationrecordController.java

@@ -0,0 +1,49 @@
+package com.gyee.viewticket.controller.viewticket;
+
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.gyee.viewticket.comm.domain.AjaxResult;
+import com.gyee.viewticket.service.ticket.EquoperationrecordService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author admin
+ * @since 2021-07-05
+ */
+@RestController
+@RequestMapping("/equoperationrecord")
+public class EquoperationrecordController {
+
+
+
+    @Autowired
+    EquoperationrecordService equoperationrecordService;
+    /**
+     * 按场站获取所有风机
+     * @param wtid 风机编号
+     * @return
+     */
+    @CrossOrigin(origins = "*",maxAge = 3600)
+    @GetMapping(value = "list")
+    public AjaxResult getEquoperationrecordPageList(
+            @RequestParam(value = "pagenum") Integer pageNum,
+            @RequestParam(value = "pagesize") Integer pageSize,
+            @RequestParam(value = "starttime", required = false) String startTime,
+            @RequestParam(value = "endtime", required = false) String endTime,
+            @RequestParam(value = "wtid",required = false)String wtid) {
+        Page page = new Page(pageNum, pageSize);
+        IPage<Map> list = equoperationrecordService.getEquoperationrecordPageList(page,startTime,endTime,wtid);
+        return AjaxResult.successData(list);
+    }
+
+}
+

+ 21 - 0
src/main/java/com/gyee/viewticket/controller/viewticket/PoController.java

@@ -0,0 +1,21 @@
+package com.gyee.viewticket.controller.viewticket;
+
+
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author admin
+ * @since 2021-07-08
+ */
+@RestController
+@RequestMapping("/po")
+public class PoController {
+
+}
+

+ 60 - 0
src/main/java/com/gyee/viewticket/controller/viewticket/PolineController.java

@@ -0,0 +1,60 @@
+package com.gyee.viewticket.controller.viewticket;
+
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.gyee.viewticket.comm.domain.AjaxResult;
+import com.gyee.viewticket.service.ticket.PolineService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.Map;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author admin
+ * @since 2021-07-08
+ */
+@RestController
+@RequestMapping("/poline")
+public class PolineController {
+
+
+
+    @Autowired
+    PolineService polineService;
+
+
+    /**
+     *
+     * @param pageNum 页数
+     * @param pageSize 条数
+     * @param vendor 供应商
+     * @param warehouse 仓库
+     * @param ponum 采购单号
+     * @return
+     */
+    @CrossOrigin(origins = "*",maxAge = 3600)
+    @GetMapping(value = "list")
+    public AjaxResult getPolinePageList(
+            @RequestParam(value = "pagenum") Integer pageNum,
+            @RequestParam(value = "pagesize") Integer pageSize,
+            @RequestParam(value = "vendor", required = false) String vendor,
+            @RequestParam(value = "warehouse", required = false) String warehouse,
+            @RequestParam(value = "ponum", required = false) String ponum,
+            @RequestParam(value = "starttime", required = false) String starttime,
+            @RequestParam(value = "endtime", required = false) String endtime
+    ){
+        Page page = new Page(pageNum, pageSize);
+        IPage<Map> list = polineService.getPolinePageList(page,vendor,warehouse,ponum,starttime,endtime);
+        return AjaxResult.successData(list);
+    }
+
+
+
+
+}
+

+ 31 - 0
src/main/java/com/gyee/viewticket/mapper/ticket/EquoperationrecordMapper.java

@@ -0,0 +1,31 @@
+package com.gyee.viewticket.mapper.ticket;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.gyee.viewticket.model.ticket.Equoperationrecord;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author admin
+ * @since 2021-07-05
+ */
+@Repository
+@Mapper
+public interface EquoperationrecordMapper extends BaseMapper<Equoperationrecord> {
+
+    IPage<Map> selectEquoperationrecordPageList(Page page,
+                                                @Param("startTime")String startTime,
+                                                @Param("endTime")String endTime,
+                                                @Param("wtid")String wtid);
+
+}

+ 20 - 0
src/main/java/com/gyee/viewticket/mapper/ticket/PoMapper.java

@@ -0,0 +1,20 @@
+package com.gyee.viewticket.mapper.ticket;
+
+import com.gyee.viewticket.model.ticket.Po;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+import org.springframework.stereotype.Repository;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author admin
+ * @since 2021-07-08
+ */
+@Repository
+@Mapper
+public interface PoMapper extends BaseMapper<Po> {
+
+}

+ 27 - 0
src/main/java/com/gyee/viewticket/mapper/ticket/PolineMapper.java

@@ -0,0 +1,27 @@
+package com.gyee.viewticket.mapper.ticket;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.gyee.viewticket.model.ticket.Poline;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+import org.springframework.stereotype.Repository;
+
+import java.util.Map;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author admin
+ * @since 2021-07-08
+ */
+@Repository
+@Mapper
+public interface PolineMapper extends BaseMapper<Poline> {
+
+    IPage<Map> selectPolinePageList(Page page,String vendor,String warehouse,String ponum,String starttime,String endtime);
+
+
+}

+ 91 - 0
src/main/java/com/gyee/viewticket/model/ticket/Equoperationrecord.java

@@ -0,0 +1,91 @@
+package com.gyee.viewticket.model.ticket;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableField;
+import java.io.Serializable;
+import java.util.Date;
+
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author admin
+ * @since 2021-07-05
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@TableName("EQUOPERATIONRECORD")
+public class Equoperationrecord extends Model<Equoperationrecord> {
+
+    private static final long serialVersionUID=1L;
+
+      @TableId("ID")
+    private Double id;
+
+    @TableField("TYPE")
+    private String type;
+
+    @TableField("FROMLOC")
+    private String fromloc;
+
+    @TableField("TOLOC")
+    private String toloc;
+
+    @TableField("LEADER")
+    private String leader;
+
+    @TableField("OPERATIONLOG")
+    private String operationlog;
+
+    @TableField("STARTTIME")
+    private Date starttime;
+
+    @TableField("ENDTIME")
+    private Date endtime;
+
+    @TableField("WONUM")
+    private String wonum;
+
+    @TableField("RESERVE1")
+    private String reserve1;
+
+    @TableField("RESERVE2")
+    private String reserve2;
+
+    @TableField("RESERVE3")
+    private String reserve3;
+
+    @TableField("FROMLOCDES")
+    private String fromlocdes;
+
+    @TableField("TOLOCDES")
+    private String tolocdes;
+
+    @TableField("TYPECODE")
+    private String typecode;
+
+    @TableField("WTNUM")
+    private String wtnum;
+
+    @TableField("EQNUM")
+    private String eqnum;
+
+    @TableField("PROBLEM")
+    private String problem;
+
+    @TableField("SOLVEWAY")
+    private String solveway;
+
+
+    @Override
+    protected Serializable pkVal() {
+        return this.id;
+    }
+
+}

+ 141 - 0
src/main/java/com/gyee/viewticket/model/ticket/Po.java

@@ -0,0 +1,141 @@
+package com.gyee.viewticket.model.ticket;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import com.baomidou.mybatisplus.annotation.TableField;
+import java.io.Serializable;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author admin
+ * @since 2021-07-08
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@TableName("PO")
+public class Po extends Model<Po> {
+
+    private static final long serialVersionUID=1L;
+
+      @TableId("ID")
+    private Double id;
+
+    @TableField("PONUM")
+    private String ponum;
+
+    @TableField("DESCRIPTION")
+    private String description;
+
+    @TableField("ORDERDATE")
+    private LocalDateTime orderdate;
+
+    @TableField("REQUIREDDATE")
+    private LocalDateTime requireddate;
+
+    @TableField("STATUS")
+    private String status;
+
+    @TableField("STATUSDATE")
+    private LocalDateTime statusdate;
+
+    @TableField("VENDOR")
+    private String vendor;
+
+    @TableField("CONTACT")
+    private String contact;
+
+    @TableField("FREIGHTTERMS")
+    private String freightterms;
+
+    @TableField("PAYMENTTERMS")
+    private String paymentterms;
+
+    @TableField("SHIPVIA")
+    private String shipvia;
+
+    @TableField("SHIPTOLABOR")
+    private String shiptolabor;
+
+    @TableField("SHIPTOADDR")
+    private String shiptoaddr;
+
+    @TableField("BILLTOLABOR")
+    private String billtolabor;
+
+    @TableField("BILLTOADDR")
+    private String billtoaddr;
+
+    @TableField("TOTALCOST")
+    private Double totalcost;
+
+    @TableField("CHANGEBY")
+    private String changeby;
+
+    @TableField("CHANGEDATE")
+    private LocalDateTime changedate;
+
+    @TableField("VENDELIVERYDATE")
+    private LocalDateTime vendeliverydate;
+
+    @TableField("RECEIPTS")
+    private String receipts;
+
+    @TableField("EXCHANGERATE")
+    private Double exchangerate;
+
+    @TableField("EXCHANGEDATE")
+    private LocalDateTime exchangedate;
+
+    @TableField("TOTALTAX")
+    private Double totaltax;
+
+    @TableField("STARTDATE")
+    private LocalDateTime startdate;
+
+    @TableField("ENDDATE")
+    private LocalDateTime enddate;
+
+    @TableField("EBSSENT")
+    private String ebssent;
+
+    @TableField("EBSSTATUSDATE")
+    private LocalDateTime ebsstatusdate;
+
+    @TableField("POTYPE")
+    private String potype;
+
+    @TableField("SUPERVISOR")
+    private String supervisor;
+
+    @TableField("ISPROTOCOL")
+    private String isprotocol;
+
+    @TableField("ISGOV")
+    private String isgov;
+
+    @TableField("POREASON")
+    private String poreason;
+
+    @TableField("NOTIFYNUM")
+    private String notifynum;
+
+    @TableField("SITENUM")
+    private String sitenum;
+
+    @TableField("CORPNUM")
+    private String corpnum;
+
+
+    @Override
+    protected Serializable pkVal() {
+        return this.id;
+    }
+
+}

+ 153 - 0
src/main/java/com/gyee/viewticket/model/ticket/Poline.java

@@ -0,0 +1,153 @@
+package com.gyee.viewticket.model.ticket;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import com.baomidou.mybatisplus.annotation.TableField;
+import java.io.Serializable;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author admin
+ * @since 2021-07-08
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@TableName("POLINE")
+public class Poline extends Model<Poline> {
+
+    private static final long serialVersionUID=1L;
+
+      @TableId("ID")
+    private Double id;
+
+    @TableField("PONUM")
+    private String ponum;
+
+    @TableField("POLINENUM")
+    private Double polinenum;
+
+    @TableField("ITEMNUM")
+    private String itemnum;
+
+    @TableField("DESCRIPTION")
+    private String description;
+
+    @TableField("WAREHOUSE")
+    private String warehouse;
+
+    @TableField("ORDERQTY")
+    private Double orderqty;
+
+    @TableField("ORDERUNIT")
+    private String orderunit;
+
+    @TableField("CONVERSION")
+    private Double conversion;
+
+    @TableField("UNITCOST")
+    private Double unitcost;
+
+    @TableField("TAXUNITCOST")
+    private Double taxunitcost;
+
+    @TableField("LINECOST")
+    private Double linecost;
+
+    @TableField("TAXLINECOST")
+    private Double taxlinecost;
+
+    @TableField("RECEIVEDQTY")
+    private Double receivedqty;
+
+    @TableField("RECEIVEDUNITCOST")
+    private Double receivedunitcost;
+
+    @TableField("RECEIVEDTOTALCOST")
+    private Double receivedtotalcost;
+
+    @TableField("TAXCODE")
+    private String taxcode;
+
+    @TableField("TAXRATE")
+    private Double taxrate;
+
+    @TableField("TAX")
+    private Double tax;
+
+    @TableField("REJECTEDQTY")
+    private Double rejectedqty;
+
+    @TableField("VENDELIVERYDATE")
+    private LocalDateTime vendeliverydate;
+
+    @TableField("ENTERDATE")
+    private LocalDateTime enterdate;
+
+    @TableField("ENTERBY")
+    private String enterby;
+
+    @TableField("REQUESTEDBY")
+    private String requestedby;
+
+    @TableField("REQDELIVERYDATE")
+    private LocalDateTime reqdeliverydate;
+
+    @TableField("MANUFACTURER")
+    private String manufacturer;
+
+    @TableField("MODELNUM")
+    private String modelnum;
+
+    @TableField("SERVICE")
+    private String service;
+
+    @TableField("STOCKTYPE")
+    private String stocktype;
+
+    @TableField("REMARK")
+    private String remark;
+
+    @TableField("LOCATION")
+    private String location;
+
+    @TableField("RECEIPTSCOMPLETE")
+    private String receiptscomplete;
+
+    @TableField("INSPECTION")
+    private String inspection;
+
+    @TableField("LOADEDCOST")
+    private Double loadedcost;
+
+    @TableField("PRORATED")
+    private String prorated;
+
+    @TableField("PRORATECOST")
+    private Double proratecost;
+
+    @TableField("WONUM")
+    private String wonum;
+
+    @TableField("TASKNUM")
+    private String tasknum;
+
+    @TableField("BUDNUM")
+    private String budnum;
+
+    @TableField("BUDITEM")
+    private String buditem;
+
+
+    @Override
+    protected Serializable pkVal() {
+        return this.id;
+    }
+
+}

+ 35 - 0
src/main/java/com/gyee/viewticket/service/impl/ticket/EquoperationrecordServiceImpl.java

@@ -0,0 +1,35 @@
+package com.gyee.viewticket.service.impl.ticket;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.gyee.viewticket.model.ticket.Equoperationrecord;
+import com.gyee.viewticket.mapper.ticket.EquoperationrecordMapper;
+import com.gyee.viewticket.service.ticket.EquoperationrecordService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author admin
+ * @since 2021-07-05
+ */
+@Service
+public class EquoperationrecordServiceImpl extends ServiceImpl<EquoperationrecordMapper, Equoperationrecord> implements EquoperationrecordService {
+
+
+    @Autowired
+    private EquoperationrecordMapper equoperationrecordMapper;
+
+    @Override
+    public IPage<Map> getEquoperationrecordPageList(Page page, String startTime, String endTime, String wtid) {
+        IPage<Map> list =  equoperationrecordMapper.selectEquoperationrecordPageList(page,startTime,endTime,wtid);
+        return list;
+    }
+}

+ 20 - 0
src/main/java/com/gyee/viewticket/service/impl/ticket/PoServiceImpl.java

@@ -0,0 +1,20 @@
+package com.gyee.viewticket.service.impl.ticket;
+
+import com.gyee.viewticket.model.ticket.Po;
+import com.gyee.viewticket.mapper.ticket.PoMapper;
+import com.gyee.viewticket.service.ticket.PoService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author admin
+ * @since 2021-07-08
+ */
+@Service
+public class PoServiceImpl extends ServiceImpl<PoMapper, Po> implements PoService {
+
+}

+ 34 - 0
src/main/java/com/gyee/viewticket/service/impl/ticket/PolineServiceImpl.java

@@ -0,0 +1,34 @@
+package com.gyee.viewticket.service.impl.ticket;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.gyee.viewticket.model.ticket.Poline;
+import com.gyee.viewticket.mapper.ticket.PolineMapper;
+import com.gyee.viewticket.service.ticket.PolineService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.Map;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author admin
+ * @since 2021-07-08
+ */
+@Service
+public class PolineServiceImpl extends ServiceImpl<PolineMapper, Poline> implements PolineService {
+
+
+    @Autowired
+    private PolineMapper polineMapper;
+
+    @Override
+    public IPage<Map> getPolinePageList(Page page,String vendor,String warehouse,String ponum,String starttime,String endtime) {
+        IPage<Map> list  = polineMapper.selectPolinePageList(page,vendor,warehouse,ponum,starttime,endtime);
+        return list;
+    }
+}

+ 25 - 0
src/main/java/com/gyee/viewticket/service/ticket/EquoperationrecordService.java

@@ -0,0 +1,25 @@
+package com.gyee.viewticket.service.ticket;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.gyee.viewticket.model.ticket.Equoperationrecord;
+import com.baomidou.mybatisplus.extension.service.IService;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author admin
+ * @since 2021-07-05
+ */
+@Service
+public interface EquoperationrecordService extends IService<Equoperationrecord> {
+
+    IPage<Map> getEquoperationrecordPageList(Page page, String startTime, String endTime, String wtid);
+
+}

+ 18 - 0
src/main/java/com/gyee/viewticket/service/ticket/PoService.java

@@ -0,0 +1,18 @@
+package com.gyee.viewticket.service.ticket;
+
+import com.gyee.viewticket.model.ticket.Po;
+import com.baomidou.mybatisplus.extension.service.IService;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author admin
+ * @since 2021-07-08
+ */
+@Service
+public interface PoService extends IService<Po> {
+
+}

+ 25 - 0
src/main/java/com/gyee/viewticket/service/ticket/PolineService.java

@@ -0,0 +1,25 @@
+package com.gyee.viewticket.service.ticket;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.gyee.viewticket.model.ticket.Poline;
+import com.baomidou.mybatisplus.extension.service.IService;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author admin
+ * @since 2021-07-08
+ */
+@Service
+public interface PolineService extends IService<Poline> {
+
+    IPage<Map> getPolinePageList(Page page,String vendor,String warehouse,String ponum,String starttime,String endtime);
+
+}

+ 61 - 0
src/main/resources/mapper/ticket/EquoperationrecordMapper.xml

@@ -0,0 +1,61 @@
+<?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="com.gyee.viewticket.mapper.ticket.EquoperationrecordMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.gyee.viewticket.model.ticket.Equoperationrecord">
+        <id column="ID" property="id" />
+        <result column="TYPE" property="type" />
+        <result column="FROMLOC" property="fromloc" />
+        <result column="TOLOC" property="toloc" />
+        <result column="LEADER" property="leader" />
+        <result column="OPERATIONLOG" property="operationlog" />
+        <result column="STARTTIME" property="starttime" />
+        <result column="ENDTIME" property="endtime" />
+        <result column="WONUM" property="wonum" />
+        <result column="RESERVE1" property="reserve1" />
+        <result column="RESERVE2" property="reserve2" />
+        <result column="RESERVE3" property="reserve3" />
+        <result column="FROMLOCDES" property="fromlocdes" />
+        <result column="TOLOCDES" property="tolocdes" />
+        <result column="TYPECODE" property="typecode" />
+        <result column="WTNUM" property="wtnum" />
+        <result column="EQNUM" property="eqnum" />
+        <result column="PROBLEM" property="problem" />
+        <result column="SOLVEWAY" property="solveway" />
+    </resultMap>
+
+    <!-- 通用查询结果列 -->
+    <sql id="Base_Column_List">
+        ID, TYPE, FROMLOC, TOLOC, LEADER, OPERATIONLOG, STARTTIME, ENDTIME, WONUM, RESERVE1, RESERVE2, RESERVE3, FROMLOCDES, TOLOCDES, TYPECODE, WTNUM, EQNUM, PROBLEM, SOLVEWAY
+    </sql>
+
+    <select id="selectEquoperationrecordPageList" resultType="java.util.Map">
+
+         SELECT
+            e.type,
+            e.leader,
+            e.starttime,
+            e.endtime,
+            e.reserve2 menuLevel,
+            e.wtnum wtid,
+            e.eqnum,
+            e.problem,
+            e.tolocdes,
+            e.solveway
+        FROM
+        equoperationrecord e
+        LEFT JOIN WORKTICKET w ON e.wonum = w.wonum
+        <where>
+            <if test=" '' != wtid and null != wtid ">
+                and e.wtnum = #{wtid}
+            </if>
+            <if test="startTime !=null and endTime !=null">
+                and  e.STARTTIME &gt;= #{startTime} and e.ENDTIME &lt;= #{endTime}
+            </if>
+        </where>
+
+
+    </select>
+
+</mapper>

+ 50 - 0
src/main/resources/mapper/ticket/PoMapper.xml

@@ -0,0 +1,50 @@
+<?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="com.gyee.viewticket.mapper.ticket.PoMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.gyee.viewticket.model.ticket.Po">
+        <id column="ID" property="id" />
+        <result column="PONUM" property="ponum" />
+        <result column="DESCRIPTION" property="description" />
+        <result column="ORDERDATE" property="orderdate" />
+        <result column="REQUIREDDATE" property="requireddate" />
+        <result column="STATUS" property="status" />
+        <result column="STATUSDATE" property="statusdate" />
+        <result column="VENDOR" property="vendor" />
+        <result column="CONTACT" property="contact" />
+        <result column="FREIGHTTERMS" property="freightterms" />
+        <result column="PAYMENTTERMS" property="paymentterms" />
+        <result column="SHIPVIA" property="shipvia" />
+        <result column="SHIPTOLABOR" property="shiptolabor" />
+        <result column="SHIPTOADDR" property="shiptoaddr" />
+        <result column="BILLTOLABOR" property="billtolabor" />
+        <result column="BILLTOADDR" property="billtoaddr" />
+        <result column="TOTALCOST" property="totalcost" />
+        <result column="CHANGEBY" property="changeby" />
+        <result column="CHANGEDATE" property="changedate" />
+        <result column="VENDELIVERYDATE" property="vendeliverydate" />
+        <result column="RECEIPTS" property="receipts" />
+        <result column="EXCHANGERATE" property="exchangerate" />
+        <result column="EXCHANGEDATE" property="exchangedate" />
+        <result column="TOTALTAX" property="totaltax" />
+        <result column="STARTDATE" property="startdate" />
+        <result column="ENDDATE" property="enddate" />
+        <result column="EBSSENT" property="ebssent" />
+        <result column="EBSSTATUSDATE" property="ebsstatusdate" />
+        <result column="POTYPE" property="potype" />
+        <result column="SUPERVISOR" property="supervisor" />
+        <result column="ISPROTOCOL" property="isprotocol" />
+        <result column="ISGOV" property="isgov" />
+        <result column="POREASON" property="poreason" />
+        <result column="NOTIFYNUM" property="notifynum" />
+        <result column="SITENUM" property="sitenum" />
+        <result column="CORPNUM" property="corpnum" />
+    </resultMap>
+
+    <!-- 通用查询结果列 -->
+    <sql id="Base_Column_List">
+        ID, PONUM, DESCRIPTION, ORDERDATE, REQUIREDDATE, STATUS, STATUSDATE, VENDOR, CONTACT, FREIGHTTERMS, PAYMENTTERMS, SHIPVIA, SHIPTOLABOR, SHIPTOADDR, BILLTOLABOR, BILLTOADDR, TOTALCOST, CHANGEBY, CHANGEDATE, VENDELIVERYDATE, RECEIPTS, EXCHANGERATE, EXCHANGEDATE, TOTALTAX, STARTDATE, ENDDATE, EBSSENT, EBSSTATUSDATE, POTYPE, SUPERVISOR, ISPROTOCOL, ISGOV, POREASON, NOTIFYNUM, SITENUM, CORPNUM
+    </sql>
+
+</mapper>

+ 97 - 0
src/main/resources/mapper/ticket/PolineMapper.xml

@@ -0,0 +1,97 @@
+<?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="com.gyee.viewticket.mapper.ticket.PolineMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.gyee.viewticket.model.ticket.Poline">
+        <id column="ID" property="id" />
+        <result column="PONUM" property="ponum" />
+        <result column="POLINENUM" property="polinenum" />
+        <result column="ITEMNUM" property="itemnum" />
+        <result column="DESCRIPTION" property="description" />
+        <result column="WAREHOUSE" property="warehouse" />
+        <result column="ORDERQTY" property="orderqty" />
+        <result column="ORDERUNIT" property="orderunit" />
+        <result column="CONVERSION" property="conversion" />
+        <result column="UNITCOST" property="unitcost" />
+        <result column="TAXUNITCOST" property="taxunitcost" />
+        <result column="LINECOST" property="linecost" />
+        <result column="TAXLINECOST" property="taxlinecost" />
+        <result column="RECEIVEDQTY" property="receivedqty" />
+        <result column="RECEIVEDUNITCOST" property="receivedunitcost" />
+        <result column="RECEIVEDTOTALCOST" property="receivedtotalcost" />
+        <result column="TAXCODE" property="taxcode" />
+        <result column="TAXRATE" property="taxrate" />
+        <result column="TAX" property="tax" />
+        <result column="REJECTEDQTY" property="rejectedqty" />
+        <result column="VENDELIVERYDATE" property="vendeliverydate" />
+        <result column="ENTERDATE" property="enterdate" />
+        <result column="ENTERBY" property="enterby" />
+        <result column="REQUESTEDBY" property="requestedby" />
+        <result column="REQDELIVERYDATE" property="reqdeliverydate" />
+        <result column="MANUFACTURER" property="manufacturer" />
+        <result column="MODELNUM" property="modelnum" />
+        <result column="SERVICE" property="service" />
+        <result column="STOCKTYPE" property="stocktype" />
+        <result column="REMARK" property="remark" />
+        <result column="LOCATION" property="location" />
+        <result column="RECEIPTSCOMPLETE" property="receiptscomplete" />
+        <result column="INSPECTION" property="inspection" />
+        <result column="LOADEDCOST" property="loadedcost" />
+        <result column="PRORATED" property="prorated" />
+        <result column="PRORATECOST" property="proratecost" />
+        <result column="WONUM" property="wonum" />
+        <result column="TASKNUM" property="tasknum" />
+        <result column="BUDNUM" property="budnum" />
+        <result column="BUDITEM" property="buditem" />
+    </resultMap>
+
+    <!-- 通用查询结果列 -->
+    <sql id="Base_Column_List">
+        ID, PONUM, POLINENUM, ITEMNUM, DESCRIPTION, WAREHOUSE, ORDERQTY, ORDERUNIT, CONVERSION, UNITCOST, TAXUNITCOST, LINECOST, TAXLINECOST, RECEIVEDQTY, RECEIVEDUNITCOST, RECEIVEDTOTALCOST, TAXCODE, TAXRATE, TAX, REJECTEDQTY, VENDELIVERYDATE, ENTERDATE, ENTERBY, REQUESTEDBY, REQDELIVERYDATE, MANUFACTURER, MODELNUM, SERVICE, STOCKTYPE, REMARK, LOCATION, RECEIPTSCOMPLETE, INSPECTION, LOADEDCOST, PRORATED, PRORATECOST, WONUM, TASKNUM, BUDNUM, BUDITEM
+    </sql>
+
+
+    <select id="selectPolinePageList" resultType="java.util.Map">
+        SELECT
+            p.ponum,
+            p.status,
+            p.statusdate,
+            p.vendor,
+            p.totalcost,
+            p.totaltax,
+            p.sitenum,
+            p.description,
+            l.itemnum,
+            l.warehouse,
+            l.orderqty,
+            l.orderunit,
+            l.unitcost,
+            l.linecost,
+            l.enterdate,
+            l.enterby,
+            i.modelnum
+        FROM
+            POLINE l
+        LEFT JOIN Po p ON p.ponum = l.ponum
+        LEFT JOIN ITEM i on i.itemnum = l.itemnum
+        <where>
+
+            <if test=" '' != vendor and null != vendor ">
+                and p.vendor like '%${vendor}%'
+            </if>
+            <if test=" '' != warehouse and null != warehouse ">
+                and l.warehouse like '%${warehouse}%'
+            </if>
+            <if test=" '' != ponum and null != ponum ">
+                and p.ponum like '%${ponum}%'
+            </if>
+
+            <if test=" '' != starttime and starttime !=null and endtime !=null  and '' != endtime">
+                and  l.enterdate &gt;= #{starttime} and l.enterdate &lt;= #{endtime}
+            </if>
+        </where>
+
+    </select>
+
+</mapper>