pda签名;
This commit is contained in:
+20
@@ -156,6 +156,26 @@ public class ElectronicSignatureApi extends BaseController {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("批量签名(勾选记录后批量更新签名状态为已签名)")
|
||||
@PostMapping("/batchSignByWmsId")
|
||||
public AjaxResult batchSignByWmsId(@RequestBody ElectronicSignatureBatchSignDTO dto) {
|
||||
if (dto.getSignatureIds() == null || dto.getSignatureIds().isEmpty()) {
|
||||
return AjaxResult.error("请选择需要签名的记录");
|
||||
}
|
||||
try {
|
||||
int count = electronicSignatureDomainService.batchSignByWmsId(dto);
|
||||
if (count > 0) {
|
||||
return AjaxResult.success("批量签名成功,共更新 " + count + " 条记录");
|
||||
} else {
|
||||
return AjaxResult.error("批量签名失败:未找到有效的待签名记录");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.error("批量签名失败", e);
|
||||
return AjaxResult.error("批量签名失败:" + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
private ElectronicSignatureDO toDO(ElectronicSignatureSaveDTO dto) {
|
||||
ElectronicSignatureDO signatureDO = new ElectronicSignatureDO();
|
||||
BeanUtils.copyProperties(dto, signatureDO, "materialDetailList");
|
||||
|
||||
Reference in New Issue
Block a user