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;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@ -8,7 +11,7 @@ import com.ruoyi.common.core.domain.BaseEntity;
/**
* 虚仿真课对象 imitation
*
*
* @author 点亮信息
* @date 2024-08-02
*/
@ -17,6 +20,8 @@ public class Imitation extends BaseEntity
{
private static final long serialVersionUID = 1L;
@ApiModelProperty("ID")
@TableId(value = "ID", type = IdType.AUTO)
/** 记录ID */
private Long id;

View File

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

View File

@ -13,7 +13,7 @@
<div class="img">
<div class="yl-right" v-if="item.imitationType == 1" > 国一流</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 class="tt">
{{ item.imitationTitle }}