vince
2023-06-28 9abb8808eeadfd13ab4d15f780c5d808d382877d
igds-api-phone/src/main/java/com/ld/igds/phone35/service/impl/HPhoneServiceImpl.java
@@ -92,12 +92,11 @@
     */
    public List<InoutRecord> listInoutRecord(Phone35InoutCommonParam param) {
        String hql = " from " + InoutRecord.class.getName() + " where companyId =:companyId"
                + " and recordStatus <>:recordStatus1 and recordStatus <>:recordStatus2";
                + " and recordStatus <>:recordStatus1 ";
        Map<String, Object> args = new HashMap<String, Object>();
        args.put("companyId", param.getCompanyId());
        args.put("recordStatus1", InoutConstant.RECORD_STATUS_DEL);
        args.put("recordStatus2", InoutConstant.RECORD_STATUS_ERROR);
        if (StringUtils.isNotEmpty(param.getDeptId())) {
            hql += " and deptId =:deptId";
@@ -142,12 +141,11 @@
     * @return
     */
    public InoutRecord getInoutRecord(String companyId, String deptId, String id, String intelCard) {
        String hql = " from " + InoutRecord.class.getName() + " where" + " recordStatus <>:recordStatus1 and recordStatus <>:recordStatus2";
        String hql = " from " + InoutRecord.class.getName() + " where" + " recordStatus <>:recordStatus1 ";
        Map<String, Object> args = new HashMap<String, Object>();
        args.put("recordStatus1", InoutConstant.RECORD_STATUS_DEL);
        args.put("recordStatus2", InoutConstant.RECORD_STATUS_ERROR);
        if (StringUtils.isNotEmpty(companyId)) {
            hql += " and companyId =:companyId";