|
@ -207,11 +207,11 @@ public class PatientService extends TokenService {
|
|
|
IdcardInfoExtractor ie = new IdcardInfoExtractor(idcard);
|
|
|
String code = getCode();
|
|
|
String sql = "insert wlyy_patient(code,idcard,name,ssc,mobile,password,salt,openid" +
|
|
|
",status,birthday,sex,czrq,disease,disease_condition,record_amount,points)" +
|
|
|
" values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
|
|
|
",status,birthday,sex,czrq,openid_time,disease,disease_condition,record_amount,points)" +
|
|
|
" values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
|
|
|
|
|
|
jdbcTemplate.update(sql, new Object[]{code, idcard, name, ssc, mobile, password, salt, imei, 1, ie.getBirthday()
|
|
|
, ie.getGender(), clock.getCurrentDate(), 0, 0, 0, 0});
|
|
|
, ie.getGender(), clock.getCurrentDate(),clock.getCurrentDate(), 0, 0, 0, 0});
|
|
|
|
|
|
Patient temp = patientDao.findByCode(code);
|
|
|
if (temp != null) {
|