| | |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.DigestUtils; |
| | | |
| | | import java.io.IOException; |
| | | import java.nio.charset.StandardCharsets; |
| | | import java.util.Date; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @Slf4j |
| | | @Service |
| | |
| | | Mat m = matService.selectByMatnr(data.getItemCode()); |
| | | if(m == null){ |
| | | m = new Mat(); |
| | | m.setCreateTime(jsonObject.getDate("createDate")); |
| | | //m.setCreateTime(jsonObject.getDate("createDate")); |
| | | matMapping(data,m); |
| | | matService.insert(m); |
| | | }else { |
| | |
| | | 映射mat和物料档案信息字段 |
| | | */ |
| | | private void matMapping(MaterialInfo data, Mat m){ |
| | | // |
| | | m.setCreateTime((data.getMdate())); |
| | | //修改时间 -- 更新时间 |
| | | m.setUpdateTime(data.getMdate()); |
| | | //商品编码 -- 物料编码 |