|
|
|
@ -12,10 +12,12 @@ import com.hfkj.common.exception.ErrorHelp; |
|
|
|
|
import com.hfkj.common.exception.SysCode; |
|
|
|
|
import com.hfkj.common.utils.ResponseMsgUtil; |
|
|
|
|
import com.hfkj.entity.BsAgentPrice; |
|
|
|
|
import com.hfkj.entity.BsDevice; |
|
|
|
|
import com.hfkj.entity.BsGasOilPrice; |
|
|
|
|
import com.hfkj.model.GasListModel; |
|
|
|
|
import com.hfkj.model.GasModel; |
|
|
|
|
import com.hfkj.model.ResponseData; |
|
|
|
|
import com.hfkj.service.BsDeviceService; |
|
|
|
|
import com.hfkj.service.agent.BsAgentPriceService; |
|
|
|
|
import com.hfkj.service.gas.BsGasOilPriceWeekService; |
|
|
|
|
import com.hfkj.service.gas.BsGasService; |
|
|
|
@ -46,23 +48,6 @@ public class BsGasController { |
|
|
|
|
private NewLinkGasService newLinkGasService; |
|
|
|
|
@Resource |
|
|
|
|
private CqShellPetroleumGasService cqShellPetroleumGasService; |
|
|
|
|
@Resource |
|
|
|
|
private BsGasOilPriceWeekService gasOilPriceWeekService; |
|
|
|
|
@RequestMapping(value="/updatePriceWeek",method = RequestMethod.GET) |
|
|
|
|
@ResponseBody |
|
|
|
|
@ApiOperation(value = "updatePriceWeek") |
|
|
|
|
public ResponseData updatePriceWeek(@RequestParam(name = "week", required = true) Integer week) { |
|
|
|
|
try { |
|
|
|
|
|
|
|
|
|
// 更新价格
|
|
|
|
|
gasOilPriceWeekService.updatePriceWeek(week); |
|
|
|
|
|
|
|
|
|
return ResponseMsgUtil.success("操作成功"); |
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
return ResponseMsgUtil.exception(e); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@RequestMapping(value="/refresh",method = RequestMethod.GET) |
|
|
|
|
@ResponseBody |
|
|
|
|