¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.yuanchu.mom.pojo; |
| | | |
| | | import lombok.Data; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | @Data |
| | | @Slf4j |
| | | @Component |
| | | public class IfsApi implements Serializable { |
| | | /*æµè¯åºip*/ |
| | | // final String ip = "http://192.168.20.47:8008"; |
| | | // final String ip2 = "http://192.168.20.47"; |
| | | // final String ip3 = "http://192.168.20.47:8081"; |
| | | // |
| | | // final String contractKey = "x%2bvbGReagnsK%2fDr45xkVcGLOh%2fWWGODQ2inBGeNwbZw%3d"; |
| | | // final String contractKeyPost = "x%2bvbGReagnsK%2fDr45xkVcGLOh%2fWWGODQ2inBGeNwbZw="; |
| | | |
| | | /*æ£å¼åºip*/ |
| | | final String ip = "http://192.168.20.50:8008"; |
| | | final String ip2 = "http://192.168.20.50"; |
| | | final String ip3 = "http://192.168.20.50:8081"; |
| | | |
| | | final String contractKey = "x%2bvbGReagnsK%2fDr45xkVcGLOh%2fWWGODQ2inBGeNwbZw%3d"; |
| | | final String contractKeyPost = "x%2bvbGReagnsK%2fDr45xkVcGLOh%2fWWGODQ2inBGeNwbZw="; |
| | | |
| | | final String contract = "ZTZB"; |
| | | |
| | | final String userId = "MESUser"; |
| | | //é¶ä»¶ |
| | | final String PART = ip + "/PurchService.ashx?contract=" + contract + "&contractKey=" + contractKey + "&procedureName=QUERY_INVENTORY_PART_INFO_STD&userId=" + userId + "&inAttr=%7B%0D%0A%20%20%20%20%22MODIFY_DATE%22:%22%22%0D%0A%7D"; |
| | | |
| | | } |
| | |
| | | |
| | | @ValueTableShow(value = 16, name = "æ¥æ ·æ¹å¼") |
| | | private String formType; |
| | | @TableField(exist = false) |
| | | |
| | | @ApiModelProperty("å®¡æ ¸æ¶é´") |
| | | private LocalDateTime examineTime; |
| | | |
| | |
| | | */ |
| | | private String ask; |
| | | |
| | | /**è¦æ±æè¿°*/ |
| | | private String tell; |
| | | |
| | | /** |
| | | * æç»å¼ |
| | | */ |
| | |
| | | // éè¿è®¢åidæ¥æ¾æææ ·æ¬id |
| | | List<Integer> sampleIds = insSampleMapper.selectList(Wrappers.<InsSample>lambdaQuery().eq(InsSample::getInsOrderId, orderId)).stream().map(InsSample::getId).collect(Collectors.toList()); |
| | | // éè¿æ£æ¥æ¯ä¸ä¸ªæ ·æ¬idæ¥å°å±äºæ£éªé¡¹ç»è®º is nullçæ°é |
| | | Long count = insProductMapper.selectCount(Wrappers.<InsProduct>lambdaQuery().in(InsProduct::getInsSampleId, sampleIds).isNull(InsProduct::getInsResult).eq(InsProduct::getSonLaboratory, insProduct.getSonLaboratory())); |
| | | // is nullçæ°é为0æ¯å°è®¢åç¶æè¡¨çç¶ææ¹ä¸ºå·²æ£éª |
| | | List<InsProduct> insProducts = insProductMapper.selectList(Wrappers.<InsProduct>lambdaQuery().in(InsProduct::getInsSampleId, sampleIds).isNull(InsProduct::getInsResult).eq(InsProduct::getSonLaboratory, insProduct.getSonLaboratory())); |
| | | Long count = insProductMapper.selectCount(Wrappers.<InsProduct>lambdaQuery().in(InsProduct::getInsSampleId, sampleIds).isNull(InsProduct::getInsResult).eq(InsProduct::getSonLaboratory, insProduct.getSonLaboratory()).eq(InsProduct::getState, 1)); |
| | | if (count == 0) { |
| | | insOrderStateMapper.update(new InsOrderState(), Wrappers.<InsOrderState>lambdaUpdate() |
| | | .eq(InsOrderState::getInsOrderId, orderId) |
| | |
| | | table.put("tableSize", tables.size() + 1); |
| | | }); |
| | | List<Map<String, String>> deviceList = null; |
| | | if(deviceSet.size()!=0){ |
| | | if (deviceSet.size() != 0) { |
| | | deviceList = insOrderMapper.selectDeviceList(deviceSet); |
| | | } |
| | | Map<String, String> codeStr = new HashMap<>(); |
| | |
| | | FileInputStream stream = new FileInputStream(path); |
| | | XWPFDocument document = new XWPFDocument(stream); |
| | | List<XWPFTable> xwpfTables = document.getTables(); |
| | | for (int i = 1; i < xwpfTables.size() - (deviceList==null?1:2); i++) { |
| | | for (int i = 1; i < xwpfTables.size() - (deviceList == null ? 1 : 2); i++) { |
| | | Set<String> set1 = new HashSet<>(); |
| | | Map<String, Map<String, Integer>> maps = new HashMap<>(); |
| | | for (int j = 0; j < xwpfTables.get(i).getRows().size(); j++) { |
| | |
| | | } |
| | | } |
| | | } |
| | | maps.forEach((k,v)->{ |
| | | maps.forEach((k, v) -> { |
| | | }); |
| | | List<String> list = new ArrayList<>(); |
| | | for (String s : maps.keySet()) { |
| | |
| | | for (int j = 0; j < v.get("er") - v.get("sr") + 1; j++) { |
| | | TableTools.mergeCellsHorizonal(xwpfTables.get(i), v.get("sr") + j, v.get("sc"), v.get("ec")); |
| | | } |
| | | if(v.get("er")>v.get("sr")){ |
| | | if (v.get("er") > v.get("sr")) { |
| | | TableTools.mergeCellsVertically(xwpfTables.get(i), v.get("sc"), v.get("sr"), v.get("er")); |
| | | } |
| | | } |
| | |
| | | if (insProducts.size() > 0) { |
| | | String str = ""; |
| | | for (InsProduct product : insProducts) { |
| | | str += product.getInspectionItem() + product.getInspectionItemSubclass() + "ï¼"; |
| | | str += product.getInspectionItem() + " " + product.getInspectionItemSubclass() + "ï¼"; |
| | | } |
| | | throw new ErrorException("以䏿¯æªæ£éªç项ç®ï¼" + str); |
| | | } |
| | |
| | | <result property="sampleType" column="sample_type" jdbcType="VARCHAR"/> |
| | | <result property="sample" column="sample" jdbcType="VARCHAR"/> |
| | | <result property="model" column="model" jdbcType="VARCHAR"/> |
| | | <result property="isLeave" column="is_leave" jdbcType="INTEGER"/> |
| | | <result property="insState" column="ins_state" jdbcType="INTEGER"/> |
| | | <result property="joinNum" column="join_num" jdbcType="INTEGER"/> |
| | | <result property="remark" column="remark" jdbcType="VARCHAR"/> |
| | |
| | | ipr.com_value, |
| | | ipr.equip_value, |
| | | ipr.equip_name, |
| | | ip.method_s |
| | | ip.method_s, |
| | | ip.tell |
| | | from ins_sample isa |
| | | left join ins_product ip on isa.id = ip.ins_sample_id |
| | | left join ins_product_result ipr on ip.id = ipr.ins_product_id |
| | |
| | | <result property="sampleType" column="sample_type" jdbcType="VARCHAR"/> |
| | | <result property="sample" column="sample" jdbcType="VARCHAR"/> |
| | | <result property="model" column="model" jdbcType="VARCHAR"/> |
| | | <result property="isLeave" column="is_leave" jdbcType="INTEGER"/> |
| | | <result property="insState" column="ins_state" jdbcType="INTEGER"/> |
| | | <result property="joinNum" column="join_num" jdbcType="INTEGER"/> |
| | | <result property="remark" column="remark" jdbcType="VARCHAR"/> |
| | |
| | | <result property="updateTime" column="ip_update_time" jdbcType="TIMESTAMP"/> |
| | | <result property="templateId" column="template_id" jdbcType="INTEGER"/> |
| | | <result property="methodS" column="method_s"/> |
| | | <result property="tell" column="tell"/> |
| | | <collection property="insProductResult" resultMap="insProductResult"/> |
| | | </resultMap> |
| | | |
| | |
| | | @ApiModelProperty(value = "å§å") |
| | | private String name; |
| | | |
| | | // @ValueTableShow(2) |
| | | // @ApiModelProperty(value = "å§åEN") |
| | | // private String nameEn; |
| | | @ValueTableShow(2) |
| | | @ApiModelProperty(value = "å§åEN") |
| | | private String nameEn; |
| | | |
| | | @ValueTableShow(3) |
| | | @ApiModelProperty(value = "ç¶æ") |
| | |
| | | select e.id,e.category,e.label,e.value,e.order_num,e.type |
| | | from enums e |
| | | where e.category=#{category} |
| | | order by e.order_num |
| | | </select> |
| | | </mapper> |
| | |
| | | select * from ( |
| | | select u1.id, u1.account, u1.name, u1.state, u1.create_time, u1.update_time, u1.create_user, u1.update_user, |
| | | u1.age, u1.email, u1.phone, u1.department, u1.company, u1.address, u1.is_custom, u1.role_id, u2.name |
| | | create_user_name, u3.name update_user_name, r.name role_name,u1.signature_url,u1.picture_url,u1.depart_id |
| | | create_user_name, u3.name update_user_name, r.name role_name,u1.signature_url,u1.picture_url,u1.depart_id, |
| | | u1.name_en |
| | | from user u1 |
| | | left join user u2 on u2.id = u1.create_user |
| | | left join user u3 on u3.id = u1.update_user |