|
@@ -5,7 +5,6 @@ import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
-import com.mixsmart.utils.FormulaUtils;
|
|
|
import com.mixsmart.utils.StringUtils;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.springblade.core.tool.api.R;
|
|
@@ -18,7 +17,6 @@ import org.springblade.manager.entity.WbsTreeContract;
|
|
|
import org.springblade.manager.mapper.FormulaOptionMapper;
|
|
|
import org.springblade.manager.service.IFormulaOptionService;
|
|
|
import org.springblade.manager.service.IWbsTreeContractService;
|
|
|
-import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
@@ -110,7 +108,7 @@ public class FormulaOptionServiceImpl extends ServiceImpl<FormulaOptionMapper, F
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public Object saveOrUpdateOption(RangeInfo rg,String[] dw,int start ) {
|
|
|
+ public void saveOrUpdateOption(RangeInfo rg, String[] dw, int start ) {
|
|
|
try {
|
|
|
|
|
|
RangeJson rj = new RangeJson(rg);
|
|
@@ -151,10 +149,9 @@ public class FormulaOptionServiceImpl extends ServiceImpl<FormulaOptionMapper, F
|
|
|
}
|
|
|
formulaOption.setVal(root.toJSONString());
|
|
|
this.saveOrUpdate(formulaOption);
|
|
|
- return data;
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
- return R.fail("保存失败");
|
|
|
+ R.fail("保存失败");
|
|
|
}
|
|
|
}
|
|
|
|