|
|
@ -130,6 +130,7 @@ public class MaterialServiceImpl implements MaterialService { |
|
|
if (map.containsKey("barCode")) { |
|
|
if (map.containsKey("barCode")) { |
|
|
materialMapper.addBarCodeAndMcode(map); |
|
|
materialMapper.addBarCodeAndMcode(map); |
|
|
} |
|
|
} |
|
|
|
|
|
map.put("createTime",System.currentTimeMillis()); |
|
|
return materialMapper.insertMaterial(map); |
|
|
return materialMapper.insertMaterial(map); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -182,6 +183,7 @@ public class MaterialServiceImpl implements MaterialService { |
|
|
Long producedDate = DateUtil.DateTimeByDayToTimeStamp(map.get("producedDate").toString()); |
|
|
Long producedDate = DateUtil.DateTimeByDayToTimeStamp(map.get("producedDate").toString()); |
|
|
map.put("producedDate", producedDate); |
|
|
map.put("producedDate", producedDate); |
|
|
} |
|
|
} |
|
|
|
|
|
map.put("updateTime",System.currentTimeMillis()); |
|
|
return materialMapper.updateMaterial(map); |
|
|
return materialMapper.updateMaterial(map); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|