This commit is contained in:
hyunho 2020-12-11 06:33:48 +00:00
parent 7831249218
commit 4f32ff3ea9
2 changed files with 11 additions and 3 deletions

View File

@ -781,12 +781,12 @@
<insert id="pay.payrfd.in" parameterClass="payrfd"> <insert id="pay.payrfd.in" parameterClass="payrfd">
delete from payrfditem where rfdno=#rfdno#; delete from payrfditem where rfdno=#rfdno#;
delete from payrfd where payno=#payno# and rfdno=#rfdno#; delete from payrfd where payno=#payno# and rfdno=#rfdno#;
insert into payrfd(payno,rtext,bankname,bankno,bankowner,isowner,rstatus,ruser,rphone,rreason,fgnor,fgnob,<include refid="sql.inc"></include>) insert into payrfd(payno,rtext,bankname,bankno,bankowner,isowner,rstatus,ruser,rphone,rreason,fgnor,fgnob,ramt,<include refid="sql.inc"></include>)
select distinct #payno#,#rtext#,#bankname# select distinct #payno#,#rtext#,#bankname#
,HEX(AES_ENCRYPT(#bankno#, <include refid="sql.digest"></include>)) ,HEX(AES_ENCRYPT(#bankno#, <include refid="sql.digest"></include>))
,#bankowner#,#isowner#,#rstatus#,#ruser# ,#bankowner#,#isowner#,#rstatus#,#ruser#
,HEX(AES_ENCRYPT(#rphone#, <include refid="sql.digest"></include>)) ,HEX(AES_ENCRYPT(#rphone#, <include refid="sql.digest"></include>))
,#rreason#,#fgnor#,#fgnob#,<include refid="sql.inv"></include> ,#rreason#,#fgnor#,#fgnob#,#ramt#,<include refid="sql.inv"></include>
from pay a from pay a
inner join payitem b on b.payno=a.payno and b.pino in ($pinos$) and a.pstatus=1 and a.rstatus=0 inner join payitem b on b.payno=a.payno and b.pino in ($pinos$) and a.pstatus=1 and a.rstatus=0
left outer join cm c0 on b.ptype in (0,4) and c0.cmno=b.itemno and ifnull(c0.retime,date_add(now(), interval 1 day)) &gt; now() left outer join cm c0 on b.ptype in (0,4) and c0.cmno=b.itemno and ifnull(c0.retime,date_add(now(), interval 1 day)) &gt; now()

View File

@ -35,7 +35,14 @@
<tr><th>지불방법</th><td>@Model.Pay.ptypename</td></tr> <tr><th>지불방법</th><td>@Model.Pay.ptypename</td></tr>
@if (Model.Pay.ptype == 3) @if (Model.Pay.ptype == 3)
{ {
<tr><th>입금계좌</th><td><span>@Model.Pay.vactbankname | @Model.Pay.vactnum | @Model.Pay.vactname</span></td></tr> <tr>
<th>입금계좌</th><td>
@if (!string.IsNullOrEmpty(Model.Pay.vactbankname) && !string.IsNullOrEmpty(Model.Pay.vactnum) && !string.IsNullOrEmpty(Model.Pay.vactname))
{
<span>@Model.Pay.vactbankname | @Model.Pay.vactnum | @Model.Pay.vactname</span>
}
</td>
</tr>
} }
<tr> <tr>
<th>주문접수일</th> <th>주문접수일</th>
@ -244,6 +251,7 @@
</tr> </tr>
</table> </table>
<form id="mform2" method="post"> <form id="mform2" method="post">
<input type="hidden" id="ramt" name="ramt" value="@Model.PayItem.payamt" />
<input type="hidden" id="pinos2" name="pinos" value="@Model.PayItem.pino" /> <input type="hidden" id="pinos2" name="pinos" value="@Model.PayItem.pino" />
<input type="hidden" name="payno" id="payno" value="@Model.Pay.payno" /> <input type="hidden" name="payno" id="payno" value="@Model.Pay.payno" />
<input type="hidden" name="ptype" id="ptype" value="@Model.Pay.ptype" /> <input type="hidden" name="ptype" id="ptype" value="@Model.Pay.ptype" />