|
@@ -137,7 +137,14 @@ public class BillPersonnelAdmissionServiceImpl extends ServiceImpl<BillPersonnel
|
|
|
baseProcess.setUpdateDate(LocalDateTime.now().format(dateTimeFormatter));
|
|
|
baseProcess.setCurrentStatus("0");
|
|
|
//获取位置
|
|
|
- BaseLocation baseLocation = baseLocationMapper.selectOne(new QueryWrapper<BaseLocation>().eq("farm_id", farmId).eq("vistit_type", vistitType).eq("parent_id", 0));
|
|
|
+ BaseLocation baseLocation;
|
|
|
+ if (Integer.parseInt(destId) <= 47){
|
|
|
+ baseLocation = baseLocationMapper.selectOne(new QueryWrapper<BaseLocation>().eq("farm_id", farmId).eq("vistit_type", vistitType).eq("parent_id", 0));
|
|
|
+ }else if (Integer.parseInt(destId) <= 50){
|
|
|
+ baseLocation = baseLocationMapper.selectOne(new QueryWrapper<BaseLocation>().eq("farm_id", farmId).eq("vistit_type", vistitType).eq("location_type", 2).eq("parent_id",1));
|
|
|
+ }else {
|
|
|
+ baseLocation = baseLocationMapper.selectOne(new QueryWrapper<BaseLocation>().eq("farm_id", farmId).eq("vistit_type", vistitType).eq("location_type", 3).eq("parent_id",1));
|
|
|
+ }
|
|
|
if (ObjectUtil.isEmpty(baseLocation)) {
|
|
|
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
|
|
|
return new Result(10001, "该来访类型位置不存在", false);
|