|
|
|
@ -61,20 +61,20 @@ public class OcrTaskchildPictureServiceImpl extends BaseServiceImpl<OcrTaskchild
|
|
|
|
|
OcrTaskchildPicture old = this.listPicturePackageId(childpictureid,Long.parseLong(packageid));
|
|
|
|
|
|
|
|
|
|
//如果是历史图片,不允许进行设置
|
|
|
|
|
if(old.isIzHistory()){
|
|
|
|
|
if(historyPname.length() > 0){
|
|
|
|
|
historyPname.append("," + old.getOcrPicture().getImgname());
|
|
|
|
|
}else{
|
|
|
|
|
historyPname.append(old.getOcrPicture().getImgname());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(old.getStates().intValue() == 3 || old.getStates().intValue() == 5) {
|
|
|
|
|
if(taskType.length() > 0){
|
|
|
|
|
taskType.append("," + old.getOcrPicture().getImgname());
|
|
|
|
|
}else{
|
|
|
|
|
taskType.append(old.getOcrPicture().getImgname());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// if(old.isIzHistory()){
|
|
|
|
|
// if(historyPname.length() > 0){
|
|
|
|
|
// historyPname.append("," + old.getOcrPicture().getImgname());
|
|
|
|
|
// }else{
|
|
|
|
|
// historyPname.append(old.getOcrPicture().getImgname());
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// if(old.getStates().intValue() == 3 || old.getStates().intValue() == 5) {
|
|
|
|
|
// if(taskType.length() > 0){
|
|
|
|
|
// taskType.append("," + old.getOcrPicture().getImgname());
|
|
|
|
|
// }else{
|
|
|
|
|
// taskType.append(old.getOcrPicture().getImgname());
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
OcrPicture ocrPicture = old.getOcrPicture();
|
|
|
|
|
ocrPicture.setJudgeid(Long.parseLong(judgeid));
|
|
|
|
@ -85,12 +85,12 @@ public class OcrTaskchildPictureServiceImpl extends BaseServiceImpl<OcrTaskchild
|
|
|
|
|
saveList.add(ocrPicture);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(StringUtils.isNotBlank(historyPname.toString())){
|
|
|
|
|
return ResultVoUtil.error(historyPname.toString() + "为历史数据,不能标记。");
|
|
|
|
|
}
|
|
|
|
|
else if(StringUtils.isNotBlank(taskType.toString())){
|
|
|
|
|
return ResultVoUtil.error( taskType.toString() + "已经审批,不能标记。");
|
|
|
|
|
}
|
|
|
|
|
// if(StringUtils.isNotBlank(historyPname.toString())){
|
|
|
|
|
// return ResultVoUtil.error(historyPname.toString() + "为历史数据,不能标记。");
|
|
|
|
|
// }
|
|
|
|
|
// else if(StringUtils.isNotBlank(taskType.toString())){
|
|
|
|
|
// return ResultVoUtil.error( taskType.toString() + "已经审批,不能标记。");
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
return this.ocrPictureService.updateBatchById(saveList)?ResultVoUtil.success():ResultVoUtil.error();
|
|
|
|
|
}
|
|
|
|
@ -107,20 +107,20 @@ public class OcrTaskchildPictureServiceImpl extends BaseServiceImpl<OcrTaskchild
|
|
|
|
|
OcrTaskchildPicture old = this.listPicturePackageId(childpictureid,Long.parseLong(packageid));
|
|
|
|
|
|
|
|
|
|
//如果是历史图片,不允许进行设置
|
|
|
|
|
if(old.isIzHistory()){
|
|
|
|
|
if(historyPname.length() > 0){
|
|
|
|
|
historyPname.append("," + old.getOcrPicture().getImgname());
|
|
|
|
|
}else{
|
|
|
|
|
historyPname.append(old.getOcrPicture().getImgname());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(old.getStates().intValue() == 3 || old.getStates().intValue() == 5) {
|
|
|
|
|
if(taskType.length() > 0){
|
|
|
|
|
taskType.append("," + old.getOcrPicture().getImgname());
|
|
|
|
|
}else{
|
|
|
|
|
taskType.append(old.getOcrPicture().getImgname());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// if(old.isIzHistory()){
|
|
|
|
|
// if(historyPname.length() > 0){
|
|
|
|
|
// historyPname.append("," + old.getOcrPicture().getImgname());
|
|
|
|
|
// }else{
|
|
|
|
|
// historyPname.append(old.getOcrPicture().getImgname());
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// if(old.getStates().intValue() == 3 || old.getStates().intValue() == 5) {
|
|
|
|
|
// if(taskType.length() > 0){
|
|
|
|
|
// taskType.append("," + old.getOcrPicture().getImgname());
|
|
|
|
|
// }else{
|
|
|
|
|
// taskType.append(old.getOcrPicture().getImgname());
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
OcrPicture ocrPicture = old.getOcrPicture();
|
|
|
|
|
ocrPicture.setJudgeid(null);
|
|
|
|
@ -131,12 +131,12 @@ public class OcrTaskchildPictureServiceImpl extends BaseServiceImpl<OcrTaskchild
|
|
|
|
|
saveList.add(ocrPicture);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(StringUtils.isNotBlank(historyPname.toString())){
|
|
|
|
|
return ResultVoUtil.error(historyPname.toString() + "为历史数据,不能清除标记。");
|
|
|
|
|
}
|
|
|
|
|
else if(StringUtils.isNotBlank(taskType.toString())){
|
|
|
|
|
return ResultVoUtil.error( taskType.toString() + "已经审批,不能清除标记。");
|
|
|
|
|
}
|
|
|
|
|
// if(StringUtils.isNotBlank(historyPname.toString())){
|
|
|
|
|
// return ResultVoUtil.error(historyPname.toString() + "为历史数据,不能清除标记。");
|
|
|
|
|
// }
|
|
|
|
|
// else if(StringUtils.isNotBlank(taskType.toString())){
|
|
|
|
|
// return ResultVoUtil.error( taskType.toString() + "已经审批,不能清除标记。");
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
return this.ocrPictureService.updateBatchById(saveList)?ResultVoUtil.success():ResultVoUtil.error();
|
|
|
|
|
}
|
|
|
|
|