Browse Source

//creditLog

photo
xhxu 1 year ago
parent
commit
d88ab4bf7b
5 changed files with 145 additions and 1 deletions
  1. +1
    -0
      suimangCApi/src/main/java/com/iformall/controller/UserLiveController.java
  2. +61
    -0
      suimangService/src/main/java/com/iformall/domain/po/UserLevelCreditLog.java
  3. +12
    -0
      suimangService/src/main/java/com/iformall/mapper/UserLevelCreditLogMapper.java
  4. +0
    -1
      suimangService/src/main/java/com/iformall/service/impl/WxCUserAuthorityServiceImpl.java
  5. +71
    -0
      suimangService/src/main/resources/mapper/UserLevelCreditLogMapper.xml

+ 1
- 0
suimangCApi/src/main/java/com/iformall/controller/UserLiveController.java View File

@@ -77,6 +77,7 @@ public class UserLiveController extends BaseController {

@Autowired
private WxCUserAuthorityService wxCUserAuthorityService;

@Autowired
private VoiceInfoService voiceInfoService;



+ 61
- 0
suimangService/src/main/java/com/iformall/domain/po/UserLevelCreditLog.java View File

@@ -0,0 +1,61 @@
package com.iformall.domain.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.iformall.domain.po.base.TenantEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.Date;
import java.util.List;

@TableName(value = "user_level_credit_log")
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class UserLevelCreditLog extends TenantEntity {

protected Long id;

@io.swagger.annotations.ApiModelProperty(value="",name="userId")
private Long userId;

@io.swagger.annotations.ApiModelProperty(value="EnumProject ",name="projectType")
private Integer projectType;

@io.swagger.annotations.ApiModelProperty(value="EnumPropertyLogType ",name="type")
private Integer type;

@io.swagger.annotations.ApiModelProperty(value="",name="befourCredit")
private Integer befourCredit;

@io.swagger.annotations.ApiModelProperty(value="",name="cieditNum")
private Integer creditNum;

@io.swagger.annotations.ApiModelProperty(value="",name="afterCredit")
private Integer afterCredit;

@io.swagger.annotations.ApiModelProperty(value="记录对应的业务ID",name="extraId")
private Long extraId;

@io.swagger.annotations.ApiModelProperty(value="",name="remark")
private String remark;

@io.swagger.annotations.ApiModelProperty(value="",name="detail")
private String detail;

@io.swagger.annotations.ApiModelProperty(value="创建时间",name="createDate")
private Date createDate;

@TableField(exist = false)
@io.swagger.annotations.ApiModelProperty(value="",name="extraIds")
private List<Long> extraIds;

@TableField(exist = false)
private Date startDate;

@TableField(exist = false)
private Date endDate;

}

+ 12
- 0
suimangService/src/main/java/com/iformall/mapper/UserLevelCreditLogMapper.java View File

@@ -0,0 +1,12 @@
package com.iformall.mapper;

import com.iformall.common.CommonMapper;
import com.iformall.domain.po.UserLevelCreditLog;

import java.util.List;

public interface UserLevelCreditLogMapper extends CommonMapper<UserLevelCreditLog, Long>{
List<UserLevelCreditLog> findList(UserLevelCreditLog record);

}

+ 0
- 1
suimangService/src/main/java/com/iformall/service/impl/WxCUserAuthorityServiceImpl.java View File

@@ -20,7 +20,6 @@ public class WxCUserAuthorityServiceImpl implements WxCUserAuthorityService {
@Override
public Map<String, Object> getAuthor(Long id, String code, Integer type, Long resourceId) {

HashMap<String, Object> authorVos = new HashMap<>();
List<WxCUserAuthority> resultList = new ArrayList<WxCUserAuthority>();

if (type == 0) {


+ 71
- 0
suimangService/src/main/resources/mapper/UserLevelCreditLogMapper.xml View File

@@ -0,0 +1,71 @@
<?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.iformall.mapper.UserLevelCreditLogMapper">
<resultMap id="BaseResultMap" type="com.iformall.domain.po.UserLevelCreditLog">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="tenant_id" jdbcType="VARCHAR" property="tenantId" />
<result column="parent_tenant_id" jdbcType="VARCHAR" property="parentTenantId"/>
<result column="user_id" jdbcType="BIGINT" property="userId" />
<result column="project_type" jdbcType="INTEGER" property="projectType" />
<result column="type" jdbcType="INTEGER" property="type" />
<result column="befour_credit" jdbcType="INTEGER" property="befourCredit" />
<result column="credit_num" jdbcType="INTEGER" property="creditNum" />
<result column="after_credit" jdbcType="INTEGER" property="afterCredit" />
<result column="extra_id" jdbcType="BIGINT" property="extraId" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="detail" jdbcType="VARCHAR" property="detail" />
<result column="create_date" jdbcType="TIMESTAMP" property="createDate" />
</resultMap>
<sql id="allColumns">
`id`,`tenant_id`,`parent_tenant_id`,`user_id`,
`project_type`,`type`,`befour_credit`,`credit_num`,`after_credit`,
`extra_id`,`remark`,`detail`,`create_date`
</sql>

<sql id="dynamicWhereConditions">
where 1 = 1
<if test=" null != id "> and `id` = #{id} </if>
<if test=" null != tenantId and '' != tenantId">
and `tenant_id` = #{tenantId}
</if>
<if test=" null != parentTenantId and '' != parentTenantId">
and `parent_tenant_id` = #{parentTenantId}
</if>
<if test=" null != userId "> and `user_id` = #{userId} </if>
<if test=" null != projectType "> and `project_type` = #{projectType} </if>
<if test=" null != type "> and `type` = #{type} </if>

<if test=" null != extraId "> and `extra_id` = #{extraId} </if>


<if test=" null != startDate ">
and `create_date` &gt;= #{startDate}
</if>
<if test=" null != endDate">
and `create_date` &lt;= #{endDate}
</if>

<if test=" null != ids ">
and id in
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
#{idItem}
</foreach>
</if>

<if test=" null != extraIds ">
and extra_id in
<foreach collection="extraIds" index="index" item="extIdItem" open="(" separator="," close=")">
#{extIdItem}
</foreach>
</if>
<if test=" null != sortColumns"> order by ${sortColumns} </if>
</sql>

<select id="findList" parameterType="com.iformall.domain.po.UserLevelCreditLog" resultMap="BaseResultMap">
select <include refid="allColumns" />
from user_basic_property_log
<include refid="dynamicWhereConditions" />
</select>

</mapper>

Loading…
Cancel
Save