JJXXSystem/src/com/ccit/action/Util_BAction.java

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

package com.ccit.action;

import java.util.*;
import com.ccit.model.Util_A;
import com.ccit.model.Util_B;
import com.ccit.manager.ObjectManager;
import com.opensymphony.xwork2.*;

@SuppressWarnings( { "unchecked", "serial" })
public class Util_BAction extends ActionSupport {
	private Util_B util;
	private List<Util_B> list;
	private List<Util_A> listUtil_A;
	private String message;
	private String str;
	private ObjectManager objectManager;

	public String initUtil() throws Exception {
		listUtil_A = objectManager.getUtil("from Util_A");
		util = null;
		return "saveOrUpdate";
	}

	public String saveOrUpdateObject() throws Exception {
		util.setS_6("未审核");
		objectManager.saveOrUpdateObject(util);
		util = null;
		return getAllUtil();
	}

	public String updateObject() throws Exception {
		String _str = "";
		if ("tg".equals(str)) {
			_str = "审核通过";
		} else {
			_str = "拒绝";
		}
		util = (Util_B) objectManager.getObject(new Util_B(), util.getId());
		util.setS_6(_str);
		objectManager.saveOrUpdateObject(util);
		util = null;
		str = "";
		return getAllUtil();
	}

	public String deleteUtil() throws Exception {
		objectManager.deleteObject(util);
		return getAllUtil();
	}

	public String selectUtil() throws Exception {
		listUtil_A = objectManager.getObjectList(new Util_A());
		util = (Util_B) objectManager.getObject(new Util_B(), util.getId());
		return "saveOrUpdate";
	}

	public String getAllUtil() throws Exception {
		String sql = "";
		if (null != message && message.trim().length() > 0) {
			String _Str = new String(str.getBytes("iso-8859-1"), "utf-8");
后面还有 59 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。