| | |
| | | import com.zy.api.entity.SyncMatParmas; |
| | | import com.zy.api.service.KopenApiService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | |
| | | |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/kopen") |
| | | public class KopenApiController { |
| | |
| | | */ |
| | | @ApiOperation("零件信息数据更新") |
| | | @PostMapping("/sendPartsMaster") |
| | | public R basMatUpdate(@RequestBody SyncMatParmas params) { |
| | | if (Objects.isNull(params)) { |
| | | public R basMatUpdate(@RequestBody List<SyncMatParmas> params) { |
| | | if (Objects.isNull(params) || params.isEmpty()) { |
| | | return R.error("参数不能为空!!"); |
| | | } |
| | | if (Objects.isNull(params.getPro_komcode())) { |
| | | return R.error("零件编码不能为空!!"); |
| | | } |
| | | |
| | | return kopenApiService.basMatupdate(params); |
| | | } |
| | | |