@Service @Transactional public class CmsSurveyQuestionService extends BaseService<CmsSurveyQuestion>
限定符和类型 | 字段和说明 |
---|---|
private CmsSurveyQuestionDao |
dao |
static java.lang.String |
QUESTION_TYPE_CHECKBOX |
static java.lang.String |
QUESTION_TYPE_FILE |
static java.lang.String |
QUESTION_TYPE_PICTURE |
static java.lang.String |
QUESTION_TYPE_RADIO |
static java.lang.String |
QUESTION_TYPE_SELECT |
static java.lang.String |
QUESTION_TYPE_TEXT |
static java.lang.String[] |
QUESTION_TYPES_DICT |
basedao, log
构造器和说明 |
---|
CmsSurveyQuestionService() |
限定符和类型 | 方法和说明 |
---|---|
PageHandler |
getPage(java.lang.Long surveyId,
java.lang.String[] questionTypes,
java.lang.String orderType,
java.lang.Integer pageIndex,
java.lang.Integer pageSize) |
CmsSurveyQuestion |
updateAnswer(java.io.Serializable id,
java.lang.String answer) |
delete, delete, delete, getEntity, getEntity, getEntitys, getEntitys, getEntitys, getEntitys, getId, save, save, update, update
public static final java.lang.String QUESTION_TYPE_RADIO
public static final java.lang.String QUESTION_TYPE_SELECT
public static final java.lang.String QUESTION_TYPE_CHECKBOX
public static final java.lang.String QUESTION_TYPE_TEXT
public static final java.lang.String QUESTION_TYPE_FILE
public static final java.lang.String QUESTION_TYPE_PICTURE
public static final java.lang.String[] QUESTION_TYPES_DICT
private CmsSurveyQuestionDao dao
@Transactional(readOnly=true) public PageHandler getPage(java.lang.Long surveyId, java.lang.String[] questionTypes, java.lang.String orderType, java.lang.Integer pageIndex, java.lang.Integer pageSize)
surveyId
- questionTypes
- orderType
- pageIndex
- pageSize
- public CmsSurveyQuestion updateAnswer(java.io.Serializable id, java.lang.String answer)
id
- answer
-