parent
e4f42a6456
commit
6391be0117
|
|
@ -18,9 +18,6 @@ import java.util.Date;
|
|||
public class ToDoBean extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "true:出租方 false:承租方")
|
||||
private boolean flag;
|
||||
|
||||
/** 任务ID */
|
||||
@ApiModelProperty(value = "任务ID")
|
||||
private Long taskId;
|
||||
|
|
|
|||
|
|
@ -25,12 +25,7 @@ public class ToDoServiceImpl implements ToDoService {
|
|||
|
||||
@Override
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -24,10 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
tt.`status` = '1' and tt.task_status < 20
|
||||
and tt.task_type in (2)
|
||||
<if test="buyerCompanyId != null">
|
||||
and tt.buyer_company_id=#{buyerCompanyId}
|
||||
</if>
|
||||
<if test="sellerCompanyId != null">
|
||||
and tt.seller_company_id=#{sellerCompanyId}
|
||||
and tt.buyer_company_id=#{buyerCompanyId} || tt.seller_company_id=#{buyerCompanyId}
|
||||
</if>
|
||||
<if test="taskTypeId != null and taskTypeId != ''">
|
||||
and tt.task_type=#{taskTypeId}
|
||||
|
|
|
|||
Loading…
Reference in New Issue