代办优化
This commit is contained in:
parent
115de905e5
commit
e4f42a6456
|
|
@ -18,6 +18,9 @@ import java.util.Date;
|
||||||
public class ToDoBean extends BaseEntity {
|
public class ToDoBean extends BaseEntity {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "true:出租方 false:承租方")
|
||||||
|
private boolean flag;
|
||||||
|
|
||||||
/** 任务ID */
|
/** 任务ID */
|
||||||
@ApiModelProperty(value = "任务ID")
|
@ApiModelProperty(value = "任务ID")
|
||||||
private Long taskId;
|
private Long taskId;
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,12 @@ public class ToDoServiceImpl implements ToDoService {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<ToDoBean> getToDoList(ToDoBean bean) {
|
public List<ToDoBean> getToDoList(ToDoBean bean) {
|
||||||
|
//true:出租方 false:承租方
|
||||||
|
if (bean.isFlag()) {
|
||||||
|
bean.setSellerCompanyId(SecurityUtils.getLoginUser().getSysUser().getCompanyId().intValue());
|
||||||
|
} else {
|
||||||
bean.setBuyerCompanyId(Math.toIntExact(SecurityUtils.getLoginUser().getSysUser().getCompanyId()));
|
bean.setBuyerCompanyId(Math.toIntExact(SecurityUtils.getLoginUser().getSysUser().getCompanyId()));
|
||||||
|
}
|
||||||
return toDoMapper.getToDoList(bean);
|
return toDoMapper.getToDoList(bean);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
tt.`status` = '1' and tt.task_status < 20
|
tt.`status` = '1' and tt.task_status < 20
|
||||||
and tt.task_type in (2)
|
and tt.task_type in (2)
|
||||||
<if test="buyerCompanyId != null">
|
<if test="buyerCompanyId != null">
|
||||||
and tt.buyer_company_id=#{buyerCompanyId} || tt.seller_company_id=#{buyerCompanyId}
|
and tt.buyer_company_id=#{buyerCompanyId}
|
||||||
|
</if>
|
||||||
|
<if test="sellerCompanyId != null">
|
||||||
|
and tt.seller_company_id=#{sellerCompanyId}
|
||||||
</if>
|
</if>
|
||||||
<if test="taskTypeId != null and taskTypeId != ''">
|
<if test="taskTypeId != null and taskTypeId != ''">
|
||||||
and tt.task_type=#{taskTypeId}
|
and tt.task_type=#{taskTypeId}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue