lzq 2025-08-08 09:44:04 +08:00
parent c35456688d
commit 2edb4de421
1 changed files with 8 additions and 2 deletions

View File

@ -137,9 +137,15 @@ public class DisposeRecordService extends ServiceImpl<DisposeRecordMapper, Dispo
}
public void report(Integer action, DisposeRecordReportParam disposeRecordReportParam) {
if (action == 1) {
DisposeRecordEntity disposeRecordEntity = this.getOne(Wrappers.lambdaQuery(DisposeRecordEntity.class)
.eq(DisposeRecordEntity::getDataSn, disposeRecordReportParam.getTreatmentOrderNo())
);
if (disposeRecordEntity == null) {
this.save(resolveData(disposeRecordReportParam));
} else {
throw Exceptions.clierr("新增失败,数据已存在");
}
} else if (action == 2) {
DisposeRecordEntity disposeRecordEntity = this.getOne(Wrappers.lambdaQuery(DisposeRecordEntity.class)
.eq(DisposeRecordEntity::getDataSn, disposeRecordReportParam.getTreatmentOrderNo())