|
|
@@ -8,6 +8,7 @@ import org.jeecg.common.api.vo.Result;
|
|
|
import org.jeecg.common.util.CommUtil;
|
|
|
import org.jeecg.common.util.StringUtils;
|
|
|
import org.jeecg.modules.api.dpposition.entity.PositionAPI;
|
|
|
+import org.jeecg.modules.company.mapper.CompanyAuthenticationMapper;
|
|
|
import org.jeecg.modules.hpposition.entity.Position;
|
|
|
import org.jeecg.modules.hpposition.entity.PositionAddress;
|
|
|
import org.jeecg.modules.hpposition.mapper.PositionMapper;
|
|
|
@@ -41,6 +42,8 @@ public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> i
|
|
|
private PositionMapper positionMapper;
|
|
|
@Resource
|
|
|
private IMessageService iMessageService;
|
|
|
+ @Resource
|
|
|
+ private CompanyAuthenticationMapper companyAuthenticationMapper;
|
|
|
@Autowired
|
|
|
private IPositionAddressService positionAddressService;
|
|
|
@Value("${jeecg.c_port.path}")
|
|
|
@@ -344,8 +347,17 @@ public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> i
|
|
|
positionAddressService.save(positionAddress);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
+ String companyName = companyAuthenticationMapper.findCompanyName(Integer.parseInt(userId));
|
|
|
+ if (StringUtils.isNotBlank(companyName)) {
|
|
|
+ List<Position> list=positionMapper.findPosition(Integer.parseInt(userId));
|
|
|
+ if(list.size()>0){
|
|
|
+ for (int i = 0; i <list.size() ; i++) {
|
|
|
+ Position position1=list.get(i);
|
|
|
+ position1.setEnterpriseName(companyName);
|
|
|
+ positionMapper.changePositionName(position);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
} else {
|
|
|
returnMap.put("success", "1004");
|
|
|
}
|
|
|
@@ -450,7 +462,17 @@ public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> i
|
|
|
positionAddressService.save(positionAddress);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ String companyName = companyAuthenticationMapper.findCompanyName(Integer.parseInt(userId));
|
|
|
+ if (StringUtils.isNotBlank(companyName)) {
|
|
|
+ List<Position> list=positionMapper.findPosition(Integer.parseInt(userId));
|
|
|
+ if(list.size()>0){
|
|
|
+ for (int i = 0; i <list.size() ; i++) {
|
|
|
+ Position position1=list.get(i);
|
|
|
+ position1.setEnterpriseName(companyName);
|
|
|
+ positionMapper.changePositionName(position);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
} else {
|
|
|
returnMap.put("success", "1004");
|