重构 文档下载

This commit is contained in:
付庆吉
2021-05-10 11:04:31 +08:00
parent 514dbd25ac
commit 5614b2533c
9 changed files with 184 additions and 195 deletions

View File

@ -1,30 +1,26 @@
package com.chinaunicom.mall.ebtp.extend.bizbidnotice.dao; package com.chinaunicom.mall.ebtp.extend.bizbidnotice.dao;
import java.time.LocalDateTime;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.chinaunicom.mall.ebtp.common.base.dao.IBaseMapper; import com.chinaunicom.mall.ebtp.common.base.dao.IBaseMapper;
import com.chinaunicom.mall.ebtp.extend.bizbidnotice.entity.BizBidNotice; import com.chinaunicom.mall.ebtp.extend.bizbidnotice.entity.BizBidNotice;
import org.apache.ibatis.annotations.Param;
public interface BizBidNoticeMapper extends IBaseMapper<BizBidNotice> { public interface BizBidNoticeMapper extends IBaseMapper<BizBidNotice> {
// public int deleteOff(String id); // public int deleteOff(String id);
// public List<BizBidNotice> getList(@Param("noticeTitle")String noticeTitle,@Param("noticeName") String noticeName, @Param("createDate")LocalDateTime createDate,@Param("noticeRelease") String noticeRelease, @Param("pageIndex") Integer getPageNo,@Param("pageSize") Integer pageSize); // public List<BizBidNotice> getList(@Param("noticeTitle")String noticeTitle,@Param("noticeName") String noticeName, @Param("createDate")LocalDateTime createDate,@Param("noticeRelease") String noticeRelease, @Param("pageIndex") Integer getPageNo,@Param("pageSize") Integer pageSize);
// public List<BizBidNotice> getListByTitle(@Param("noticeTitle")String noticeTitle,@Param("pageIndex") Integer getPageNo,@Param("pageSize") Integer pageSize); // public List<BizBidNotice> getListByTitle(@Param("noticeTitle")String noticeTitle,@Param("pageIndex") Integer getPageNo,@Param("pageSize") Integer pageSize);
// public List<BizBidNotice> getAllList(@Param("noticeTitle")String noticeTitle,@Param("noticeName") String noticeName, @Param("createDate")LocalDateTime createDate,@Param("noticeRelease") String noticeRelease,@Param("pageIndex") Integer getPageNo,@Param("pageSize") Integer pageSize); // public List<BizBidNotice> getAllList(@Param("noticeTitle")String noticeTitle,@Param("noticeName") String noticeName, @Param("createDate")LocalDateTime createDate,@Param("noticeRelease") String noticeRelease,@Param("pageIndex") Integer getPageNo,@Param("pageSize") Integer pageSize);
// public List<BizBidNotice> getAllListByTitle(@Param("noticeTitle")String noticeTitle,@Param("pageIndex") Integer getPageNo,@Param("pageSize") Integer pageSize); // public List<BizBidNotice> getAllListByTitle(@Param("noticeTitle")String noticeTitle,@Param("pageIndex") Integer getPageNo,@Param("pageSize") Integer pageSize);
public Boolean fabu(@Param("id")String id); public Boolean fabu(@Param("id") String id);
public Boolean qxfabu(@Param("id")String id); public Boolean qxfabu(@Param("id") String id);
public Boolean top(@Param("id")String id); public Boolean top(@Param("id") String id);
public Boolean qxtop(@Param("id")String id); public Boolean qxtop(@Param("id") String id);
} }

View File

@ -2,130 +2,130 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.chinaunicom.mall.ebtp.extend.bizbidnotice.dao.BizBidNoticeMapper"> <mapper namespace="com.chinaunicom.mall.ebtp.extend.bizbidnotice.dao.BizBidNoticeMapper">
<resultMap id="BaseResultMap" <resultMap id="BaseResultMap"
type="com.chinaunicom.mall.ebtp.extend.bizbidnotice.entity.BizBidNotice"> type="com.chinaunicom.mall.ebtp.extend.bizbidnotice.entity.BizBidNotice">
<result column="id" jdbcType="BIGINT" property="id"/> <result column="id" jdbcType="BIGINT" property="id"/>
<result column="notice_name" jdbcType="VARCHAR" property="noticeName"/> <result column="notice_name" jdbcType="VARCHAR" property="noticeName"/>
<result column="notice_title" jdbcType="VARCHAR" property="noticeTitle"/> <result column="notice_title" jdbcType="VARCHAR" property="noticeTitle"/>
<result column="notice_content" jdbcType="VARCHAR" property="noticeContent"/> <result column="notice_content" jdbcType="VARCHAR" property="noticeContent"/>
<result column="notice_file" jdbcType="VARCHAR" property="noticeFile"/> <result column="notice_file" jdbcType="VARCHAR" property="noticeFile"/>
<result column="notice_release" jdbcType="VARCHAR" property="noticeRelease"/> <result column="notice_release" jdbcType="VARCHAR" property="noticeRelease"/>
<result column="notice_top" jdbcType="VARCHAR" property="noticeTop"/> <result column="notice_top" jdbcType="VARCHAR" property="noticeTop"/>
<result column="create_by" jdbcType="VARCHAR" property="createBy"/> <result column="create_by" jdbcType="VARCHAR" property="createBy"/>
<result column="create_date" jdbcType="TIMESTAMP" property="createDate"/> <result column="create_date" jdbcType="TIMESTAMP" property="createDate"/>
<result column="update_by" jdbcType="VARCHAR" property="updateBy"/> <result column="update_by" jdbcType="VARCHAR" property="updateBy"/>
<result column="update_date" jdbcType="TIMESTAMP" property="updateDate"/> <result column="update_date" jdbcType="TIMESTAMP" property="updateDate"/>
<result column="delete_flag" jdbcType="VARCHAR" property="deleteFlag"/> <result column="delete_flag" jdbcType="VARCHAR" property="deleteFlag"/>
<result column="tenant_id" jdbcType="VARCHAR" property="tenantId"/> <result column="tenant_id" jdbcType="VARCHAR" property="tenantId"/>
<result column="tenant_name" jdbcType="VARCHAR" property="tenantName"/> <result column="tenant_name" jdbcType="VARCHAR" property="tenantName"/>
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime"/> <result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime"/>
</resultMap> </resultMap>
<sql id="selectSzReplenishVo"> <sql id="selectSzReplenishVo">
select id,notice_name, notice_title, notice_content, notice_file,notice_release,notice_top, create_by, select id,notice_name, notice_title, notice_content, notice_file,notice_release,notice_top, create_by,
create_date, update_by, update_date,tenant_id,tenant_name,last_update_time, delete_flag from biz_bid_notice create_date, update_by, update_date,tenant_id,tenant_name,last_update_time, delete_flag from biz_bid_notice
</sql> </sql>
<!-- <select id="getList" resultMap="BaseResultMap">-->
<!-- <include refid="selectSzReplenishVo"/>-->
<!-- where-->
<!-- delete_flag = "normal" -->
<!-- <if test="null != noticeTitle and '' != noticeTitle">-->
<!-- and notice_title like '%${noticeTitle}%'-->
<!-- </if>-->
<!-- <if test="null != noticeName and '' != noticeName">-->
<!-- and notice_name like '%${noticeName}%'-->
<!-- </if>-->
<!-- and notice_release="open" -->
<!-- ORDER BY notice_top limit #{pageIndex},#{pageSize}-->
<!-- </select>-->
<!-- <select id="getListByTitle" resultMap="BaseResultMap">-->
<!-- <include refid="selectSzReplenishVo"/>-->
<!-- where-->
<!-- delete_flag = "normal" -->
<!-- -->
<!-- and notice_release="open" and notice_title like '%${noticeTitle}%' ORDER BY notice_top limit #{pageIndex},#{pageSize}-->
<!-- </select>-->
<!-- <select id="getAllList" resultMap="BaseResultMap">--> <!-- <select id="getList" resultMap="BaseResultMap">-->
<!-- <include refid="selectSzReplenishVo"/>--> <!-- <include refid="selectSzReplenishVo"/>-->
<!-- where--> <!-- where-->
<!-- delete_flag = "normal"--> <!-- delete_flag = "normal" -->
<!-- <if test="null != noticeTitle and '' != noticeTitle">--> <!-- <if test="null != noticeTitle and '' != noticeTitle">-->
<!-- and notice_title like '%${noticeTitle}%'--> <!-- and notice_title like '%${noticeTitle}%'-->
<!-- </if>--> <!-- </if>-->
<!-- <if test="null != noticeName and '' != noticeName">--> <!-- <if test="null != noticeName and '' != noticeName">-->
<!-- and notice_name like '%${noticeName}%'--> <!-- and notice_name like '%${noticeName}%'-->
<!-- </if>--> <!-- </if>-->
<!-- <if test="null != noticeRelease and '' != noticeRelease">--> <!-- and notice_release="open" -->
<!-- and notice_release = #{noticeRelease}--> <!-- ORDER BY notice_top limit #{pageIndex},#{pageSize}-->
<!-- </if>--> <!-- </select>-->
<!-- ORDER BY notice_top limit #{pageIndex},#{pageSize}-->
<!-- </select>-->
<!-- <select id="getAllListByTitle" resultMap="BaseResultMap">--> <!-- <select id="getListByTitle" resultMap="BaseResultMap">-->
<!-- <include refid="selectSzReplenishVo"/>--> <!-- <include refid="selectSzReplenishVo"/>-->
<!-- where--> <!-- where-->
<!-- delete_flag = "normal" and notice_title like '%${noticeTitle}%' ORDER BY notice_top limit #{pageIndex},#{pageSize}--> <!-- delete_flag = "normal" -->
<!-- </select>--> <!-- -->
<!-- and notice_release="open" and notice_title like '%${noticeTitle}%' ORDER BY notice_top limit #{pageIndex},#{pageSize}-->
<update id="delete" parameterType="com.chinaunicom.mall.ebtp.extend.bizbidnotice.entity.BizBidNotice"> <!-- </select>-->
<!-- <select id="getAllList" resultMap="BaseResultMap">-->
<!-- <include refid="selectSzReplenishVo"/>-->
<!-- where-->
<!-- delete_flag = "normal"-->
<!-- <if test="null != noticeTitle and '' != noticeTitle">-->
<!-- and notice_title like '%${noticeTitle}%'-->
<!-- </if>-->
<!-- <if test="null != noticeName and '' != noticeName">-->
<!-- and notice_name like '%${noticeName}%'-->
<!-- </if>-->
<!-- <if test="null != noticeRelease and '' != noticeRelease">-->
<!-- and notice_release = #{noticeRelease}-->
<!-- </if>-->
<!-- ORDER BY notice_top limit #{pageIndex},#{pageSize}-->
<!-- </select>-->
<!-- <select id="getAllListByTitle" resultMap="BaseResultMap">-->
<!-- <include refid="selectSzReplenishVo"/>-->
<!-- where-->
<!-- delete_flag = "normal" and notice_title like '%${noticeTitle}%' ORDER BY notice_top limit #{pageIndex},#{pageSize}-->
<!-- </select>-->
<update id="delete" parameterType="com.chinaunicom.mall.ebtp.extend.bizbidnotice.entity.BizBidNotice">
update biz_bid_notice update biz_bid_notice
set set
delete_flag="deleted" delete_flag="deleted"
where notice_id=#{notice_id} limit #{pageIndex},#{pageSize} where notice_id=#{notice_id} limit #{pageIndex},#{pageSize}
</update> </update>
<update id="fabu" parameterType="java.lang.String"> <update id="fabu" parameterType="java.lang.String">
update biz_bid_notice update biz_bid_notice
set set
notice_release="open" notice_release="open"
where id=#{id} where id=#{id}
</update> </update>
<update id="qxfabu" parameterType="java.lang.String"> <update id="qxfabu" parameterType="java.lang.String">
update biz_bid_notice update biz_bid_notice
set set
notice_release="close" notice_release="close"
where id=#{id} where id=#{id}
</update> </update>
<update id="top" parameterType="java.lang.String"> <update id="top" parameterType="java.lang.String">
update biz_bid_notice update biz_bid_notice
set set
notice_top="0" notice_top="0"
where id=#{id} where id=#{id}
</update> </update>
<update id="qxtop" parameterType="java.lang.String"> <update id="qxtop" parameterType="java.lang.String">
update biz_bid_notice update biz_bid_notice
set set
notice_top="1" notice_top="1"
where id=#{id} where id=#{id}
</update> </update>
<update id="update" parameterType="com.chinaunicom.mall.ebtp.extend.bizbidnotice.entity.BizBidNotice">
update biz_bid_notice
<trim prefix="SET" suffixOverrides=",">
<if test="notice_name != null">notice_name = #{noticeName},</if>
<if test="notice_title != null">notice_title = #{noticeTitle},</if>
<if test="notice_content != null">notice_content = #{noticeContent},</if>
<if test="notice_file != null">notice_file = #{noticeFile},</if>
<if test="notice_release != null">notice_release=#{noticeRelease}</if>
<if test="notice_top != null">notice_top=#{noticeTop}</if>
<if test="update_by != null">update_by = #{updatBy},</if>
<if test="update_date != null">update_date = #{updateDate},</if>
<if test="tenant_id != null">tenant_id = #{tenantId},</if>
<if test="tenant_name != null">tenant_name = #{tenantName},</if>
<if test="last_update_time != null">last_update_time = #{lastTpdateTime},</if>
</trim>
where ID=#{id}
</update>
<!--逻辑删除方法 此方法为代码生成器生成 不允许修改 如有特殊需求 请自行新建SQL语句-->
<update id="deleteOff" parameterType="java.lang.String"> <update id="update" parameterType="com.chinaunicom.mall.ebtp.extend.bizbidnotice.entity.BizBidNotice">
update biz_bid_notice
<trim prefix="SET" suffixOverrides=",">
<if test="notice_name != null">notice_name = #{noticeName},</if>
<if test="notice_title != null">notice_title = #{noticeTitle},</if>
<if test="notice_content != null">notice_content = #{noticeContent},</if>
<if test="notice_file != null">notice_file = #{noticeFile},</if>
<if test="notice_release != null">notice_release=#{noticeRelease}</if>
<if test="notice_top != null">notice_top=#{noticeTop}</if>
<if test="update_by != null">update_by = #{updatBy},</if>
<if test="update_date != null">update_date = #{updateDate},</if>
<if test="tenant_id != null">tenant_id = #{tenantId},</if>
<if test="tenant_name != null">tenant_name = #{tenantName},</if>
<if test="last_update_time != null">last_update_time = #{lastTpdateTime},</if>
</trim>
where ID=#{id}
</update>
<!--逻辑删除方法 此方法为代码生成器生成 不允许修改 如有特殊需求 请自行新建SQL语句-->
<update id="deleteOff" parameterType="java.lang.String">
update biz_bid_notice update biz_bid_notice
set set
delete_flag="deleted" delete_flag="deleted"

View File

@ -23,51 +23,51 @@ import java.io.Serializable;
@TableName(value = "biz_bid_notice", autoResultMap = true) @TableName(value = "biz_bid_notice", autoResultMap = true)
public class BizBidNotice extends BaseEntity implements Serializable { public class BizBidNotice extends BaseEntity implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* *
*/ */
@ApiModelProperty(value = "ID") @ApiModelProperty(value = "ID")
@TableId(value = "id", type = IdType.INPUT) @TableId(value = "id", type = IdType.INPUT)
private String id; private String id;
/** /**
* *
*/ */
@ApiModelProperty(value = "noticeName") @ApiModelProperty(value = "noticeName")
private String noticeName; private String noticeName;
/** /**
* 标题 * 标题
*/ */
@ApiModelProperty(value = "标题") @ApiModelProperty(value = "标题")
private String noticeTitle; private String noticeTitle;
/** /**
* 内容 * 内容
*/ */
@ApiModelProperty(value = "内容") @ApiModelProperty(value = "内容")
private String noticeContent; private String noticeContent;
/** /**
* 文件ID * 文件ID
*/ */
@ApiModelProperty(value = "文件ID") @ApiModelProperty(value = "文件ID")
private String noticeFile; private String noticeFile;
/** /**
* 是否发布 * 是否发布
*/ */
@ApiModelProperty(value = "是否发布") @ApiModelProperty(value = "是否发布")
private String noticeRelease; private String noticeRelease;
/** /**
* 是否置顶 * 是否置顶
*/ */
@ApiModelProperty(value = "是否置顶") @ApiModelProperty(value = "是否置顶")
private String noticeTop; private String noticeTop;
@ApiModelProperty("逻辑删除normal表示正常默认deleted表示删除") @ApiModelProperty("逻辑删除normal表示正常默认deleted表示删除")
@TableLogic @TableLogic
private String deleteFlag; private String deleteFlag;
} }

View File

@ -1,10 +1,5 @@
package com.chinaunicom.mall.ebtp.extend.bizbidnotice.entity; package com.chinaunicom.mall.ebtp.extend.bizbidnotice.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chinaunicom.mall.ebtp.common.base.entity.BaseEntity;
import com.chinaunicom.mall.ebtp.common.base.entity.BasePageRequest; import com.chinaunicom.mall.ebtp.common.base.entity.BasePageRequest;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
@ -26,49 +21,49 @@ import java.time.LocalDateTime;
@ApiModel @ApiModel
public class BizBidNoticeVO extends BasePageRequest implements Serializable { public class BizBidNoticeVO extends BasePageRequest implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* *
*/ */
@ApiModelProperty(value = "ID") @ApiModelProperty(value = "ID")
private String id; private String id;
/** /**
* *
*/ */
@ApiModelProperty(value = "noticeName") @ApiModelProperty(value = "noticeName")
private String noticeName; private String noticeName;
/** /**
* 标题 * 标题
*/ */
@ApiModelProperty(value = "标题") @ApiModelProperty(value = "标题")
private String noticeTitle; private String noticeTitle;
/** /**
* 内容 * 内容
*/ */
@ApiModelProperty(value = "内容") @ApiModelProperty(value = "内容")
private String noticeContent; private String noticeContent;
/** /**
* 文件ID * 文件ID
*/ */
@ApiModelProperty(value = "文件ID") @ApiModelProperty(value = "文件ID")
private String noticeFile; private String noticeFile;
/** /**
* 是否发布 * 是否发布
*/ */
@ApiModelProperty(value = "是否发布") @ApiModelProperty(value = "是否发布")
private String noticeRelease; private String noticeRelease;
/** /**
* 是否置顶 * 是否置顶
*/ */
@ApiModelProperty(value = "是否置顶") @ApiModelProperty(value = "是否置顶")
private String noticeTop; private String noticeTop;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime createDate; private LocalDateTime createDate;
} }

View File

@ -40,7 +40,8 @@ public class BizBidNoticeServiceImpl extends BaseServiceImpl<BizBidNoticeMapper,
wrapper.eq(BizBidNotice::getNoticeRelease, "open") wrapper.eq(BizBidNotice::getNoticeRelease, "open")
.like(StrUtil.isNotEmpty(bizBidNotice.getNoticeTitle()), BizBidNotice::getNoticeTitle, bizBidNotice.getNoticeTitle()) .like(StrUtil.isNotEmpty(bizBidNotice.getNoticeTitle()), BizBidNotice::getNoticeTitle, bizBidNotice.getNoticeTitle())
.like(StrUtil.isNotEmpty(bizBidNotice.getNoticeName()), BizBidNotice::getNoticeName, bizBidNotice.getNoticeName()) .like(StrUtil.isNotEmpty(bizBidNotice.getNoticeName()), BizBidNotice::getNoticeName, bizBidNotice.getNoticeName())
.orderByAsc(BizBidNotice::getNoticeTop); .orderByDesc(BizBidNotice::getCreateDate);
if (bizBidNotice.getCreateDate() != null) { if (bizBidNotice.getCreateDate() != null) {
wrapper.between(BizBidNotice::getCreateDate, bizBidNotice.getCreateDate(), bizBidNotice.getCreateDate().plusDays(1L)); wrapper.between(BizBidNotice::getCreateDate, bizBidNotice.getCreateDate(), bizBidNotice.getCreateDate().plusDays(1L));
@ -57,7 +58,9 @@ public class BizBidNoticeServiceImpl extends BaseServiceImpl<BizBidNoticeMapper,
wrapper.eq(StrUtil.isNotEmpty(bizBidNotice.getNoticeRelease()), BizBidNotice::getNoticeRelease, bizBidNotice.getNoticeRelease()) wrapper.eq(StrUtil.isNotEmpty(bizBidNotice.getNoticeRelease()), BizBidNotice::getNoticeRelease, bizBidNotice.getNoticeRelease())
.like(StrUtil.isNotEmpty(bizBidNotice.getNoticeTitle()), BizBidNotice::getNoticeTitle, bizBidNotice.getNoticeTitle()) .like(StrUtil.isNotEmpty(bizBidNotice.getNoticeTitle()), BizBidNotice::getNoticeTitle, bizBidNotice.getNoticeTitle())
.like(StrUtil.isNotEmpty(bizBidNotice.getNoticeName()), BizBidNotice::getNoticeName, bizBidNotice.getNoticeName()) .like(StrUtil.isNotEmpty(bizBidNotice.getNoticeName()), BizBidNotice::getNoticeName, bizBidNotice.getNoticeName())
.orderByAsc(BizBidNotice::getNoticeTop); .orderByAsc(BizBidNotice::getNoticeTop)
.orderByDesc(BizBidNotice::getUpdateDate)
.orderByDesc(BizBidNotice::getCreateDate);
IPage<BizBidNotice> page = this.page(new Page<>(bizBidNotice.getPageNo(), bizBidNotice.getPageSize()), wrapper); IPage<BizBidNotice> page = this.page(new Page<>(bizBidNotice.getPageNo(), bizBidNotice.getPageSize()), wrapper);
listRelease(page.getRecords()); listRelease(page.getRecords());

View File

@ -11,7 +11,6 @@ import com.chinaunicom.ebtp.mall.cloud.attachment.sdk.api.AttachmentClient;
import com.chinaunicom.ebtp.mall.cloud.attachment.sdk.model.AttachmentDetail; import com.chinaunicom.ebtp.mall.cloud.attachment.sdk.model.AttachmentDetail;
import com.chinaunicom.ebtp.mall.cloud.attachment.sdk.model.AttachmentEntity; import com.chinaunicom.ebtp.mall.cloud.attachment.sdk.model.AttachmentEntity;
import com.chinaunicom.mall.ebtp.common.base.service.impl.BaseServiceImpl; import com.chinaunicom.mall.ebtp.common.base.service.impl.BaseServiceImpl;
import com.chinaunicom.mall.ebtp.extend.bizbidnotice.entity.BizBidNotice;
import com.chinaunicom.mall.ebtp.extend.bizbidshared.dao.BizBidSharedMapper; import com.chinaunicom.mall.ebtp.extend.bizbidshared.dao.BizBidSharedMapper;
import com.chinaunicom.mall.ebtp.extend.bizbidshared.entity.BizBidShared; import com.chinaunicom.mall.ebtp.extend.bizbidshared.entity.BizBidShared;
import com.chinaunicom.mall.ebtp.extend.bizbidshared.entity.BizBidSharedVO; import com.chinaunicom.mall.ebtp.extend.bizbidshared.entity.BizBidSharedVO;

View File

@ -6,7 +6,6 @@ import com.chinaunicom.mall.ebtp.common.base.entity.BaseResponse;
import com.chinaunicom.mall.ebtp.common.base.service.IBaseCacheUserService; import com.chinaunicom.mall.ebtp.common.base.service.IBaseCacheUserService;
import com.chinaunicom.mall.ebtp.common.util.PropertyUtils; import com.chinaunicom.mall.ebtp.common.util.PropertyUtils;
import com.chinaunicom.mall.ebtp.extend.bizbidshared.entity.BizBidShared; import com.chinaunicom.mall.ebtp.extend.bizbidshared.entity.BizBidShared;
import com.chinaunicom.mall.ebtp.extend.bizbidshared.service.IBizBidSharedService;
import com.chinaunicom.mall.ebtp.extend.bizbidsharedrecord.entity.BizBidSharedRecord; import com.chinaunicom.mall.ebtp.extend.bizbidsharedrecord.entity.BizBidSharedRecord;
import com.chinaunicom.mall.ebtp.extend.bizbidsharedrecord.entity.BizBidSharedRecordVO; import com.chinaunicom.mall.ebtp.extend.bizbidsharedrecord.entity.BizBidSharedRecordVO;
import com.chinaunicom.mall.ebtp.extend.bizbidsharedrecord.service.IBizBidSharedRecordService; import com.chinaunicom.mall.ebtp.extend.bizbidsharedrecord.service.IBizBidSharedRecordService;
@ -60,7 +59,7 @@ public class BizBidSharedRecordController {
bizBidSharedRecord.setRecordId(bizBidShared.getId()); bizBidSharedRecord.setRecordId(bizBidShared.getId());
bizBidSharedRecord.setRecordAccount(cacheUser.getLoginName()); bizBidSharedRecord.setRecordAccount(cacheUser.getLoginName());
bizBidSharedRecord.setRecordName(cacheUser.getFullName()); bizBidSharedRecord.setRecordName(cacheUser.getFullName());
bizBidSharedRecord.setRecordRole(cacheUser.getRoleIds()); bizBidSharedRecord.setRecordRole(cacheUser.getCurrentRoleCode());
bizBidSharedRecord.setRecordStaff(cacheUser.getUserId()); bizBidSharedRecord.setRecordStaff(cacheUser.getUserId());
boolean save = ibizBidSharedRecordService.save(bizBidSharedRecord); boolean save = ibizBidSharedRecordService.save(bizBidSharedRecord);

View File

@ -71,5 +71,4 @@ public class BizBidSharedRecord extends BaseEntity implements Serializable {
private String recordAccount; private String recordAccount;
} }

View File

@ -1,8 +1,6 @@
package com.chinaunicom.mall.ebtp.extend.bizbidsharedrecord.entity; package com.chinaunicom.mall.ebtp.extend.bizbidsharedrecord.entity;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chinaunicom.mall.ebtp.common.base.entity.BaseEntity;
import com.chinaunicom.mall.ebtp.common.base.entity.BasePageRequest; import com.chinaunicom.mall.ebtp.common.base.entity.BasePageRequest;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;