Commit dfc71f7c by 周君强

1.植物名称和果实名称兼容问题修复

parent 676f8b2a
......@@ -130,7 +130,10 @@ public class RequestConversionUtil {
String fruitName = callRequest.get果实名称();
if (!StringUtils.isEmpty(fruitName)) {
ItemPojo item = TimingAcquisition.getItemByName(fruitName);
if (!StringUtils.isEmpty(item)) {
if (StringUtils.isEmpty(item)) {
Integer plantId = TimingAcquisition.getPlantIdByName(fruitName);
operationRequest.setPlantId(plantId);
} else {
if (item.getItemTypeId() == Constants.ITEM_TYPE_FRUIT) { //必须是果实类型
//植物配置信息
Map<Integer, PlantPojo> plantMap = TimingAcquisition.plantMap;
......@@ -143,8 +146,6 @@ public class RequestConversionUtil {
} else {
operationRequest.setPlantId(Constants.REQ_NON);
}
} else {
operationRequest.setPlantId(Constants.REQ_NON);
}
}
//------------------------存在技能名称------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment