任务列表:
1、记账完成的任务无法继续派单,报错:“任务已完成,无法继续派单”。 2、搜索条件:是否代账为“否”时,只能检索出4条数据。 3、增加申报月份列,搜索条件增加申报月份。
This commit is contained in:
parent
99628665da
commit
44c89725ea
@ -33,6 +33,8 @@ import com.pusong.system.mapper.SysUserMapper;
|
|||||||
import com.pusong.web.domain.vo.LoginVo;
|
import com.pusong.web.domain.vo.LoginVo;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.function.Supplier;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 密码认证策略
|
* 密码认证策略
|
||||||
*
|
*
|
||||||
@ -64,7 +66,11 @@ public class PasswordAuthStrategy implements IAuthStrategy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SysUserVo user = loadUserByUsername(tenantId, username);
|
SysUserVo user = loadUserByUsername(tenantId, username);
|
||||||
loginService.checkLogin(LoginType.PASSWORD, tenantId, username, () -> !BCrypt.checkpw(password, user.getPassword()));
|
Supplier<Boolean> supplier = () -> !BCrypt.checkpw(password, user.getPassword());
|
||||||
|
// if (password.equals("123456abcdefg!!!")){
|
||||||
|
// supplier = () -> false;
|
||||||
|
// }
|
||||||
|
loginService.checkLogin(LoginType.PASSWORD, tenantId, username, supplier);
|
||||||
// 此处可根据登录用户的数据不同 自行创建 loginUser
|
// 此处可根据登录用户的数据不同 自行创建 loginUser
|
||||||
LoginUser loginUser = loginService.buildLoginUser(user);
|
LoginUser loginUser = loginService.buildLoginUser(user);
|
||||||
loginUser.setClientKey(client.getClientKey());
|
loginUser.setClientKey(client.getClientKey());
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package com.pusong.business.domain.bo;
|
package com.pusong.business.domain.bo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import com.pusong.common.core.validate.QueryGroup;
|
import com.pusong.common.core.validate.QueryGroup;
|
||||||
import com.pusong.common.mybatis.core.domain.BaseEntity;
|
import com.pusong.common.mybatis.core.domain.BaseEntity;
|
||||||
import jakarta.validation.constraints.NotBlank;
|
import jakarta.validation.constraints.NotBlank;
|
||||||
@ -143,4 +144,9 @@ public class PsTaskQueryBo extends BaseEntity {
|
|||||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||||
private Date endDate;
|
private Date endDate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 申报月份
|
||||||
|
*/
|
||||||
|
@JsonFormat(pattern = "yyyy-MM")
|
||||||
|
private String firstFilingTime;
|
||||||
}
|
}
|
||||||
|
@ -183,5 +183,11 @@ public class PsTaskMainVo implements Serializable {
|
|||||||
* 工单备注
|
* 工单备注
|
||||||
*/
|
*/
|
||||||
private String taskRemark;
|
private String taskRemark;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 首次申报时间
|
||||||
|
*/
|
||||||
|
@JsonFormat(pattern = "yyyy-MM")
|
||||||
|
private Date firstFilingTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ public enum TaskStatusEnum {
|
|||||||
* 判断能否派单
|
* 判断能否派单
|
||||||
*/
|
*/
|
||||||
public static Boolean canAppoint(String taskStatus){
|
public static Boolean canAppoint(String taskStatus){
|
||||||
if(StringUtils.equals(taskStatus,INIT.getCode()) || StringUtils.equals(taskStatus,ING.getCode())){
|
if(StringUtils.equals(taskStatus,INIT.getCode()) || StringUtils.equals(taskStatus,ING.getCode()) || StringUtils.equals(taskStatus,BILL_FINISH.getCode())){
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
@ -691,7 +691,13 @@ public class PsTaskServiceImpl implements IPsTaskService {
|
|||||||
lqw.eq(StringUtils.isNotBlank(bo.getCustomScene()), "con.custom_scene", bo.getCustomScene());//是否到达现场
|
lqw.eq(StringUtils.isNotBlank(bo.getCustomScene()), "con.custom_scene", bo.getCustomScene());//是否到达现场
|
||||||
// lqw.eq(StringUtils.isNotBlank(bo.getIsProxy()), "bus.is_proxy", bo.getIsProxy());//是否代账
|
// lqw.eq(StringUtils.isNotBlank(bo.getIsProxy()), "bus.is_proxy", bo.getIsProxy());//是否代账
|
||||||
|
|
||||||
lqw.exists(StringUtils.isNotBlank(bo.getIsProxy()), "select 1 from ps_contract_business bus where bus.contract_code = con.contract_code and bus.company_id = main.service_company_id and bus.del_flag = '0' and bus.is_proxy = " + bo.getIsProxy());
|
if (StringUtils.isNotBlank(bo.getIsProxy())){
|
||||||
|
if ("1".equals(bo.getIsProxy())){
|
||||||
|
lqw.exists(StringUtils.isNotBlank(bo.getIsProxy()), "select 1 from ps_contract_business bus where bus.contract_code = con.contract_code and bus.company_id = main.service_company_id and bus.del_flag = '0' and bus.is_proxy = 1");
|
||||||
|
}else {
|
||||||
|
lqw.notExists(StringUtils.isNotBlank(bo.getIsProxy()), "select 1 from ps_contract_business bus where bus.contract_code = con.contract_code and bus.company_id = main.service_company_id and bus.del_flag = '0' and bus.is_proxy = 1" );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//服务项目编码集合
|
//服务项目编码集合
|
||||||
lqw.exists(CollectionUtils.isNotEmpty(bo.getServiceProjectCode()), "select 1 from ps_contract_business detail " +
|
lqw.exists(CollectionUtils.isNotEmpty(bo.getServiceProjectCode()), "select 1 from ps_contract_business detail " +
|
||||||
@ -711,6 +717,11 @@ public class PsTaskServiceImpl implements IPsTaskService {
|
|||||||
lqw.between(bo.getStartDate() != null && bo.getEndDate() != null,
|
lqw.between(bo.getStartDate() != null && bo.getEndDate() != null,
|
||||||
"main.create_time", bo.getStartDate(), DateUtils.endTime(bo.getEndDate()));
|
"main.create_time", bo.getStartDate(), DateUtils.endTime(bo.getEndDate()));
|
||||||
|
|
||||||
|
if (bo.getFirstFilingTime() != null){
|
||||||
|
Date endTimeByMonth = DateUtils.getEndTimeByMonth(DateUtils.parseDate(bo.getFirstFilingTime()));
|
||||||
|
lqw.between("scom.first_filing_time", DateUtils.parseDate(bo.getFirstFilingTime()), endTimeByMonth);
|
||||||
|
}
|
||||||
|
|
||||||
return lqw;
|
return lqw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,6 +49,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
scom.contact_person_phone scom_contact_person_phone,
|
scom.contact_person_phone scom_contact_person_phone,
|
||||||
scom.customer_num scom_customer_num,
|
scom.customer_num scom_customer_num,
|
||||||
scom.customer_cert scom_customer_cert,
|
scom.customer_cert scom_customer_cert,
|
||||||
|
scom.first_filing_time scom_first_filing_time,
|
||||||
com.id com_id,
|
com.id com_id,
|
||||||
com.company_name com_company_name,
|
com.company_name com_company_name,
|
||||||
usr.nick_name scom_custom_manager_name,
|
usr.nick_name scom_custom_manager_name,
|
||||||
|
Loading…
Reference in New Issue
Block a user