| | |
| | | private String remark; |
| | | |
| | | private Integer status; |
| | | |
| | | private String pkVoucher; |
| | | } |
| | |
| | | |
| | | @ExcelProperty("备注") |
| | | private String remark; |
| | | |
| | | @ExcelProperty("PK_VOUCHER") |
| | | private String pkVoucher; |
| | | } |
| | |
| | | errorMsgs.add("第" + data.getSeqNo() + "行单位编码为空"); |
| | | return; |
| | | } |
| | | if (!permissionDeptCodes.contains(data.getUnitCode())) { |
| | | errorMsgs.add("第" + data.getSeqNo() + "行无权限导入部门编码: " + data.getUnitCode()); |
| | | return; |
| | | } |
| | | // if (!permissionDeptCodes.contains(data.getUnitCode())) { |
| | | // errorMsgs.add("第" + data.getSeqNo() + "行无权限导入部门编码: " + data.getUnitCode()); |
| | | // return; |
| | | // } |
| | | |
| | | DataExcel entity = new DataExcel(); |
| | | entity.setSortNo(data.getSortNo()); |
| | |
| | | entity.setBusinessRelation(data.getBusinessRelation()); |
| | | entity.setRemark(data.getRemark()); |
| | | entity.setStatus(1); |
| | | entity.setPkVoucher(data.getPkVoucher()); |
| | | |
| | | if (data.getSortNo() != null) { |
| | | DataExcel existData = baseMapper.selectBySortNo(data.getSortNo()); |
| | |
| | | <result column="update_by" property="updateBy"/> |
| | | <result column="deleted" property="deleted"/> |
| | | <result column="version" property="version"/> |
| | | <result column="pk_voucher" property="pkVoucher"/> |
| | | </resultMap> |
| | | |
| | | <select id="selectDataExcelPage" resultMap="dataExcelResultMap"> |
| | |
| | | create_by, |
| | | update_by, |
| | | deleted, |
| | | version |
| | | version, |
| | | pk_voucher |
| | | ) VALUES ( |
| | | #{id}, |
| | | <if test="seqNo != null">#{seqNo},</if> |
| | |
| | | #{createBy}, |
| | | #{updateBy}, |
| | | 0, |
| | | 1 |
| | | 1, |
| | | #{pkVoucher} |
| | | ) |
| | | </insert> |
| | | </mapper> |