有一个措施员,入职了一家公司,上午方才写下一段代码,没想到下战书就有人事来关照他被解雇了。
这个措施员暗示很委曲。感受这个要领,除了机能差一点,没啥此外题目呀。。。
2
除了获取时刻以外,一位措施员由于本身写了个排序算法,也被解雇了。
3
统计用户总数,这代码还真是666呢。
4
前段时刻网传的代价一个亿的AI焦点代码,你能看出个中的眉目吗?
5
甩锅侠相识一下。
6
英语不足,拼音来凑。
- public void shit(){
- // 自己逻辑没什么题目,就这个定名,中英殽杂
- // 事变流中的 直接治理到竣事节点
- // 节点范例是【办到底】
- boolean isbandaodi = confirmMenuindexOfActivityName(processdefinitionid, nextNodeName, "bandaodi");
- if (isbandaodi) {
- // 。。。
- }
- }
7
下面这段代码的作者地址的公司,该不会是按代码行数开人为的吧?
8
最后,下面这段代码,看懂算我输。
- //Stream 用的66的
- final EventAction eventAction = redisObj(
- EventActionKey + distributionEventId,
- () -> Optional
- .of(distributionEventId)
- .map(eventId -> {
- final EventActionExample example = new EventActionExample();
- example.createCriteria()
- .andEventIdEqualTo(eventId)
- .andTriggerTypeEqualTo(EnumEventTriggerType.DISTRIBUTION_PURCHASE.getCode().byteValue());
- return example;
- })
- .map(eventActionMapper::selectByExample)
- .filter(StringUtil::isNotEmpty)
- .map(e -> e.get(0)).orElseThrow(() -> ExceptionUtil.createParamException("变乱触发信息不存在"))
- , EventAction.class);
- final AwardConfig awardConfig = redisObj(EventConfigKey + eventAction.getId(),
- () -> Optional.ofNullable(eventAction.getId())
- .map(actionId -> {
- final AwardConfigExample example = new AwardConfigExample();
- example.createCriteria()
- .andActionIdEqualTo(actionId);
- return example;
- })
- .map(awardConfigMapper::selectByExample)
- .filter(StringUtil::isNotEmpty)
- .map(e -> e.get(0)).orElseThrow(() -> ExceptionUtil.createParamException("xxx")),
- AwardConfig.class
- );
- Optional.of(req)
- .map(e -> e.clueUid)
- .map(id -> {
- final ClueExample example = new ClueExample();
- example.createCriteria()
- .andClueUidEqualTo(id)
- .andDeletedEqualTo(false)
- .andReceivedEqualTo(false)
- .andCreateTimeGreaterThan(now - cluetime);
- example.setOrderByClause("create_time asc");
- return example;
- }) // 获取该被约请人全部未逾期且未被领取的线索的线索
- .map(clueMapper::selectByExample)
- .filter(StringUtil::isNotEmpty)
- .ifPresent(clues -> {
- final ClueResp clueResp = Optional.of(req)
- .filter(c -> {
- c.count = clues.size();
- return true;
- })
- .map(this::awardValue)
- .orElseThrow(() -> ExceptionUtil.createParamException("参数错误"));
- final Integer specialId = req.getIsHead()
- ? clues.get(0).getId()
- : clues.get(clues.size() - 1).getId();
- clues.stream()
- .peek(clue -> {
- final AwardConfig awardConfigclone = Optional.of(awardConfig)
- .map(JSONUtil::obj2Json)
- .map(json -> JSONUtil.json2Obj(json, AwardConfig.class))
- .orElseGet(AwardConfig::new);
- awardConfigclone.setMoney(
- Optional.of(clue.getId())
- .filter(specialId::equals)
- .map(e -> clueResp.specialReward.longValue())
- .orElse(clueResp.otherAverageReward.longValue())
- );
- eventActionService.assembleAward(
- awardConfigclone,
- clue.getAdviserUid(),
- clue.getAdviserUid(),
- clue.getClueUid(),
- eventAction,
- new PasMessageParam(),
- clue.getId(),
- AwardRelationType.Clud.code()
- );
- })
- .forEach(clue -> {
- clue.setOrderNo(req.orderNo);
- clue.setCommodityName(req.commodityName);
- clue.setOrderAmount(req.orderAmount);
- clue.setReceived(true);
- clue.setModifyTime(now);
- clueMapper.updateByPrimaryKeySelective(clue);
- });
- }
- );
参考资料:
https://gitee.com/oschina/bullshit-codes/tree/master/java
(编辑:河北网)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!
|