Przeglądaj źródła

添加仓库子模块,添加客户详情后端文件,以及代码生成地址

阿伏兔 4 lat temu
rodzic
commit
b8619e00f6

+ 8 - 0
pom.xml

@@ -194,6 +194,13 @@
                 <version>${ruoyi.version}</version>
             </dependency>
 
+            <!-- 仓库模块-->
+            <dependency>
+                <groupId>com.ruoyi</groupId>
+                <artifactId>ruoyi-warehouse</artifactId>
+                <version>${ruoyi.version}</version>
+            </dependency>
+
         </dependencies>
     </dependencyManagement>
 
@@ -204,6 +211,7 @@
         <module>ruoyi-quartz</module>
         <module>ruoyi-generator</module>
         <module>ruoyi-common</module>
+        <module>ruoyi-warehouse</module>
     </modules>
     <packaging>pom</packaging>
 

+ 17 - 7
ruoyi-admin/pom.xml

@@ -62,7 +62,7 @@
             <artifactId>springfox-swagger-ui</artifactId>
         </dependency>
 
-         <!-- Mysql驱动包 -->
+        <!-- Mysql驱动包 -->
         <dependency>
             <groupId>mysql</groupId>
             <artifactId>mysql-connector-java</artifactId>
@@ -86,6 +86,16 @@
             <artifactId>ruoyi-generator</artifactId>
         </dependency>
 
+        <!-- 测试模块-->
+        <dependency>
+            <groupId>com.ruoyi</groupId>
+            <artifactId>ruoyi-warehouse</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>com.ruoyi</groupId>
+            <artifactId>ruoyi-warehouse</artifactId>
+        </dependency>
+
     </dependencies>
 
     <build>
@@ -105,15 +115,15 @@
                     </execution>
                 </executions>
             </plugin>
-            <plugin>   
-                <groupId>org.apache.maven.plugins</groupId>   
-                <artifactId>maven-war-plugin</artifactId>   
-                <version>3.1.0</version>   
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-war-plugin</artifactId>
+                <version>3.1.0</version>
                 <configuration>
                     <failOnMissingWebXml>false</failOnMissingWebXml>
                     <warName>${project.artifactId}</warName>
-                </configuration>   
-           </plugin>   
+                </configuration>
+            </plugin>
         </plugins>
         <finalName>${project.artifactId}</finalName>
     </build>

+ 97 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/warehouse/basicData/customerDetails/TCorpsController.java

@@ -0,0 +1,97 @@
+package com.ruoyi.web.controller.warehouse.basicData.customerDetails;
+
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.basicData.domain.TCorps;
+import com.ruoyi.basicData.service.ITCorpsService;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+import java.util.List;
+
+/**
+ * 客户详情Controller
+ *
+ * @author ruoyi
+ * @date 2020-12-10
+ */
+@RestController
+@RequestMapping("/basicdata/customerDetails/corps")
+public class TCorpsController extends BaseController {
+    @Autowired
+    private ITCorpsService tCorpsService;
+
+    /**
+     * 查询客户详情列表
+     */
+    @PreAuthorize("@ss.hasPermi('basicdata/customerDetails:corps:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TCorps tCorps) {
+        startPage();
+        List<TCorps> list = tCorpsService.selectTCorpsList(tCorps);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出客户详情列表
+     */
+    @PreAuthorize("@ss.hasPermi('basicdata/customerDetails:corps:export')")
+    @Log(title = "客户详情", businessType = BusinessType.EXPORT)
+    @GetMapping("/export")
+    public AjaxResult export(TCorps tCorps) {
+        List<TCorps> list = tCorpsService.selectTCorpsList(tCorps);
+        ExcelUtil<TCorps> util = new ExcelUtil<TCorps>(TCorps.class);
+        return util.exportExcel(list, "corps");
+    }
+
+    /**
+     * 获取客户详情详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('basicdata/customerDetails:corps:query')")
+    @GetMapping(value = "/{fId}")
+    public AjaxResult getInfo(@PathVariable("fId") Long fId) {
+        return AjaxResult.success(tCorpsService.selectTCorpsById(fId));
+    }
+
+    /**
+     * 新增客户详情
+     */
+    @PreAuthorize("@ss.hasPermi('basicdata/customerDetails:corps:add')")
+    @Log(title = "客户详情", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TCorps tCorps) {
+        return toAjax(tCorpsService.insertTCorps(tCorps));
+    }
+
+    /**
+     * 修改客户详情
+     */
+    @PreAuthorize("@ss.hasPermi('basicdata/customerDetails:corps:edit')")
+    @Log(title = "客户详情", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TCorps tCorps) {
+        return toAjax(tCorpsService.updateTCorps(tCorps));
+    }
+
+    /**
+     * 删除客户详情
+     */
+    @PreAuthorize("@ss.hasPermi('basicdata/customerDetails:corps:remove')")
+    @Log(title = "客户详情", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{fIds}")
+    public AjaxResult remove(@PathVariable Long[] fIds) {
+        return toAjax(tCorpsService.deleteTCorpsByIds(fIds));
+    }
+}

+ 11 - 0
ruoyi-common/pom.xml

@@ -119,6 +119,17 @@
             <artifactId>javax.servlet-api</artifactId>
         </dependency>
 
+        <dependency>
+            <groupId>com.baomidou</groupId>
+            <artifactId>mybatis-plus-core</artifactId>
+            <version>3.4.1</version>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.projectlombok</groupId>
+            <artifactId>lombok</artifactId>
+        </dependency>
+
     </dependencies>
 
 </project>

+ 28 - 0
ruoyi-common/src/main/java/com/ruoyi/common/utils/MyMetaObjectHandler.java

@@ -0,0 +1,28 @@
+package com.ruoyi.common.utils;
+
+import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.ibatis.reflection.MetaObject;
+import org.springframework.stereotype.Component;
+
+import java.util.Date;
+
+/**
+ * 原数据处理器,处理日期自动填充问题
+ */
+@Component
+@Slf4j
+public class MyMetaObjectHandler implements MetaObjectHandler {
+    @Override
+    public void insertFill(MetaObject metaObject) {
+        log.info("插入时间");
+        this.setFieldValByName("createTime", new Date(), metaObject);
+        this.setFieldValByName("updateTime", new Date(), metaObject);
+    }
+
+    @Override
+    public void updateFill(MetaObject metaObject) {
+        log.info("更新时间");
+        this.setFieldValByName("updateTime", new Date(), metaObject);
+    }
+}

+ 1 - 1
ruoyi-generator/src/main/resources/generator.yml

@@ -3,7 +3,7 @@ gen:
   # 作者
   author: ruoyi
   # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool
-  packageName: com.ruoyi.system
+  packageName: com.ruoyi.warehouse
   # 自动去除表前缀,默认是false
   autoRemovePre: false
   # 表前缀(生成类名不会包含表前缀,多个用逗号分隔)

+ 11 - 11
ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysConfigMapper.java

@@ -1,18 +1,18 @@
 package com.ruoyi.system.mapper;
 
-import java.util.List;
 import com.ruoyi.system.domain.SysConfig;
 
+import java.util.List;
+
 /**
  * 参数配置 数据层
- * 
+ *
  * @author ruoyi
  */
-public interface SysConfigMapper
-{
+public interface SysConfigMapper {
     /**
      * 查询参数配置信息
-     * 
+     *
      * @param config 参数配置信息
      * @return 参数配置信息
      */
@@ -20,7 +20,7 @@ public interface SysConfigMapper
 
     /**
      * 查询参数配置列表
-     * 
+     *
      * @param config 参数配置信息
      * @return 参数配置集合
      */
@@ -28,7 +28,7 @@ public interface SysConfigMapper
 
     /**
      * 根据键名查询参数配置信息
-     * 
+     *
      * @param configKey 参数键名
      * @return 参数配置信息
      */
@@ -36,7 +36,7 @@ public interface SysConfigMapper
 
     /**
      * 新增参数配置
-     * 
+     *
      * @param config 参数配置信息
      * @return 结果
      */
@@ -44,7 +44,7 @@ public interface SysConfigMapper
 
     /**
      * 修改参数配置
-     * 
+     *
      * @param config 参数配置信息
      * @return 结果
      */
@@ -52,7 +52,7 @@ public interface SysConfigMapper
 
     /**
      * 删除参数配置
-     * 
+     *
      * @param configId 参数ID
      * @return 结果
      */
@@ -60,7 +60,7 @@ public interface SysConfigMapper
 
     /**
      * 批量删除参数信息
-     * 
+     *
      * @param configIds 需要删除的参数ID
      * @return 结果
      */

+ 24 - 24
ruoyi-system/src/main/java/com/ruoyi/system/service/ISysUserService.java

@@ -1,18 +1,18 @@
 package com.ruoyi.system.service;
 
-import java.util.List;
 import com.ruoyi.common.core.domain.entity.SysUser;
 
+import java.util.List;
+
 /**
  * 用户 业务层
- * 
+ *
  * @author ruoyi
  */
-public interface ISysUserService
-{
+public interface ISysUserService {
     /**
      * 根据条件分页查询用户列表
-     * 
+     *
      * @param user 用户信息
      * @return 用户信息集合信息
      */
@@ -20,7 +20,7 @@ public interface ISysUserService
 
     /**
      * 通过用户名查询用户
-     * 
+     *
      * @param userName 用户名
      * @return 用户对象信息
      */
@@ -28,7 +28,7 @@ public interface ISysUserService
 
     /**
      * 通过用户ID查询用户
-     * 
+     *
      * @param userId 用户ID
      * @return 用户对象信息
      */
@@ -36,7 +36,7 @@ public interface ISysUserService
 
     /**
      * 根据用户ID查询用户所属角色组
-     * 
+     *
      * @param userName 用户名
      * @return 结果
      */
@@ -44,7 +44,7 @@ public interface ISysUserService
 
     /**
      * 根据用户ID查询用户所属岗位组
-     * 
+     *
      * @param userName 用户名
      * @return 结果
      */
@@ -52,7 +52,7 @@ public interface ISysUserService
 
     /**
      * 校验用户名称是否唯一
-     * 
+     *
      * @param userName 用户名称
      * @return 结果
      */
@@ -76,14 +76,14 @@ public interface ISysUserService
 
     /**
      * 校验用户是否允许操作
-     * 
+     *
      * @param user 用户信息
      */
     public void checkUserAllowed(SysUser user);
 
     /**
      * 新增用户信息
-     * 
+     *
      * @param user 用户信息
      * @return 结果
      */
@@ -91,7 +91,7 @@ public interface ISysUserService
 
     /**
      * 修改用户信息
-     * 
+     *
      * @param user 用户信息
      * @return 结果
      */
@@ -99,7 +99,7 @@ public interface ISysUserService
 
     /**
      * 修改用户状态
-     * 
+     *
      * @param user 用户信息
      * @return 结果
      */
@@ -107,7 +107,7 @@ public interface ISysUserService
 
     /**
      * 修改用户基本信息
-     * 
+     *
      * @param user 用户信息
      * @return 结果
      */
@@ -115,16 +115,16 @@ public interface ISysUserService
 
     /**
      * 修改用户头像
-     * 
+     *
      * @param userName 用户名
-     * @param avatar 头像地址
+     * @param avatar   头像地址
      * @return 结果
      */
     public boolean updateUserAvatar(String userName, String avatar);
 
     /**
      * 重置用户密码
-     * 
+     *
      * @param user 用户信息
      * @return 结果
      */
@@ -132,7 +132,7 @@ public interface ISysUserService
 
     /**
      * 重置用户密码
-     * 
+     *
      * @param userName 用户名
      * @param password 密码
      * @return 结果
@@ -141,7 +141,7 @@ public interface ISysUserService
 
     /**
      * 通过用户ID删除用户
-     * 
+     *
      * @param userId 用户ID
      * @return 结果
      */
@@ -149,7 +149,7 @@ public interface ISysUserService
 
     /**
      * 批量删除用户信息
-     * 
+     *
      * @param userIds 需要删除的用户ID
      * @return 结果
      */
@@ -157,10 +157,10 @@ public interface ISysUserService
 
     /**
      * 导入用户数据
-     * 
-     * @param userList 用户数据列表
+     *
+     * @param userList        用户数据列表
      * @param isUpdateSupport 是否更新支持,如果已存在,则进行更新数据
-     * @param operName 操作用户
+     * @param operName        操作用户
      * @return 结果
      */
     public String importUser(List<SysUser> userList, Boolean isUpdateSupport, String operName);

+ 67 - 67
ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml

@@ -1,91 +1,91 @@
 <?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">
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.ruoyi.system.mapper.SysConfigMapper">
-    
+
     <resultMap type="SysConfig" id="SysConfigResult">
-    	<id     property="configId"      column="config_id"      />
-        <result property="configName"    column="config_name"    />
-        <result property="configKey"     column="config_key"     />
-        <result property="configValue"   column="config_value"   />
-        <result property="configType"    column="config_type"    />
-        <result property="createBy"      column="create_by"      />
-        <result property="createTime"    column="create_time"    />
-        <result property="updateBy"      column="update_by"      />
-        <result property="updateTime"    column="update_time"    />
+        <id property="configId" column="config_id"/>
+        <result property="configName" column="config_name"/>
+        <result property="configKey" column="config_key"/>
+        <result property="configValue" column="config_value"/>
+        <result property="configType" column="config_type"/>
+        <result property="createBy" column="create_by"/>
+        <result property="createTime" column="create_time"/>
+        <result property="updateBy" column="update_by"/>
+        <result property="updateTime" column="update_time"/>
     </resultMap>
-    
+
     <sql id="selectConfigVo">
         select config_id, config_name, config_key, config_value, config_type, create_by, create_time, update_by, update_time, remark 
 		from sys_config
     </sql>
-    
+
     <!-- 查询条件 -->
-	<sql id="sqlwhereSearch">
-		<where>
-			<if test="configId !=null">
-				and config_id = #{configId}
-			</if>
-			<if test="configKey !=null and configKey != ''">
-				and config_key = #{configKey}
-			</if>
-		</where>
-	</sql>
-    
+    <sql id="sqlwhereSearch">
+        <where>
+            <if test="configId !=null">
+                and config_id = #{configId}
+            </if>
+            <if test="configKey !=null and configKey != ''">
+                and config_key = #{configKey}
+            </if>
+        </where>
+    </sql>
+
     <select id="selectConfig" parameterType="SysConfig" resultMap="SysConfigResult">
         <include refid="selectConfigVo"/>
         <include refid="sqlwhereSearch"/>
     </select>
-    
+
     <select id="selectConfigList" parameterType="SysConfig" resultMap="SysConfigResult">
         <include refid="selectConfigVo"/>
         <where>
-			<if test="configName != null and configName != ''">
-				AND config_name like concat('%', #{configName}, '%')
-			</if>
-			<if test="configType != null and configType != ''">
-				AND config_type = #{configType}
-			</if>
-			<if test="configKey != null and configKey != ''">
-				AND config_key like concat('%', #{configKey}, '%')
-			</if>
-			<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
-				and date_format(create_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
-			</if>
-			<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
-				and date_format(create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
-			</if>
-		</where>
+            <if test="configName != null and configName != ''">
+                AND config_name like concat('%', #{configName}, '%')
+            </if>
+            <if test="configType != null and configType != ''">
+                AND config_type = #{configType}
+            </if>
+            <if test="configKey != null and configKey != ''">
+                AND config_key like concat('%', #{configKey}, '%')
+            </if>
+            <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
+                and date_format(create_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
+            </if>
+            <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
+                and date_format(create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
+            </if>
+        </where>
     </select>
-    
+
     <select id="checkConfigKeyUnique" parameterType="String" resultMap="SysConfigResult">
         <include refid="selectConfigVo"/>
         where config_key = #{configKey} limit 1
     </select>
-    
+
     <insert id="insertConfig" parameterType="SysConfig">
         insert into sys_config (
-			<if test="configName != null and configName != '' ">config_name,</if>
-			<if test="configKey != null and configKey != '' ">config_key,</if>
-			<if test="configValue != null and configValue != '' ">config_value,</if>
-			<if test="configType != null and configType != '' ">config_type,</if>
-			<if test="createBy != null and createBy != ''">create_by,</if>
-			<if test="remark != null and remark != ''">remark,</if>
- 			create_time
+        <if test="configName != null and configName != '' ">config_name,</if>
+        <if test="configKey != null and configKey != '' ">config_key,</if>
+        <if test="configValue != null and configValue != '' ">config_value,</if>
+        <if test="configType != null and configType != '' ">config_type,</if>
+        <if test="createBy != null and createBy != ''">create_by,</if>
+        <if test="remark != null and remark != ''">remark,</if>
+        create_time
         )values(
-			<if test="configName != null and configName != ''">#{configName},</if>
-			<if test="configKey != null and configKey != ''">#{configKey},</if>
-			<if test="configValue != null and configValue != ''">#{configValue},</if>
-			<if test="configType != null and configType != ''">#{configType},</if>
-			<if test="createBy != null and createBy != ''">#{createBy},</if>
-			<if test="remark != null and remark != ''">#{remark},</if>
- 			sysdate()
-		)
+        <if test="configName != null and configName != ''">#{configName},</if>
+        <if test="configKey != null and configKey != ''">#{configKey},</if>
+        <if test="configValue != null and configValue != ''">#{configValue},</if>
+        <if test="configType != null and configType != ''">#{configType},</if>
+        <if test="createBy != null and createBy != ''">#{createBy},</if>
+        <if test="remark != null and remark != ''">#{remark},</if>
+        sysdate()
+        )
     </insert>
-	 
+
     <update id="updateConfig" parameterType="SysConfig">
-        update sys_config 
+        update sys_config
         <set>
             <if test="configName != null and configName != ''">config_name = #{configName},</if>
             <if test="configKey != null and configKey != ''">config_key = #{configKey},</if>
@@ -93,20 +93,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="configType != null and configType != ''">config_type = #{configType},</if>
             <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
             <if test="remark != null">remark = #{remark},</if>
- 			update_time = sysdate()
+            update_time = sysdate()
         </set>
         where config_id = #{configId}
     </update>
-	
+
     <delete id="deleteConfigById" parameterType="Long">
         delete from sys_config where config_id = #{configId}
     </delete>
-    
+
     <delete id="deleteConfigByIds" parameterType="Long">
-        delete from sys_config where config_id in 
+        delete from sys_config where config_id in
         <foreach item="configId" collection="array" open="(" separator="," close=")">
-        	#{configId}
+            #{configId}
         </foreach>
     </delete>
-    
+
 </mapper>

+ 39 - 0
ruoyi-warehouse/pom.xml

@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <artifactId>ruoyi</artifactId>
+        <groupId>com.ruoyi</groupId>
+        <version>3.2.1</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>ruoyi-warehouse</artifactId>
+
+    <description>
+        仓库系统模块
+    </description>
+
+    <dependencies>
+
+        <!-- 通用工具-->
+        <dependency>
+            <groupId>com.ruoyi</groupId>
+            <artifactId>ruoyi-common</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>com.baomidou</groupId>
+            <artifactId>mybatis-plus-annotation</artifactId>
+            <version>3.4.1</version>
+            <scope>compile</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>cn.hutool</groupId>
+            <artifactId>hutool-all</artifactId>
+            <version>5.5.2</version>
+        </dependency>
+    </dependencies>
+
+</project>

+ 468 - 0
ruoyi-warehouse/src/main/java/com/ruoyi/basicData/domain/TCorps.java

@@ -0,0 +1,468 @@
+package com.ruoyi.basicData.domain;
+
+
+import com.baomidou.mybatisplus.annotation.TableLogic;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+
+import java.util.Date;
+
+/**
+ * 客户详情对象 t_corps
+ *
+ * @author ruoyi
+ * @date 2020-12-10
+ */
+public class TCorps extends BaseEntity {
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * $column.columnComment
+     */
+    private Long fId;
+
+    /**
+     * 客户类别
+     */
+    @Excel(name = "客户类别")
+    private String fTypeid;
+
+    /**
+     * 编号
+     */
+    @Excel(name = "编号")
+    private String fNo;
+
+    /**
+     * 名称
+     */
+    @Excel(name = "名称")
+    private String fName;
+
+    /**
+     * 简称
+     */
+    @Excel(name = "简称")
+    private String fCname;
+
+    /**
+     * 英文名称
+     */
+    @Excel(name = "英文名称")
+    private String fEname;
+
+    /**
+     * 电话
+     */
+    @Excel(name = "电话")
+    private String fTel;
+
+    /**
+     * 传真
+     */
+    @Excel(name = "传真")
+    private String fFax;
+
+    /**
+     * 邮箱
+     */
+    @Excel(name = "邮箱")
+    private String fEmail;
+
+    /**
+     * 联系人
+     */
+    @Excel(name = "联系人")
+    private String fManage;
+
+    /**
+     * 地址
+     */
+    @Excel(name = "地址")
+    private String fAddr;
+
+    /**
+     * 英文地址
+     */
+    @Excel(name = "英文地址")
+    private String fEaddr;
+
+    /**
+     * 规模
+     */
+    @Excel(name = "规模")
+    private String fScale;
+
+    /**
+     * 省
+     */
+    @Excel(name = "省")
+    private String fProvince;
+
+    /**
+     * 市
+     */
+    @Excel(name = "市")
+    private String fCity;
+
+    /**
+     * 结算表票结、月结
+     */
+    @Excel(name = "结算表票结、月结")
+    private Long fStltypeid;
+
+    /**
+     * 结费天数
+     */
+    @Excel(name = "结费天数")
+    private Long fStldays;
+
+    /**
+     * 合同号
+     */
+    @Excel(name = "合同号")
+    private String fContractno;
+
+    /**
+     * 合同起
+     */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "合同起", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date fContractb;
+
+    /**
+     * 合同至
+     */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "合同至", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date fContracte;
+
+    /**
+     * 税号
+     */
+    @Excel(name = "税号")
+    private String fTax;
+
+    /**
+     * 开票电话
+     */
+    @Excel(name = "开票电话")
+    private String fInvtel;
+
+    /**
+     * 开票地址
+     */
+    @Excel(name = "开票地址")
+    private String fInvaddr;
+
+    /**
+     * 本位币账号
+     */
+    @Excel(name = "本位币账号")
+    private String fBankno;
+
+    /**
+     * 本位币银行
+     */
+    @Excel(name = "本位币银行")
+    private String fBankname;
+
+    /**
+     * 外币账号
+     */
+    @Excel(name = "外币账号")
+    private String fUbankno;
+
+    /**
+     * 外币银行
+     */
+    @Excel(name = "外币银行")
+    private String fUbankname;
+
+    /**
+     * 状态默认 T ,正常T 停用F 下拉选择
+     */
+    @Excel(name = "状态默认 T ,正常T 停用F 下拉选择")
+    private String fStatus;
+
+    /**
+     * 删除状态
+     */
+    @TableLogic
+    private String delFlag;
+
+    public void setfId(Long fId) {
+        this.fId = fId;
+    }
+
+    public Long getfId() {
+        return fId;
+    }
+
+    public void setfTypeid(String fTypeid) {
+        this.fTypeid = fTypeid;
+    }
+
+    public String getfTypeid() {
+        return fTypeid;
+    }
+
+    public void setfNo(String fNo) {
+        this.fNo = fNo;
+    }
+
+    public String getfNo() {
+        return fNo;
+    }
+
+    public void setfName(String fName) {
+        this.fName = fName;
+    }
+
+    public String getfName() {
+        return fName;
+    }
+
+    public void setfCname(String fCname) {
+        this.fCname = fCname;
+    }
+
+    public String getfCname() {
+        return fCname;
+    }
+
+    public void setfEname(String fEname) {
+        this.fEname = fEname;
+    }
+
+    public String getfEname() {
+        return fEname;
+    }
+
+    public void setfTel(String fTel) {
+        this.fTel = fTel;
+    }
+
+    public String getfTel() {
+        return fTel;
+    }
+
+    public void setfFax(String fFax) {
+        this.fFax = fFax;
+    }
+
+    public String getfFax() {
+        return fFax;
+    }
+
+    public void setfEmail(String fEmail) {
+        this.fEmail = fEmail;
+    }
+
+    public String getfEmail() {
+        return fEmail;
+    }
+
+    public void setfManage(String fManage) {
+        this.fManage = fManage;
+    }
+
+    public String getfManage() {
+        return fManage;
+    }
+
+    public void setfAddr(String fAddr) {
+        this.fAddr = fAddr;
+    }
+
+    public String getfAddr() {
+        return fAddr;
+    }
+
+    public void setfEaddr(String fEaddr) {
+        this.fEaddr = fEaddr;
+    }
+
+    public String getfEaddr() {
+        return fEaddr;
+    }
+
+    public void setfScale(String fScale) {
+        this.fScale = fScale;
+    }
+
+    public String getfScale() {
+        return fScale;
+    }
+
+    public void setfProvince(String fProvince) {
+        this.fProvince = fProvince;
+    }
+
+    public String getfProvince() {
+        return fProvince;
+    }
+
+    public void setfCity(String fCity) {
+        this.fCity = fCity;
+    }
+
+    public String getfCity() {
+        return fCity;
+    }
+
+    public void setfStltypeid(Long fStltypeid) {
+        this.fStltypeid = fStltypeid;
+    }
+
+    public Long getfStltypeid() {
+        return fStltypeid;
+    }
+
+    public void setfStldays(Long fStldays) {
+        this.fStldays = fStldays;
+    }
+
+    public Long getfStldays() {
+        return fStldays;
+    }
+
+    public void setfContractno(String fContractno) {
+        this.fContractno = fContractno;
+    }
+
+    public String getfContractno() {
+        return fContractno;
+    }
+
+    public void setfContractb(Date fContractb) {
+        this.fContractb = fContractb;
+    }
+
+    public Date getfContractb() {
+        return fContractb;
+    }
+
+    public void setfContracte(Date fContracte) {
+        this.fContracte = fContracte;
+    }
+
+    public Date getfContracte() {
+        return fContracte;
+    }
+
+    public void setfTax(String fTax) {
+        this.fTax = fTax;
+    }
+
+    public String getfTax() {
+        return fTax;
+    }
+
+    public void setfInvtel(String fInvtel) {
+        this.fInvtel = fInvtel;
+    }
+
+    public String getfInvtel() {
+        return fInvtel;
+    }
+
+    public void setfInvaddr(String fInvaddr) {
+        this.fInvaddr = fInvaddr;
+    }
+
+    public String getfInvaddr() {
+        return fInvaddr;
+    }
+
+    public void setfBankno(String fBankno) {
+        this.fBankno = fBankno;
+    }
+
+    public String getfBankno() {
+        return fBankno;
+    }
+
+    public void setfBankname(String fBankname) {
+        this.fBankname = fBankname;
+    }
+
+    public String getfBankname() {
+        return fBankname;
+    }
+
+    public void setfUbankno(String fUbankno) {
+        this.fUbankno = fUbankno;
+    }
+
+    public String getfUbankno() {
+        return fUbankno;
+    }
+
+    public void setfUbankname(String fUbankname) {
+        this.fUbankname = fUbankname;
+    }
+
+    public String getfUbankname() {
+        return fUbankname;
+    }
+
+    public void setfStatus(String fStatus) {
+        this.fStatus = fStatus;
+    }
+
+    public String getfStatus() {
+        return fStatus;
+    }
+
+    public void setDelFlag(String delFlag) {
+        this.delFlag = delFlag;
+    }
+
+    public String getDelFlag() {
+        return delFlag;
+    }
+
+    @Override
+    public String toString() {
+        return new ReflectionToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
+                .append("fId", getfId())
+                .append("fTypeid", getfTypeid())
+                .append("fNo", getfNo())
+                .append("fName", getfName())
+                .append("fCname", getfCname())
+                .append("fEname", getfEname())
+                .append("fTel", getfTel())
+                .append("fFax", getfFax())
+                .append("fEmail", getfEmail())
+                .append("fManage", getfManage())
+                .append("fAddr", getfAddr())
+                .append("fEaddr", getfEaddr())
+                .append("fScale", getfScale())
+                .append("fProvince", getfProvince())
+                .append("fCity", getfCity())
+                .append("fStltypeid", getfStltypeid())
+                .append("fStldays", getfStldays())
+                .append("fContractno", getfContractno())
+                .append("fContractb", getfContractb())
+                .append("fContracte", getfContracte())
+                .append("fTax", getfTax())
+                .append("fInvtel", getfInvtel())
+                .append("fInvaddr", getfInvaddr())
+                .append("fBankno", getfBankno())
+                .append("fBankname", getfBankname())
+                .append("fUbankno", getfUbankno())
+                .append("fUbankname", getfUbankname())
+                .append("fStatus", getfStatus())
+                .append("delFlag", getDelFlag())
+                .append("createBy", getCreateBy())
+                .append("createTime", getCreateTime())
+                .append("updateBy", getUpdateBy())
+                .append("updateTime", getUpdateTime())
+                .append("remark", getRemark())
+                .toString();
+    }
+}

+ 61 - 0
ruoyi-warehouse/src/main/java/com/ruoyi/basicData/mapper/TCorpsMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.basicData.mapper;
+
+import com.ruoyi.basicData.domain.TCorps;
+
+import java.util.List;
+
+/**
+ * 客户详情Mapper接口
+ *
+ * @author ruoyi
+ * @date 2020-12-10
+ */
+public interface TCorpsMapper {
+    /**
+     * 查询客户详情
+     *
+     * @param fId 客户详情ID
+     * @return 客户详情
+     */
+    public TCorps selectTCorpsById(Long fId);
+
+    /**
+     * 查询客户详情列表
+     *
+     * @param tCorps 客户详情
+     * @return 客户详情集合
+     */
+    public List<TCorps> selectTCorpsList(TCorps tCorps);
+
+    /**
+     * 新增客户详情
+     *
+     * @param tCorps 客户详情
+     * @return 结果
+     */
+    public int insertTCorps(TCorps tCorps);
+
+    /**
+     * 修改客户详情
+     *
+     * @param tCorps 客户详情
+     * @return 结果
+     */
+    public int updateTCorps(TCorps tCorps);
+
+    /**
+     * 删除客户详情
+     *
+     * @param fId 客户详情ID
+     * @return 结果
+     */
+    public int deleteTCorpsById(Long fId);
+
+    /**
+     * 批量删除客户详情
+     *
+     * @param fIds 需要删除的数据ID
+     * @return 结果
+     */
+    public int deleteTCorpsByIds(Long[] fIds);
+}

+ 61 - 0
ruoyi-warehouse/src/main/java/com/ruoyi/basicData/service/ITCorpsService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.basicData.service;
+
+import com.ruoyi.basicData.domain.TCorps;
+
+import java.util.List;
+
+/**
+ * 客户详情Service接口
+ *
+ * @author ruoyi
+ * @date 2020-12-10
+ */
+public interface ITCorpsService {
+    /**
+     * 查询客户详情
+     *
+     * @param fId 客户详情ID
+     * @return 客户详情
+     */
+    public TCorps selectTCorpsById(Long fId);
+
+    /**
+     * 查询客户详情列表
+     *
+     * @param tCorps 客户详情
+     * @return 客户详情集合
+     */
+    public List<TCorps> selectTCorpsList(TCorps tCorps);
+
+    /**
+     * 新增客户详情
+     *
+     * @param tCorps 客户详情
+     * @return 结果
+     */
+    public int insertTCorps(TCorps tCorps);
+
+    /**
+     * 修改客户详情
+     *
+     * @param tCorps 客户详情
+     * @return 结果
+     */
+    public int updateTCorps(TCorps tCorps);
+
+    /**
+     * 批量删除客户详情
+     *
+     * @param fIds 需要删除的客户详情ID
+     * @return 结果
+     */
+    public int deleteTCorpsByIds(Long[] fIds);
+
+    /**
+     * 删除客户详情信息
+     *
+     * @param fId 客户详情ID
+     * @return 结果
+     */
+    public int deleteTCorpsById(Long fId);
+}

+ 90 - 0
ruoyi-warehouse/src/main/java/com/ruoyi/basicData/service/impl/TCorpsServiceImpl.java

@@ -0,0 +1,90 @@
+package com.ruoyi.basicData.service.impl;
+
+import com.ruoyi.basicData.domain.TCorps;
+import com.ruoyi.basicData.mapper.TCorpsMapper;
+import com.ruoyi.basicData.service.ITCorpsService;
+import com.ruoyi.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+/**
+ * 客户详情Service业务层处理
+ *
+ * @author ruoyi
+ * @date 2020-12-10
+ */
+@Service
+public class TCorpsServiceImpl implements ITCorpsService {
+    @Autowired
+    private TCorpsMapper tCorpsMapper;
+
+    /**
+     * 查询客户详情
+     *
+     * @param fId 客户详情ID
+     * @return 客户详情
+     */
+    @Override
+    public TCorps selectTCorpsById(Long fId) {
+        return tCorpsMapper.selectTCorpsById(fId);
+    }
+
+    /**
+     * 查询客户详情列表
+     *
+     * @param tCorps 客户详情
+     * @return 客户详情
+     */
+    @Override
+    public List<TCorps> selectTCorpsList(TCorps tCorps) {
+        return tCorpsMapper.selectTCorpsList(tCorps);
+    }
+
+    /**
+     * 新增客户详情
+     *
+     * @param tCorps 客户详情
+     * @return 结果
+     */
+    @Override
+    public int insertTCorps(TCorps tCorps) {
+        tCorps.setCreateTime(DateUtils.getNowDate());
+        return tCorpsMapper.insertTCorps(tCorps);
+    }
+
+    /**
+     * 修改客户详情
+     *
+     * @param tCorps 客户详情
+     * @return 结果
+     */
+    @Override
+    public int updateTCorps(TCorps tCorps) {
+        tCorps.setUpdateTime(DateUtils.getNowDate());
+        return tCorpsMapper.updateTCorps(tCorps);
+    }
+
+    /**
+     * 批量删除客户详情
+     *
+     * @param fIds 需要删除的客户详情ID
+     * @return 结果
+     */
+    @Override
+    public int deleteTCorpsByIds(Long[] fIds) {
+        return tCorpsMapper.deleteTCorpsByIds(fIds);
+    }
+
+    /**
+     * 删除客户详情信息
+     *
+     * @param fId 客户详情ID
+     * @return 结果
+     */
+    @Override
+    public int deleteTCorpsById(Long fId) {
+        return tCorpsMapper.deleteTCorpsById(fId);
+    }
+}

+ 212 - 0
ruoyi-warehouse/src/main/resources/mapper/basicData/TCorpsMapper.xml

@@ -0,0 +1,212 @@
+<?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.ruoyi.basicData.mapper.TCorpsMapper">
+
+    <resultMap type="TCorps" id="TCorpsResult">
+        <result property="fId" column="f_id"/>
+        <result property="fTypeid" column="f_typeid"/>
+        <result property="fNo" column="f_no"/>
+        <result property="fName" column="f_name"/>
+        <result property="fCname" column="f_cname"/>
+        <result property="fEname" column="f_ename"/>
+        <result property="fTel" column="f_tel"/>
+        <result property="fFax" column="f_fax"/>
+        <result property="fEmail" column="f_email"/>
+        <result property="fManage" column="f_manage"/>
+        <result property="fAddr" column="f_addr"/>
+        <result property="fEaddr" column="f_eaddr"/>
+        <result property="fScale" column="f_scale"/>
+        <result property="fProvince" column="f_province"/>
+        <result property="fCity" column="f_city"/>
+        <result property="fStltypeid" column="f_stltypeid"/>
+        <result property="fStldays" column="f_stldays"/>
+        <result property="fContractno" column="f_contractno"/>
+        <result property="fContractb" column="f_contractb"/>
+        <result property="fContracte" column="f_contracte"/>
+        <result property="fTax" column="f_tax"/>
+        <result property="fInvtel" column="f_invtel"/>
+        <result property="fInvaddr" column="f_invaddr"/>
+        <result property="fBankno" column="f_bankno"/>
+        <result property="fBankname" column="f_bankname"/>
+        <result property="fUbankno" column="f_ubankno"/>
+        <result property="fUbankname" column="f_ubankname"/>
+        <result property="fStatus" column="f_status"/>
+        <result property="delFlag" column="del_flag"/>
+        <result property="createBy" column="create_by"/>
+        <result property="createTime" column="create_time"/>
+        <result property="updateBy" column="update_by"/>
+        <result property="updateTime" column="update_time"/>
+        <result property="remark" column="remark"/>
+    </resultMap>
+
+    <sql id="selectTCorpsVo">
+        select f_id, f_typeid, f_no, f_name, f_cname, f_ename, f_tel, f_fax, f_email, f_manage, f_addr, f_eaddr, f_scale, f_province, f_city, f_stltypeid, f_stldays, f_contractno, f_contractb, f_contracte, f_tax, f_invtel, f_invaddr, f_bankno, f_bankname, f_ubankno, f_ubankname, f_status, del_flag, create_by, create_time, update_by, update_time, remark from t_corps
+    </sql>
+
+    <select id="selectTCorpsList" parameterType="TCorps" resultMap="TCorpsResult">
+        <include refid="selectTCorpsVo"/>
+        <where>
+            <if test="fTypeid != null  and fTypeid != ''">and f_typeid = #{fTypeid}</if>
+            <if test="fNo != null  and fNo != ''">and f_no = #{fNo}</if>
+            <if test="fName != null  and fName != ''">and f_name like concat('%', #{fName}, '%')</if>
+            <if test="fCname != null  and fCname != ''">and f_cname like concat('%', #{fCname}, '%')</if>
+            <if test="fEname != null  and fEname != ''">and f_ename like concat('%', #{fEname}, '%')</if>
+            <if test="fTel != null  and fTel != ''">and f_tel = #{fTel}</if>
+            <if test="fFax != null  and fFax != ''">and f_fax = #{fFax}</if>
+            <if test="fEmail != null  and fEmail != ''">and f_email = #{fEmail}</if>
+            <if test="fManage != null  and fManage != ''">and f_manage = #{fManage}</if>
+            <if test="fAddr != null  and fAddr != ''">and f_addr = #{fAddr}</if>
+            <if test="fEaddr != null  and fEaddr != ''">and f_eaddr = #{fEaddr}</if>
+            <if test="fScale != null  and fScale != ''">and f_scale = #{fScale}</if>
+            <if test="fProvince != null  and fProvince != ''">and f_province = #{fProvince}</if>
+            <if test="fCity != null  and fCity != ''">and f_city = #{fCity}</if>
+            <if test="fStltypeid != null ">and f_stltypeid = #{fStltypeid}</if>
+            <if test="fStldays != null ">and f_stldays = #{fStldays}</if>
+            <if test="fContractno != null  and fContractno != ''">and f_contractno = #{fContractno}</if>
+            <if test="fContractb != null ">and f_contractb = #{fContractb}</if>
+            <if test="fContracte != null ">and f_contracte = #{fContracte}</if>
+            <if test="fTax != null  and fTax != ''">and f_tax = #{fTax}</if>
+            <if test="fInvtel != null  and fInvtel != ''">and f_invtel = #{fInvtel}</if>
+            <if test="fInvaddr != null  and fInvaddr != ''">and f_invaddr = #{fInvaddr}</if>
+            <if test="fBankno != null  and fBankno != ''">and f_bankno = #{fBankno}</if>
+            <if test="fBankname != null  and fBankname != ''">and f_bankname like concat('%', #{fBankname}, '%')</if>
+            <if test="fUbankno != null  and fUbankno != ''">and f_ubankno = #{fUbankno}</if>
+            <if test="fUbankname != null  and fUbankname != ''">and f_ubankname like concat('%', #{fUbankname}, '%')
+            </if>
+            <if test="fStatus != null  and fStatus != ''">and f_status = #{fStatus}</if>
+        </where>
+    </select>
+
+    <select id="selectTCorpsById" parameterType="Long" resultMap="TCorpsResult">
+        <include refid="selectTCorpsVo"/>
+        where f_id = #{fId}
+    </select>
+
+    <insert id="insertTCorps" parameterType="TCorps" useGeneratedKeys="true" keyProperty="fId">
+        insert into t_corps
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="fTypeid != null">f_typeid,</if>
+            <if test="fNo != null and fNo != ''">f_no,</if>
+            <if test="fName != null and fName != ''">f_name,</if>
+            <if test="fCname != null">f_cname,</if>
+            <if test="fEname != null">f_ename,</if>
+            <if test="fTel != null">f_tel,</if>
+            <if test="fFax != null">f_fax,</if>
+            <if test="fEmail != null">f_email,</if>
+            <if test="fManage != null">f_manage,</if>
+            <if test="fAddr != null">f_addr,</if>
+            <if test="fEaddr != null">f_eaddr,</if>
+            <if test="fScale != null">f_scale,</if>
+            <if test="fProvince != null">f_province,</if>
+            <if test="fCity != null">f_city,</if>
+            <if test="fStltypeid != null">f_stltypeid,</if>
+            <if test="fStldays != null">f_stldays,</if>
+            <if test="fContractno != null">f_contractno,</if>
+            <if test="fContractb != null">f_contractb,</if>
+            <if test="fContracte != null">f_contracte,</if>
+            <if test="fTax != null">f_tax,</if>
+            <if test="fInvtel != null">f_invtel,</if>
+            <if test="fInvaddr != null">f_invaddr,</if>
+            <if test="fBankno != null">f_bankno,</if>
+            <if test="fBankname != null">f_bankname,</if>
+            <if test="fUbankno != null">f_ubankno,</if>
+            <if test="fUbankname != null">f_ubankname,</if>
+            <if test="fStatus != null and fStatus != ''">f_status,</if>
+            <if test="delFlag != null">del_flag,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="fTypeid != null">#{fTypeid},</if>
+            <if test="fNo != null and fNo != ''">#{fNo},</if>
+            <if test="fName != null and fName != ''">#{fName},</if>
+            <if test="fCname != null">#{fCname},</if>
+            <if test="fEname != null">#{fEname},</if>
+            <if test="fTel != null">#{fTel},</if>
+            <if test="fFax != null">#{fFax},</if>
+            <if test="fEmail != null">#{fEmail},</if>
+            <if test="fManage != null">#{fManage},</if>
+            <if test="fAddr != null">#{fAddr},</if>
+            <if test="fEaddr != null">#{fEaddr},</if>
+            <if test="fScale != null">#{fScale},</if>
+            <if test="fProvince != null">#{fProvince},</if>
+            <if test="fCity != null">#{fCity},</if>
+            <if test="fStltypeid != null">#{fStltypeid},</if>
+            <if test="fStldays != null">#{fStldays},</if>
+            <if test="fContractno != null">#{fContractno},</if>
+            <if test="fContractb != null">#{fContractb},</if>
+            <if test="fContracte != null">#{fContracte},</if>
+            <if test="fTax != null">#{fTax},</if>
+            <if test="fInvtel != null">#{fInvtel},</if>
+            <if test="fInvaddr != null">#{fInvaddr},</if>
+            <if test="fBankno != null">#{fBankno},</if>
+            <if test="fBankname != null">#{fBankname},</if>
+            <if test="fUbankno != null">#{fUbankno},</if>
+            <if test="fUbankname != null">#{fUbankname},</if>
+            <if test="fStatus != null and fStatus != ''">#{fStatus},</if>
+            <if test="delFlag != null">#{delFlag},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+        </trim>
+    </insert>
+
+    <update id="updateTCorps" parameterType="TCorps">
+        update t_corps
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="fTypeid != null">f_typeid = #{fTypeid},</if>
+            <if test="fNo != null and fNo != ''">f_no = #{fNo},</if>
+            <if test="fName != null and fName != ''">f_name = #{fName},</if>
+            <if test="fCname != null">f_cname = #{fCname},</if>
+            <if test="fEname != null">f_ename = #{fEname},</if>
+            <if test="fTel != null">f_tel = #{fTel},</if>
+            <if test="fFax != null">f_fax = #{fFax},</if>
+            <if test="fEmail != null">f_email = #{fEmail},</if>
+            <if test="fManage != null">f_manage = #{fManage},</if>
+            <if test="fAddr != null">f_addr = #{fAddr},</if>
+            <if test="fEaddr != null">f_eaddr = #{fEaddr},</if>
+            <if test="fScale != null">f_scale = #{fScale},</if>
+            <if test="fProvince != null">f_province = #{fProvince},</if>
+            <if test="fCity != null">f_city = #{fCity},</if>
+            <if test="fStltypeid != null">f_stltypeid = #{fStltypeid},</if>
+            <if test="fStldays != null">f_stldays = #{fStldays},</if>
+            <if test="fContractno != null">f_contractno = #{fContractno},</if>
+            <if test="fContractb != null">f_contractb = #{fContractb},</if>
+            <if test="fContracte != null">f_contracte = #{fContracte},</if>
+            <if test="fTax != null">f_tax = #{fTax},</if>
+            <if test="fInvtel != null">f_invtel = #{fInvtel},</if>
+            <if test="fInvaddr != null">f_invaddr = #{fInvaddr},</if>
+            <if test="fBankno != null">f_bankno = #{fBankno},</if>
+            <if test="fBankname != null">f_bankname = #{fBankname},</if>
+            <if test="fUbankno != null">f_ubankno = #{fUbankno},</if>
+            <if test="fUbankname != null">f_ubankname = #{fUbankname},</if>
+            <if test="fStatus != null and fStatus != ''">f_status = #{fStatus},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where f_id = #{fId}
+    </update>
+
+    <delete id="deleteTCorpsById" parameterType="Long">
+        delete from t_corps where f_id = #{fId}
+    </delete>
+
+    <delete id="deleteTCorpsByIds" parameterType="String">
+        delete from t_corps where f_id in
+        <foreach item="fId" collection="array" open="(" separator="," close=")">
+            #{fId}
+        </foreach>
+    </delete>
+
+</mapper>