|
|
@@ -88,7 +88,7 @@ public class FmsBlockServiceImpl implements IFmsBlockService
|
|
|
fmsBlock.setBlockId(fmsBlock.getId());
|
|
|
fmsBlock.setBlockAreaplant(new BigDecimal("0"));
|
|
|
// TODO: 昌黎定制版的地块的租户标识来源于基地标识
|
|
|
- fmsBlock.setTid(fmsBlock.getLandId());
|
|
|
+ fmsBlock.setTid(SecurityUtils.getTid());
|
|
|
int i = fmsBlockMapper.insertFmsBlock(fmsBlock);
|
|
|
|
|
|
Integer count = fmsBlockMapper.selectCountByLandId(fmsBlock.getLandId(),fmsLand.getLandId());
|
|
|
@@ -105,7 +105,7 @@ public class FmsBlockServiceImpl implements IFmsBlockService
|
|
|
}
|
|
|
}
|
|
|
fmsLand.setLandBlockcount(Long.valueOf(count));
|
|
|
- fmsLand.setTid(fmsLand.getLandId());
|
|
|
+ fmsLand.setTid(SecurityUtils.getTid());
|
|
|
fmsLandMapper.updateFmsLand(fmsLand);
|
|
|
|
|
|
String resIdsStr = fmsBlock.getResIds();
|
|
|
@@ -130,12 +130,12 @@ public class FmsBlockServiceImpl implements IFmsBlockService
|
|
|
@Override
|
|
|
public AjaxResult updateFmsBlock(FmsBlock fmsBlock, FmsLand fmsLand) {
|
|
|
// TODO 此处涉及admin角色修改地块基地
|
|
|
- fmsBlock.setTid(fmsBlock.getLandId());
|
|
|
- fmsLand.setTid(fmsBlock.getLandId());
|
|
|
+ fmsBlock.setTid(SecurityUtils.getTid());
|
|
|
+ fmsLand.setTid(SecurityUtils.getTid());
|
|
|
fmsBlockMapper.updateFmsBlock(fmsBlock);
|
|
|
FmsLand fmsLand1 = new FmsLand();
|
|
|
fmsLand1.setLandId(fmsBlock.getLandId());
|
|
|
- fmsLand1.setTid(fmsBlock.getLandId());
|
|
|
+ fmsLand1.setTid(SecurityUtils.getTid());
|
|
|
BigDecimal sum = fmsBlockMapper.selectSumAreaByLandId(fmsLand1);
|
|
|
if (sum.compareTo(fmsLand.getLandArea()) == 1) {
|
|
|
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
|
|
|
@@ -246,8 +246,8 @@ public class FmsBlockServiceImpl implements IFmsBlockService
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public List<FmsBlock> selectFmsBlockListByLandManager(String userId, String tid) {
|
|
|
- return fmsBlockMapper.selectFmsBlockListByLandManager(userId,tid);
|
|
|
+ public List<FmsBlock> selectFmsBlockListByManager(String userId, String tid) {
|
|
|
+ return fmsBlockMapper.selectFmsBlockListByManager(userId,tid);
|
|
|
}
|
|
|
|
|
|
@Override
|