|
|
@ -73,6 +73,15 @@ public class TbDataConfController extends JeecgController<TbDataConf, ITbDataCon |
|
|
|
@ApiOperation(value = "平台铝价-添加", notes = "平台铝价-添加") |
|
|
|
@PostMapping(value = "/add") |
|
|
|
public Result<String> add(@RequestBody TbDataConf tbDataConf) { |
|
|
|
if (tbDataConf.getType()==null){ |
|
|
|
return Result.error("请选择类型!"); |
|
|
|
} |
|
|
|
if (tbDataConf.getPriceDate()==null){ |
|
|
|
return Result.error("请选择日期!"); |
|
|
|
} |
|
|
|
if (tbDataConf.getPrice()==null){ |
|
|
|
return Result.error("请输入价格!"); |
|
|
|
} |
|
|
|
tbDataConfService.save(tbDataConf); |
|
|
|
return Result.OK("添加成功!"); |
|
|
|
} |
|
|
|