|
|
@ -25,14 +25,12 @@ |
|
|
|
*********************************************************/ |
|
|
|
package com.yxt.anrui.buscenter.biz.bussalesorderprice; |
|
|
|
|
|
|
|
import com.yxt.anrui.buscenter.api.bussalesorderprice.*; |
|
|
|
import com.yxt.common.core.query.PagerQuery; |
|
|
|
import com.yxt.anrui.buscenter.api.bussalesorderprice.BusSalesOrderPriceFeign; |
|
|
|
import com.yxt.common.core.result.ResultBean; |
|
|
|
import com.yxt.common.core.vo.PagerVo; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
/** |
|
|
|
* Project: anrui-buscenter(业务管理) <br/> |
|
|
@ -52,49 +50,13 @@ import org.springframework.web.bind.annotation.*; |
|
|
|
@RequestMapping("v1/bussalesorderprice") |
|
|
|
public class BusSalesOrderPriceRest implements BusSalesOrderPriceFeign { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private BusSalesOrderPriceService busSalesOrderPriceService; |
|
|
|
@Autowired |
|
|
|
private BusSalesOrderPriceService busSalesOrderPriceService; |
|
|
|
|
|
|
|
@Override |
|
|
|
@ApiOperation("根据条件分页查询数据的列表") |
|
|
|
@PostMapping("/listPage") |
|
|
|
public ResultBean<PagerVo<BusSalesOrderPriceVo>> listPage(@RequestBody PagerQuery<BusSalesOrderPriceQuery> pq){ |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
PagerVo<BusSalesOrderPriceVo> pv = busSalesOrderPriceService.listPageVo(pq); |
|
|
|
return rb.success().setData(pv); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@ApiOperation("新增或修改") |
|
|
|
@PostMapping("/save") |
|
|
|
public ResultBean save(@RequestBody BusSalesOrderPriceDto dto){ |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
// busSalesOrderPriceService.saveOrUpdateDto(dto);
|
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@ApiOperation("根据sid批量删除") |
|
|
|
@PostMapping("/delBySids") |
|
|
|
public ResultBean delBySids(@RequestBody String[] sids){ |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
busSalesOrderPriceService.delBySids(sids); |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@ApiOperation("根据SID获取一条记录") |
|
|
|
@GetMapping("/fetchDetailsBySid/{sid}") |
|
|
|
public ResultBean<BusSalesOrderPriceDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
BusSalesOrderPriceDetailsVo vo = busSalesOrderPriceService.fetchDetailsVoBySid(sid); |
|
|
|
return rb.success().setData(vo); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public ResultBean<String> getPriceByOrderSid(String busSid) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
String price = busSalesOrderPriceService.getPriceByOrderSid(busSid); |
|
|
|
return rb.success().setData(price); |
|
|
|
} |
|
|
|
@Override |
|
|
|
public ResultBean<String> getPriceByOrderSid(String busSid) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
String price = busSalesOrderPriceService.getPriceByOrderSid(busSid); |
|
|
|
return rb.success().setData(price); |
|
|
|
} |
|
|
|
} |
|
|
|