修改his视图的sql入参,医嘱开单的相关接口。
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -64,6 +64,11 @@ public class HisViewSearchController {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取今天的遗嘱开单信息
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/getMedicalPrescription")
|
||||
@EleganceLog(description = "获取今天的遗嘱开单信息!")
|
||||
public Result getMedicalPrescription() {
|
||||
|
||||
@@ -9,8 +9,10 @@ import com.joju.datamanager.common.result.Result;
|
||||
import com.joju.datamanager.common.result.ResultUtil;
|
||||
import com.joju.datamanager.model.medicalprescription.MedicalPrescription;
|
||||
import com.joju.datamanager.service.MedicalPrescriptionService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@@ -21,6 +23,7 @@ import java.util.List;
|
||||
* @author: Mr.zs
|
||||
* @create: 2024-04-02 19:11
|
||||
**/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/MedicalPrescription")
|
||||
public class MedicalPrescriptionController {
|
||||
@@ -42,9 +45,23 @@ public class MedicalPrescriptionController {
|
||||
List<MedicalPrescription> medicalPrescriptions = medicalPrescriptionService.list(new QueryWrapper<MedicalPrescription>().between("lrrq", todayString, tomorrowString));
|
||||
|
||||
if (!CollUtil.isEmpty(medicalPrescriptions)) {
|
||||
log.info("medicalPrescriptions is :" + medicalPrescriptions);
|
||||
return ResultUtil.successData(medicalPrescriptions);
|
||||
}
|
||||
|
||||
return ResultUtil.failureMsg("获取失败!!");
|
||||
}
|
||||
|
||||
|
||||
@PostMapping("insertLocalMedicalPrescriptions")
|
||||
@EleganceLog(description = "批量插入本地医嘱开单信息")
|
||||
public Result insertLocalMedicalPrescriptions(List<MedicalPrescription> medicalPrescriptions) {
|
||||
boolean b = medicalPrescriptionService.saveBatch(medicalPrescriptions);
|
||||
if (b) {
|
||||
return ResultUtil.success();
|
||||
} else {
|
||||
return ResultUtil.failureMsg("插入失败!!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user