领料单电子签名
This commit is contained in:
parent
abeee55b83
commit
4093544cb5
|
|
@ -63,6 +63,12 @@ public class LeaseApplyInfo extends BaseEntity{
|
|||
@ApiModelProperty(value = "领料工程id")
|
||||
private Integer leaseProjectId;
|
||||
|
||||
@ApiModelProperty(value = "领料人签名URL")
|
||||
private String leaseSignUrl;
|
||||
|
||||
@ApiModelProperty(value = "领料人签名类型")
|
||||
private Byte leaseSignType;
|
||||
|
||||
/**
|
||||
* 领料物资名称汇总
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -137,6 +137,20 @@ public class LeaseApplyInfoController extends BaseController {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改领料任务
|
||||
*/
|
||||
@ApiOperation(value = "领料任务电子签名")
|
||||
@PreventRepeatSubmit
|
||||
@SysLog(title = "领料任务电子签名", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改领料任务签字")
|
||||
@PostMapping("/updateLeaseApplyInfoSign")
|
||||
public AjaxResult updateLeaseApplyInfoSign(@RequestBody @NotNull LeaseApplyInfo leaseApplyInfo) {
|
||||
try {
|
||||
return toAjax(leaseApplyInfoService.updateLeaseApplyInfoSign(leaseApplyInfo));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 领料任务发布
|
||||
|
|
|
|||
|
|
@ -42,6 +42,11 @@ public interface LeaseApplyInfoMapper {
|
|||
*/
|
||||
int updateLeaseApplyInfo(LeaseApplyInfo leaseApplyInfo);
|
||||
|
||||
/**
|
||||
* 领料任务电子签名
|
||||
*/
|
||||
int updateLeaseApplyInfoSign(LeaseApplyInfo leaseApplyInfo);
|
||||
|
||||
/**
|
||||
* 删除领料任务
|
||||
*
|
||||
|
|
|
|||
|
|
@ -55,8 +55,10 @@ public interface ILeaseApplyInfoService {
|
|||
*/
|
||||
boolean updateLeaseApplyInfo(LeaseApplyRequestVo leaseApplyRequestVo);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 领料任务电子签名
|
||||
*/
|
||||
int updateLeaseApplyInfoSign(LeaseApplyInfo leaseApplyInfo);
|
||||
|
||||
/**
|
||||
* 领料:出库
|
||||
|
|
|
|||
|
|
@ -269,6 +269,16 @@ public class LeaseApplyInfoServiceImpl implements ILeaseApplyInfoService {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 领料任务电子签名
|
||||
*
|
||||
* @param leaseApplyInfo
|
||||
*/
|
||||
@Override
|
||||
public int updateLeaseApplyInfoSign(LeaseApplyInfo leaseApplyInfo) {
|
||||
return leaseApplyInfoMapper.updateLeaseApplyInfoSign(leaseApplyInfo);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 领料:出库
|
||||
|
|
|
|||
|
|
@ -34,6 +34,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<result property="leaseUnit" column="unit_name" />
|
||||
<result property="leaseUnitId" column="unit_id" />
|
||||
<result property="agreementCode" column="agreement_code" />
|
||||
<result property="leaseSignUrl" column="lease_sign_url" />
|
||||
<result property="leaseSignType" column="lease_sign_type" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectLeaseApplyInfoVo">
|
||||
|
|
@ -42,7 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
lai.company_audit_time, lai.company_audit_remark, lai.dept_audit_by, lai.dept_audit_time,
|
||||
lai.dept_audit_remark, lai.direct_audit_by, lai.direct_audit_time, lai.direct_audit_remark,
|
||||
lai.create_by, lai.create_time, lai.update_by, lai.update_time, lai.remark, lai.company_id,
|
||||
lai.direct_id, lai.lease_type, lai.estimate_lease_time, lai.cost_bearing_party,
|
||||
lai.direct_id, lai.lease_type, lai.estimate_lease_time, lai.cost_bearing_party, lai.lease_sign_url, lai.lease_sign_type,
|
||||
bai.unit_id,bai.project_id,bu.unit_name, bp.pro_name, bai.agreement_code, tt.task_status as taskStatus,
|
||||
sda.dict_label as taskStatusName,
|
||||
IFNULL(sum(lad.pre_num),0) as preCountNum,
|
||||
|
|
@ -221,4 +223,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
from lease_apply_info
|
||||
where id = #{parentId}
|
||||
</select>
|
||||
|
||||
<update id="updateLeaseApplyInfoSign">
|
||||
update lease_apply_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="leaseSignUrl != null and leaseSignUrl != '' ">lease_sign_url = #{leaseSignUrl},</if>
|
||||
<if test="leaseSignType != null">lease_sign_type = #{leaseSignType},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
</mapper>
|
||||
|
|
@ -283,7 +283,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
LEFT JOIN bm_unit bui ON bui.unit_id = bai.unit_id
|
||||
left join ma_type mt on rc.type_id = mt.type_id
|
||||
left join ma_type mt1 on mt.parent_id = mt1.type_id
|
||||
where rc.status in ('3')
|
||||
where rc.status in ('0','1')
|
||||
<if test="taskList != null and taskList.size() > 0">
|
||||
and rc.task_id in
|
||||
<foreach item="task" collection="taskList" open="(" separator="," close=")">
|
||||
|
|
@ -312,7 +312,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
LEFT JOIN bm_unit bui ON bui.unit_id = bai.unit_id
|
||||
left join ma_type mt on sad.type_id = mt.type_id
|
||||
left join ma_type mt1 on mt.parent_id = mt1.type_id
|
||||
where 1=1 and sad.status = '3'
|
||||
where sad.status in ('0','1')
|
||||
<if test="taskList != null and taskList.size() > 0">
|
||||
and sad.task_id in
|
||||
<foreach item="task" collection="taskList" open="(" separator="," close=")">
|
||||
|
|
|
|||
Loading…
Reference in New Issue