|
|
@@ -2959,12 +2959,25 @@ type WrOutInApply struct {
|
|
|
CONTACTNUM string `json:"contactnum" xorm:"'CONTACTNUM'"` // 联系方式
|
|
|
ADDRESS string `json:"address" xorm:"ADDRESS"` // 详细地址
|
|
|
APPOINTMENTREMARK string `json:"appointmentremark" xorm:"'APPOINTMENTREMARK'"` // 申请备注
|
|
|
+ COUNTRYID int32 `json:"countryid" xorm:"COUNTRYID"` // 国家
|
|
|
+ PROVINCEID int32 `json:"provinceid" xorm:"PROVINCEID"` // 省
|
|
|
+ CITYID int32 `json:"cityid" xorm:"CITYID"` // 市
|
|
|
+ DISTRICTID int32 `json:"districtid" xorm:"DISTRICTID"` // 区
|
|
|
+ COUNTRYNAME string `json:"countryname"` // 国家名称
|
|
|
+ CITYNAME string `json:"cityname"` // 城市名称
|
|
|
+ PROVINCENAME string `json:"provincename"` // 省名称
|
|
|
+ DISTRICTNAME string `json:"districtname"` // 地区名称
|
|
|
|
|
|
PageEx `xorm:"extends"` // 页码信息
|
|
|
}
|
|
|
|
|
|
func (r *WrOutInApply) calc() {
|
|
|
r.Wr2FactorType.Calc()
|
|
|
+
|
|
|
+ r.COUNTRYNAME = mtpcache.GetDivisionName(r.COUNTRYID)
|
|
|
+ r.CITYNAME = mtpcache.GetDivisionName(r.CITYID)
|
|
|
+ r.PROVINCENAME = mtpcache.GetDivisionName(r.PROVINCEID)
|
|
|
+ r.DISTRICTNAME = mtpcache.GetDivisionName(r.DISTRICTID)
|
|
|
}
|
|
|
|
|
|
func (r *WrOutInApply) buildSql() string {
|
|
|
@@ -3005,6 +3018,10 @@ func (r *WrOutInApply) buildSql() string {
|
|
|
" en1.enumdicname appointmentmodeldisplay," +
|
|
|
" t.contactname," +
|
|
|
" t.contactnum," +
|
|
|
+ " t.COUNTRYID," +
|
|
|
+ " t.PROVINCEID," +
|
|
|
+ " t.CITYID," +
|
|
|
+ " t.DISTRICTID," +
|
|
|
" t.address," +
|
|
|
" t.appointmentremark," +
|
|
|
" k.*" +
|