gongdecai 4 лет назад
Родитель
Сommit
338e809364

+ 1 - 1
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/controller/CommonUserController.java

@@ -49,7 +49,7 @@ public class CommonUserController {
     }
 
     /**
-     * 发送验证码
+     * 登录
      * @param commonUser
      * @return
      * @throws ServiceException

+ 21 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/controller/ProcurementPlanInfoController.java

@@ -0,0 +1,21 @@
+package com.yh.saas.plugin.yiliangyiyun.controller;
+
+
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * <p>
+ * 记录采购计划 前端控制器
+ * </p>
+ *
+ * @author Gongdc
+ * @since 2021-07-20
+ */
+@RestController
+@RequestMapping("/procurementPlanInfo")
+public class ProcurementPlanInfoController {
+
+}
+

+ 220 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/entity/ProcurementPlanInfo.java

@@ -0,0 +1,220 @@
+package com.yh.saas.plugin.yiliangyiyun.entity;
+
+import com.baomidou.mybatisplus.activerecord.Model;
+import java.io.Serializable;
+
+import com.baomidou.mybatisplus.annotations.TableId;
+import com.baomidou.mybatisplus.annotations.TableName;
+import com.baomidou.mybatisplus.annotations.Version;
+
+import com.baomidou.mybatisplus.enums.IdType;
+import com.yh.saas.common.support.entity.BaseModel;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * <p>
+ * 记录采购计划
+ * </p>
+ *
+ * @author Gongdc
+ * @since 2021-07-20
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@Accessors(chain = true)
+@TableName("procurement_plan_info")
+public class ProcurementPlanInfo extends BaseModel<ProcurementPlanInfo> {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 主键
+     */
+    @TableId(type = IdType.UUID)
+    private String id;
+    /**
+     * 公司id
+     */
+    private String compId;
+    /**
+     * 采购计划编号
+     */
+    private String procurementPlanNo;
+    /**
+     * 采购计划类型(1期货2现货)
+     */
+    private String procurementPlanType;
+    /**
+     * 采购计划类型key
+     */
+    private String procurementPlanTypeKey;
+    /**
+     * 标题
+     */
+    private String title;
+    /**
+     * 货名key
+     */
+    private String goodsNameKey;
+    /**
+     * 货名
+     */
+    private String goodsName;
+    /**
+     * 重量(吨)
+     */
+    private Float weight;
+    /**
+     * 计划采购量(吨)
+     */
+    private Float plannedPurchaseVolume;
+    /**
+     * 最小成交量(吨)
+     */
+    private Float minimumVolume;
+    /**
+     * 包装方式(1大袋2小袋3散装)
+     */
+    private String packingType;
+    /**
+     * 包装方式key
+     */
+    private String packingTypeKey;
+    /**
+     * 单价(元/吨)
+     */
+    private String unitPrice;
+    /**
+     * 采购价格(元/吨)
+     */
+    private String procurementPrice;
+    /**
+     * 基差(元/吨)
+     */
+    private String basisPrice;
+    /**
+     * 价格类型(1期货盘面价+基差2定价采购)
+     */
+    private String priceType;
+    /**
+     * 价格类型key
+     */
+    private String priceTypeKey;
+    /**
+     * 收货库
+     */
+    private String receiveWarehouse;
+    /**
+     * 收货库所在地省
+     */
+    private String receivePrivate;
+    /**
+     * 收货库所在地市
+     */
+    private String receiveCity;
+    /**
+     * 收货库所在地区
+     */
+    private String receiveArea;
+    /**
+     * 运费承担方(1可议2卖方承担3买方承担)
+     */
+    private String freightPayer;
+    /**
+     * 运费承担方key
+     */
+    private String freightPayerKey;
+    /**
+     * 装袋备注
+     */
+    private String baggingNotes;
+    /**
+     * 买方
+     */
+    private String buyer;
+    /**
+     * 买方电话
+     */
+    private String buyerPhone;
+    /**
+     * 水分
+     */
+    private String waterContent;
+    /**
+     * 杂质
+     */
+    private String impurity;
+    /**
+     * 霉变粒
+     */
+    private String mildewGrain;
+    /**
+     * 不完善粒
+     */
+    private String imperfectGrain;
+    /**
+     * 容重
+     */
+    private String bulkDensity;
+    /**
+     * 热损伤
+     */
+    private String jiaorenli;
+    /**
+     * 品级key
+     */
+    private String gradeKey;
+    /**
+     * 品级
+     */
+    private String grade;
+    /**
+     * 粒型key
+     */
+    private String grainKey;
+    /**
+     * 粒型
+     */
+    private String grain;
+    /**
+     * 产出年份key
+     */
+    private String outputYearKey;
+    /**
+     * 产出年份
+     */
+    private String outputYear;
+    /**
+     * 产出地省
+     */
+    private String outputPrivate;
+    /**
+     * 产出地市
+     */
+    private String outputCity;
+    /**
+     * 产出地,全国
+     */
+    private String outputArea;
+    /**
+     * 状态标识
+     */
+    private String statusFlag;
+    /**
+     * 状态
+     */
+    private String status;
+    /**
+     * 状态英文
+     */
+    private String statusEn;
+
+
+    @Override
+    protected Serializable pkVal() {
+        return this.id;
+    }
+
+}

+ 16 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/mapper/ProcurementPlanInfoMapper.java

@@ -0,0 +1,16 @@
+package com.yh.saas.plugin.yiliangyiyun.mapper;
+
+import com.yh.saas.plugin.yiliangyiyun.entity.ProcurementPlanInfo;
+import com.baomidou.mybatisplus.mapper.BaseMapper;
+
+/**
+ * <p>
+ * 记录采购计划 Mapper 接口
+ * </p>
+ *
+ * @author Gongdc
+ * @since 2021-07-20
+ */
+public interface ProcurementPlanInfoMapper extends BaseMapper<ProcurementPlanInfo> {
+
+}

+ 16 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/IProcurementPlanInfoService.java

@@ -0,0 +1,16 @@
+package com.yh.saas.plugin.yiliangyiyun.service;
+
+import com.yh.saas.plugin.yiliangyiyun.entity.ProcurementPlanInfo;
+import com.baomidou.mybatisplus.service.IService;
+
+/**
+ * <p>
+ * 记录采购计划 服务类
+ * </p>
+ *
+ * @author Gongdc
+ * @since 2021-07-20
+ */
+public interface IProcurementPlanInfoService extends IService<ProcurementPlanInfo> {
+
+}

+ 20 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/impl/ProcurementPlanInfoServiceImpl.java

@@ -0,0 +1,20 @@
+package com.yh.saas.plugin.yiliangyiyun.service.impl;
+
+import com.yh.saas.plugin.yiliangyiyun.entity.ProcurementPlanInfo;
+import com.yh.saas.plugin.yiliangyiyun.mapper.ProcurementPlanInfoMapper;
+import com.yh.saas.plugin.yiliangyiyun.service.IProcurementPlanInfoService;
+import com.baomidou.mybatisplus.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 记录采购计划 服务实现类
+ * </p>
+ *
+ * @author Gongdc
+ * @since 2021-07-20
+ */
+@Service
+public class ProcurementPlanInfoServiceImpl extends ServiceImpl<ProcurementPlanInfoMapper, ProcurementPlanInfo> implements IProcurementPlanInfoService {
+
+}

+ 5 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/resources/mapper/ProcurementPlanInfoMapper.xml

@@ -0,0 +1,5 @@
+<?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.yh.saas.plugin.yiliangyiyun.mapper.ProcurementPlanInfoMapper">
+
+</mapper>