解决发起时考核组拷贝组为同一组时的bug
This commit is contained in:
parent
4295254080
commit
48791d7204
@ -19,6 +19,7 @@ import com.lz.modules.sys.entity.app.ResultDetail;
|
||||
import com.lz.modules.sys.entity.app.ResultRecord;
|
||||
import com.lz.modules.sys.service.app.ResultDetailService;
|
||||
import com.lz.modules.sys.service.app.ResultRecordService;
|
||||
import com.mchange.lang.IntegerUtils;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.collections.map.HashedMap;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
@ -184,6 +185,20 @@ public class FlowStartServiceImpl extends ServiceImpl<FlowStartMapper, FlowStart
|
||||
return R.ok("发起成功").put("data", flowStart);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
List<String> ids = new ArrayList<>();
|
||||
ids.add("64");
|
||||
ids.add("65");
|
||||
ids.add("98");
|
||||
ids.add("111");
|
||||
//ids.add("134");
|
||||
ids.add("140");
|
||||
ids.add("141");
|
||||
ids.add("134");
|
||||
Map<String, String> maps = ids.stream().collect(Collectors.toMap(e->e, e->e));
|
||||
System.out.println(maps);
|
||||
}
|
||||
|
||||
@Override
|
||||
public R saveStart(FlowStart flowStart){
|
||||
log.info("发起考核{}", flowStart);
|
||||
|
||||
@ -169,7 +169,7 @@
|
||||
<select id="selectEvaluationGroupByCopyIds" resultType="EvaluationGroup" >
|
||||
select * from lz_evaluation_group join ( select copy_id from lz_evaluation_group where is_delete = 0 and id in (
|
||||
<foreach collection="ids" item="item" separator=",">#{item}</foreach>
|
||||
)) as b on lz_evaluation_group.id = b.copy_id
|
||||
) group by copy_id ) as b on lz_evaluation_group.id = b.copy_id
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user