|
|
@@ -402,7 +402,9 @@ public class BaseDao {
|
|
|
if (rs.next()) {
|
|
|
String Code = rs.getObject("ds_inorout").toString();
|
|
|
if (Code.equals("IN") || Code.equals("-OUT")) {
|
|
|
- execute("update prodiodetail set pd_replydate=pd_prodmadedate + (select nvl(pr_validdays,0) from product where pd_prodcode=pr_code) where pd_piid=? and pd_prodmadedate is not null",
|
|
|
+ execute("update prodiodetail set pd_replydate=pd_prodmadedate + (select nvl(pr_validdays,0) from product where pd_prodcode=pr_code) where pd_piid=? and pd_prodmadedate is not null and pd_replydate is null",
|
|
|
+ id);
|
|
|
+ execute("update prodiodetail set pd_prodmadedate=pd_replydate - (select nvl(pr_validdays,0) from product where pd_prodcode=pr_code) where pd_piid=? and pd_prodmadedate is null and pd_replydate is not null",
|
|
|
id);
|
|
|
}
|
|
|
}
|