当前位置:网站首页>Medicine management system based on ssm+mysql+jquery
Medicine management system based on ssm+mysql+jquery
2022-07-22 11:43:00 【two billion sixteen million eight hundred and fifty-five thousa】
home page
User query
Operator information query
Customer entry
Browse customer information
Information view
Drug information inquiry
Customer information
User management
Operator data report
Customer number
home page
Technical description
development tool : Idea/Eclipse
database : mysql
Jar Warehouse : Maven
Front frame :jquery/Jsp
Back end framework : Spring+SpringMVC+Mybatis
Information note
be based on SSM+MySQL+JQuery Medical management system , Divided into administrators , agent , Customers and other roles , Assign different menu interfaces . The overall function includes customer management , The operator manages , Drug information inquiry , Delete drug information , modify , Data reports , User management, etc .
package mms.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import mms.pojo.Agency;
import mms.pojo.EasyUIResult;
import mms.services.AgencyService;
@RequestMapping("Agency")
@Controller
public class AgencyController {
// agent controller
@Autowired
private AgencyService agencyService;
// adopt ano Query a single handler
@RequestMapping("GetAgency")
@ResponseBody
public Agency queryAgencyByAno(String ano) {
Agency agency = agencyService.queryAgencyByAno(ano);
return agency;
}
@RequestMapping(value = "DeleteAgency", produces = "text/html;charset=UTF-8")
@ResponseBody
// Delete by number
public String deleteAgencyByAno(String ano) {
return agencyService.deleteAgencyByAno(ano);
}
// Batch deletion
@RequestMapping(value = "DeleteRows", produces = "text/html;charset=UTF-8")
@ResponseBody
public String deleteAgencyByRows(@RequestParam(value = "array[]") String[] array) {
try {
return agencyService.deleteAgencyByRows(array);
} catch (Exception e) {
// TODO: handle exception
// Capture exception ,spring Perform transaction rollback
return " Abnormal operation ,, Some operators have processed customer information , The handler cannot be deleted , Please reselect ";
}
}
// Modify the operator information
@RequestMapping(value = "ModifyAgency", produces = "text/html;charset=UTF-8")
@ResponseBody
public String modifyAgency(Agency agency) {
return agencyService.modifyAgency(agency);
}
// easyui The data table is returned to all operators json
@RequestMapping("GetMessage")
@ResponseBody
public EasyUIResult queryAllAgency(@RequestParam(value = "page", defaultValue = "1") Integer page,
@RequestParam(value = "rows", defaultValue = "5") Integer rows) {
return this.agencyService.queryAllAgency(page, rows);
}
// Save the handler information
@RequestMapping(value = "SaveAgency", produces = "text/html;charset=UTF-8")
@ResponseBody
public String saveAgency(Agency agency) {
return agencyService.saveAgency(agency);
}
// Return to all handlers
@RequestMapping("GetAllAgency")
@ResponseBody
public java.util.List<Agency> getAllAgency() {
java.util.List<Agency> allAgency = agencyService.getAllAgency();
return allAgency;
}
}
@RequestMapping("Client")
@Controller
public class ClientController {
// customer controller
@Autowired
// Inject service
private ClientService clientService;
// Search by number
@RequestMapping("GetClient")
@ResponseBody
public Client queryClientBycno(String cno) {
Client client = clientService.queryClientBycno(cno);
return client;
}
// Delete by number
@RequestMapping("DeleteClient")
@ResponseBody
public void deleteClientBycno(String cno) {
clientService.deleteClientBycno(cno);
}
// Batch deletion
@RequestMapping(value = "DeleteRows", produces = "text/html;charset=UTF-8")
@ResponseBody
public String deleteClientByRows(
@RequestParam(value = "array[]") String[] array) {
return clientService.deleteClientByRows(array);
// clientService.deleteClientBycno(cno);
}
// Keep customer information
@RequestMapping(value = "SaveClient", produces = "text/html;charset=UTF-8")
@ResponseBody
public String saveClient(Client client) {
return clientService.saveClient(client);
}
@RequestMapping("GetMessage")
@ResponseBody
// easyui return json
public EasyUIResult queryAllClient(@RequestParam(value = "page", defaultValue = "1") Integer page,
@RequestParam(value = "rows", defaultValue = "5") Integer rows) {
EasyUIResult queryAllClient = clientService.queryAllClient(page, rows);
return queryAllClient;
}
// Modify customer information
@RequestMapping(value = "ModifyClient", produces = "text/html;charset=UTF-8")
@ResponseBody
public String modifyClient(Client client) {
return clientService.modifyClient(client);
}
}
边栏推荐
- Custom type: structure (II) bit segment implementation
- Introduction aux noeuds
- 30出头成为复旦博导,陈思明:敲代码和写诗,我两样都要
- let 与 var 的区别
- Pytoch training model fixes random seeds to ensure that the accuracy can be reproduced
- 人人都能用的多语种大模型来了!支持59种语言,参数1760亿,1000名科学家联合发起
- Ready to use & serialization and parallelism & pytoch official document summary & Notes (IV)
- Memorize these interview questions, and you will be half successful in any technical aspect
- lc marathon 7.21
- 【毕设项目推荐】学长做过的那些有趣的毕设项目 - 毕设项目分享 (单片机 嵌入式 物联网 stm32)
猜你喜欢
Tail recursive call process sorting
Instant use & other operations & pytoch official document summary & Notes (VIII)
Leetcode skimming -- bit by bit record 019
人力资源管理软件让每位员工的记录触手可及
使用 Opencv and OS or pathlib.Path 获取路径名称和图像名称,并保存图像到指定路径
Opencv & crop video into image sets with a specified frame rate
Translation of multiple UAV exploration of an unknown region
多线程与高并发day09
Embedded sharing collection 18
lc marathon 7.21
随机推荐
底线
MySQL Varchar前缀索引的一个细节
imdecode、imencode、. Tofile and fromfile read and save the file with Chinese name of Chinese path and parse and compare the result of function step by step
全球首个航天大模型问世,文心秒补《富春山居图》,这是百度普惠AI的恒心
lc marathon 7.21
删除文件夹中的相邻但名称不同的文件 && 适应于神经网络训练时的标签名称和图像名称相对应的情况
lc marathon 7.21
How do you choose sentinel vs. hystrix?
LeetCode·987.二叉树的垂直遍历·桶排序·模拟
请求转发和请求重定向的区别
基于JSP+Servlet+MySQL的新闻博客发布系统
_TensorBase(45个张量基础后置函数总结) && Pytorch官方文件 && NOTEBOOK(NINE)
tsconfig. Role of JSON file
基于SSM+MySQL+EasyUI+的博客论坛管理系统
Introduction to nodes
加密市场飙升至1万亿美元以上 不过是假象?加密熊市远未见底
Use opencv and OS or pathlib Path gets the path name and image name, and saves the image to the specified path
Leetcode skimming -- drip record 020
LeetCode刷题--点滴记录019
Dokcer running Nacos container automatic exit problem