瀏覽代碼

同步svn代码

shanxin 4 年之前
父節點
當前提交
5bdcf45faf

+ 53 - 0
sailun-allsteel-bus-provider/saillun-allsteel-bus-api/src/main/java/io/platform/store/dto/BizBasicMsgDto.java

@@ -0,0 +1,53 @@
+package io.platform.store.dto;
+
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.List;
+
+
+@Data
+public class BizBasicMsgDto implements Serializable {
+
+    private static final long serialVersionUID = 5454155825314635342L;
+    private int code;
+    private Data data;
+    private String message;
+    @lombok.Data
+    public static class Data implements Serializable{
+        private static final long serialVersionUID = 5454155825314635342L;
+        private String regio;
+        private Integration integration;
+        private String kunnr;
+        private String street;
+        private String name;
+        private Credit credit;
+        private String personType;
+        private String regioName;
+        private String legalPerson;
+        private List<BrandList> brandList;
+
+        @lombok.Data
+        public static class Integration implements Serializable{
+            private static final long serialVersionUID = 5454155825314635342L;
+            private String allIntegration;
+            private double showIntegration;
+            private String occupyIntegration;
+        }
+        @lombok.Data
+        public static class Credit implements Serializable{
+            private static final long serialVersionUID = 5454155825314635342L;
+            private double showCredit;
+            private String accounts;
+            private int confirmOrderMoney;
+            private double debt;
+            private String salesarea;
+            private double credit;
+        }
+        @lombok.Data
+        public static class BrandList implements Serializable{
+            private static final long serialVersionUID = 5454155825314635342L;
+            private String brand;
+        }
+    }
+}

+ 92 - 0
sailun-allsteel-bus-provider/saillun-allsteel-bus-api/src/main/java/io/platform/store/dto/BizStoreAgentDto.java

@@ -0,0 +1,92 @@
+package io.platform.store.dto;
+
+import lombok.Data;
+
+import java.util.List;
+
+@Data
+public class BizStoreAgentDto implements java.io.Serializable{
+private static final long serialVersionUID = 5454155825314635342L;
+
+
+/**
+ * id       db_column: ID
+ */
+private Long id;
+/**
+ * 门店ID       db_column: STORE_ID
+ */
+private Long storeId;
+/**
+ * 0默认等待审核1审核通过 2失败       db_column: STATUS
+ */
+private Long status;
+/**
+ * 审核时间       db_column: AUDIT_TIME
+ */
+private java.util.Date auditTime;
+/**
+ * 创建时间       db_column: CREATE_TIME
+ */
+private java.util.Date createTime;
+/**
+ * 经销商编码       db_column: KUNNR
+ */
+private String kunnr;
+/**
+ * 产品组       db_column: SPART
+ */
+private String spart;
+/**
+ * 销售组织       db_column: VKORG
+ */
+private String vkorg;
+/**
+ * 分销渠道       db_column: VTWEG
+ */
+private String vtweg;
+/**
+ * 门店名称
+ */
+private String storeName;
+/**
+ * 经销商名称
+ */
+private String agentName;
+
+private String statusName;
+    public String getStatusName() {
+        if(this.status!=null) {
+            if (this.status == 0) {
+                return "待审核";
+            }
+            if (this.status == 1) {
+                return "审核通过";
+            }
+            if (this.status == 2) {
+                return "审核未通过";
+            }
+        }
+        return statusName;
+    }
+
+    public void setStatusName(String statusName) {
+        this.statusName = statusName;
+    }
+//columns END
+
+//private List<BizStoreStockDto> bizStoreStockDtoList;
+
+    /**
+     * 每页显示条数,默认 10
+     */
+    private Integer size ;
+
+    private Integer pageSize;
+    //TOP10
+    private Long display;
+
+    private Integer current;
+
+    private Integer total;
+}

+ 40 - 0
sailun-allsteel-bus-provider/saillun-allsteel-bus-api/src/main/java/io/platform/store/dto/QueryAgentStockDto.java

@@ -0,0 +1,40 @@
+package io.platform.store.dto;
+
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.List;
+
+
+@Data
+public class QueryAgentStockDto implements Serializable {
+    private static final long serialVersionUID = 5454155825314635342L;
+    private int code;
+    private Data data;
+    private String message;
+    @lombok.Data
+    public static class Data implements Serializable{
+        private static final long serialVersionUID = 5454155825314635342L;
+        private int nextPage;
+        private int pageNo;
+        private int pageSize;
+        private int prePage;
+        private int startIndex;
+        private int stock;
+        private int total;
+        private int totalPage;
+        private List<String> brandList; //品牌列表
+        private List<stockList> list;
+        private List<String> patternList; //花纹列表
+        private List<String> specList;    //规格列表
+        @lombok.Data
+        public static class stockList implements Serializable{
+            private static final long serialVersionUID = 5454155825314635342L;
+            private int innumber; //月入库
+            private Object maktx;  //物料描述
+            private int outnumber; //月出库
+            private int stock;     //库存
+            private String brand;  //品牌
+        }
+    }
+}

+ 56 - 0
sailun-allsteel-bus-provider/saillun-allsteel-bus-api/src/main/java/io/platform/store/dto/Zkotg901Dto.java

@@ -0,0 +1,56 @@
+package io.platform.store.dto;
+
+import lombok.Data;
+
+@Data
+public class Zkotg901Dto implements java.io.Serializable{
+private static final long serialVersionUID = 5454155825314635342L;
+
+
+/**
+ * kappl       db_column: KAPPL
+ */
+private Object kappl;
+/**
+ * kschl       db_column: KSCHL
+ */
+private Object kschl;
+/**
+ * kunnr       db_column: KUNNR
+ */
+private Object kunnr;
+/**
+ * ean11       db_column: EAN11
+ */
+private Object ean11;
+/**
+ * datbi       db_column: DATBI
+ */
+private java.util.Date datbi;
+/**
+ * datab       db_column: DATAB
+ */
+private java.util.Date datab;
+/**
+ * ifFlag       db_column: IF_FLAG
+ */
+private String ifFlag;
+/**
+ * clientid       db_column: CLIENTID
+ */
+private Long clientid;
+/**
+ * vkorg       db_column: VKORG
+ */
+private String vkorg;
+/**
+ * spart       db_column: SPART
+ */
+private String spart;
+/**
+ * vtweg       db_column: VTWEG
+ */
+private String vtweg;
+//columns END
+
+}

+ 14 - 0
sailun-allsteel-bus-provider/saillun-allsteel-bus-api/src/main/java/io/platform/store/service/client/api/Zkotg901ServiceClient.java

@@ -0,0 +1,14 @@
+
+package io.platform.store.service.client.api;
+
+import io.platform.store.dto.Zkotg901Dto;
+
+import java.util.List;
+import java.util.Map;
+
+public interface Zkotg901ServiceClient {
+    /**
+     * 根据参数查询 列表  无分页
+     */
+    List<Zkotg901Dto> queryList(Map<String, Object> map);
+}

+ 86 - 0
sailun-allsteel-bus-provider/sailun-allsteel-bus-service/src/main/java/io/platform/store/biz/entity/Zkotg901.java

@@ -0,0 +1,86 @@
+package io.platform.store.biz.entity;
+
+import com.baomidou.mybatisplus.annotation.KeySequence;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import lombok.Data;
+
+import java.io.Serializable;
+
+@Data
+@TableName("JYB2B_NEW.ZKOTG901")
+@KeySequence(value="SEQ_BIZ",clazz=Long.class)
+public class Zkotg901 extends Model<Zkotg901>  implements Serializable{
+private static final long serialVersionUID = 5454155825314635342L;
+
+
+
+    /**
+     * kappl       db_column: KAPPL
+     */
+    @TableField("KAPPL")
+    private Object kappl;
+
+    /**
+     * kschl       db_column: KSCHL
+     */
+    @TableField("KSCHL")
+    private Object kschl;
+
+    /**
+     * kunnr       db_column: KUNNR
+     */
+    @TableField("KUNNR")
+    private Object kunnr;
+
+    /**
+     * ean11       db_column: EAN11
+     */
+    @TableField("EAN11")
+    private Object ean11;
+
+    /**
+     * datbi       db_column: DATBI
+     */
+    @TableField("DATBI")
+    private java.util.Date datbi;
+
+    /**
+     * datab       db_column: DATAB
+     */
+    @TableField("DATAB")
+    private java.util.Date datab;
+
+    /**
+     * ifFlag       db_column: IF_FLAG
+     */
+    @TableField("IF_FLAG")
+    private String ifFlag;
+
+    /**
+     * clientid       db_column: CLIENTID
+     */
+    @TableField("CLIENTID")
+    private Long clientid;
+
+    /**
+     * vkorg       db_column: VKORG
+     */
+    @TableField("VKORG")
+    private String vkorg;
+
+    /**
+     * spart       db_column: SPART
+     */
+    @TableField("SPART")
+    private String spart;
+
+    /**
+     * vtweg       db_column: VTWEG
+     */
+    @TableField("VTWEG")
+    private String vtweg;
+//columns END
+
+}

+ 11 - 0
sailun-allsteel-bus-provider/sailun-allsteel-bus-service/src/main/java/io/platform/store/biz/mapper/Zkotg901Mapper.java

@@ -0,0 +1,11 @@
+package io.platform.store.biz.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import io.platform.store.biz.entity.Zkotg901;
+import org.apache.ibatis.annotations.Mapper;
+
+
+@Mapper
+public interface Zkotg901Mapper extends BaseMapper<Zkotg901> {
+
+}

+ 15 - 0
sailun-allsteel-bus-provider/sailun-allsteel-bus-service/src/main/java/io/platform/store/biz/service/Zkotg901Service.java

@@ -0,0 +1,15 @@
+package io.platform.store.biz.service;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import io.platform.store.biz.entity.Zkotg901;
+import io.platform.store.biz.mapper.Zkotg901Mapper;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+import java.util.Map;
+@Service("zkotg901Service")
+public class Zkotg901Service extends ServiceImpl<Zkotg901Mapper, Zkotg901> {
+    public List<Zkotg901> selectByMap(Map<String, Object> map) {
+        return baseMapper.selectByMap(map);
+    }
+}

+ 29 - 0
sailun-allsteel-bus-provider/sailun-allsteel-bus-service/src/main/java/io/platform/store/service/client/impl/Zkotg901ServiceClientImpl.java

@@ -0,0 +1,29 @@
+package io.platform.store.service.client.impl;
+
+import com.alibaba.dubbo.config.annotation.Service;
+import io.platform.base.common.BaseServiceClient;
+import io.platform.store.biz.entity.Zkotg901;
+import io.platform.store.biz.service.Zkotg901Service;
+import io.platform.store.dto.Zkotg901Dto;
+import io.platform.store.service.client.api.Zkotg901ServiceClient;
+import org.springframework.stereotype.Component;
+
+import javax.annotation.Resource;
+import java.util.List;
+import java.util.Map;
+
+@Component
+@Service()
+public class Zkotg901ServiceClientImpl extends BaseServiceClient<Zkotg901, Zkotg901Dto> implements Zkotg901ServiceClient {
+
+    @Resource
+    private Zkotg901Service zkotg901Service;
+
+    public List<Zkotg901Dto> queryList(Map<String, Object> map) {
+        List<Zkotg901> zkotg901List = zkotg901Service.selectByMap(map);
+        if(zkotg901List!=null && zkotg901List.size()>0){
+            return convertList(zkotg901List,Zkotg901Dto.class);
+        }
+        return null;
+    }
+}