|
|
@@ -788,7 +788,8 @@ public class XiangMuLuRuService {
|
|
|
*/
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public void generateMedicationListFunc(String startDate, String endDate, String groupNo, Integer pageNo, String dept, Integer refundReason) {
|
|
|
- int count = dao.generateMedicationList(startDate, endDate, dept, groupNo, pageNo);
|
|
|
+ Set<String> deptList = publicServer.getUserDeptList();
|
|
|
+ int count = dao.generateMedicationList(startDate, endDate, PublicServer.listToSqlIn(deptList), groupNo, pageNo);
|
|
|
if (count == 0) {
|
|
|
throw new BizException(ExceptionEnum.LOGICAL_ERROR, "取数为空无法生成药单。");
|
|
|
}
|