package com.saye.hospitalgd.service.impl;

import com.saye.hospitalgd.mapper.hisbillsOriginalMapper;
import com.saye.hospitalgd.service.HisbillsOriginalService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;

/**
 * Created with IntelliJ IDEA.
 *
 * @author： Mr.zs
 * @date： 2022/12/2
 * @description：
 * @modifiedBy：
 * @version: 1.0
 */
@Service
public class HisbillsOriginalServiceImpl implements HisbillsOriginalService {


    @Resource
    private hisbillsOriginalMapper hisbillsOriginalMapper;


    @Override
    public void saveHisOriginalData(HashMap<Object, Object> hisbillsOriginal) {

        String jysj = (String) hisbillsOriginal.get("jysj");
        String[] s = jysj.split(" ");

        hisbillsOriginal.put("jyrq", s[0]);

        hisbillsOriginalMapper.saveHisOriginalData(hisbillsOriginal);
    }
}
