Commit 382badfe389d0d786db0ca053ac26c03fa723511

Authored by qiaoyuewang
1 parent 9bf86a494d
Exists in dev

1:调整检测档案号是否重复的返回对象内容9

Showing 1 changed file with 2 additions and 2 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ViewFacade.java View file @ 382badf
... ... @@ -1814,7 +1814,7 @@
1814 1814 BaseObjectResponse br = new BaseObjectResponse();
1815 1815 CheckFiledataNo checkFiledataNo = new CheckFiledataNo();
1816 1816 Patients data = patientsService.findOnePatientByHighRiskDocNo(id);
1817   - if (data == null || data.getHighRiskFileCode().length()>0) {
  1817 + if (data == null || data.getYn() == YnEnums.NO.getId()) {
1818 1818 br.setErrorcode(201);
1819 1819 checkFiledataNo.setCode(201);
1820 1820 br.setErrormsg("该高危档案号可以使用");
... ... @@ -1822,7 +1822,7 @@
1822 1822 return br;
1823 1823 }
1824 1824  
1825   - if(data !=null && data.getHighRiskFileCode().length()>0){
  1825 + if(data !=null && data.get.length()>0){
1826 1826 br.setErrorcode(200);
1827 1827 br.setErrormsg("该高危档案号已经被使用过了,请重新输入");
1828 1828 checkFiledataNo.setErrormessage("该高危档案号已经被使用过了,请重新输入");