|
|
@@ -203,7 +203,8 @@ public class STKServiceImpl implements STKService {
|
|
|
}
|
|
|
String code = baseDao.sGetMaxNumber("VisitRecord", 2);
|
|
|
int id = baseDao.getSeqId("VisitRecord_SEQ");
|
|
|
- String Sql ="insert into CustomerVisit(vr_id,vr_code,vr_recorder,vr_recordercode,vr_recorddate,vr_status,vr_statuscode," +
|
|
|
+ List<String> Sql = new ArrayList<>();
|
|
|
+ Sql.add("insert into CustomerVisit(vr_id,vr_code,vr_recorder,vr_recordercode,vr_recorddate,vr_status,vr_statuscode," +
|
|
|
"vr_visittime,vr_visitend,vr_nexttime,vr_visitplace,vr_khsj_user," +
|
|
|
"vr_nichecode,vr_nichename,vr_cuuu,vr_cuname,vr_cucontact,vr_zhwu_user,vr_tel,vr_jtfs_user,vr_title,vr_class,vr_nichestep,vr_detail,vr_attach)" +
|
|
|
"values("+id+",'"+code+"','"+customerVisitDTO.getRecordercode()+"',to_date('"+customerVisitDTO.getRecorddate()+"','yyyy-mm-dd hh24:mi:ss'),'已审核','AUDITED'," +
|
|
|
@@ -211,7 +212,12 @@ public class STKServiceImpl implements STKService {
|
|
|
"'"+customerVisitDTO.getVisitplace()+"','"+customerVisitDTO.getKhsj_user()+"'," +
|
|
|
"'"+customerVisitDTO.getNichecode()+"','"+customerVisitDTO.getNichename()+"','"+customerVisitDTO.getCuuu()+"','"+customerVisitDTO.getCuname()+"','"+customerVisitDTO.getCucontact()+"'," +
|
|
|
"'"+customerVisitDTO.getZhwu_user()+"','"+customerVisitDTO.getTel()+"','"+customerVisitDTO.getJtfs_user()+"','"+customerVisitDTO.getTitle()+"','"+customerVisitDTO.getType()+"'," +
|
|
|
- "'"+customerVisitDTO.getNichestep()+"','"+customerVisitDTO.getDetail()+"','"+customerVisitDTO.getAttach()+"')";
|
|
|
+ "'"+customerVisitDTO.getNichestep()+"','"+customerVisitDTO.getDetail()+"','"+customerVisitDTO.getAttach()+"')");
|
|
|
+ List<VisitEmpDTO> visitEmp = customerVisitDTO.getVisitEmp();
|
|
|
+ for (VisitEmpDTO emp : visitEmp){
|
|
|
+ Sql.add("insert into Players(pl_id,pl_vrid,pl_detno,pl_code,pl_name,pl_sex,pl_position,pl_tel,pl_email,pl_remark)" +
|
|
|
+ "values(Players_seq.nextval,"+id+","+emp.getDetno()+",'"+emp.getCode()+"','"+emp.getName()+"','"+emp.getSex()+"','"+emp.getPosition()+"','"+emp.getTel()+"','"+emp.getEmail()+"','"+emp.getRemark()+"')");
|
|
|
+ }
|
|
|
baseDao.execute(Sql);
|
|
|
Map<String,Object> map = new HashMap<>();
|
|
|
map.put("id", id);
|