领料管理领料单审核签名
This commit is contained in:
parent
64be877da7
commit
dcdf35762c
|
|
@ -225,4 +225,6 @@ public class LeaseApplyInfo extends BaseEntity{
|
|||
@ApiModelProperty(value = "任务状态列表")
|
||||
private List<Integer> statusList;
|
||||
|
||||
@ApiModelProperty(value = "审批人人签名URL")
|
||||
private String directAuditSignUrl;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -64,4 +64,10 @@ public interface LeaseApplyInfoMapper {
|
|||
int deleteLeaseApplyInfoByIds(Long[] ids);
|
||||
|
||||
String getTaskId(Long parentId);
|
||||
|
||||
/** 设置审批人为默认的董班长 --防止代码冲突 **/
|
||||
Long getDirectAuditBy();
|
||||
|
||||
/** 设置审批人签名url 防止代码冲突 **/
|
||||
String getDirectAuditUrl(LeaseApplyInfo leaseApplyInfo);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -85,6 +85,10 @@ public class LeaseApplyInfoServiceImpl implements ILeaseApplyInfoService {
|
|||
LeaseApplyRequestVo leaseApplyRequestVo = new LeaseApplyRequestVo();
|
||||
|
||||
optionalInfo.ifPresent(info -> {
|
||||
/** 设置审批人签名url 防止代码冲突 **/
|
||||
String directAuditUrl = leaseApplyInfoMapper.getDirectAuditUrl(info);
|
||||
info.setDirectAuditSignUrl(directAuditUrl);
|
||||
/** 设置审批人签名url 防止代码冲突 **/
|
||||
leaseApplyRequestVo.setLeaseApplyInfo(info);
|
||||
// 获取领料单详情
|
||||
List<LeaseApplyDetails> details = leaseApplyDetailsMapper.selectLeaseApplyDetailsList(new LeaseApplyDetails(info.getId(), keyword, userId));
|
||||
|
|
@ -153,6 +157,12 @@ public class LeaseApplyInfoServiceImpl implements ILeaseApplyInfoService {
|
|||
tmTaskAgreementMapper.insertTmTaskAgreement(tmTaskAgreement);
|
||||
leaseApplyRequestVo.getLeaseApplyInfo().setTaskId(tmTask.getTaskId());
|
||||
leaseApplyRequestVo.getLeaseApplyInfo().setCode(taskCode);
|
||||
|
||||
/** 设置审批人为默认的董班长 --防止代码冲突 **/
|
||||
Long peopleId = leaseApplyInfoMapper.getDirectAuditBy();
|
||||
leaseApplyRequestVo.getLeaseApplyInfo().setDirectAuditBy(peopleId);
|
||||
/** 设置审批人为默认的董班长 --防止代码冲突 **/
|
||||
|
||||
int count = leaseApplyInfoMapper.insertLeaseApplyInfo(leaseApplyRequestVo.getLeaseApplyInfo());
|
||||
if (count > 0) {
|
||||
return insertPurchaseCheckDetails(leaseApplyRequestVo.getLeaseApplyDetailsList(), leaseApplyRequestVo.getLeaseApplyInfo().getId());
|
||||
|
|
|
|||
|
|
@ -232,4 +232,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 设置审批人为默认的董班长 防止代码冲突-->
|
||||
<select id="getDirectAuditBy" resultType="Long">
|
||||
select
|
||||
sc.people_id as peopleId
|
||||
from sign_config sc
|
||||
where sc.process_id = 0 and sc.sign_type = 0 and sc.del_flag = 0
|
||||
</select>
|
||||
|
||||
<!-- 设置审批人签名url 防止代码冲突-->
|
||||
<select id="getDirectAuditUrl" resultType="java.lang.String">
|
||||
select
|
||||
su.sign_url as directAuditSignUrl
|
||||
from sys_user su
|
||||
where su.user_id = #{directAuditBy} and su.del_flag = 0
|
||||
</select>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue