`
文章列表
create table t_test_sales( keHu varchar2(20), --客户 shangPin varchar2(20), --商品名称 salesNum number(8) --销售数量 ); --插入数据 declare --谈几个客户 cursor lr_kh is select regexp_substr('张三、李四、王五、赵六', '[^、]+', 1, level) keHu from dual connect by level &l ...

Mybatis传list

<if test="attributeList != null and attributeList.size>0 ">     and  data.attributeCode in ( <foreach collection="attributeList" item="item" separator=","> #{item} </foreach> ) </if>   --来自 补考课程设置,补考生成
this.props.form.setFieldsValue({'noticeUserRangeIds':selectedRowKeys});    

map遍历

let deptList=this.props.selectRow.noticeDeptRangeDTO.map((item,index)=>{ return item.deptId; })   let fileList =this.props.selectRow.attachmentDTO.map(val =>{ return { uid: val.attachmentId, name: val.fileName, status: 'done', ...
@Mapper public interface NoticeDeptRangeDTOMapper int batchInsertInfo(List<NoticeDeptRangeDTO> list); <insert id="batchInsertInfo" parameterType="java.util.List"> insert all into XTGL_GGGL_BMFW (BMGGFW_ID, BM_ID, TZGG_ID,CJR, CJSJ,ZHXGR,ZHXGSJ) < ...
<!-- 动态通过表、主键、流水号位数去查找目前最大的流水号 ,然后加1--> <select id="findMaxLsh" resultType="String"> select substr(max(${keyColumn}), length(max(${keyColumn})) - ${lshws} + 1, length(max(${keyColumn}))) + 1 from ${bbh} wher ...
<select id="findIdIsNull" resultType="string"> select XSID from LY_CKBZ_GXJW_XSLSXXB where BJID = #{bjdm} and XH is null <if test="type == '1'.toString()"> order by NLSSORT(XM,'NLS_SORT = SCHINESE_PINYIN_M') </if&g ...

前端弹框回传值

 父表: <UpdateModal                         ref="updateModal"                         kch={this.state.kch}                         selectRow={this.state.selectRow}                         collegeList={
解决:其他用户已更改具有主键oracle.jbo.Key[ ] 的行 找出可能被占用的行,然后refresh for (Row row : selectRows) {         row.refresh(Row.REFRESH_WITH_DB_FORGET_CHANGES);  }
/** * 获取EXCEL单元格的值,一律转为String返回 * @param cell * @return */ private String getCellStrValue(Cell cell) { String value = ""; if (cell != null) { switch (cell.getCellType()) { case Cell.CELL_TYPE_NUMERIC: ...

url中文乱码

    博客分类:
  • java
网上参考资料 目前实测方法一 JAVA 中URL链接中文参数乱码的若干处理方法,现在整理收录如下: 方法一:  (1) JS中,在URL参数中确保用UTF-8编码,用js函数encodeURI()编码,例如     url:"xx.action?id="+treeNode.id+"&name="+encodeURI(newname), (2) 在java的action中, import javax.servlet.http.HttpServletRequest;  HttpServletRequest request = S ...

float计算精度

    博客分类:
  • java
        1、结果保留一位小数:         float a = (float) 15.3;     float b = (float) 18.6;     DecimalFormat df = new  DecimalFormat("##0.0");  //结果保留一位小数     if(a >= b){     System.out.println("a大"+df.format(a-b));     }else{     System.out.println("b大"+df.format(b-a)) ...
一、右键工程:Refactor->Rename,或选中工程按F2,修改名称 二、修改项目目录下:.project文件          <?xml version="1.0" encoding="UTF-8"?>               <projectDescription>                    <name>修改掉</name>   三、项目右键属性 --> Web Project Settings --> Context root  四、修改项目目录下: ...

servlet显示图片

    博客分类:
  • java
  /** * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse * response) */ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(CONTENT_TYPE); request.setCharacterE ...
https://zhidao.baidu.com/question/743289182327345652.html 效果如这    
Global site tag (gtag.js) - Google Analytics