| | |
| | | import com.vincent.rsf.server.api.controller.params.OrderParams; |
| | | import com.vincent.rsf.server.api.service.ReceiveMsgService; |
| | | import com.vincent.rsf.server.common.utils.ExcelUtil; |
| | | import com.vincent.rsf.server.manager.entity.Matnr; |
| | | import com.vincent.rsf.server.manager.entity.excel.AsnOrderTemplate; |
| | | import com.vincent.rsf.server.manager.entity.excel.MatnrsTemplate; |
| | | import com.vincent.rsf.server.manager.service.MatnrGroupService; |
| | | import com.vincent.rsf.server.manager.service.MatnrService; |
| | | import com.vincent.rsf.server.system.controller.BaseController; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * @author Ryan |
| | |
| | | private ReceiveMsgService receiveMsgService; |
| | | @Autowired |
| | | private MatnrService matnrService; |
| | | |
| | | |
| | | /** |
| | | * @author Ryan |
| | |
| | | AsnOrderTemplate template = ExcelUtil.mockData(AsnOrderTemplate.class); |
| | | List<AsnOrderTemplate> list = new ArrayList<>(); |
| | | list.add(template); |
| | | ExcelUtil.build(ExcelUtil.create(list, AsnOrderTemplate.class), response); |
| | | ExcelUtil.build(ExcelUtil.create(list, AsnOrderTemplate.class), response); |
| | | System.out.println(template); |
| | | // return R.ok(); |
| | | } |
| | |
| | | @ApiOperation("基础物料信息同步") |
| | | @PostMapping("/sync/base/matnrs") |
| | | public R syncMatnrs(@RequestBody List<BaseMatParms> matnrs) { |
| | | |
| | | if (Objects.isNull(matnrs)) { |
| | | return R.error("参数不能为空!1"); |
| | | } |
| | | receiveMsgService.syncMatnrs(matnrs); |
| | | return R.ok(); |
| | | } |
| | | |
| | | public R syc |
| | | |
| | | } |