|
@@ -1,6 +1,7 @@
|
|
|
package com.fdkankan.sale.service.impl;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
import com.fdkankan.sale.entity.PriceList;
|
|
|
import com.fdkankan.sale.entity.PriceListLog;
|
|
|
import com.fdkankan.sale.mapper.IPriceListLogMapper;
|
|
@@ -44,6 +45,15 @@ public class PriceListLogServiceImpl extends ServiceImpl<IPriceListLogMapper, Pr
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ public void updateStatusByRepairId(String repairId, Integer status) {
|
|
|
+ LambdaUpdateWrapper<PriceListLog> wrapper = new LambdaUpdateWrapper<>();
|
|
|
+ wrapper.eq(PriceListLog::getRepairId,repairId);
|
|
|
+ //wrapper.eq(PriceList::getType,0);
|
|
|
+ wrapper.set(PriceListLog::getStatus,status);
|
|
|
+ this.update(wrapper);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
public List<PriceListLog> getRepairId(String repairId) {
|
|
|
LambdaQueryWrapper<PriceListLog> wrapper = new LambdaQueryWrapper<>();
|
|
|
wrapper.eq(PriceListLog::getRepairId,repairId);
|