生成合同

This commit is contained in:
1073413548 2024-08-30 15:46:03 +08:00
parent 4c169d8588
commit 0f74f3ed2c
2 changed files with 5 additions and 4 deletions

View File

@ -81,11 +81,11 @@ public enum TaskStatusEnum {
*/ */
public static Boolean canFinish(String taskStatus){ public static Boolean canFinish(String taskStatus){
//作废和完成的不能点 //作废和完成的不能点
if(StringUtils.equals(taskStatus,CANCEL.getCode()) || StringUtils.equals(taskStatus,FINISH.getCode())){ if(StringUtils.equals(taskStatus,ING.getCode())){
return false;
}
return true; return true;
} }
return false;
}
/** /**
* 判断能否改派 * 判断能否改派
*/ */

View File

@ -216,7 +216,8 @@ public class PsCustomInfoServiceImpl implements IPsCustomInfoService {
qw.eq(StringUtils.isNotBlank(bo.getCustomIntroducerName()), "psinfo.custom_introducer", bo.getCustomIntroducerName());//介绍人姓名 qw.eq(StringUtils.isNotBlank(bo.getCustomIntroducerName()), "psinfo.custom_introducer", bo.getCustomIntroducerName());//介绍人姓名
//公司名称 //公司名称
qw.exists(StringUtils.isNotBlank(bo.getCompanyName()), "select 1 from ps_company_info com where info.id = com.custom_id and com.company_name like '%"+bo.getCompanyName()+"%'"); qw.exists(StringUtils.isNotBlank(bo.getCompanyName()), "select 1 from ps_company_info com where info.id = com.custom_id and com.company_name like '%"+bo.getCompanyName()+"%'");
qw.exists(bo.getHaveContract() != null && bo.getHaveContract() == 1,"SELECT 1 FROM ps_contract_info psci WHERE psci.custom_id = info.id and psci.contract_status != '10' and psci.is_cancel != '03')"); qw.exists(bo.getHaveContract() != null && bo.getHaveContract() == 1,"SELECT 1 FROM ps_contract_info psci WHERE psci.custom_id = info.id and psci.contract_status != '10' and psci.is_cancel != '03'");
qw.notExists(bo.getHaveContract() != null && bo.getHaveContract() == 0,"SELECT 1 FROM ps_contract_info psci WHERE psci.custom_id = info.id and psci.contract_status != '10' and psci.is_cancel != '03'");
qw.orderByDesc("info.create_time");//创建时间排序 qw.orderByDesc("info.create_time");//创建时间排序
return qw; return qw;
} }