| | |
| | | import com.oying.utils.R; |
| | | import lombok.RequiredArgsConstructor; |
| | | import java.util.List; |
| | | |
| | | import org.apache.poi.util.Beta; |
| | | import org.springframework.http.HttpStatus; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | |
| | | |
| | | |
| | | } |
| | | |
| | | @Beta//重复值处理 |
| | | //让后端队友更新我的表 |
| | | @PostMapping("/update/seller") |
| | | @ApiOperation("让后端队友更新消息表") |
| | | @ApiOperation("更新插入消息表") |
| | | public R<String> updateMessageOrderSeller(@RequestBody MessageOrderSeller resources) { |
| | | //插入一条数据 |
| | | if(messageOrderSellerService.saveOrUpdate(resources)) |
| | | if(messageOrderSellerService.saveMessageOrderSellerByOrderIdAndStoreId(resources)) |
| | | return R.success("更新成功"); |
| | | return R.fail("更新失败"); |
| | | // if(messageOrderSellerService.updateById(resources)){ |
| | | // return R.success("更新成功"); |
| | | // }else{ |
| | | // return R.fail("更新失败"); |
| | | // } |
| | | |
| | | } |
| | | |
| | | |