见习之星考核-进度
This commit is contained in:
@ -5,6 +5,8 @@ import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 见习之星名单对象 tsbz_jxzxmd
|
||||
*
|
||||
@ -37,6 +39,11 @@ public class TsbzJxzxmd extends BaseEntity {
|
||||
@Excel(name = "创建人")
|
||||
private Long createuserid;
|
||||
|
||||
|
||||
private BigDecimal bfb;
|
||||
private String faid;
|
||||
private TsbzJxjsjbxx tsbzJxjsjbxx;
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
@ -69,6 +76,30 @@ public class TsbzJxzxmd extends BaseEntity {
|
||||
return createuserid;
|
||||
}
|
||||
|
||||
public BigDecimal getBfb() {
|
||||
return bfb;
|
||||
}
|
||||
|
||||
public void setBfb(BigDecimal bfb) {
|
||||
this.bfb = bfb;
|
||||
}
|
||||
|
||||
public String getFaid() {
|
||||
return faid;
|
||||
}
|
||||
|
||||
public void setFaid(String faid) {
|
||||
this.faid = faid;
|
||||
}
|
||||
|
||||
public TsbzJxjsjbxx getTsbzJxjsjbxx() {
|
||||
return tsbzJxjsjbxx;
|
||||
}
|
||||
|
||||
public void setTsbzJxjsjbxx(TsbzJxjsjbxx tsbzJxjsjbxx) {
|
||||
this.tsbzJxjsjbxx = tsbzJxjsjbxx;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
@ -77,6 +108,9 @@ public class TsbzJxzxmd extends BaseEntity {
|
||||
.append("nf", getNf())
|
||||
.append("createuserid", getCreateuserid())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("bfb", getBfb())
|
||||
.append("faid", getFaid())
|
||||
.append("tsbzJxjsjbxx", getTsbzJxjsjbxx())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
@ -58,4 +58,12 @@ public interface TsbzJxzxmdMapper {
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTsbzJxzxmdByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 查询见习之星名单列表
|
||||
*
|
||||
* @param tsbzJxzxmd 见习之星名单
|
||||
* @return 见习之星名单集合
|
||||
*/
|
||||
public List<TsbzJxzxmd> selectTsbzJxzxmdKhjdList(TsbzJxzxmd tsbzJxzxmd);
|
||||
}
|
||||
|
@ -58,4 +58,12 @@ public interface ITsbzJxzxmdService
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTsbzJxzxmdById(Long id);
|
||||
|
||||
/**
|
||||
* 查询见习之星名单列表
|
||||
*
|
||||
* @param tsbzJxzxmd 见习之星名单
|
||||
* @return 见习之星名单集合
|
||||
*/
|
||||
public List<TsbzJxzxmd> selectTsbzJxzxmdKhjdList(TsbzJxzxmd tsbzJxzxmd);
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
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;
|
||||
@ -10,86 +11,90 @@ import com.ruoyi.jxjs.service.ITsbzJxzxmdService;
|
||||
|
||||
/**
|
||||
* 见习之星名单Service业务层处理
|
||||
*
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2020-08-23
|
||||
*/
|
||||
@Service
|
||||
public class TsbzJxzxmdServiceImpl implements ITsbzJxzxmdService
|
||||
{
|
||||
public class TsbzJxzxmdServiceImpl implements ITsbzJxzxmdService {
|
||||
@Autowired
|
||||
private TsbzJxzxmdMapper tsbzJxzxmdMapper;
|
||||
|
||||
/**
|
||||
* 查询见习之星名单
|
||||
*
|
||||
*
|
||||
* @param id 见习之星名单ID
|
||||
* @return 见习之星名单
|
||||
*/
|
||||
@Override
|
||||
public TsbzJxzxmd selectTsbzJxzxmdById(Long id)
|
||||
{
|
||||
public TsbzJxzxmd selectTsbzJxzxmdById(Long id) {
|
||||
return tsbzJxzxmdMapper.selectTsbzJxzxmdById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询见习之星名单列表
|
||||
*
|
||||
*
|
||||
* @param tsbzJxzxmd 见习之星名单
|
||||
* @return 见习之星名单
|
||||
*/
|
||||
@Override
|
||||
public List<TsbzJxzxmd> selectTsbzJxzxmdList(TsbzJxzxmd tsbzJxzxmd)
|
||||
{
|
||||
public List<TsbzJxzxmd> selectTsbzJxzxmdList(TsbzJxzxmd tsbzJxzxmd) {
|
||||
return tsbzJxzxmdMapper.selectTsbzJxzxmdList(tsbzJxzxmd);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增见习之星名单
|
||||
*
|
||||
*
|
||||
* @param tsbzJxzxmd 见习之星名单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertTsbzJxzxmd(TsbzJxzxmd tsbzJxzxmd)
|
||||
{
|
||||
public int insertTsbzJxzxmd(TsbzJxzxmd tsbzJxzxmd) {
|
||||
tsbzJxzxmd.setCreateTime(DateUtils.getNowDate());
|
||||
return tsbzJxzxmdMapper.insertTsbzJxzxmd(tsbzJxzxmd);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改见习之星名单
|
||||
*
|
||||
*
|
||||
* @param tsbzJxzxmd 见习之星名单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateTsbzJxzxmd(TsbzJxzxmd tsbzJxzxmd)
|
||||
{
|
||||
public int updateTsbzJxzxmd(TsbzJxzxmd tsbzJxzxmd) {
|
||||
return tsbzJxzxmdMapper.updateTsbzJxzxmd(tsbzJxzxmd);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除见习之星名单
|
||||
*
|
||||
*
|
||||
* @param ids 需要删除的见习之星名单ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteTsbzJxzxmdByIds(Long[] ids)
|
||||
{
|
||||
public int deleteTsbzJxzxmdByIds(Long[] ids) {
|
||||
return tsbzJxzxmdMapper.deleteTsbzJxzxmdByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除见习之星名单信息
|
||||
*
|
||||
*
|
||||
* @param id 见习之星名单ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteTsbzJxzxmdById(Long id)
|
||||
{
|
||||
public int deleteTsbzJxzxmdById(Long id) {
|
||||
return tsbzJxzxmdMapper.deleteTsbzJxzxmdById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询见习之星名单列表
|
||||
*
|
||||
* @param tsbzJxzxmd 见习之星名单
|
||||
* @return 见习之星名单集合
|
||||
*/
|
||||
@Override
|
||||
public List<TsbzJxzxmd> selectTsbzJxzxmdKhjdList(TsbzJxzxmd tsbzJxzxmd) {
|
||||
return tsbzJxzxmdMapper.selectTsbzJxzxmdKhjdList(tsbzJxzxmd);
|
||||
}
|
||||
}
|
||||
|
@ -10,6 +10,35 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="nf" column="nf" />
|
||||
<result property="createuserid" column="createuserid" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="bfb" column="bfb" />
|
||||
<result property="faid" column="faid" />
|
||||
<association property="tsbzJxjsjbxx" column="jsid" javaType="TsbzJxjsjbxx" resultMap="TsbzJxjsjbxxResult"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap type="TsbzJxjsjbxx" id="TsbzJxjsjbxxResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="otherid" column="otherid"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="jxbh" column="jxbh"/>
|
||||
<result property="xb" column="xb"/>
|
||||
<result property="csrq" column="csrq"/>
|
||||
<result property="email" column="email"/>
|
||||
<result property="phone" column="phone"/>
|
||||
<result property="yzbm" column="yzbm"/>
|
||||
<result property="zzmm" column="zzmm"/>
|
||||
<result property="mz" column="mz"/>
|
||||
<result property="prdwid" column="prdwid"/>
|
||||
<result property="prdwmc" column="prdwmc"/>
|
||||
<result property="jdxid" column="jdxid"/>
|
||||
<result property="rjxd" column="rjxd"/>
|
||||
<result property="rjxk" column="rjxk"/>
|
||||
<result property="rjnj" column="rjnj"/>
|
||||
<result property="byyx" column="byyx"/>
|
||||
<result property="xl" column="xl"/>
|
||||
<result property="xw" column="xw"/>
|
||||
<result property="sfsfs" column="sfsfs"/>
|
||||
<result property="lqnf" column="lqnf"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTsbzJxzxmdVo">
|
||||
@ -67,5 +96,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<select id="selectTsbzJxzxmdKhjdList" parameterType="TsbzJxzxmd" resultMap="TsbzJxzxmdResult">
|
||||
select b.id, b.otherid, b.name, b.jxbh, b.xb, b.csrq, b.email, b.phone, b.yzbm, b.zzmm, b.mz, b.prdwid, b.prdwmc, b.jdxid, b.rjxd, b.rjxk, b.rjnj, b.byyx, b.xl, b.xw, b.sfsfs, b.lqnf, b.create_time,
|
||||
(select count(*)from tsbz_jxzxkhgcsj where faid=#{faid} and createuserid=a.jsid)/(select count(*) from tsbz_jxzxkhzbx where faid=#{faid}) bfb from tsbz_jxzxmd a
|
||||
left join tsbz_jxjsjbxx b on a.jsid=b.id
|
||||
where a.nf=#{nf}
|
||||
</select>
|
||||
|
||||
</mapper>
|
Reference in New Issue
Block a user