资源简介

一个在ERP项目中用到的工作流案例,拿来共享下,用的为Activiti5.8

资源截图

代码片段和文件信息

package com.lovesmile.erp.biz;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lovesmile.erp.dao.CallBackMapper;
import com.lovesmile.erp.dao.CustomerMapper;
import com.lovesmile.erp.entity.CallBack;
import com.lovesmile.erp.entity.Customer;
import com.lovesmile.erp.util.page.Query;

@Service
public class CustomerBIZ {
@Resource
private CustomerMapper customerMapper;
@Resource
private CallBackMapper callBackMapper;

public List getCustomers(Query query){
return customerMapper.getCustomers(query);
}

@Transactional
public void insertCustomer(Customer customer) {
customerMapper.insertCustomer(customer);
}

@Transactional
public void updateCustomer(Customer customer) {
customerMapper.updateCustomer(customer);
}

@Transactional
public void deleteCustomer(Customer customer) {
customerMapper.deleteCustomer(customer);
}

public Customer getCustomerById(Integer cid) {
return customerMapper.getCustomerById(cid);
}

@Transactional
public void insertCallBack(CallBack callBack) {
callBackMapper.insertCallBack(callBack);
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-11-10 12:31  myerp\
     文件         529  2013-10-24 16:26  myerp\.classpath
     目录           0  2013-10-24 16:26  myerp\.myeclipse\
     文件         288  2013-11-11 20:33  myerp\.mymetadata
     文件        1748  2013-10-24 16:50  myerp\.project
     目录           0  2013-11-10 12:31  myerp\.settings\
     文件         500  2013-10-24 16:27  myerp\.settings\.jsdtscope
     文件         162  2013-11-10 16:22  myerp\.settings\org.eclipse.core.resources.prefs
     文件         395  2013-10-24 16:26  myerp\.settings\org.eclipse.jdt.core.prefs
     文件         453  2013-10-24 16:26  myerp\.settings\org.eclipse.wst.common.component
     文件         252  2013-10-24 16:27  myerp\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2013-10-24 16:27  myerp\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2013-10-24 16:27  myerp\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2013-11-16 20:13  myerp\src\
     目录           0  2013-11-10 12:31  myerp\src\com\
     目录           0  2013-11-10 12:31  myerp\src\com\lovesmile\
     目录           0  2013-11-10 12:31  myerp\src\com\lovesmile\erp\
     目录           0  2013-11-10 12:31  myerp\src\com\lovesmile\erp\biz\
     文件        1257  2013-11-09 10:59  myerp\src\com\lovesmile\erp\biz\CustomerBIZ.java
     文件         398  2013-11-09 10:59  myerp\src\com\lovesmile\erp\biz\UserInfoBIZ.java
     目录           0  2013-11-10 12:31  myerp\src\com\lovesmile\erp\dao\
     文件         251  2013-10-22 14:55  myerp\src\com\lovesmile\erp\dao\CallBackMapper.java
     文件         684  2013-10-23 10:57  myerp\src\com\lovesmile\erp\dao\CallBackMapper.xml
     文件         509  2013-10-27 17:46  myerp\src\com\lovesmile\erp\dao\CustomerMapper.java
     文件        1433  2013-11-10 13:29  myerp\src\com\lovesmile\erp\dao\CustomerMapper.xml
     文件         225  2013-10-26 10:21  myerp\src\com\lovesmile\erp\dao\UserInfoMapper.java
     文件         382  2013-10-26 13:04  myerp\src\com\lovesmile\erp\dao\UserInfoMapper.xml
     目录           0  2013-11-10 16:47  myerp\src\com\lovesmile\erp\entity\
     文件        2425  2013-10-27 20:07  myerp\src\com\lovesmile\erp\entity\CallBack.java
     文件        2095  2013-10-26 16:15  myerp\src\com\lovesmile\erp\entity\Customer.java
     文件        1347  2013-11-11 20:57  myerp\src\com\lovesmile\erp\entity\Leave.java
............此处省略2671个文件信息

评论

共有 条评论