| | |
| | | if (!personList.contains(person)) { |
| | | personList.add(person); |
| | | } else { |
| | | delete(businessPerson); |
| | | deletePhysically(businessPerson); |
| | | } |
| | | } |
| | | } |
| | |
| | | try { |
| | | List<ModelAdapter> personList = findList("select * from business_person where business_id='" + businessId + "' and person_id='" + personId + "'"); |
| | | for (ModelAdapter person : personList) { |
| | | delete(person); |
| | | deletePhysically(person); |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | |
| | | for (ModelAdapter validBusinessRule : validBusinessRuleList) { |
| | | ModelAdapter person = findOne("select * from business_person where business_id='" + validBusinessRule.getId() + "' and person_id='" + personId + "' "); |
| | | if (person != null) { |
| | | System.out.println(person.getString("pass_model")); |
| | | System1.out.println(person.getString("pass_model")); |
| | | } |
| | | if (person != null && "有效时间内通行".equals(person.getString("pass_model"))) { |
| | | personInValidBusinessList.add(validBusinessRule); |