Compare commits
3 Commits
6ae0717a99
...
391063bad7
Author | SHA1 | Date |
---|---|---|
|
391063bad7 | |
|
b403c05b1e | |
|
1eeecb0ea2 |
|
@ -25,4 +25,6 @@ public class QuestionAnswerVo implements Serializable {
|
|||
private Long questionOrder;
|
||||
|
||||
private List<SysScaleAnswerVo> answerList;
|
||||
|
||||
private Long answerId;
|
||||
}
|
||||
|
|
|
@ -60,8 +60,4 @@ public class SysScaleAnswerVo implements Serializable {
|
|||
*/
|
||||
private Integer sort;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -162,7 +162,7 @@ public class SysScalePublishServiceImpl implements ISysScalePublishService {
|
|||
if (deptId != null) {
|
||||
LambdaQueryWrapper<SysScalePublish> lqw = Wrappers.lambdaQuery();
|
||||
lqw.eq(SysScalePublish::getDeptId, deptId);
|
||||
lqw.eq(SysScalePublish::getStatus, 0);
|
||||
lqw.eq(SysScalePublish::getStatus, 1);
|
||||
lqw.last("limit 1");
|
||||
sysScalePublishVo = baseMapper.selectVoOne(lqw);
|
||||
}
|
||||
|
@ -170,7 +170,7 @@ public class SysScalePublishServiceImpl implements ISysScalePublishService {
|
|||
if (sysScalePublishVo == null) {
|
||||
LambdaQueryWrapper<SysScalePublish> lqw = Wrappers.lambdaQuery();
|
||||
lqw.eq(SysScalePublish::getDeptId, null);
|
||||
lqw.eq(SysScalePublish::getStatus, 0);
|
||||
lqw.eq(SysScalePublish::getStatus, 1);
|
||||
sysScalePublishVo = baseMapper.selectVoOne(lqw);
|
||||
}
|
||||
if (sysScalePublishVo == null) {
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.dromara.scale.mapper.SysScaleAnswerMapper">
|
||||
<insert id="batchInsert">
|
||||
insert into sys_scale_answer(answer_id, question_id, scale_id, answer_option, score, type) values
|
||||
insert into sys_scale_answer(answer_id, question_id, scale_id, answer_option, score, type, sort) values
|
||||
<foreach item="item" index="index" collection="list" separator=",">
|
||||
(#{item.answerId}, #{item.questionId}, #{item.scaleId}, #{item.answerOption},
|
||||
#{item.score}, #{item.type})
|
||||
#{item.score}, #{item.type}, #{item.sort})
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
|
|
Loading…
Reference in New Issue