package com.product.administration.service;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Component;
|
|
import com.product.administration.config.CmnConst;
|
import com.product.administration.service.ide.ICustomerSatisfactionService;
|
import com.product.core.dao.BaseDao;
|
import com.product.core.entity.DataTableEntity;
|
import com.product.core.entity.FieldSetEntity;
|
import com.product.core.service.support.AbstractBaseService;
|
import com.product.core.transfer.Transactional;
|
|
@Component
|
public class CustomerSatisfactionService extends AbstractBaseService implements ICustomerSatisfactionService{
|
|
@Autowired
|
BaseDao baseDao;
|
|
/**
|
* 客户满意度信息列表
|
* @param fse
|
* @return
|
*/
|
public DataTableEntity listCustomerSatisfaction(FieldSetEntity fse) {
|
return baseDao.listTable(CmnConst.PRODUCT_PROJECT_CUSTOMER_SATISFACTION, null, null, null, null, fse.getInteger(CmnConst.PAGESIZE), fse.getInteger(CmnConst.CPAGE));
|
}
|
|
/**
|
* 客户满意度信息详情
|
* @param uuid
|
* @return
|
*/
|
public FieldSetEntity findCustomerSatisfaction(String uuid) {
|
return baseDao.getFieldSetEntity(CmnConst.PRODUCT_PROJECT_CUSTOMER_SATISFACTION, uuid, true);
|
}
|
|
/**
|
* 客户满意度新增
|
* @param fse
|
* @return
|
*/
|
@Transactional
|
public boolean addCustomerSatisfaction(FieldSetEntity fse) {
|
return baseDao.saveFieldSetEntity(fse);
|
}
|
|
/**
|
* 客户满意度修改
|
* @param fse
|
* @return
|
*/
|
@Transactional
|
public boolean updateCustomerSatisfaction(FieldSetEntity fse) {
|
return baseDao.saveFieldSetEntity(fse);
|
}
|
|
/**
|
* 客户满意度删除
|
* @param fse
|
* @return
|
*/
|
@Transactional
|
public boolean deleteCustomerSatisfaction(String uuid) {
|
return baseDao.delete(CmnConst.PRODUCT_PROJECT_CUSTOMER_SATISFACTION, "uuid=?", new Object[] {uuid});
|
}
|
}
|