| | |
| | | import com.dsh.course.feignClient.activity.PointMercharsClient; |
| | | import com.dsh.course.feignClient.activity.model.*; |
| | | import com.dsh.guns.config.UserExt; |
| | | import com.dsh.guns.core.base.controller.BaseController; |
| | | import com.dsh.guns.core.base.tips.ErrorTip; |
| | | import com.dsh.guns.core.base.tips.SuccessTip; |
| | | import com.dsh.guns.core.common.constant.factory.PageFactory; |
| | |
| | | |
| | | @Controller |
| | | @RequestMapping("/tGoods") |
| | | public class TGoodsController extends BaseController { |
| | | public class TGoodsController { |
| | | |
| | | |
| | | |
| | |
| | | */ |
| | | @RequestMapping("/write_off") |
| | | @ResponseBody |
| | | public Object GoodsWriteOff(String id){ |
| | | Integer objectType = UserExt.getUser().getObjectType(); |
| | | Map<String, Object> stringObjectHashMap = new HashMap<>(); |
| | | stringObjectHashMap.put("goodsId",id); |
| | | stringObjectHashMap.put("managerId",objectType); |
| | | boolean b = pointMercharsClient.writeOffGoodsStatus(stringObjectHashMap); |
| | | System.out.println(b); |
| | | if (b){ |
| | | return new SuccessTip<>(); |
| | | }else { |
| | | return ERROR; |
| | | } |
| | | |
| | | public Object GoodsWriteOff(Integer id){ |
| | | System.out.println(id); |
| | | // TODO: 2023/8/15 核销操作 |
| | | return new SuccessTip<>(); |
| | | } |
| | | |
| | | |