提交 063c348e 编写于 作者: yujiaming's avatar yujiaming

button_confirm

...@@ -299,25 +299,5 @@ public class Purchase_orderExService extends Purchase_orderServiceImpl { ...@@ -299,25 +299,5 @@ public class Purchase_orderExService extends Purchase_orderServiceImpl {
} }
return super.get_name(et); return super.get_name(et);
} }
/**
* 自定义行为[Button_approve]用户扩展
* @param et
* @return
*/
@Override
@Transactional
public Purchase_order button_approve(Purchase_order et) {
et.setState("purchase");
Timestamp dateApprove = new Timestamp(System.currentTimeMillis());
et.setDateApprove(dateApprove);
this.update(et);
// 查找order中公司的po_lock状态为lock的order,改变状态为done,有疑问
Res_company resCompany = resCompanyService.get(et.getCompanyId());
if(StringUtils.compare(resCompany.getPoLock(), "lock") == 0){
et.setState("done");
this.update(et);
}
return super.button_approve(et);
}
} }
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册