From 5b00aad739f76e6f0c6ae60cb6de79dbf3bbc7a1 Mon Sep 17 00:00:00 2001 From: paidaxing444 <12qwaszx> Date: Sun, 23 Aug 2020 17:11:08 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=A2=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/jxjs/TsbzJdcxController.java | 28 +- .../controller/jxjs/TsbzJxzxmdController.java | 97 ++++++ .../java/com/ruoyi/jxjs/domain/TsbzJdcx.java | 312 +++++++++-------- .../com/ruoyi/jxjs/domain/TsbzJxzxmd.java | 82 +++++ .../ruoyi/jxjs/mapper/TsbzJxzxmdMapper.java | 61 ++++ .../jxjs/service/ITsbzJxzxmdService.java | 61 ++++ .../service/impl/TsbzJxzxmdServiceImpl.java | 95 ++++++ .../resources/mapper/jxjs/TsbzJdcxMapper.xml | 7 +- .../mapper/jxjs/TsbzJxzxmdMapper.xml | 71 ++++ ruoyi-ui/src/views/jxjs/msqr/index.vue | 321 +++++------------- 10 files changed, 752 insertions(+), 383 deletions(-) create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/jxjs/TsbzJxzxmdController.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/jxjs/domain/TsbzJxzxmd.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/jxjs/mapper/TsbzJxzxmdMapper.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/jxjs/service/ITsbzJxzxmdService.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/jxjs/service/impl/TsbzJxzxmdServiceImpl.java create mode 100644 ruoyi-system/src/main/resources/mapper/jxjs/TsbzJxzxmdMapper.xml diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/jxjs/TsbzJdcxController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/jxjs/TsbzJdcxController.java index 01025beef..af6f8c856 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/jxjs/TsbzJdcxController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/jxjs/TsbzJdcxController.java @@ -1,8 +1,12 @@ package com.ruoyi.web.controller.jxjs; +import java.text.SimpleDateFormat; +import java.util.Date; import java.util.List; import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.jxjs.domain.TsbzJxzxmd; +import com.ruoyi.jxjs.service.ITsbzJxzxmdService; import com.ruoyi.web.controller.common.SchoolCommonController; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.beans.factory.annotation.Autowired; @@ -36,6 +40,8 @@ public class TsbzJdcxController extends BaseController { private ITsbzJdcxService tsbzJdcxService; @Autowired private SchoolCommonController schoolCommonController; + @Autowired + private ITsbzJxzxmdService tsbzJxzxmdService; /** * 查询基地区级审核列表 @@ -100,7 +106,27 @@ public class TsbzJdcxController extends BaseController { @Log(title = "基地区级审核", businessType = BusinessType.UPDATE) @PutMapping public AjaxResult edit(@RequestBody TsbzJdcx tsbzJdcx) { - tsbzJdcx.setQjshr(SecurityUtils.getLoginUser().getUser().getUserId()); + + //区级审核人 + if (tsbzJdcx.getQjshr() != null && tsbzJdcx.getQjshr().equals(2)) { + tsbzJdcx.setQjshr(SecurityUtils.getLoginUser().getUser().getUserId()); + } + + //如果lqzt为1,则代表录取成功,则在见习名单表插入一条记录 + if (tsbzJdcx.getLqzt().equals("1")) { + SimpleDateFormat sdf = new SimpleDateFormat("yyyy"); + Date date = new Date(); + System.out.println("year=" + sdf.format(date)); + + TsbzJxzxmd tsbzJxzxmd = new TsbzJxzxmd(); + + tsbzJxzxmd.setJsid(tsbzJdcx.getJsid()); + tsbzJxzxmd.setNf(sdf.format(date)); + tsbzJxzxmd.setCreateuserid(SecurityUtils.getLoginUser().getUser().getUserId()); + + tsbzJxzxmdService.insertTsbzJxzxmd(tsbzJxzxmd); + } + return toAjax(tsbzJdcxService.updateTsbzJdcx(tsbzJdcx)); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/jxjs/TsbzJxzxmdController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/jxjs/TsbzJxzxmdController.java new file mode 100644 index 000000000..05a4ffade --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/jxjs/TsbzJxzxmdController.java @@ -0,0 +1,97 @@ +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.TsbzJxzxmd; +import com.ruoyi.jxjs.service.ITsbzJxzxmdService; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 见习之星名单Controller + * + * @author ruoyi + * @date 2020-08-23 + */ +@RestController +@RequestMapping("/jxjs/jxzxmd") +public class TsbzJxzxmdController extends BaseController { + @Autowired + private ITsbzJxzxmdService tsbzJxzxmdService; + + /** + * 查询见习之星名单列表 + */ + @PreAuthorize("@ss.hasPermi('jxjs:jxzxmd:list')") + @GetMapping("/list") + public TableDataInfo list(TsbzJxzxmd tsbzJxzxmd) { + startPage(); + List list = tsbzJxzxmdService.selectTsbzJxzxmdList(tsbzJxzxmd); + return getDataTable(list); + } + + /** + * 导出见习之星名单列表 + */ + @PreAuthorize("@ss.hasPermi('jxjs:jxzxmd:export')") + @Log(title = "见习之星名单", businessType = BusinessType.EXPORT) + @GetMapping("/export") + public AjaxResult export(TsbzJxzxmd tsbzJxzxmd) { + List list = tsbzJxzxmdService.selectTsbzJxzxmdList(tsbzJxzxmd); + ExcelUtil util = new ExcelUtil(TsbzJxzxmd.class); + return util.exportExcel(list, "jxzxmd"); + } + + /** + * 获取见习之星名单详细信息 + */ + @PreAuthorize("@ss.hasPermi('jxjs:jxzxmd:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) { + return AjaxResult.success(tsbzJxzxmdService.selectTsbzJxzxmdById(id)); + } + + /** + * 新增见习之星名单 + */ + @PreAuthorize("@ss.hasPermi('jxjs:jxzxmd:add')") + @Log(title = "见习之星名单", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody TsbzJxzxmd tsbzJxzxmd) { + return toAjax(tsbzJxzxmdService.insertTsbzJxzxmd(tsbzJxzxmd)); + } + + /** + * 修改见习之星名单 + */ + @PreAuthorize("@ss.hasPermi('jxjs:jxzxmd:edit')") + @Log(title = "见习之星名单", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody TsbzJxzxmd tsbzJxzxmd) { + return toAjax(tsbzJxzxmdService.updateTsbzJxzxmd(tsbzJxzxmd)); + } + + /** + * 删除见习之星名单 + */ + @PreAuthorize("@ss.hasPermi('jxjs:jxzxmd:remove')") + @Log(title = "见习之星名单", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) { + return toAjax(tsbzJxzxmdService.deleteTsbzJxzxmdByIds(ids)); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/jxjs/domain/TsbzJdcx.java b/ruoyi-system/src/main/java/com/ruoyi/jxjs/domain/TsbzJdcx.java index 5a597095d..5fcfeb2d9 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/jxjs/domain/TsbzJdcx.java +++ b/ruoyi-system/src/main/java/com/ruoyi/jxjs/domain/TsbzJdcx.java @@ -2,6 +2,7 @@ package com.ruoyi.jxjs.domain; import java.math.BigDecimal; import java.util.Date; + import com.fasterxml.jackson.annotation.JsonFormat; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; @@ -10,328 +11,363 @@ import com.ruoyi.common.core.domain.BaseEntity; /** * 基地区级审核对象 tsbz_jdcx - * + * * @author ruoyi * @date 2020-08-20 */ -public class TsbzJdcx extends BaseEntity -{ +public class TsbzJdcx extends BaseEntity { private static final long serialVersionUID = 1L; - /** 编号 */ + /** + * 编号 + */ private Long id; - /** 方案编号 */ + /** + * 方案编号 + */ @Excel(name = "方案编号") private Long faid; - /** 教师编号 */ + /** + * 教师编号 + */ @Excel(name = "教师编号") private Long jsid; - /** 当前状态 */ + /** + * 当前状态 + */ @Excel(name = "当前状态") private String dqzt; - /** 创建人 */ + /** + * 创建人 + */ @Excel(name = "创建人") private Long createuserid; - /** 基地校审核人 */ + /** + * 基地校审核人 + */ @Excel(name = "基地校审核人") private Long jdxshr; - /** 基地校审核状态 */ + /** + * 基地校审核状态 + */ @Excel(name = "基地校审核状态") private String jdxshzt; - /** 上报理由 */ + /** + * 上报理由 + */ @Excel(name = "上报理由") private String sbly; - /** 区级审核人 */ + /** + * 区级审核人 + */ @Excel(name = "区级审核人") private Long qjshr; - /** 区级审核状态 */ + /** + * 区级审核状态 + */ @Excel(name = "区级审核状态") private String qjshzt; - /** 区级审核意见 */ + /** + * 区级审核意见 + */ @Excel(name = "区级审核意见") private String qjshyj; - /** 基地排序 */ + /** + * 基地排序 + */ @Excel(name = "基地排序") private Long jdpx; - /** 案例分析得分 */ + /** + * 案例分析得分 + */ @Excel(name = "案例分析得分") private BigDecimal alfxdf; - /** 教案设计得分 */ + /** + * 教案设计得分 + */ @Excel(name = "教案设计得分") private BigDecimal jasjdf; - /** 钢笔字得分 */ + /** + * 钢笔字得分 + */ @Excel(name = "钢笔字得分") private BigDecimal gbzdf; - /** 综合得分 */ + /** + * 综合得分 + */ @Excel(name = "综合得分") private BigDecimal zhdf; - /** 成绩导入创建时间 */ + /** + * 成绩导入创建时间 + */ @JsonFormat(pattern = "yyyy-MM-dd") @Excel(name = "成绩导入创建时间", width = 30, dateFormat = "yyyy-MM-dd") private Date cjdrcreateTime; - /** 面试确认 */ + /** + * 面试确认 + */ @Excel(name = "面试确认") private String msqr; - /** 面试确认时间 */ + /** + * 面试确认时间 + */ @JsonFormat(pattern = "yyyy-MM-dd") @Excel(name = "面试确认时间", width = 30, dateFormat = "yyyy-MM-dd") private Date msqrcreateTime; - /** 面试结果模拟课堂教学 */ + /** + * 面试结果模拟课堂教学 + */ @Excel(name = "面试结果模拟课堂教学") private BigDecimal msjgmnktjxdf; - /** 演讲得分 */ + /** + * 演讲得分 + */ @Excel(name = "演讲得分") private BigDecimal yjdf; - /** 综合得分2 */ + /** + * 综合得分2 + */ @Excel(name = "综合得分2") private BigDecimal zhdf2; - public void setId(Long id) - { + /** + * 录取状态 + */ + @Excel(name = "录取状态") + private String lqzt; + + public void setId(Long id) { this.id = id; } - public Long getId() - { + public Long getId() { return id; } - public void setFaid(Long faid) - { + + public void setFaid(Long faid) { this.faid = faid; } - public Long getFaid() - { + public Long getFaid() { return faid; } - public void setJsid(Long jsid) - { + + public void setJsid(Long jsid) { this.jsid = jsid; } - public Long getJsid() - { + public Long getJsid() { return jsid; } - public void setDqzt(String dqzt) - { + + public void setDqzt(String dqzt) { this.dqzt = dqzt; } - public String getDqzt() - { + public String getDqzt() { return dqzt; } - public void setCreateuserid(Long createuserid) - { + + public void setCreateuserid(Long createuserid) { this.createuserid = createuserid; } - public Long getCreateuserid() - { + public Long getCreateuserid() { return createuserid; } - public void setJdxshr(Long jdxshr) - { + + public void setJdxshr(Long jdxshr) { this.jdxshr = jdxshr; } - public Long getJdxshr() - { + public Long getJdxshr() { return jdxshr; } - public void setJdxshzt(String jdxshzt) - { + + public void setJdxshzt(String jdxshzt) { this.jdxshzt = jdxshzt; } - public String getJdxshzt() - { + public String getJdxshzt() { return jdxshzt; } - public void setSbly(String sbly) - { + + public void setSbly(String sbly) { this.sbly = sbly; } - public String getSbly() - { + public String getSbly() { return sbly; } - public void setQjshr(Long qjshr) - { + + public void setQjshr(Long qjshr) { this.qjshr = qjshr; } - public Long getQjshr() - { + public Long getQjshr() { return qjshr; } - public void setQjshzt(String qjshzt) - { + + public void setQjshzt(String qjshzt) { this.qjshzt = qjshzt; } - public String getQjshzt() - { + public String getQjshzt() { return qjshzt; } - public void setQjshyj(String qjshyj) - { + + public void setQjshyj(String qjshyj) { this.qjshyj = qjshyj; } - public String getQjshyj() - { + public String getQjshyj() { return qjshyj; } - public void setJdpx(Long jdpx) - { + + public void setJdpx(Long jdpx) { this.jdpx = jdpx; } - public Long getJdpx() - { + public Long getJdpx() { return jdpx; } - public void setAlfxdf(BigDecimal alfxdf) - { + + public void setAlfxdf(BigDecimal alfxdf) { this.alfxdf = alfxdf; } - public BigDecimal getAlfxdf() - { + public BigDecimal getAlfxdf() { return alfxdf; } - public void setJasjdf(BigDecimal jasjdf) - { + + public void setJasjdf(BigDecimal jasjdf) { this.jasjdf = jasjdf; } - public BigDecimal getJasjdf() - { + public BigDecimal getJasjdf() { return jasjdf; } - public void setGbzdf(BigDecimal gbzdf) - { + + public void setGbzdf(BigDecimal gbzdf) { this.gbzdf = gbzdf; } - public BigDecimal getGbzdf() - { + public BigDecimal getGbzdf() { return gbzdf; } - public void setZhdf(BigDecimal zhdf) - { + + public void setZhdf(BigDecimal zhdf) { this.zhdf = zhdf; } - public BigDecimal getZhdf() - { + public BigDecimal getZhdf() { return zhdf; } - public void setCjdrcreateTime(Date cjdrcreateTime) - { + + public void setCjdrcreateTime(Date cjdrcreateTime) { this.cjdrcreateTime = cjdrcreateTime; } - public Date getCjdrcreateTime() - { + public Date getCjdrcreateTime() { return cjdrcreateTime; } - public void setMsqr(String msqr) - { + + public void setMsqr(String msqr) { this.msqr = msqr; } - public String getMsqr() - { + public String getMsqr() { return msqr; } - public void setMsqrcreateTime(Date msqrcreateTime) - { + + public void setMsqrcreateTime(Date msqrcreateTime) { this.msqrcreateTime = msqrcreateTime; } - public Date getMsqrcreateTime() - { + public Date getMsqrcreateTime() { return msqrcreateTime; } - public void setMsjgmnktjxdf(BigDecimal msjgmnktjxdf) - { + + public void setMsjgmnktjxdf(BigDecimal msjgmnktjxdf) { this.msjgmnktjxdf = msjgmnktjxdf; } - public BigDecimal getMsjgmnktjxdf() - { + public BigDecimal getMsjgmnktjxdf() { return msjgmnktjxdf; } - public void setYjdf(BigDecimal yjdf) - { + + public void setYjdf(BigDecimal yjdf) { this.yjdf = yjdf; } - public BigDecimal getYjdf() - { + public BigDecimal getYjdf() { return yjdf; } - public void setZhdf2(BigDecimal zhdf2) - { + + public void setZhdf2(BigDecimal zhdf2) { this.zhdf2 = zhdf2; } - public BigDecimal getZhdf2() - { + public BigDecimal getZhdf2() { return zhdf2; } + public void setLqzt(String lqzt) { + this.lqzt = lqzt; + } + + public String getLqzt() { + return lqzt; + } + @Override public String toString() { - return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) - .append("id", getId()) - .append("faid", getFaid()) - .append("jsid", getJsid()) - .append("dqzt", getDqzt()) - .append("createuserid", getCreateuserid()) - .append("createTime", getCreateTime()) - .append("jdxshr", getJdxshr()) - .append("jdxshzt", getJdxshzt()) - .append("sbly", getSbly()) - .append("qjshr", getQjshr()) - .append("qjshzt", getQjshzt()) - .append("qjshyj", getQjshyj()) - .append("jdpx", getJdpx()) - .append("alfxdf", getAlfxdf()) - .append("jasjdf", getJasjdf()) - .append("gbzdf", getGbzdf()) - .append("zhdf", getZhdf()) - .append("cjdrcreateTime", getCjdrcreateTime()) - .append("msqr", getMsqr()) - .append("msqrcreateTime", getMsqrcreateTime()) - .append("msjgmnktjxdf", getMsjgmnktjxdf()) - .append("yjdf", getYjdf()) - .append("zhdf2", getZhdf2()) - .toString(); + return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("faid", getFaid()) + .append("jsid", getJsid()) + .append("dqzt", getDqzt()) + .append("createuserid", getCreateuserid()) + .append("createTime", getCreateTime()) + .append("jdxshr", getJdxshr()) + .append("jdxshzt", getJdxshzt()) + .append("sbly", getSbly()) + .append("qjshr", getQjshr()) + .append("qjshzt", getQjshzt()) + .append("qjshyj", getQjshyj()) + .append("jdpx", getJdpx()) + .append("alfxdf", getAlfxdf()) + .append("jasjdf", getJasjdf()) + .append("gbzdf", getGbzdf()) + .append("zhdf", getZhdf()) + .append("cjdrcreateTime", getCjdrcreateTime()) + .append("msqr", getMsqr()) + .append("msqrcreateTime", getMsqrcreateTime()) + .append("msjgmnktjxdf", getMsjgmnktjxdf()) + .append("yjdf", getYjdf()) + .append("zhdf2", getZhdf2()) + .append("lqzt", getLqzt()) + .toString(); } } diff --git a/ruoyi-system/src/main/java/com/ruoyi/jxjs/domain/TsbzJxzxmd.java b/ruoyi-system/src/main/java/com/ruoyi/jxjs/domain/TsbzJxzxmd.java new file mode 100644 index 000000000..0e180693d --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/jxjs/domain/TsbzJxzxmd.java @@ -0,0 +1,82 @@ +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_jxzxmd + * + * @author ruoyi + * @date 2020-08-23 + */ +public class TsbzJxzxmd extends BaseEntity { + private static final long serialVersionUID = 1L; + + /** + * 编号 + */ + private Long id; + + /** + * 教师id + */ + @Excel(name = "教师id") + private Long jsid; + + /** + * 年份 + */ + @Excel(name = "年份") + private String nf; + + /** + * 创建人 + */ + @Excel(name = "创建人") + private Long createuserid; + + public void setId(Long id) { + this.id = id; + } + + public Long getId() { + return id; + } + + public void setJsid(Long jsid) { + this.jsid = jsid; + } + + public Long getJsid() { + return jsid; + } + + public void setNf(String nf) { + this.nf = nf; + } + + public String getNf() { + return nf; + } + + public void setCreateuserid(Long createuserid) { + this.createuserid = createuserid; + } + + public Long getCreateuserid() { + return createuserid; + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("jsid", getJsid()) + .append("nf", getNf()) + .append("createuserid", getCreateuserid()) + .append("createTime", getCreateTime()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/jxjs/mapper/TsbzJxzxmdMapper.java b/ruoyi-system/src/main/java/com/ruoyi/jxjs/mapper/TsbzJxzxmdMapper.java new file mode 100644 index 000000000..97d5e1afb --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/jxjs/mapper/TsbzJxzxmdMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.jxjs.mapper; + +import java.util.List; + +import com.ruoyi.jxjs.domain.TsbzJxzxmd; + +/** + * 见习之星名单Mapper接口 + * + * @author ruoyi + * @date 2020-08-23 + */ +public interface TsbzJxzxmdMapper { + /** + * 查询见习之星名单 + * + * @param id 见习之星名单ID + * @return 见习之星名单 + */ + public TsbzJxzxmd selectTsbzJxzxmdById(Long id); + + /** + * 查询见习之星名单列表 + * + * @param tsbzJxzxmd 见习之星名单 + * @return 见习之星名单集合 + */ + public List selectTsbzJxzxmdList(TsbzJxzxmd tsbzJxzxmd); + + /** + * 新增见习之星名单 + * + * @param tsbzJxzxmd 见习之星名单 + * @return 结果 + */ + public int insertTsbzJxzxmd(TsbzJxzxmd tsbzJxzxmd); + + /** + * 修改见习之星名单 + * + * @param tsbzJxzxmd 见习之星名单 + * @return 结果 + */ + public int updateTsbzJxzxmd(TsbzJxzxmd tsbzJxzxmd); + + /** + * 删除见习之星名单 + * + * @param id 见习之星名单ID + * @return 结果 + */ + public int deleteTsbzJxzxmdById(Long id); + + /** + * 批量删除见习之星名单 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteTsbzJxzxmdByIds(Long[] ids); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/jxjs/service/ITsbzJxzxmdService.java b/ruoyi-system/src/main/java/com/ruoyi/jxjs/service/ITsbzJxzxmdService.java new file mode 100644 index 000000000..fa5782e8a --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/jxjs/service/ITsbzJxzxmdService.java @@ -0,0 +1,61 @@ +package com.ruoyi.jxjs.service; + +import java.util.List; +import com.ruoyi.jxjs.domain.TsbzJxzxmd; + +/** + * 见习之星名单Service接口 + * + * @author ruoyi + * @date 2020-08-23 + */ +public interface ITsbzJxzxmdService +{ + /** + * 查询见习之星名单 + * + * @param id 见习之星名单ID + * @return 见习之星名单 + */ + public TsbzJxzxmd selectTsbzJxzxmdById(Long id); + + /** + * 查询见习之星名单列表 + * + * @param tsbzJxzxmd 见习之星名单 + * @return 见习之星名单集合 + */ + public List selectTsbzJxzxmdList(TsbzJxzxmd tsbzJxzxmd); + + /** + * 新增见习之星名单 + * + * @param tsbzJxzxmd 见习之星名单 + * @return 结果 + */ + public int insertTsbzJxzxmd(TsbzJxzxmd tsbzJxzxmd); + + /** + * 修改见习之星名单 + * + * @param tsbzJxzxmd 见习之星名单 + * @return 结果 + */ + public int updateTsbzJxzxmd(TsbzJxzxmd tsbzJxzxmd); + + /** + * 批量删除见习之星名单 + * + * @param ids 需要删除的见习之星名单ID + * @return 结果 + */ + public int deleteTsbzJxzxmdByIds(Long[] ids); + + /** + * 删除见习之星名单信息 + * + * @param id 见习之星名单ID + * @return 结果 + */ + public int deleteTsbzJxzxmdById(Long id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/jxjs/service/impl/TsbzJxzxmdServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/jxjs/service/impl/TsbzJxzxmdServiceImpl.java new file mode 100644 index 000000000..4b9ea498e --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/jxjs/service/impl/TsbzJxzxmdServiceImpl.java @@ -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.TsbzJxzxmdMapper; +import com.ruoyi.jxjs.domain.TsbzJxzxmd; +import com.ruoyi.jxjs.service.ITsbzJxzxmdService; + +/** + * 见习之星名单Service业务层处理 + * + * @author ruoyi + * @date 2020-08-23 + */ +@Service +public class TsbzJxzxmdServiceImpl implements ITsbzJxzxmdService +{ + @Autowired + private TsbzJxzxmdMapper tsbzJxzxmdMapper; + + /** + * 查询见习之星名单 + * + * @param id 见习之星名单ID + * @return 见习之星名单 + */ + @Override + public TsbzJxzxmd selectTsbzJxzxmdById(Long id) + { + return tsbzJxzxmdMapper.selectTsbzJxzxmdById(id); + } + + /** + * 查询见习之星名单列表 + * + * @param tsbzJxzxmd 见习之星名单 + * @return 见习之星名单 + */ + @Override + public List selectTsbzJxzxmdList(TsbzJxzxmd tsbzJxzxmd) + { + return tsbzJxzxmdMapper.selectTsbzJxzxmdList(tsbzJxzxmd); + } + + /** + * 新增见习之星名单 + * + * @param tsbzJxzxmd 见习之星名单 + * @return 结果 + */ + @Override + public int insertTsbzJxzxmd(TsbzJxzxmd tsbzJxzxmd) + { + tsbzJxzxmd.setCreateTime(DateUtils.getNowDate()); + return tsbzJxzxmdMapper.insertTsbzJxzxmd(tsbzJxzxmd); + } + + /** + * 修改见习之星名单 + * + * @param tsbzJxzxmd 见习之星名单 + * @return 结果 + */ + @Override + public int updateTsbzJxzxmd(TsbzJxzxmd tsbzJxzxmd) + { + return tsbzJxzxmdMapper.updateTsbzJxzxmd(tsbzJxzxmd); + } + + /** + * 批量删除见习之星名单 + * + * @param ids 需要删除的见习之星名单ID + * @return 结果 + */ + @Override + public int deleteTsbzJxzxmdByIds(Long[] ids) + { + return tsbzJxzxmdMapper.deleteTsbzJxzxmdByIds(ids); + } + + /** + * 删除见习之星名单信息 + * + * @param id 见习之星名单ID + * @return 结果 + */ + @Override + public int deleteTsbzJxzxmdById(Long id) + { + return tsbzJxzxmdMapper.deleteTsbzJxzxmdById(id); + } +} diff --git a/ruoyi-system/src/main/resources/mapper/jxjs/TsbzJdcxMapper.xml b/ruoyi-system/src/main/resources/mapper/jxjs/TsbzJdcxMapper.xml index fb12eebf5..d4a459abe 100644 --- a/ruoyi-system/src/main/resources/mapper/jxjs/TsbzJdcxMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/jxjs/TsbzJdcxMapper.xml @@ -28,10 +28,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + - select id, faid, jsid, dqzt, createuserid, create_time, jdxshr, jdxshzt, sbly, qjshr, qjshzt, qjshyj, jdpx, alfxdf, jasjdf, gbzdf, zhdf, cjdrcreate_time, msqr, msqrcreate_time, msjgmnktjxdf, yjdf, zhdf2 from tsbz_jdcx + select id, faid, jsid, dqzt, createuserid, create_time, jdxshr, jdxshzt, sbly, qjshr, qjshzt, qjshyj, jdpx, alfxdf, jasjdf, gbzdf, zhdf, cjdrcreate_time, msqr, msqrcreate_time, msjgmnktjxdf, yjdf, zhdf2, lqzt from tsbz_jdcx @@ -91,6 +93,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" msjgmnktjxdf, yjdf, zhdf2, + lqzt, #{faid}, @@ -115,6 +118,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{msjgmnktjxdf}, #{yjdf}, #{zhdf2}, + #{lqzt}, @@ -143,6 +147,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" msjgmnktjxdf = #{msjgmnktjxdf}, yjdf = #{yjdf}, zhdf2 = #{zhdf2}, + lqzt = #{lqzt}, where id = #{id} diff --git a/ruoyi-system/src/main/resources/mapper/jxjs/TsbzJxzxmdMapper.xml b/ruoyi-system/src/main/resources/mapper/jxjs/TsbzJxzxmdMapper.xml new file mode 100644 index 000000000..45213f46f --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/jxjs/TsbzJxzxmdMapper.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + select id, jsid, nf, createuserid, create_time from tsbz_jxzxmd + + + + + + + + insert into tsbz_jxzxmd + + jsid, + nf, + createuserid, + create_time, + + + #{jsid}, + #{nf}, + #{createuserid}, + #{createTime}, + + + + + update tsbz_jxzxmd + + jsid = #{jsid}, + nf = #{nf}, + createuserid = #{createuserid}, + create_time = #{createTime}, + + where id = #{id} + + + + delete from tsbz_jxzxmd where id = #{id} + + + + delete from tsbz_jxzxmd where id in + + #{id} + + + + \ No newline at end of file diff --git a/ruoyi-ui/src/views/jxjs/msqr/index.vue b/ruoyi-ui/src/views/jxjs/msqr/index.vue index 9b1efb1a2..5ee995614 100644 --- a/ruoyi-ui/src/views/jxjs/msqr/index.vue +++ b/ruoyi-ui/src/views/jxjs/msqr/index.vue @@ -13,13 +13,19 @@ - + + + + + + + + 搜索 @@ -38,16 +44,6 @@ v-hasPermi="['jxjs:jdcx:edit']" >确认 - - 删除 - - - - - + + + + - - - - - - - - - - - - - - - - --> + + + + + @@ -134,113 +108,16 @@ - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -