摘要:
-- 用FIND_IN_SET(state,'0,1,4,2,3,5,6') 可以按照指定的'0,1,4,2,3,5,6'状态进行排序 SELECT * FROM qua_prod_return ORDER BY FIND_IN_SET(state,'0,1,4,2,3,5,6'), prod_re 阅读全文
摘要:
在相关字段上加上注解 @TableField(strategy = FieldStrategy.IGNORED) 如: @TableField(updateStrategy = FieldStrategy.IGNORED)@ApiModelProperty(value = "检验结果2:1返工/返修 阅读全文
摘要:
class UserPo { private String name; private Double score; } List<UserPo> list = new ArrayList<>(); list.add(new UserPo(1L,"小一", 10.d)); list.add(new U 阅读全文
摘要:
// 用stripTrailingZeros()去掉末尾的0// 用toPlainString() 避免输出科学计数法 BigDecimal produceQty = produceWorkLog.getProduceQty(); produceQty.stripTrailingZeros().to 阅读全文
摘要:
// list转数组 Long[] ids = updateIds.toArray(new Long[updateIds.size()]) // 数组转list List<String> reasonList = Arrays.asList(perm.trim().split(",")) // St 阅读全文