POM配置提交
This commit is contained in:
parent
411f26aadf
commit
28ffda3b06
|
|
@ -58,7 +58,7 @@
|
||||||
</appender>
|
</appender>
|
||||||
|
|
||||||
<!-- 系统模块日志级别控制 -->
|
<!-- 系统模块日志级别控制 -->
|
||||||
<logger name="com.bonus.sgzb" level="info" />
|
<logger name="com.bonus.zlpt" level="info" />
|
||||||
<!-- Spring日志级别控制 -->
|
<!-- Spring日志级别控制 -->
|
||||||
<logger name="org.springframework" level="warn" />
|
<logger name="org.springframework" level="warn" />
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@
|
||||||
</appender>
|
</appender>
|
||||||
|
|
||||||
<!-- 系统模块日志级别控制 -->
|
<!-- 系统模块日志级别控制 -->
|
||||||
<logger name="com.bonus.sgzb" level="info" />
|
<logger name="com.bonus.zlpt" level="info" />
|
||||||
<!-- Spring日志级别控制 -->
|
<!-- Spring日志级别控制 -->
|
||||||
<logger name="org.springframework" level="warn" />
|
<logger name="org.springframework" level="warn" />
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,87 @@
|
||||||
|
package com.bonus.zlpt.company.controller;
|
||||||
|
import com.bonus.zlpt.common.core.web.controller.BaseController;
|
||||||
|
import com.bonus.zlpt.common.core.web.domain.AjaxResult;
|
||||||
|
import com.bonus.zlpt.common.log.annotation.Log;
|
||||||
|
import com.bonus.zlpt.common.log.enums.BusinessType;
|
||||||
|
import com.bonus.zlpt.common.security.annotation.RequiresPermissions;
|
||||||
|
import com.bonus.zlpt.company.domain.BusinessOpen;
|
||||||
|
import com.bonus.zlpt.company.mapper.BusinessOpenMapper;
|
||||||
|
import com.bonus.zlpt.company.service.BusinessOpenService;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 业务开通表
|
||||||
|
* (BusinessOpen)表控制层
|
||||||
|
* @author 阮世耀
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/business_open")
|
||||||
|
public class BusinessOpenController extends BaseController {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 服务对象
|
||||||
|
*/
|
||||||
|
@Resource
|
||||||
|
private BusinessOpenService businessOpenService;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private BusinessOpenMapper businessOpenMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增 -- 业务开通
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:business:add")
|
||||||
|
@Log(title = "业务开通", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping("openBusiness")
|
||||||
|
public AjaxResult openBusiness(@RequestBody BusinessOpen obj) {
|
||||||
|
try {
|
||||||
|
return toAjax(businessOpenService.insertSelective(obj));
|
||||||
|
} catch (Exception e) {
|
||||||
|
return error(e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取业务开通列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:business:list")
|
||||||
|
@Log(title = "获取业务列表", businessType = BusinessType.OTHER)
|
||||||
|
@GetMapping("getBusinessList")
|
||||||
|
public AjaxResult getBusinessList(BusinessOpen record) {
|
||||||
|
try {
|
||||||
|
return success(getDataTable(businessOpenMapper.selectBusinessOpenList(record)));
|
||||||
|
} catch (Exception e) {
|
||||||
|
return error(e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询 -- 根据id获取开通记录信息
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:business:list")
|
||||||
|
@Log(title = "根据id获取开通记录信息", businessType = BusinessType.OTHER)
|
||||||
|
@GetMapping("selectById")
|
||||||
|
public AjaxResult selectById(Integer id) {
|
||||||
|
try {
|
||||||
|
return success(businessOpenService.selectByPrimaryKey(id));
|
||||||
|
} catch (Exception e) {
|
||||||
|
return error(e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过主键查询单条数据
|
||||||
|
*
|
||||||
|
* @param id 主键
|
||||||
|
* @return 单条数据
|
||||||
|
*/
|
||||||
|
@GetMapping("selectOne")
|
||||||
|
public BusinessOpen selectOne(Integer id) {
|
||||||
|
return businessOpenService.selectByPrimaryKey(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,74 @@
|
||||||
|
package com.bonus.zlpt.company.domain;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Description: 业务开通表
|
||||||
|
* @Author 阮世耀
|
||||||
|
* @Create 2023/12/2 15:37
|
||||||
|
* @Version 1.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 业务开通
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class BusinessOpen implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 4523755810983395619L;
|
||||||
|
|
||||||
|
private Integer id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户id
|
||||||
|
*/
|
||||||
|
private Integer userId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 企业id
|
||||||
|
*/
|
||||||
|
private Integer coId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 业务id
|
||||||
|
*/
|
||||||
|
private Integer businessId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 开通申请日期
|
||||||
|
*/
|
||||||
|
private String time;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 附件名称
|
||||||
|
*/
|
||||||
|
private String fileName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 附件地址
|
||||||
|
*/
|
||||||
|
private String fileUrl;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 审核人
|
||||||
|
*/
|
||||||
|
private String auditor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 审核日期
|
||||||
|
*/
|
||||||
|
private String auditTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 状态(0待审核,1通过,2驳回)
|
||||||
|
*/
|
||||||
|
private String status;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 审核备注
|
||||||
|
*/
|
||||||
|
private String auditRemark;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,30 @@
|
||||||
|
package com.bonus.zlpt.company.mapper;
|
||||||
|
|
||||||
|
import com.bonus.zlpt.company.domain.BusinessOpen;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Description: 业务开通表DAO层
|
||||||
|
* @Author 阮世耀
|
||||||
|
* @Create 2023/12/2 15:37
|
||||||
|
* @Version 1.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface BusinessOpenMapper {
|
||||||
|
int deleteByPrimaryKey(Integer id);
|
||||||
|
|
||||||
|
int insert(BusinessOpen record);
|
||||||
|
|
||||||
|
int insertSelective(BusinessOpen record);
|
||||||
|
|
||||||
|
BusinessOpen selectByPrimaryKey(Integer id);
|
||||||
|
|
||||||
|
List<BusinessOpen> selectBusinessOpenList(BusinessOpen record);
|
||||||
|
|
||||||
|
int updateByPrimaryKeySelective(BusinessOpen record);
|
||||||
|
|
||||||
|
int updateByPrimaryKey(BusinessOpen record);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,25 @@
|
||||||
|
package com.bonus.zlpt.company.service;
|
||||||
|
|
||||||
|
import com.bonus.zlpt.company.domain.BusinessOpen;
|
||||||
|
/**
|
||||||
|
* Description:
|
||||||
|
* @Author 阮世耀
|
||||||
|
* @Create 2023/12/2 15:37
|
||||||
|
* @Version 1.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
public interface BusinessOpenService{
|
||||||
|
|
||||||
|
int deleteByPrimaryKey(Integer id);
|
||||||
|
|
||||||
|
int insert(BusinessOpen record);
|
||||||
|
|
||||||
|
int insertSelective(BusinessOpen record);
|
||||||
|
|
||||||
|
BusinessOpen selectByPrimaryKey(Integer id);
|
||||||
|
|
||||||
|
int updateByPrimaryKeySelective(BusinessOpen record);
|
||||||
|
|
||||||
|
int updateByPrimaryKey(BusinessOpen record);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,51 @@
|
||||||
|
package com.bonus.zlpt.company.service.impl;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import com.bonus.zlpt.company.mapper.BusinessOpenMapper;
|
||||||
|
import com.bonus.zlpt.company.domain.BusinessOpen;
|
||||||
|
import com.bonus.zlpt.company.service.BusinessOpenService;
|
||||||
|
/**
|
||||||
|
* Description:
|
||||||
|
* @Author 阮世耀
|
||||||
|
* @Create 2023/12/2 15:37
|
||||||
|
* @Version 1.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Service
|
||||||
|
public class BusinessOpenServiceImpl implements BusinessOpenService{
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private BusinessOpenMapper businessOpenMapper;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int deleteByPrimaryKey(Integer id) {
|
||||||
|
return businessOpenMapper.deleteByPrimaryKey(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int insert(BusinessOpen record) {
|
||||||
|
return businessOpenMapper.insert(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int insertSelective(BusinessOpen record) {
|
||||||
|
return businessOpenMapper.insertSelective(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public BusinessOpen selectByPrimaryKey(Integer id) {
|
||||||
|
return businessOpenMapper.selectByPrimaryKey(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int updateByPrimaryKeySelective(BusinessOpen record) {
|
||||||
|
return businessOpenMapper.updateByPrimaryKeySelective(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int updateByPrimaryKey(BusinessOpen record) {
|
||||||
|
return businessOpenMapper.updateByPrimaryKey(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,184 @@
|
||||||
|
<?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.bonus.zlpt.company.mapper.BusinessOpenMapper">
|
||||||
|
<resultMap id="BaseResultMap" type="com.bonus.zlpt.company.domain.BusinessOpen">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
<!--@Table business_open-->
|
||||||
|
<id column="id" jdbcType="INTEGER" property="id" />
|
||||||
|
<result column="user_id" jdbcType="INTEGER" property="userId" />
|
||||||
|
<result column="co_id" jdbcType="INTEGER" property="coId" />
|
||||||
|
<result column="business_id" jdbcType="INTEGER" property="businessId" />
|
||||||
|
<result column="time" jdbcType="VARCHAR" property="time" />
|
||||||
|
<result column="file_name" jdbcType="VARCHAR" property="fileName" />
|
||||||
|
<result column="file_url" jdbcType="VARCHAR" property="fileUrl" />
|
||||||
|
<result column="auditor" jdbcType="VARCHAR" property="auditor" />
|
||||||
|
<result column="audit_time" jdbcType="VARCHAR" property="auditTime" />
|
||||||
|
<result column="status" jdbcType="VARCHAR" property="status" />
|
||||||
|
<result column="audit_remark" jdbcType="VARCHAR" property="auditRemark" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
id, user_id, co_id, business_id, `time`, file_name, file_url, auditor, audit_time,
|
||||||
|
`status`, audit_remark
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
select
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from business_open
|
||||||
|
where id = #{id,jdbcType=INTEGER}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
delete from business_open
|
||||||
|
where id = #{id,jdbcType=INTEGER}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<insert id="insert" parameterType="com.bonus.zlpt.company.domain.BusinessOpen">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
insert into business_open (id, user_id, co_id,
|
||||||
|
business_id, `time`, file_name,
|
||||||
|
file_url, auditor, audit_time,
|
||||||
|
`status`, audit_remark)
|
||||||
|
values (#{id,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{coId,jdbcType=INTEGER},
|
||||||
|
#{businessId,jdbcType=INTEGER}, #{time,jdbcType=VARCHAR}, #{fileName,jdbcType=VARCHAR},
|
||||||
|
#{fileUrl,jdbcType=VARCHAR}, #{auditor,jdbcType=VARCHAR}, #{auditTime,jdbcType=VARCHAR},
|
||||||
|
#{status,jdbcType=VARCHAR}, #{auditRemark,jdbcType=VARCHAR})
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<insert id="insertSelective" parameterType="com.bonus.zlpt.company.domain.BusinessOpen">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
insert into business_open
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">
|
||||||
|
id,
|
||||||
|
</if>
|
||||||
|
<if test="userId != null">
|
||||||
|
user_id,
|
||||||
|
</if>
|
||||||
|
<if test="coId != null">
|
||||||
|
co_id,
|
||||||
|
</if>
|
||||||
|
<if test="businessId != null">
|
||||||
|
business_id,
|
||||||
|
</if>
|
||||||
|
<if test="time != null and time != ''">
|
||||||
|
`time`,
|
||||||
|
</if>
|
||||||
|
<if test="fileName != null and fileName != ''">
|
||||||
|
file_name,
|
||||||
|
</if>
|
||||||
|
<if test="fileUrl != null and fileUrl != ''">
|
||||||
|
file_url,
|
||||||
|
</if>
|
||||||
|
<if test="auditor != null and auditor != ''">
|
||||||
|
auditor,
|
||||||
|
</if>
|
||||||
|
<if test="auditTime != null and auditTime != ''">
|
||||||
|
audit_time,
|
||||||
|
</if>
|
||||||
|
<if test="status != null and status != ''">
|
||||||
|
`status`,
|
||||||
|
</if>
|
||||||
|
<if test="auditRemark != null and auditRemark != ''">
|
||||||
|
audit_remark,
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">
|
||||||
|
#{id,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="userId != null">
|
||||||
|
#{userId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="coId != null">
|
||||||
|
#{coId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="businessId != null">
|
||||||
|
#{businessId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="time != null and time != ''">
|
||||||
|
#{time,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="fileName != null and fileName != ''">
|
||||||
|
#{fileName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="fileUrl != null and fileUrl != ''">
|
||||||
|
#{fileUrl,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="auditor != null and auditor != ''">
|
||||||
|
#{auditor,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="auditTime != null and auditTime != ''">
|
||||||
|
#{auditTime,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="status != null and status != ''">
|
||||||
|
#{status,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="auditRemark != null and auditRemark != ''">
|
||||||
|
#{auditRemark,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.bonus.zlpt.company.domain.BusinessOpen">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
update business_open
|
||||||
|
<set>
|
||||||
|
<if test="userId != null">
|
||||||
|
user_id = #{userId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="coId != null">
|
||||||
|
co_id = #{coId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="businessId != null">
|
||||||
|
business_id = #{businessId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="time != null and time != ''">
|
||||||
|
`time` = #{time,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="fileName != null and fileName != ''">
|
||||||
|
file_name = #{fileName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="fileUrl != null and fileUrl != ''">
|
||||||
|
file_url = #{fileUrl,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="auditor != null and auditor != ''">
|
||||||
|
auditor = #{auditor,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="auditTime != null and auditTime != ''">
|
||||||
|
audit_time = #{auditTime,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="status != null and status != ''">
|
||||||
|
`status` = #{status,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="auditRemark != null and auditRemark != ''">
|
||||||
|
audit_remark = #{auditRemark,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
where id = #{id,jdbcType=INTEGER}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<update id="updateByPrimaryKey" parameterType="com.bonus.zlpt.company.domain.BusinessOpen">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
update business_open
|
||||||
|
set user_id = #{userId,jdbcType=INTEGER},
|
||||||
|
co_id = #{coId,jdbcType=INTEGER},
|
||||||
|
business_id = #{businessId,jdbcType=INTEGER},
|
||||||
|
`time` = #{time,jdbcType=VARCHAR},
|
||||||
|
file_name = #{fileName,jdbcType=VARCHAR},
|
||||||
|
file_url = #{fileUrl,jdbcType=VARCHAR},
|
||||||
|
auditor = #{auditor,jdbcType=VARCHAR},
|
||||||
|
audit_time = #{auditTime,jdbcType=VARCHAR},
|
||||||
|
`status` = #{status,jdbcType=VARCHAR},
|
||||||
|
audit_remark = #{auditRemark,jdbcType=VARCHAR}
|
||||||
|
where id = #{id,jdbcType=INTEGER}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<select id="selectBusinessOpenList" resultMap="BaseResultMap">
|
||||||
|
select * from business_open
|
||||||
|
</select>
|
||||||
|
</mapper>
|
||||||
|
|
@ -58,7 +58,7 @@
|
||||||
</appender>
|
</appender>
|
||||||
|
|
||||||
<!-- 系统模块日志级别控制 -->
|
<!-- 系统模块日志级别控制 -->
|
||||||
<logger name="com.bonus.sgzb" level="info" />
|
<logger name="com.bonus.zlpt" level="info" />
|
||||||
<!-- Spring日志级别控制 -->
|
<!-- Spring日志级别控制 -->
|
||||||
<logger name="org.springframework" level="warn" />
|
<logger name="org.springframework" level="warn" />
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@
|
||||||
</appender>
|
</appender>
|
||||||
|
|
||||||
<!-- 系统模块日志级别控制 -->
|
<!-- 系统模块日志级别控制 -->
|
||||||
<logger name="com.bonus.sgzb" level="info" />
|
<logger name="com.bonus.zlpt" level="info" />
|
||||||
<!-- Spring日志级别控制 -->
|
<!-- Spring日志级别控制 -->
|
||||||
<logger name="org.springframework" level="warn" />
|
<logger name="org.springframework" level="warn" />
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue