|
@@ -30,7 +30,7 @@ public class YpfydlController {
|
|
|
*/
|
|
|
@UserLoginToken
|
|
|
@RequestMapping(value = "/getToMedicine", method = {RequestMethod.GET})
|
|
|
- public Map<String, Object> getToMedicine(@RequestParam("groupNo") String groupNo) {
|
|
|
+ public Map<String, Object> getToMedicine(@RequestParam("groupNo") String groupNo, @RequestParam("winNo") String winNo) {
|
|
|
Map<String, Object> resultMap = new HashMap<>();
|
|
|
try {
|
|
|
if (StringUtils.isBlank(groupNo)) {
|
|
@@ -38,6 +38,11 @@ public class YpfydlController {
|
|
|
resultMap.put("message", "查询未发药药品失败,未选择药房");
|
|
|
return resultMap;
|
|
|
}
|
|
|
+ if (StringUtils.isBlank(winNo)) {
|
|
|
+ resultMap.put("code", -1);
|
|
|
+ resultMap.put("message", "查询未发药药品失败,未选择发药窗口");
|
|
|
+ return resultMap;
|
|
|
+ }
|
|
|
Date now = new Date();
|
|
|
Date begin = DateUtil.getFirstSecond(now);
|
|
|
Date end = DateUtil.getLastSecond(now);
|
|
@@ -46,7 +51,7 @@ public class YpfydlController {
|
|
|
List<String> pastList = new ArrayList();
|
|
|
//待取药集合
|
|
|
List<String> currentList = new ArrayList();
|
|
|
- List<Map<String, Object>> all = mzYpFydlService.queryToMedicine(groupNo, begin, end);
|
|
|
+ List<Map<String, Object>> all = mzYpFydlService.queryToMedicine(groupNo, begin, end, winNo);
|
|
|
if (all != null && all.size() > 0) {
|
|
|
for (Map<String, Object> map : all) {
|
|
|
Date priceTime = (Date) map.get("price_time");
|
|
@@ -87,7 +92,7 @@ public class YpfydlController {
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/getToMedicineUser", method = {RequestMethod.GET})
|
|
|
- public Map<String, Object> getToMedicineUser(@RequestParam("groupNo") String groupNo) {
|
|
|
+ public Map<String, Object> getToMedicineUser(@RequestParam("groupNo") String groupNo, @RequestParam("winNo") String winNo) {
|
|
|
Map<String, Object> resultMap = new HashMap<>();
|
|
|
try {
|
|
|
if (StringUtils.isBlank(groupNo)) {
|
|
@@ -95,10 +100,15 @@ public class YpfydlController {
|
|
|
resultMap.put("message", "查询未发药药品失败,未选择药房");
|
|
|
return resultMap;
|
|
|
}
|
|
|
+ if (StringUtils.isBlank(winNo)) {
|
|
|
+ resultMap.put("code", -1);
|
|
|
+ resultMap.put("message", "查询未发药药品失败,未选择发药窗口");
|
|
|
+ return resultMap;
|
|
|
+ }
|
|
|
Date now = new Date();
|
|
|
Date begin = DateUtil.getFirstSecond(now);
|
|
|
Date end = DateUtil.getLastSecond(now);
|
|
|
- List<Map<String, Object>> currentList = mzYpFydlService.queryToMedicine(groupNo, begin, end);
|
|
|
+ List<Map<String, Object>> currentList = mzYpFydlService.queryToMedicine(groupNo, begin, end, winNo);
|
|
|
resultMap.put("code", 0);
|
|
|
resultMap.put("message", "查询未发药药品成功");
|
|
|
resultMap.put("currentList", currentList);
|