见习教师目录
This commit is contained in:
parent
18fd453789
commit
4f0c00ddd0
@ -0,0 +1,103 @@
|
||||
package com.ruoyi.web.controller.jxjs;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.jxjs.domain.TsbzJdx;
|
||||
import com.ruoyi.jxjs.service.ITsbzJdxService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 基地校Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2020-08-20
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/jxjs/jdx")
|
||||
public class TsbzJdxController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ITsbzJdxService tsbzJdxService;
|
||||
|
||||
/**
|
||||
* 查询基地校列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:jdx:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(TsbzJdx tsbzJdx)
|
||||
{
|
||||
startPage();
|
||||
List<TsbzJdx> list = tsbzJdxService.selectTsbzJdxList(tsbzJdx);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出基地校列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:jdx:export')")
|
||||
@Log(title = "基地校", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(TsbzJdx tsbzJdx)
|
||||
{
|
||||
List<TsbzJdx> list = tsbzJdxService.selectTsbzJdxList(tsbzJdx);
|
||||
ExcelUtil<TsbzJdx> util = new ExcelUtil<TsbzJdx>(TsbzJdx.class);
|
||||
return util.exportExcel(list, "jdx");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取基地校详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:jdx:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") String id)
|
||||
{
|
||||
return AjaxResult.success(tsbzJdxService.selectTsbzJdxById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增基地校
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:jdx:add')")
|
||||
@Log(title = "基地校", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody TsbzJdx tsbzJdx)
|
||||
{
|
||||
return toAjax(tsbzJdxService.insertTsbzJdx(tsbzJdx));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改基地校
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:jdx:edit')")
|
||||
@Log(title = "基地校", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody TsbzJdx tsbzJdx)
|
||||
{
|
||||
return toAjax(tsbzJdxService.updateTsbzJdx(tsbzJdx));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除基地校
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:jdx:remove')")
|
||||
@Log(title = "基地校", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable String[] ids)
|
||||
{
|
||||
return toAjax(tsbzJdxService.deleteTsbzJdxByIds(ids));
|
||||
}
|
||||
}
|
122
ruoyi-system/src/main/java/com/ruoyi/jxjs/domain/TsbzJdx.java
Normal file
122
ruoyi-system/src/main/java/com/ruoyi/jxjs/domain/TsbzJdx.java
Normal file
@ -0,0 +1,122 @@
|
||||
package com.ruoyi.jxjs.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 基地校对象 tsbz_jdx
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2020-08-20
|
||||
*/
|
||||
public class TsbzJdx extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 标识 */
|
||||
private String id;
|
||||
|
||||
/** 基地校其他系统id */
|
||||
@Excel(name = "基地校其他系统id")
|
||||
private String otherid;
|
||||
|
||||
/** 基地校名称 */
|
||||
@Excel(name = "基地校名称")
|
||||
private String jdxmc;
|
||||
|
||||
/** 学校类别 */
|
||||
@Excel(name = "学校类别")
|
||||
private String xxlb;
|
||||
|
||||
/** 办学类型 */
|
||||
@Excel(name = "办学类型")
|
||||
private String bxlx;
|
||||
|
||||
/** 学校办别 */
|
||||
@Excel(name = "学校办别")
|
||||
private String xxbb;
|
||||
|
||||
/** 基地校年份 */
|
||||
@Excel(name = "基地校年份")
|
||||
private String jdxnf;
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setOtherid(String otherid)
|
||||
{
|
||||
this.otherid = otherid;
|
||||
}
|
||||
|
||||
public String getOtherid()
|
||||
{
|
||||
return otherid;
|
||||
}
|
||||
public void setJdxmc(String jdxmc)
|
||||
{
|
||||
this.jdxmc = jdxmc;
|
||||
}
|
||||
|
||||
public String getJdxmc()
|
||||
{
|
||||
return jdxmc;
|
||||
}
|
||||
public void setXxlb(String xxlb)
|
||||
{
|
||||
this.xxlb = xxlb;
|
||||
}
|
||||
|
||||
public String getXxlb()
|
||||
{
|
||||
return xxlb;
|
||||
}
|
||||
public void setBxlx(String bxlx)
|
||||
{
|
||||
this.bxlx = bxlx;
|
||||
}
|
||||
|
||||
public String getBxlx()
|
||||
{
|
||||
return bxlx;
|
||||
}
|
||||
public void setXxbb(String xxbb)
|
||||
{
|
||||
this.xxbb = xxbb;
|
||||
}
|
||||
|
||||
public String getXxbb()
|
||||
{
|
||||
return xxbb;
|
||||
}
|
||||
public void setJdxnf(String jdxnf)
|
||||
{
|
||||
this.jdxnf = jdxnf;
|
||||
}
|
||||
|
||||
public String getJdxnf()
|
||||
{
|
||||
return jdxnf;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("otherid", getOtherid())
|
||||
.append("jdxmc", getJdxmc())
|
||||
.append("xxlb", getXxlb())
|
||||
.append("bxlx", getBxlx())
|
||||
.append("xxbb", getXxbb())
|
||||
.append("jdxnf", getJdxnf())
|
||||
.append("createTime", getCreateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.jxjs.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.jxjs.domain.TsbzJdx;
|
||||
|
||||
/**
|
||||
* 基地校Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2020-08-20
|
||||
*/
|
||||
public interface TsbzJdxMapper
|
||||
{
|
||||
/**
|
||||
* 查询基地校
|
||||
*
|
||||
* @param id 基地校ID
|
||||
* @return 基地校
|
||||
*/
|
||||
public TsbzJdx selectTsbzJdxById(String id);
|
||||
|
||||
/**
|
||||
* 查询基地校列表
|
||||
*
|
||||
* @param tsbzJdx 基地校
|
||||
* @return 基地校集合
|
||||
*/
|
||||
public List<TsbzJdx> selectTsbzJdxList(TsbzJdx tsbzJdx);
|
||||
|
||||
/**
|
||||
* 新增基地校
|
||||
*
|
||||
* @param tsbzJdx 基地校
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertTsbzJdx(TsbzJdx tsbzJdx);
|
||||
|
||||
/**
|
||||
* 修改基地校
|
||||
*
|
||||
* @param tsbzJdx 基地校
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateTsbzJdx(TsbzJdx tsbzJdx);
|
||||
|
||||
/**
|
||||
* 删除基地校
|
||||
*
|
||||
* @param id 基地校ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTsbzJdxById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除基地校
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTsbzJdxByIds(String[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.jxjs.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.jxjs.domain.TsbzJdx;
|
||||
|
||||
/**
|
||||
* 基地校Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2020-08-20
|
||||
*/
|
||||
public interface ITsbzJdxService
|
||||
{
|
||||
/**
|
||||
* 查询基地校
|
||||
*
|
||||
* @param id 基地校ID
|
||||
* @return 基地校
|
||||
*/
|
||||
public TsbzJdx selectTsbzJdxById(String id);
|
||||
|
||||
/**
|
||||
* 查询基地校列表
|
||||
*
|
||||
* @param tsbzJdx 基地校
|
||||
* @return 基地校集合
|
||||
*/
|
||||
public List<TsbzJdx> selectTsbzJdxList(TsbzJdx tsbzJdx);
|
||||
|
||||
/**
|
||||
* 新增基地校
|
||||
*
|
||||
* @param tsbzJdx 基地校
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertTsbzJdx(TsbzJdx tsbzJdx);
|
||||
|
||||
/**
|
||||
* 修改基地校
|
||||
*
|
||||
* @param tsbzJdx 基地校
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateTsbzJdx(TsbzJdx tsbzJdx);
|
||||
|
||||
/**
|
||||
* 批量删除基地校
|
||||
*
|
||||
* @param ids 需要删除的基地校ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTsbzJdxByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 删除基地校信息
|
||||
*
|
||||
* @param id 基地校ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTsbzJdxById(String id);
|
||||
}
|
@ -0,0 +1,95 @@
|
||||
package com.ruoyi.jxjs.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.jxjs.mapper.TsbzJdxMapper;
|
||||
import com.ruoyi.jxjs.domain.TsbzJdx;
|
||||
import com.ruoyi.jxjs.service.ITsbzJdxService;
|
||||
|
||||
/**
|
||||
* 基地校Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2020-08-20
|
||||
*/
|
||||
@Service
|
||||
public class TsbzJdxServiceImpl implements ITsbzJdxService
|
||||
{
|
||||
@Autowired
|
||||
private TsbzJdxMapper tsbzJdxMapper;
|
||||
|
||||
/**
|
||||
* 查询基地校
|
||||
*
|
||||
* @param id 基地校ID
|
||||
* @return 基地校
|
||||
*/
|
||||
@Override
|
||||
public TsbzJdx selectTsbzJdxById(String id)
|
||||
{
|
||||
return tsbzJdxMapper.selectTsbzJdxById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询基地校列表
|
||||
*
|
||||
* @param tsbzJdx 基地校
|
||||
* @return 基地校
|
||||
*/
|
||||
@Override
|
||||
public List<TsbzJdx> selectTsbzJdxList(TsbzJdx tsbzJdx)
|
||||
{
|
||||
return tsbzJdxMapper.selectTsbzJdxList(tsbzJdx);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增基地校
|
||||
*
|
||||
* @param tsbzJdx 基地校
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertTsbzJdx(TsbzJdx tsbzJdx)
|
||||
{
|
||||
tsbzJdx.setCreateTime(DateUtils.getNowDate());
|
||||
return tsbzJdxMapper.insertTsbzJdx(tsbzJdx);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改基地校
|
||||
*
|
||||
* @param tsbzJdx 基地校
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateTsbzJdx(TsbzJdx tsbzJdx)
|
||||
{
|
||||
return tsbzJdxMapper.updateTsbzJdx(tsbzJdx);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除基地校
|
||||
*
|
||||
* @param ids 需要删除的基地校ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteTsbzJdxByIds(String[] ids)
|
||||
{
|
||||
return tsbzJdxMapper.deleteTsbzJdxByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除基地校信息
|
||||
*
|
||||
* @param id 基地校ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteTsbzJdxById(String id)
|
||||
{
|
||||
return tsbzJdxMapper.deleteTsbzJdxById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,88 @@
|
||||
<?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.ruoyi.jxjs.mapper.TsbzJdxMapper">
|
||||
|
||||
<resultMap type="TsbzJdx" id="TsbzJdxResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="otherid" column="otherid" />
|
||||
<result property="jdxmc" column="jdxmc" />
|
||||
<result property="xxlb" column="xxlb" />
|
||||
<result property="bxlx" column="bxlx" />
|
||||
<result property="xxbb" column="xxbb" />
|
||||
<result property="jdxnf" column="jdxnf" />
|
||||
<result property="createTime" column="create_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTsbzJdxVo">
|
||||
select id, otherid, jdxmc, xxlb, bxlx, xxbb, jdxnf, create_time from tsbz_jdx
|
||||
</sql>
|
||||
|
||||
<select id="selectTsbzJdxList" parameterType="TsbzJdx" resultMap="TsbzJdxResult">
|
||||
<include refid="selectTsbzJdxVo"/>
|
||||
<where>
|
||||
<if test="otherid != null and otherid != ''"> and otherid = #{otherid}</if>
|
||||
<if test="jdxmc != null and jdxmc != ''"> and jdxmc = #{jdxmc}</if>
|
||||
<if test="xxlb != null and xxlb != ''"> and xxlb = #{xxlb}</if>
|
||||
<if test="bxlx != null and bxlx != ''"> and bxlx = #{bxlx}</if>
|
||||
<if test="xxbb != null and xxbb != ''"> and xxbb = #{xxbb}</if>
|
||||
<if test="jdxnf != null and jdxnf != ''"> and jdxnf = #{jdxnf}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectTsbzJdxById" parameterType="String" resultMap="TsbzJdxResult">
|
||||
<include refid="selectTsbzJdxVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertTsbzJdx" parameterType="TsbzJdx">
|
||||
insert into tsbz_jdx
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="otherid != null">otherid,</if>
|
||||
<if test="jdxmc != null">jdxmc,</if>
|
||||
<if test="xxlb != null">xxlb,</if>
|
||||
<if test="bxlx != null">bxlx,</if>
|
||||
<if test="xxbb != null">xxbb,</if>
|
||||
<if test="jdxnf != null">jdxnf,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="otherid != null">#{otherid},</if>
|
||||
<if test="jdxmc != null">#{jdxmc},</if>
|
||||
<if test="xxlb != null">#{xxlb},</if>
|
||||
<if test="bxlx != null">#{bxlx},</if>
|
||||
<if test="xxbb != null">#{xxbb},</if>
|
||||
<if test="jdxnf != null">#{jdxnf},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateTsbzJdx" parameterType="TsbzJdx">
|
||||
update tsbz_jdx
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="otherid != null">otherid = #{otherid},</if>
|
||||
<if test="jdxmc != null">jdxmc = #{jdxmc},</if>
|
||||
<if test="xxlb != null">xxlb = #{xxlb},</if>
|
||||
<if test="bxlx != null">bxlx = #{bxlx},</if>
|
||||
<if test="xxbb != null">xxbb = #{xxbb},</if>
|
||||
<if test="jdxnf != null">jdxnf = #{jdxnf},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteTsbzJdxById" parameterType="String">
|
||||
delete from tsbz_jdx where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteTsbzJdxByIds" parameterType="String">
|
||||
delete from tsbz_jdx where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
Loading…
x
Reference in New Issue
Block a user