Browse Source

积分记录代码生成

feature/syp_points
songyunpeng 5 years ago
parent
commit
48db4edc01
  1. 11
      esua-epdc/epdc-module/epdc-points/epdc-points-server/src/main/java/com/elink/esua/epdc/dao/PointsRuleDao.java
  2. 27
      esua-epdc/epdc-module/epdc-points/epdc-points-server/src/main/resources/mapper/PointsLogsDao.xml

11
esua-epdc/epdc-module/epdc-points/epdc-points-server/src/main/java/com/elink/esua/epdc/dao/PointsRuleDao.java

@ -18,6 +18,9 @@
package com.elink.esua.epdc.dao;
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao;
import com.elink.esua.epdc.dto.form.PointsLogsFormDTO;
import com.elink.esua.epdc.dto.result.BehaviorResultDto;
import com.elink.esua.epdc.dto.result.PointsLogsResultDTO;
import com.elink.esua.epdc.entity.PointsRuleEntity;
import org.apache.ibatis.annotations.Mapper;
@ -29,5 +32,13 @@ import org.apache.ibatis.annotations.Mapper;
*/
@Mapper
public interface PointsRuleDao extends BaseDao<PointsRuleEntity> {
/**
* @Description 根据动作编码获取动作信息
* @Author songyunpeng
* @Date 2020/4/28
* @Param []
* @return com.elink.esua.epdc.dto.result.BehaviorResultDto
**/
BehaviorResultDto getBehaviorCodeInfoByBehaviorCode(String behaviorCode);
}

27
esua-epdc/epdc-module/epdc-points/epdc-points-server/src/main/resources/mapper/PointsLogsDao.xml

@ -0,0 +1,27 @@
<?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.elink.esua.epdc.dao.PointsLogsDao">
<resultMap type="com.elink.esua.epdc.entity.PointsLogsEntity" id="pointsLogsMap">
<result property="id" column="ID"/>
<result property="userId" column="USER_ID"/>
<result property="referenceId" column="REFERENCE_ID"/>
<result property="ruleCode" column="RULE_CODE"/>
<result property="behaviorCode" column="BEHAVIOR_CODE"/>
<result property="operationType" column="OPERATION_TYPE"/>
<result property="points" column="POINTS"/>
<result property="operationDesc" column="OPERATION_DESC"/>
<result property="operationTime" column="OPERATION_TIME"/>
<result property="operationMode" column="OPERATION_MODE"/>
<result property="lavePoints" column="LAVE_POINTS"/>
<result property="revision" column="REVISION"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
</mapper>
Loading…
Cancel
Save