nuri2 줄바꿈 설정 수정

main
이범준 1 year ago
parent 21a32e14ec
commit b93033bd3f

@ -8,24 +8,12 @@ import cokr.xit.applib.Hangul;
public class MessageUtil {
public MessageUtil(String type){
//if(type.equals("A")) {
//this.nuri2_oracle = "\r\n";
//this.nuri2_oracle_byte = 2;
//this.nuri2_maria = "\\\\r\\\\n";
//this.nuri2_maria_byte = 4;
//} else if(type.equals("B")) {
//this.nuri2_oracle = "\n";
//this.nuri2_oracle_byte = 1;
//this.nuri2_maria = "\\\\n";
//this.nuri2_maria_byte = 2;
//} else
if(type.equals("C")) { //단순 문자열일 경우 줄바꿈(SMS,LMS)
if(type.equals("plain")) { //단순 문자열일 경우 줄바꿈(SMS,LMS)
this.nuri2_oracle = "\n";
this.nuri2_oracle_byte = 1;
this.nuri2_maria = "\n";
this.nuri2_maria_byte = 1;
} else if(type.equals("D")) { //제이슨형식일 경우 줄바꿈(알림톡,RCS)
} else if(type.equals("json")) { //제이슨형식일 경우 줄바꿈(알림톡,RCS)
this.nuri2_oracle = "\\\\n";
this.nuri2_oracle_byte = 2;
this.nuri2_maria = "\\\\n";

@ -35,8 +35,8 @@ public class MessageServiceBean extends AbstractServiceBean implements MessageSe
@Override
public Map<String,Object> regist(List<MessageEntity> messageEntityList) {
MessageUtil forPlainText = new MessageUtil("C");
MessageUtil forJsonText = new MessageUtil("C");
MessageUtil forPlainText = new MessageUtil("plain");
MessageUtil forJsonText = new MessageUtil("json");
Map<String,Object> resultMap = new HashMap<String,Object>();

@ -54,8 +54,8 @@ public class MessageInterfaceController extends AbstractController {
public ModelAndView regist(@RequestBody JSONObject apiSpec) {
ModelAndView mav = new ModelAndView("jsonView");
MessageUtil forPlainText = new MessageUtil("C");
MessageUtil forJsonText = new MessageUtil("D");
MessageUtil forPlainText = new MessageUtil("plain");
MessageUtil forJsonText = new MessageUtil("json");
String sggCd = (String) apiSpec.get("sggCd"); //시군구코드
if(EgovStringUtil.null2void(sggCd).equals("")) {

Loading…
Cancel
Save