售后记录SQL错误

This commit is contained in:
Hawking 2023-04-19 22:37:25 +08:00
parent 103b864df2
commit 439fecbff2
2 changed files with 2 additions and 1 deletions

View File

@ -94,6 +94,7 @@ public class AfterServiceRecordServiceImpl implements IAfterServiceRecordService
public int insertAfterServiceRecord(AfterServiceRecord afterServiceRecord) {
AfterServiceRecord unfinished = unfinished(afterServiceRecord.getOrderDetailId());
if (unfinished != null) {
log.warn("订单[{}]存在未完成的售后记录", afterServiceRecord.getOrderDetailId());
throw new BaseException("存在未完成的售后记录,请勿重复申请!");
}
int result = afterServiceRecordMapper.insertAfterServiceRecord(afterServiceRecord);

View File

@ -77,7 +77,7 @@
<if test="createBy != null">create_by,</if>
<if test="updateBy != null">update_by,</if>
<if test="remark != null">remark,</if>
createTime, updateTime
create_time, update_time
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="customerReasonType != null">#{customerReasonType},</if>