|
|
|
@ -170,7 +170,7 @@ public class PoliceServiceImpl extends BaseServiceImpl<PoliceDao, PoliceEntity> |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public Result save(PoliceDTO dto) { |
|
|
|
Long communityId = dto.getDeptId(); |
|
|
|
Boolean hasPolice = hasPolice(communityId); |
|
|
|
boolean hasPolice = hasPolice(communityId); |
|
|
|
|
|
|
|
// 社区第一次添加民警,直接保存
|
|
|
|
PoliceEntity entity = ConvertUtils.sourceToTarget(dto, PoliceEntity.class); |
|
|
|
|