|
|
|
@ -2,11 +2,13 @@ package cn.chjyj.szwh.controller.admin; |
|
|
|
|
|
|
|
import cn.chjyj.szwh.bean.Goods; |
|
|
|
import cn.chjyj.szwh.bean.GoodsDetail; |
|
|
|
import cn.chjyj.szwh.bean.GoodsSource; |
|
|
|
import cn.chjyj.szwh.bean.User; |
|
|
|
import cn.chjyj.szwh.controller.BaseController; |
|
|
|
import cn.chjyj.szwh.exception.ChException; |
|
|
|
import cn.chjyj.szwh.service.GoodsDetailService; |
|
|
|
import cn.chjyj.szwh.service.GoodsService; |
|
|
|
import cn.chjyj.szwh.service.GoodsSourceService; |
|
|
|
import cn.chjyj.szwh.service.UserService; |
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
@ -28,6 +30,8 @@ public class AdminGoodsController extends BaseController { |
|
|
|
@Autowired |
|
|
|
private GoodsDetailService goodsDetailService; |
|
|
|
@Autowired |
|
|
|
private GoodsSourceService goodsSourceService; |
|
|
|
@Autowired |
|
|
|
private UserService userService; |
|
|
|
|
|
|
|
/** |
|
|
|
@ -193,8 +197,18 @@ public class AdminGoodsController extends BaseController { |
|
|
|
* @param jstr vue端发送来的json字符串 |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@PostMapping("/sourceDetail") |
|
|
|
@RequestMapping("/sourceDetail") |
|
|
|
public JSONObject sourceDetail(@RequestBody String jstr){ |
|
|
|
JSONObject request = JSON.parseObject(jstr); |
|
|
|
String isli=request.getString("isli"); |
|
|
|
String islicode=request.getString("islicode"); |
|
|
|
String batchcode = request.getString("batchcode"); |
|
|
|
|
|
|
|
Map<String,Object> gsmap = goodsSourceService.getGoodsSourceDetail(isli,islicode,batchcode); |
|
|
|
|
|
|
|
jsonObject.put("code",200); |
|
|
|
jsonObject.put("msg","成功"); |
|
|
|
jsonObject.put("data",gsmap); |
|
|
|
return jsonObject; |
|
|
|
} |
|
|
|
} |
|
|
|
|