提交 fce94199 作者: zhenjie

采购订单添加备注修改

上级 6701e03b
......@@ -70,7 +70,17 @@ public class UavPOController extends BaseController {
return uavPOService.send(param);
}
// 评价
@ApiOperation(value = "平台备注")
@ApiResponses({@ApiResponse(code = 200, message = "OK", response = ResultBody.class)})
@GetMapping("userRemark")
public ResultBody userRemark(@RequestParam Integer id, @RequestParam String content) {
return uavPOService.userRemark(id, content);
}
// 签署完成改变状态
@ApiOperation(value = "商家备注")
@ApiResponses({@ApiResponse(code = 200, message = "OK", response = ResultBody.class)})
@GetMapping("sellerRemark")
public ResultBody sellerRemark(@RequestParam Integer id, @RequestParam String content) {
return uavPOService.sellerRemark(id, content);
}
}
......@@ -38,4 +38,8 @@ public interface UavPODao {
UavPurchaseOrderDO getUavPOrderByNo(String orderNo);
UavPurchaseOrderPayDO getUavPOrderPayById(Integer id);
void userRemark(Integer id, String content);
void sellerRemark(Integer id, String content);
}
......@@ -27,4 +27,8 @@ public interface UavPOService {
ResultBody uavPOFinishSign(String orderNo);
ResultBody receive(Integer id);
ResultBody userRemark(Integer id, String content);
ResultBody sellerRemark(Integer id, String content);
}
......@@ -240,4 +240,16 @@ public class UavPOServiceImpl implements UavPOService {
this.updateUavPOrderStatus(uavPurchaseOrderDO.getId(), UavOrderStatus.WAITING_REMARK);
return ResultBody.success();
}
@Override
public ResultBody userRemark(Integer id, String content) {
uavPODao.userRemark(id, content);
return ResultBody.success();
}
@Override
public ResultBody sellerRemark(Integer id, String content) {
uavPODao.sellerRemark(id, content);
return ResultBody.success();
}
}
......@@ -84,6 +84,14 @@
where id = #{id}
</update>
<update id="userRemark">
update uav_purchase_order set user_remark = #{content} where id = #{id}
</update>
<update id="sellerRemark">
update uav_purchase_order set seller_remark = #{content} where id = #{id}
</update>
<select id="listUavOrderSkuDO" resultType="com.mmc.oms.entity.uav.UavOrderSkuDO">
select
id,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论