src/com/web/action/CustomerAction.java

(开头部分) 6KB

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

package com.web.action;

import java.util.List;

import javax.annotation.Resource;

import org.apache.commons.lang3.StringUtils;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;
import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.Restrictions;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.bean.BaseDict;
import com.bean.Customer;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
import com.opensymphony.xwork2.util.ValueStack;
import com.service.CustomerService;
import com.web.commons.Page;

@Controller("customerAction")
@Scope("prototype")
@ParentPackage("struts-default")
@Namespace("/customer")
@Results({ @Result(name = "addUI", type = "dispatcher", location = "/jsp/customer/add.jsp"),
		@Result(name = "listCustomer", type = "dispatcher", location = "/jsp/customer/list.jsp"),
		@Result(name = "allCustomer", type = "redirectAction", location = "findAllCustomer"),
		@Result(name = "editUI", type = "dispatcher", location = "/jsp/customer/edit.jsp"),
		@Result(name = "industryCount", type = "dispatcher", location = "/jsp/statistic/indlist.jsp"),
		@Result(name = "sourceCount", type = "dispatcher", location = "/jsp/statistic/soulist.jsp")
})

		
public class CustomerAction extends ActionSupport implements ModelDriven<Customer> {
	private List list;
	private Integer curNum;
	
	private Page<Customer> page;

	private List<BaseDict> customerSources;

	private List<BaseDict> customerLevels;

	@Resource(name = "customerService")
	private CustomerService customerService;

	private Customer customer = new Customer();

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	@Override
后面还有 176 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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