gongdecai пре 3 година
родитељ
комит
ab407a8bd8

+ 21 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/controller/ReveExpeInfoController.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 Gdc
+ * @since 2022-03-03
+ */
+@RestController
+@RequestMapping("/reveExpeInfo")
+public class ReveExpeInfoController {
+
+}
+

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

@@ -0,0 +1,68 @@
+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 Gdc
+ * @since 2022-03-03
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@Accessors(chain = true)
+@TableName("reve_expe_info")
+public class ReveExpeInfo extends BaseModel<ReveExpeInfo> {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 主键
+     */
+    @TableId(type = IdType.UUID)
+    private String id;
+    /**
+     * 公司id
+     */
+    private String compId;
+    /**
+     * 收支类型
+     */
+    private String reexType;
+    /**
+     * 金额
+     */
+    private Double amountMoney;
+    /**
+     * 费用名称
+     */
+    private String expenseName;
+    /**
+     * 费用说明
+     */
+    private String expenseRemarks;
+    /**
+     * 毛利润
+     */
+    private Double grossProfit;
+
+
+    @Override
+    protected Serializable pkVal() {
+        return this.id;
+    }
+
+}

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

@@ -0,0 +1,16 @@
+package com.yh.saas.plugin.yiliangyiyun.mapper;
+
+import com.yh.saas.plugin.yiliangyiyun.entity.ReveExpeInfo;
+import com.baomidou.mybatisplus.mapper.BaseMapper;
+
+/**
+ * <p>
+ * 收支明细 Mapper 接口
+ * </p>
+ *
+ * @author Gdc
+ * @since 2022-03-03
+ */
+public interface ReveExpeInfoMapper extends BaseMapper<ReveExpeInfo> {
+
+}

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

@@ -0,0 +1,16 @@
+package com.yh.saas.plugin.yiliangyiyun.service;
+
+import com.yh.saas.plugin.yiliangyiyun.entity.ReveExpeInfo;
+import com.baomidou.mybatisplus.service.IService;
+
+/**
+ * <p>
+ * 收支明细 服务类
+ * </p>
+ *
+ * @author Gdc
+ * @since 2022-03-03
+ */
+public interface IReveExpeInfoService extends IService<ReveExpeInfo> {
+
+}

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

@@ -0,0 +1,20 @@
+package com.yh.saas.plugin.yiliangyiyun.service.impl;
+
+import com.yh.saas.plugin.yiliangyiyun.entity.ReveExpeInfo;
+import com.yh.saas.plugin.yiliangyiyun.mapper.ReveExpeInfoMapper;
+import com.yh.saas.plugin.yiliangyiyun.service.IReveExpeInfoService;
+import com.baomidou.mybatisplus.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 收支明细 服务实现类
+ * </p>
+ *
+ * @author Gdc
+ * @since 2022-03-03
+ */
+@Service
+public class ReveExpeInfoServiceImpl extends ServiceImpl<ReveExpeInfoMapper, ReveExpeInfo> implements IReveExpeInfoService {
+
+}

+ 5 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/resources/mapper/ReveExpeInfoMapper.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.ReveExpeInfoMapper">
+
+</mapper>