|
@@ -50,7 +50,6 @@ public class GoodsTransitAppController {
|
|
* 查集合 - 根据自己的互市区ID查询对应互市区的商品
|
|
* 查集合 - 根据自己的互市区ID查询对应互市区的商品
|
|
*/
|
|
*/
|
|
@RequestMapping("getTransitList")
|
|
@RequestMapping("getTransitList")
|
|
-// @SaCheckPermission(TbGoodsTransit.PERMISSION_CODE)
|
|
|
|
public AjaxJson getTransitList() {
|
|
public AjaxJson getTransitList() {
|
|
SoMap so = SoMap.getRequestSoMap();
|
|
SoMap so = SoMap.getRequestSoMap();
|
|
List<TbGoodsTransit> list = tbGoodsTransitService.getAppList(so.startPage());
|
|
List<TbGoodsTransit> list = tbGoodsTransitService.getAppList(so.startPage());
|
|
@@ -83,27 +82,28 @@ public class GoodsTransitAppController {
|
|
* 改
|
|
* 改
|
|
*/
|
|
*/
|
|
@RequestMapping("update")
|
|
@RequestMapping("update")
|
|
-// @SaCheckPermission(TbGoodsTransit.PERMISSION_CODE_EDIT)
|
|
|
|
public AjaxJson update(TbGoodsTransit t) {
|
|
public AjaxJson update(TbGoodsTransit t) {
|
|
tbGoodsTransitService.update(t);
|
|
tbGoodsTransitService.update(t);
|
|
return AjaxJson.getSuccess();
|
|
return AjaxJson.getSuccess();
|
|
}
|
|
}
|
|
|
|
|
|
- /** 改 enterprise_confirm:'商铺确认情况[0=待确认,1=已确认,2=拒绝]',*/
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 改 enterprise_confirm:'商铺确认情况[0=待确认,1=已确认,2=拒绝]',
|
|
|
|
+ */
|
|
@RequestMapping("updateEnterpriseConfirm")
|
|
@RequestMapping("updateEnterpriseConfirm")
|
|
// @SaCheckPermission(TbGoodsTransit.PERMISSION_CODE_EDIT)
|
|
// @SaCheckPermission(TbGoodsTransit.PERMISSION_CODE_EDIT)
|
|
- public AjaxJson updateEnterpriseConfirm(Long id,Integer enterpriseConfirm) {
|
|
|
|
|
|
+ public AjaxJson updateEnterpriseConfirm(Long id, Integer enterpriseConfirm) {
|
|
TbGoodsTransit t = new TbGoodsTransit();
|
|
TbGoodsTransit t = new TbGoodsTransit();
|
|
t.setId(id);
|
|
t.setId(id);
|
|
t.setEnterpriseConfirm(enterpriseConfirm);
|
|
t.setEnterpriseConfirm(enterpriseConfirm);
|
|
// 商户拒绝接单后把订单状态恢复为未被下单
|
|
// 商户拒绝接单后把订单状态恢复为未被下单
|
|
- if(2 == enterpriseConfirm) {
|
|
|
|
|
|
+ if (2 == enterpriseConfirm) {
|
|
t.setIsOrders(0);
|
|
t.setIsOrders(0);
|
|
}
|
|
}
|
|
tbGoodsTransitService.update(t);
|
|
tbGoodsTransitService.update(t);
|
|
|
|
|
|
// 商户确认接单后修改订单表的‘商家确认状态’为已确认
|
|
// 商户确认接单后修改订单表的‘商家确认状态’为已确认
|
|
- if(1 == enterpriseConfirm) {
|
|
|
|
|
|
+ if (1 == enterpriseConfirm) {
|
|
LambdaUpdateWrapper<TbOrder> wrapper = new LambdaUpdateWrapper();
|
|
LambdaUpdateWrapper<TbOrder> wrapper = new LambdaUpdateWrapper();
|
|
//一级市场商户确认(0=待确认,1=是,2=否)
|
|
//一级市场商户确认(0=待确认,1=是,2=否)
|
|
wrapper.set(TbOrder::getEnterpriseConfirm, 1);
|
|
wrapper.set(TbOrder::getEnterpriseConfirm, 1);
|
|
@@ -120,12 +120,9 @@ public class GoodsTransitAppController {
|
|
/**
|
|
/**
|
|
* app端用户添加商品
|
|
* app端用户添加商品
|
|
*/
|
|
*/
|
|
- @RequestMapping("transactionGoods")
|
|
|
|
-// @SaCheckPermission(TbGoodsTransit.PERMISSION_CODE_ADD)
|
|
|
|
- public AjaxJson transactionGoods(TransactionGoodsParam t) {
|
|
|
|
- boolean goods = tbGoodsTransitService.transactionGoods(t);
|
|
|
|
- if (goods) return AjaxJson.getSuccess("商品添加成功!");
|
|
|
|
- return AjaxJson.getError("商品添加失败!");
|
|
|
|
|
|
+ @RequestMapping("add")
|
|
|
|
+ public AjaxJson add(TransactionGoodsParam t) {
|
|
|
|
+ return AjaxJson.toAjax(tbGoodsTransitService.transactionGoods(t));
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|