1.增加添加产品信息接口

master
MrZhai 3 years ago
parent e3f2a08218
commit c731f23e97

@ -27,6 +27,8 @@ import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
@ -228,4 +230,20 @@ public class UdiInfoController {
pageSimpleResponse.setList(udiInfoEntities);
return ResultVOUtils.success(pageSimpleResponse);
}
/**
*
*
* @return
*/
@AuthRuleAnnotation("")
@PostMapping("/udiwms/udiinfo/erp/products/saveProduct")
public BaseResponse saveProduct(@RequestBody ThrProductsEntity thrProductsEntity) {
if (null == thrProductsEntity)
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL);
thrProductsEntity.setThirdSysFk("thirdId");
thrProductsService.insertThrProducts(thrProductsEntity);
return ResultVOUtils.success();
}
}
Loading…
Cancel
Save