|
|
@ -65,6 +65,17 @@ public class PayerBean extends AbstractComponent {
|
|
|
|
* </ul>
|
|
|
|
* </ul>
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public boolean create(Payer payer) {
|
|
|
|
public boolean create(Payer payer) {
|
|
|
|
|
|
|
|
DataObject params = new DataObject()
|
|
|
|
|
|
|
|
.set("roadNmCd", payer.getRoadNmCd())
|
|
|
|
|
|
|
|
.set("udgdSeCd", payer.getUdgdSeCd())
|
|
|
|
|
|
|
|
.set("bmno", payer.getBmno())
|
|
|
|
|
|
|
|
.set("bsno", payer.getBsno());
|
|
|
|
|
|
|
|
DataObject info = payerMapper.selectAddrInfo(params);
|
|
|
|
|
|
|
|
if (info != null) {
|
|
|
|
|
|
|
|
payer.setAddrSeCd("02");
|
|
|
|
|
|
|
|
payer.setZip(info.string("ZIP"));
|
|
|
|
|
|
|
|
payer.setBldgMngNo(info.string("BLDG_MNG_NO"));
|
|
|
|
|
|
|
|
}
|
|
|
|
return payerMapper.insert(payer);
|
|
|
|
return payerMapper.insert(payer);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|