| | |
| | | */ |
| | | |
| | | public int update(PrIntake po) { |
| | | if (po.getTownId() == null || po.getTownId() == 0) { |
| | | Long townId = getSupperByVillageId(po.getVillageId()); |
| | | po.setTownId(townId); |
| | | } |
| | | if (po.getCountyId() == null || po.getCountyId() == 0) { |
| | | Long countyId = getSupperByVillageId(getSupperByVillageId(po.getVillageId())); |
| | | po.setCountyId(countyId); |
| | | } |
| | | // if (po.getTownId() == null || po.getTownId() == 0) { |
| | | // Long townId = getSupperByVillageId(po.getVillageId()); |
| | | // po.setTownId(townId); |
| | | // } |
| | | // if (po.getCountyId() == null || po.getCountyId() == 0) { |
| | | // Long countyId = getSupperByVillageId(getSupperByVillageId(po.getVillageId())); |
| | | // po.setCountyId(countyId); |
| | | // } |
| | | return this.prIntakeMapper.updateByPrimaryKeySelective(po); |
| | | // return this.prIntakeMapper.updateByPrimaryKey(po); |
| | | } |