add 问答库-提问时间
This commit is contained in:
+5
@@ -94,6 +94,11 @@ public class LawsProblemLibrary implements Serializable {
|
||||
@Excel(name = "问题描述", width = 15)
|
||||
@ApiModelProperty(value = "问题描述")
|
||||
private java.lang.String problemDescription;
|
||||
/**提问时间*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "提问时间")
|
||||
private java.util.Date quizTime;
|
||||
/**附件*/
|
||||
@Excel(name = "附件", width = 15)
|
||||
@ApiModelProperty(value = "附件")
|
||||
|
||||
+1
@@ -5,6 +5,7 @@
|
||||
<id column="id" property="id" />
|
||||
<result column="create_by" property="createBy" />
|
||||
<result column="create_time" property="createTime" />
|
||||
<result column="quiz_time" property="quizTime" />
|
||||
<result column="update_by" property="updateBy" />
|
||||
<result column="update_time" property="updateTime" />
|
||||
<result column="org_code" property="orgCode" />
|
||||
|
||||
+3
@@ -71,6 +71,9 @@ public class LawsProblemLibraryServiceImpl extends ServiceImpl<LawsProblemLibrar
|
||||
if (StringUtils.isBlank(lawsProblemLibrary.getProblemDescription())) {
|
||||
throw new JeroBootException(ResultCommon.EMPTY_COMMON, "problemDescription");
|
||||
}
|
||||
if (Objects.isNull(lawsProblemLibrary.getQuizTime())) {
|
||||
lawsProblemLibrary.setQuizTime(new Date());
|
||||
}
|
||||
// 如果是国内、海外、企业
|
||||
if (!"4".equals(lawsProblemLibrary.getType())) {
|
||||
ManyStandardSelectionBox singleStandard = lawsCommonService.getSingleStandard(lawsProblemLibrary.getStandardNumber(), null);
|
||||
|
||||
Reference in New Issue
Block a user