master
parent
c35456688d
commit
2edb4de421
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue