This commit is contained in:
xvv 2024-08-20 14:52:13 +08:00
parent 3301f249cc
commit a8a496a8f9
3 changed files with 8 additions and 3 deletions

View File

@ -1,5 +1,8 @@
package com.ruoyi.cms.domain; package com.ruoyi.cms.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
@ -17,6 +20,8 @@ public class Imitation extends BaseEntity
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ApiModelProperty("ID")
@TableId(value = "ID", type = IdType.AUTO)
/** 记录ID */ /** 记录ID */
private Long id; private Long id;

View File

@ -84,7 +84,7 @@ public class ImitationServiceImpl extends ServiceImpl<ImitationMapper, Imitation
baseMapper.insertImitation(imitation); baseMapper.insertImitation(imitation);
} }
return 0; return 1;
} }

View File

@ -13,7 +13,7 @@
<div class="img"> <div class="img">
<div class="yl-right" v-if="item.imitationType == 1" > 国一流</div> <div class="yl-right" v-if="item.imitationType == 1" > 国一流</div>
<div class="yl-right" v-if="item.imitationType == 2" > 省一流</div> <div class="yl-right" v-if="item.imitationType == 2" > 省一流</div>
<img :src=" imgurl + item.imitationImage" class="imgWO" style="width: 100%; height: 100% "> <img :src=" item.imitationImage" class="imgWO" style="width: 100%; height: 100% ">
</div> </div>
<div class="tt"> <div class="tt">
{{ item.imitationTitle }} {{ item.imitationTitle }}