[jeeplus] 使用笔记 (gridSelect、datetimepicker etc.)
本贴最后更新于 2009 天前,其中的信息可能已经时过境迁
相关帖子
请输入回帖内容
...
- 其他回帖
-
PeterChu •作者
MySql 中根据 判断某个字段(字符串)的长度后 按不同情况更新 同一个字段的值 的方法:
UPDATE m_levelformajor SET type = ( CASE WHEN 1 < LENGTH(number) AND LENGTH(number) < 3 THEN "2" WHEN 3 < LENGTH(number) AND LENGTH(number) < 5 THEN "3" WHEN 6 <= LENGTH(number) THEN "4" WHEN number IS NULL THEN "1" ELSE "1" END ) UPDATE m_levelformajor SET type = ( CASE WHEN number IS NULL THEN "1" ELSE "1" END ) SELECT id,name, number, type, parent_id,parent_ids , LENGTH(number) FROM m_levelformajor SELECT id,name, number, type, parent_id,parent_ids , LENGTH(number) FROM m_levelformajor WHERE LENGTH(number) <5 AND LENGTH(number) > 3 SELECT id,name, number, type, parent_id,parent_ids , LENGTH(number) FROM m_levelformajor WHERE 1 < LENGTH(number) AND LENGTH(number) <3 SELECT id,name, number, type, parent_id,parent_ids , LENGTH(number) FROM m_levelformajor WHERE LENGTH(number) <1```
-
PeterChu •作者
SSM 中 MyBatis 的某个 xxxMapper.xml 中,是否可以这样写?
<if test="planMajorName != null and planMajorName != '' and r1 = '0'"> AND a.planmajorname = #{planMajorName} </if> <if test="planMajorName != null and planMajorName != '' and (r1 = null or r1 = '')"> AND a.planmajorname LIKE <if test="dbName == 'oracle'">'%'||#{planMajorName}||'%'</if> <if test="dbName == 'mssql'">'%'+#{planMajorName}+'%'</if> <if test="dbName == 'mysql'">concat('%',#{planMajorName},'%')</if> </if>
-
PeterChu •作者
怎么让主附表中的附表也打开横向滚动条?
用 CSS 样式控制显示出来吗?尝试一下<style> .tab-content{ overflow-x: scroll; width: 3000px; } </style>
添加该样式后显示不正确。
暂且在 list.jsp 中添加:<style> .tabs-container .tab-content > .active, .tabs-container .pill-content > .active { display: block; overflow-x: auto; width: 3000px; } </style>
- 查看全部回帖