最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

基于微信小程序的藥店管理系統(tǒng)設(shè)計與實(shí)現(xiàn)-計算機(jī)畢業(yè)設(shè)計源碼+LW文檔

2022-11-15 21:54 作者:計算機(jī)畢業(yè)設(shè)計大神888  | 我要投稿

? ? ? ? ? ? ? ? ? ? ? ? ? ?小程序開發(fā)說明


開發(fā)語言:Java

框架:ssm

JDK版本:JDK1.8

服務(wù)器:tomcat7

數(shù)據(jù)庫:mysql 5.7(一定要5.7版本)

數(shù)據(jù)庫工具:Navicat11

開發(fā)軟件:eclipse/myeclipse/idea

Maven包:Maven3.3.9

瀏覽器:谷歌瀏覽器


小程序框架:uniapp

小程序開發(fā)軟件:HBuilder X

小程序運(yùn)行軟件:微信開發(fā)者



代碼:


/**

?* 訂單

?* 后端接口

?* @author?

?* @email?

?* @date 2022-03-17 10:27:03

?*/

@RestController

@RequestMapping("/orders")

public class OrdersController {

? ? @Autowired

? ? private OrdersService ordersService;




? ??



? ? /**

? ? ?* 后端列表

? ? ?*/

? ? @RequestMapping("/page")

? ? public R page(@RequestParam Map<String, Object> params,OrdersEntity orders,?

HttpServletRequest request){

? ? if(!request.getSession().getAttribute("role").toString().equals("管理員")) {

? ? orders.setUserid((Long)request.getSession().getAttribute("userId"));

? ? }


? ? ? ? EntityWrapper<OrdersEntity> ew = new EntityWrapper<OrdersEntity>();

PageUtils page = ordersService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, orders), params), params));

? ? ? ? return R.ok().put("data", page);

? ? }

? ??

? ? /**

? ? ?* 前端列表

? ? ?*/

@IgnoreAuth

? ? @RequestMapping("/list")

? ? public R list(@RequestParam Map<String, Object> params,OrdersEntity orders,?

HttpServletRequest request){

? ? ? ? EntityWrapper<OrdersEntity> ew = new EntityWrapper<OrdersEntity>();

PageUtils page = ordersService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, orders), params), params));

? ? ? ? return R.ok().put("data", page);

? ? }


/**

? ? ?* 列表

? ? ?*/

? ? @RequestMapping("/lists")

? ? public R list( OrdersEntity orders){

? ? ? ? EntityWrapper<OrdersEntity> ew = new EntityWrapper<OrdersEntity>();

? ? ? ew.allEq(MPUtil.allEQMapPre( orders, "orders"));?

? ? ? ? return R.ok().put("data", ordersService.selectListView(ew));

? ? }


/**

? ? ?* 查詢

? ? ?*/

? ? @RequestMapping("/query")

? ? public R query(OrdersEntity orders){

? ? ? ? EntityWrapper< OrdersEntity> ew = new EntityWrapper< OrdersEntity>();

? ew.allEq(MPUtil.allEQMapPre( orders, "orders"));?

OrdersView ordersView =? ordersService.selectView(ew);

return R.ok("查詢訂單成功").put("data", ordersView);

? ? }

? ? /**

? ? ?* 后端詳情

? ? ?*/

? ? @RequestMapping("/info/{id}")

? ? public R info(@PathVariable("id") Long id){

? ? ? ? OrdersEntity orders = ordersService.selectById(id);

? ? ? ? return R.ok().put("data", orders);

? ? }


? ? /**

? ? ?* 前端詳情

? ? ?*/

@IgnoreAuth

? ? @RequestMapping("/detail/{id}")

? ? public R detail(@PathVariable("id") Long id){

? ? ? ? OrdersEntity orders = ordersService.selectById(id);

? ? ? ? return R.ok().put("data", orders);

? ? }

? ??




? ? /**

? ? ?* 后端保存

? ? ?*/

? ? @RequestMapping("/save")

? ? public R save(@RequestBody OrdersEntity orders, HttpServletRequest request){

? ? orders.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());

? ? //ValidatorUtils.validateEntity(orders);

? ? orders.setUserid((Long)request.getSession().getAttribute("userId"));


? ? ? ? ordersService.insert(orders);

? ? ? ? return R.ok();

? ? }

? ??

? ? /**

? ? ?* 前端保存

? ? ?*/

? ? @RequestMapping("/add")

? ? public R add(@RequestBody OrdersEntity orders, HttpServletRequest request){

? ? orders.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());

? ? //ValidatorUtils.validateEntity(orders);


? ? ? ? ordersService.insert(orders);

? ? ? ? return R.ok();

? ? }


? ? /**

? ? ?* 修改

? ? ?*/

? ? @RequestMapping("/update")

? ? public R update(@RequestBody OrdersEntity orders, HttpServletRequest request){

? ? ? ? //ValidatorUtils.validateEntity(orders);

? ? ? ? ordersService.updateById(orders);//全部更新

? ? ? ? return R.ok();

? ? }

? ??


基于微信小程序的藥店管理系統(tǒng)設(shè)計與實(shí)現(xiàn)-計算機(jī)畢業(yè)設(shè)計源碼+LW文檔的評論 (共 條)

分享到微博請遵守國家法律
娄烦县| 长子县| 濮阳县| 绥滨县| 咸宁市| 嘉峪关市| 休宁县| 普兰县| 易门县| 屯昌县| 日土县| 赤城县| 屏边| 大同县| 灌南县| 宁夏| 普宁市| 甘洛县| 习水县| 定安县| 青阳县| 皋兰县| 安福县| 巴东县| 中牟县| 武义县| 凤冈县| 沿河| 汤阴县| 尼玛县| 昌邑市| 岚皋县| 巧家县| 南皮县| 合江县| 团风县| 高淳县| 榆林市| 卢氏县| 伊吾县| 新邵县|