| | |
| | | */ |
| | | @Service |
| | | public class ProductionOrdeInfoServiceImpl extends ServiceImpl<ProductionOrdeInfoMapper, ProductionOrdeInfo> implements ProductionOrdeInfoService { |
| | | private static SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd"); |
| | | /* private static SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd"); |
| | | private static String date = format.format(new Date()); |
| | | private static String orderDate = "M"+date; |
| | | private static String orderDate = "M"+date;*/ |
| | | @Autowired |
| | | private ProductionOrdeInfoService productionOrdeInfoService; |
| | | |
| | |
| | | |
| | | @Override |
| | | public void add(ProductionOrdeInfoParam param){ |
| | | SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd"); |
| | | String date = format.format(new Date()); |
| | | String orderDate = "M"+date; |
| | | |
| | | List<ProductionOrdeInfo> workOrderNo = productionOrdeInfoService.list(new QueryWrapper<ProductionOrdeInfo>().like("work_order_no", date)); |
| | | if(workOrderNo.size() == 0){ |
| | | param.setWorkOrderNo(orderDate+"0001"); |
| | |
| | | return baseMapper.getListMonth(); |
| | | } |
| | | |
| | | @Override |
| | | public List<ProductionOrdeInfoResult> getColumnarDate() { |
| | | return baseMapper.getColumnarDate(); |
| | | } |
| | | |
| | | private Serializable getKey(ProductionOrdeInfoParam param){ |
| | | return param.getId(); |
| | | } |