Commit 13fd12da by liyanlin

总经办待审核列表

parent 17c32534
......@@ -62,6 +62,10 @@ public interface CostDao extends BaseMapper<CostDomain> {
IPage<CostDomain> hrCheckCostList(@Param("page") IPage<CostDomain> page,
@Param("req") CheckCostListReq req);
//管理后台 需要我总经办审核费用列表查询
IPage<CostDomain> generalManagerCheckCostList(@Param("page") IPage<CostDomain> page,
@Param("req") CheckCostListReq req);
//小程序审核列表查询
Page<CostDomain> appCheckCostList(@Param("page") IPage<CostDomain> page,
@Param("req") AppCheckCostListReq req);
......
......@@ -305,6 +305,10 @@ public abstract class AbstractCostService implements CostService {
if (req.getType().equals(3)) {
return costDao.hrCheckCostList(page, req).convert(CostDomain::castToDto);
}
//需要总经办审核
if (req.getType().equals(4)) {
return costDao.generalManagerCheckCostList(page, req).convert(CostDomain::castToDto);
}
throw new BizRuntimeException("invalid param");
}
......
......@@ -269,6 +269,16 @@
<include refid="checkCostListSearch"/>
</select>
<!--需要我人事审核的-->
<select id="generalManagerCheckCostList" resultType="com.blt.other.module.cost.model.CostDomain">
select t1.*
from cost t1
left join cost_current_reviewer t3 on t1.cost_no = t3.cost_no and t3.oa_user_id = #{req.userid}
where t1.cost_status = 10
and t3.id is not null
<include refid="checkCostListSearch"/>
</select>
<select id="selectByStatus" resultType="com.blt.other.module.cost.model.CostDomain">
select *
from cost
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment