BidStatusModifyAction.java
1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package com.cntytz;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import weaver.conn.RecordSet;
import weaver.formmode.interfaces.PopedomCommonAction;
/**
* @Description:投标状态修改action
* @ClassName: BidStatusModifyAction
* @auther: xubin
* @date: 2020/4/22 下午2:45
* @Version 1.0
*/
public class BidStatusModifyAction implements PopedomCommonAction{
Log logger = LogFactory.getLog(BidStatusModifyAction.class);
/**
*
得到是否显示操作项
* @param modeid 模块id
* @param customid 查询列表id
* @param uid 当前用户id
* @param billid 表单数据id
* @param buttonname 按钮名称
* @retrun "true"或者"false"true显示/false不显示
*/
@Override
public String getIsDisplayOperation(String modeid, String customid,String uid, String billid, String buttonname) {
RecordSet rs = new RecordSet();
logger.info("参数获取为:modeid="+modeid+",customid="+customid+",uid="+uid+",billid="+billid+",buttonname="+buttonname);
String sql = "select * from uf_gcbagl where id="+billid;
rs.execute(sql);
if (rs.next()){
int zt = rs.getInt("zt");
logger.info("查询的参数 status="+zt);
if (0 == zt){
return "true";
}else{
return "false";
}
}else{
return "true";
}
}
}