|
|
@ -4,9 +4,12 @@ import com.hfkj.common.utils.RedisUtil; |
|
|
|
import com.hfkj.dao.BsGasOilPriceMapper; |
|
|
|
import com.hfkj.dao.BsGasOilPriceMapper; |
|
|
|
import com.hfkj.entity.BsGasOilPrice; |
|
|
|
import com.hfkj.entity.BsGasOilPrice; |
|
|
|
import com.hfkj.entity.BsGasOilPriceExample; |
|
|
|
import com.hfkj.entity.BsGasOilPriceExample; |
|
|
|
|
|
|
|
import com.hfkj.entity.BsGasOilPriceWeek; |
|
|
|
import com.hfkj.service.gas.BsGasOilGunNoService; |
|
|
|
import com.hfkj.service.gas.BsGasOilGunNoService; |
|
|
|
import com.hfkj.service.gas.BsGasOilPriceService; |
|
|
|
import com.hfkj.service.gas.BsGasOilPriceService; |
|
|
|
|
|
|
|
import com.hfkj.service.gas.BsGasOilPriceWeekService; |
|
|
|
import com.hfkj.service.gas.BsGasService; |
|
|
|
import com.hfkj.service.gas.BsGasService; |
|
|
|
|
|
|
|
import com.hfkj.sysenum.gas.GasOilNoEnum; |
|
|
|
import com.hfkj.sysenum.gas.GasOilPriceStatusEnum; |
|
|
|
import com.hfkj.sysenum.gas.GasOilPriceStatusEnum; |
|
|
|
import org.apache.commons.collections4.MapUtils; |
|
|
|
import org.apache.commons.collections4.MapUtils; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
@ -33,7 +36,8 @@ public class BsGasOilPriceServiceImpl implements BsGasOilPriceService { |
|
|
|
private BsGasOilGunNoService gasOilGunNoService; |
|
|
|
private BsGasOilGunNoService gasOilGunNoService; |
|
|
|
@Resource |
|
|
|
@Resource |
|
|
|
private BsGasService gasService; |
|
|
|
private BsGasService gasService; |
|
|
|
|
|
|
|
@Resource |
|
|
|
|
|
|
|
private BsGasOilPriceWeekService gasOilPriceWeekService; |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void editData(BsGasOilPrice data) { |
|
|
|
public void editData(BsGasOilPrice data) { |
|
|
|
if (data.getId() == null) { |
|
|
|
if (data.getId() == null) { |
|
|
@ -67,6 +71,9 @@ public class BsGasOilPriceServiceImpl implements BsGasOilPriceService { |
|
|
|
data.setStatus(GasOilPriceStatusEnum.status0.getNumber()); |
|
|
|
data.setStatus(GasOilPriceStatusEnum.status0.getNumber()); |
|
|
|
editOilPrice(data); |
|
|
|
editOilPrice(data); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 删除油价日期任务
|
|
|
|
|
|
|
|
gasOilPriceWeekService.deletePrice(data.getMerNo(), data.getOilNo()); |
|
|
|
|
|
|
|
|
|
|
|
// 删除抢号
|
|
|
|
// 删除抢号
|
|
|
|
gasOilGunNoService.delete(data.getMerNo(), data.getOilNo()); |
|
|
|
gasOilGunNoService.delete(data.getMerNo(), data.getOilNo()); |
|
|
|
} |
|
|
|
} |
|
|
|