@@ -1767,6 +1767,7 @@ public String makeIndexController() {
1767
1767
" }\n " +
1768
1768
"\n " +
1769
1769
" userForm.setId(" +toLowerFirst (domainStr )+".getId());\n " +
1770
+ updateSetColumn ()+
1770
1771
updateForeginColumn ()+
1771
1772
" userForm.setCreatedDate(" +toLowerFirst (domainStr )+".getCreatedDate());\n " +
1772
1773
" userForm.setModifiedDate(" +toLowerFirst (domainStr )+".getModifiedDate());\n " +
@@ -1790,6 +1791,7 @@ public String makeIndexController() {
1790
1791
" }\n " +
1791
1792
"\n " +
1792
1793
update2ForeginColumn2 ()+
1794
+ update2Column2 ()+
1793
1795
"\n " +
1794
1796
" " +toLowerFirst (domainStr )+".setModifiedDate(LocalDateTime.now());\n " +
1795
1797
"\n " +
@@ -1813,6 +1815,33 @@ public String makeIndexController() {
1813
1815
return result ;
1814
1816
}
1815
1817
1818
+ private String update2Column2 () {
1819
+ //addressStr.setZipCode(userForm.getZipCode());
1820
+ //addressStr.setAddr1(userForm.getAddr1());
1821
+ //addressStr.setAddr2(userForm.getAddr2());
1822
+ //addressStr.setAddrFull(addressStr.getZipCode() + " " + addressStr.getAddr1() + " " + addressStr.getAddr2());
1823
+ //addressStr.setIsDel(userForm.getIsDel());
1824
+ String result = "" ;
1825
+ for (int i =1 ; i <colNames .length ; i ++){
1826
+ result += " " +toLowerFirst (domainStr )+".set" +toUpperFirst (colNames [i ])+"(userForm.get" +toUpperFirst (colNames [i ])+"());\n " ;
1827
+ }
1828
+ return result ;
1829
+ }
1830
+
1831
+ private String updateSetColumn () {
1832
+ //"userForm.setId("+toLowerFirst(domainStr)+".getId());\n" +
1833
+ //userForm.setZipCode(addressStr.getZipCode());
1834
+ //userForm.setAddr1(addressStr.getAddr1());
1835
+ //userForm.setAddr2(addressStr.getAddr2());
1836
+ //userForm.setAddrFull(addressStr.getAddrFull());
1837
+ String result = "" ;
1838
+ for (int i = 0 ; i < colNames .length ; i ++) {
1839
+ result += " userForm.set" +toUpperFirst (colNames [i ])+"(" +toLowerFirst (domainStr )+".get" +toUpperFirst (colNames [i ])+"());\n " ;
1840
+ }
1841
+
1842
+ return result ;
1843
+ }
1844
+
1816
1845
private String update2ForeginColumn2 () {
1817
1846
// " if(userForm.getAddressStrId()!=null){\n" +
1818
1847
// " try{\n" +
0 commit comments