7 changed files with 0 additions and 3433 deletions
@ -1,150 +0,0 @@ |
|||
package com.ruoyi.produce.controller; |
|||
|
|||
import com.ruoyi.common.annotation.Log; |
|||
import com.ruoyi.common.core.controller.BaseController; |
|||
import com.ruoyi.common.core.domain.AjaxResult; |
|||
import com.ruoyi.common.core.page.TableDataInfo; |
|||
import com.ruoyi.common.enums.BusinessType; |
|||
import com.ruoyi.common.utils.poi.ExcelUtil; |
|||
import com.ruoyi.produce.domain.TestLog; |
|||
import com.ruoyi.produce.service.ITestLogService; |
|||
import org.apache.shiro.authz.annotation.RequiresPermissions; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Controller; |
|||
import org.springframework.ui.ModelMap; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.HashMap; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 测试数据Controller |
|||
* |
|||
* @author sunzhenhu |
|||
* @date 2021-08-17 |
|||
*/ |
|||
@Controller |
|||
@RequestMapping("/produce/produce") |
|||
public class TestLogController extends BaseController |
|||
{ |
|||
private String prefix = "produce/produce"; |
|||
|
|||
@Autowired |
|||
private ITestLogService testLogService; |
|||
|
|||
@RequiresPermissions("produce:produce:view") |
|||
@GetMapping() |
|||
public String produce() |
|||
{ |
|||
return prefix + "/produce"; |
|||
} |
|||
|
|||
/** |
|||
* 查询测试数据列表 |
|||
*/ |
|||
@RequiresPermissions("produce:produce:list") |
|||
@PostMapping("/list") |
|||
@ResponseBody |
|||
public TableDataInfo list(TestLog testLog) |
|||
{ |
|||
System.out.println(testLog); |
|||
startPage(); |
|||
List<TestLog> list = testLogService.selectTestLogList(testLog); |
|||
return getDataTable(list); |
|||
} |
|||
|
|||
/** |
|||
* 导出测试数据列表 |
|||
*/ |
|||
@RequiresPermissions("produce:produce:export") |
|||
@Log(title = "测试数据", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
@ResponseBody |
|||
public AjaxResult export(TestLog testLog) |
|||
{ |
|||
List<TestLog> list = testLogService.selectTestLogList(testLog); |
|||
ExcelUtil<TestLog> util = new ExcelUtil<TestLog>(TestLog.class); |
|||
return util.exportExcel(list, "测试数据数据"); |
|||
} |
|||
|
|||
/** |
|||
* 新增测试数据 |
|||
*/ |
|||
@GetMapping("/add") |
|||
public String add() |
|||
{ |
|||
return prefix + "/add"; |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 新增保存测试数据列表 |
|||
*/ |
|||
// @RequiresPermissions("produce:produce:add")
|
|||
@Log(title = "测试数据", businessType = BusinessType.INSERT) |
|||
@PostMapping("/addList") |
|||
@ResponseBody |
|||
public Map<String,Object> addSave(@RequestBody List<TestLog> objList) |
|||
{ |
|||
int resultId=0; |
|||
for (int i=0;i<objList.size();i++){ |
|||
resultId=testLogService.insertTestLog(objList.get(i)); |
|||
} |
|||
Map map=new HashMap(); |
|||
if (resultId>0){ |
|||
map.put("msg","成功"); |
|||
map.put("value",1); |
|||
}else { |
|||
map.put("msg","失败"); |
|||
map.put("value",0); |
|||
} |
|||
return map; |
|||
} |
|||
/** |
|||
* 新增保存测试数据 |
|||
*/ |
|||
@RequiresPermissions("produce:produce:add") |
|||
@Log(title = "测试数据", businessType = BusinessType.INSERT) |
|||
@PostMapping("/add") |
|||
@ResponseBody |
|||
public AjaxResult addSave(TestLog testLog) |
|||
{ |
|||
return toAjax(testLogService.insertTestLog(testLog)); |
|||
} |
|||
|
|||
/** |
|||
* 修改测试数据 |
|||
*/ |
|||
@GetMapping("/edit/{id}") |
|||
public String edit(@PathVariable("id") Integer id, ModelMap mmap) |
|||
{ |
|||
TestLog testLog = testLogService.selectTestLogById(id); |
|||
mmap.put("testLog", testLog); |
|||
return prefix + "/edit"; |
|||
} |
|||
|
|||
/** |
|||
* 修改保存测试数据 |
|||
*/ |
|||
@RequiresPermissions("produce:produce:edit") |
|||
@Log(title = "测试数据", businessType = BusinessType.UPDATE) |
|||
@PostMapping("/edit") |
|||
@ResponseBody |
|||
public AjaxResult editSave(TestLog testLog) |
|||
{ |
|||
return toAjax(testLogService.updateTestLog(testLog)); |
|||
} |
|||
|
|||
/** |
|||
* 删除测试数据 |
|||
*/ |
|||
@RequiresPermissions("produce:produce:remove") |
|||
@Log(title = "测试数据", businessType = BusinessType.DELETE) |
|||
@PostMapping( "/remove") |
|||
@ResponseBody |
|||
public AjaxResult remove(String ids) |
|||
{ |
|||
return toAjax(testLogService.deleteTestLogByIds(ids)); |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -1,61 +0,0 @@ |
|||
package com.ruoyi.produce.mapper; |
|||
|
|||
import java.util.List; |
|||
import com.ruoyi.produce.domain.TestLog; |
|||
|
|||
/** |
|||
* 测试数据Mapper接口 |
|||
* |
|||
* @author sunzhenhu |
|||
* @date 2021-08-17 |
|||
*/ |
|||
public interface TestLogMapper |
|||
{ |
|||
/** |
|||
* 查询测试数据 |
|||
* |
|||
* @param id 测试数据ID |
|||
* @return 测试数据 |
|||
*/ |
|||
public TestLog selectTestLogById(Integer id); |
|||
|
|||
/** |
|||
* 查询测试数据列表 |
|||
* |
|||
* @param testLog 测试数据 |
|||
* @return 测试数据集合 |
|||
*/ |
|||
public List<TestLog> selectTestLogList(TestLog testLog); |
|||
|
|||
/** |
|||
* 新增测试数据 |
|||
* |
|||
* @param testLog 测试数据 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertTestLog(TestLog testLog); |
|||
|
|||
/** |
|||
* 修改测试数据 |
|||
* |
|||
* @param testLog 测试数据 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateTestLog(TestLog testLog); |
|||
|
|||
/** |
|||
* 删除测试数据 |
|||
* |
|||
* @param id 测试数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteTestLogById(Integer id); |
|||
|
|||
/** |
|||
* 批量删除测试数据 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteTestLogByIds(String[] ids); |
|||
} |
@ -1,61 +0,0 @@ |
|||
package com.ruoyi.produce.service; |
|||
|
|||
import java.util.List; |
|||
import com.ruoyi.produce.domain.TestLog; |
|||
|
|||
/** |
|||
* 测试数据Service接口 |
|||
* |
|||
* @author sunzhenhu |
|||
* @date 2021-08-17 |
|||
*/ |
|||
public interface ITestLogService |
|||
{ |
|||
/** |
|||
* 查询测试数据 |
|||
* |
|||
* @param id 测试数据ID |
|||
* @return 测试数据 |
|||
*/ |
|||
public TestLog selectTestLogById(Integer id); |
|||
|
|||
/** |
|||
* 查询测试数据列表 |
|||
* |
|||
* @param testLog 测试数据 |
|||
* @return 测试数据集合 |
|||
*/ |
|||
public List<TestLog> selectTestLogList(TestLog testLog); |
|||
|
|||
/** |
|||
* 新增测试数据 |
|||
* |
|||
* @param testLog 测试数据 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertTestLog(TestLog testLog); |
|||
|
|||
/** |
|||
* 修改测试数据 |
|||
* |
|||
* @param testLog 测试数据 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateTestLog(TestLog testLog); |
|||
|
|||
/** |
|||
* 批量删除测试数据 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteTestLogByIds(String ids); |
|||
|
|||
/** |
|||
* 删除测试数据信息 |
|||
* |
|||
* @param id 测试数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteTestLogById(Integer id); |
|||
} |
@ -1,94 +0,0 @@ |
|||
package com.ruoyi.produce.service.impl; |
|||
|
|||
import java.util.List; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
import com.ruoyi.produce.mapper.TestLogMapper; |
|||
import com.ruoyi.produce.domain.TestLog; |
|||
import com.ruoyi.produce.service.ITestLogService; |
|||
import com.ruoyi.common.core.text.Convert; |
|||
|
|||
/** |
|||
* 测试数据Service业务层处理 |
|||
* |
|||
* @author sunzhenhu |
|||
* @date 2021-08-17 |
|||
*/ |
|||
@Service |
|||
public class TestLogServiceImpl implements ITestLogService |
|||
{ |
|||
@Autowired |
|||
private TestLogMapper testLogMapper; |
|||
|
|||
/** |
|||
* 查询测试数据 |
|||
* |
|||
* @param id 测试数据ID |
|||
* @return 测试数据 |
|||
*/ |
|||
@Override |
|||
public TestLog selectTestLogById(Integer id) |
|||
{ |
|||
return testLogMapper.selectTestLogById(id); |
|||
} |
|||
|
|||
/** |
|||
* 查询测试数据列表 |
|||
* |
|||
* @param testLog 测试数据 |
|||
* @return 测试数据 |
|||
*/ |
|||
@Override |
|||
public List<TestLog> selectTestLogList(TestLog testLog) |
|||
{ |
|||
return testLogMapper.selectTestLogList(testLog); |
|||
} |
|||
|
|||
/** |
|||
* 新增测试数据 |
|||
* |
|||
* @param testLog 测试数据 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int insertTestLog(TestLog testLog) |
|||
{ |
|||
return testLogMapper.insertTestLog(testLog); |
|||
} |
|||
|
|||
/** |
|||
* 修改测试数据 |
|||
* |
|||
* @param testLog 测试数据 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int updateTestLog(TestLog testLog) |
|||
{ |
|||
return testLogMapper.updateTestLog(testLog); |
|||
} |
|||
|
|||
/** |
|||
* 删除测试数据对象 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteTestLogByIds(String ids) |
|||
{ |
|||
return testLogMapper.deleteTestLogByIds(Convert.toStrArray(ids)); |
|||
} |
|||
|
|||
/** |
|||
* 删除测试数据信息 |
|||
* |
|||
* @param id 测试数据ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteTestLogById(Integer id) |
|||
{ |
|||
return testLogMapper.deleteTestLogById(id); |
|||
} |
|||
} |
@ -1,653 +0,0 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper |
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ruoyi.produce.mapper.TestLogMapper"> |
|||
|
|||
<resultMap type="TestLog" id="TestLogResult"> |
|||
<result property="id" column="id" /> |
|||
<result property="sn" column="sn" /> |
|||
<result property="date" column="date" /> |
|||
<result property="result" column="result" /> |
|||
<result property="failItem" column="failItem" /> |
|||
<result property="deltaT1" column="delta_T_1" /> |
|||
<result property="deltaT2" column="delta_T_2" /> |
|||
<result property="deltaT3" column="delta_T_3" /> |
|||
<result property="deltaT4" column="delta_T_4" /> |
|||
<result property="deltaT5" column="delta_T_5" /> |
|||
<result property="deltaT6" column="delta_T_6" /> |
|||
<result property="deltaT7" column="delta_T_7" /> |
|||
<result property="deltaT8" column="delta_T_8" /> |
|||
<result property="deltaT9" column="delta_T_9" /> |
|||
<result property="deltaT10" column="delta_T_10" /> |
|||
<result property="deltaT11" column="delta_T_11" /> |
|||
<result property="deltaT12" column="delta_T_12" /> |
|||
<result property="deltaT13" column="delta_T_13" /> |
|||
<result property="deltaT14" column="delta_T_14" /> |
|||
<result property="deltaT15" column="delta_T_15" /> |
|||
<result property="deltaT16" column="delta_T_16" /> |
|||
<result property="deltaT17" column="delta_T_17" /> |
|||
<result property="deltaT18" column="delta_T_18" /> |
|||
<result property="deltaT19" column="delta_T_19" /> |
|||
<result property="deltaT20" column="delta_T_20" /> |
|||
<result property="deltaT21" column="delta_T_21" /> |
|||
<result property="deltaT22" column="delta_T_22" /> |
|||
<result property="deltaT23" column="delta_T_23" /> |
|||
<result property="deltaT24" column="delta_T_24" /> |
|||
<result property="deltaT25" column="delta_T_25" /> |
|||
<result property="deltaT26" column="delta_T_26" /> |
|||
<result property="deltaT27" column="delta_T_27" /> |
|||
<result property="deltaT28" column="delta_T_28" /> |
|||
<result property="deltaT29" column="delta_T_29" /> |
|||
<result property="deltaT30" column="delta_T_30" /> |
|||
<result property="deltaT31" column="delta_T_31" /> |
|||
<result property="deltaT32" column="delta_T_32" /> |
|||
<result property="deltaT33" column="delta_T_33" /> |
|||
<result property="deltaT34" column="delta_T_34" /> |
|||
<result property="deltaT35" column="delta_T_35" /> |
|||
<result property="deltaT36" column="delta_T_36" /> |
|||
<result property="deltaT37" column="delta_T_37" /> |
|||
<result property="deltaT38" column="delta_T_38" /> |
|||
<result property="deltaT39" column="delta_T_39" /> |
|||
<result property="deltaT40" column="delta_T_40" /> |
|||
<result property="deltaT41" column="delta_T_41" /> |
|||
<result property="deltaT42" column="delta_T_42" /> |
|||
<result property="deltaT43" column="delta_T_43" /> |
|||
<result property="deltaT44" column="delta_T_44" /> |
|||
<result property="deltaT45" column="delta_T_45" /> |
|||
<result property="deltaT46" column="delta_T_46" /> |
|||
<result property="deltaT47" column="delta_T_47" /> |
|||
<result property="deltaT48" column="delta_T_48" /> |
|||
<result property="deltaT49" column="delta_T_49" /> |
|||
<result property="deltaT50" column="delta_T_50" /> |
|||
<result property="deltaR1" column="delta_R_1" /> |
|||
<result property="deltaR2" column="delta_R_2" /> |
|||
<result property="deltaR3" column="delta_R_3" /> |
|||
<result property="deltaR4" column="delta_R_4" /> |
|||
<result property="deltaR5" column="delta_R_5" /> |
|||
<result property="deltaR6" column="delta_R_6" /> |
|||
<result property="deltaR7" column="delta_R_7" /> |
|||
<result property="deltaR8" column="delta_R_8" /> |
|||
<result property="deltaR9" column="delta_R_9" /> |
|||
<result property="deltaR10" column="delta_R_10" /> |
|||
<result property="deltaR11" column="delta_R_11" /> |
|||
<result property="deltaR12" column="delta_R_12" /> |
|||
<result property="deltaR13" column="delta_R_13" /> |
|||
<result property="deltaR14" column="delta_R_14" /> |
|||
<result property="deltaR15" column="delta_R_15" /> |
|||
<result property="deltaR16" column="delta_R_16" /> |
|||
<result property="deltaR17" column="delta_R_17" /> |
|||
<result property="deltaR18" column="delta_R_18" /> |
|||
<result property="deltaR19" column="delta_R_19" /> |
|||
<result property="deltaR20" column="delta_R_20" /> |
|||
<result property="deltaR21" column="delta_R_21" /> |
|||
<result property="deltaR22" column="delta_R_22" /> |
|||
<result property="deltaR23" column="delta_R_23" /> |
|||
<result property="deltaR24" column="delta_R_24" /> |
|||
<result property="deltaR25" column="delta_R_25" /> |
|||
<result property="deltaR26" column="delta_R_26" /> |
|||
<result property="deltaR27" column="delta_R_27" /> |
|||
<result property="deltaR28" column="delta_R_28" /> |
|||
<result property="deltaR29" column="delta_R_29" /> |
|||
<result property="deltaR30" column="delta_R_30" /> |
|||
<result property="deltaR31" column="delta_R_31" /> |
|||
<result property="deltaR32" column="delta_R_32" /> |
|||
<result property="deltaR33" column="delta_R_33" /> |
|||
<result property="deltaR34" column="delta_R_34" /> |
|||
<result property="deltaR35" column="delta_R_35" /> |
|||
<result property="deltaR36" column="delta_R_36" /> |
|||
<result property="deltaR37" column="delta_R_37" /> |
|||
<result property="deltaR38" column="delta_R_38" /> |
|||
<result property="deltaR39" column="delta_R_39" /> |
|||
<result property="deltaR40" column="delta_R_40" /> |
|||
<result property="deltaR41" column="delta_R_41" /> |
|||
<result property="deltaR42" column="delta_R_42" /> |
|||
<result property="deltaR43" column="delta_R_43" /> |
|||
<result property="deltaR44" column="delta_R_44" /> |
|||
<result property="deltaR45" column="delta_R_45" /> |
|||
<result property="deltaR46" column="delta_R_46" /> |
|||
<result property="deltaR47" column="delta_R_47" /> |
|||
<result property="deltaR48" column="delta_R_48" /> |
|||
<result property="deltaR49" column="delta_R_49" /> |
|||
<result property="deltaR50" column="delta_R_50" /> |
|||
<result property="current1" column="current_1" /> |
|||
<result property="current2" column="current_2" /> |
|||
<result property="current3" column="current_3" /> |
|||
<result property="current4" column="current_4" /> |
|||
<result property="current5" column="current_5" /> |
|||
<result property="current6" column="current_6" /> |
|||
<result property="current7" column="current_7" /> |
|||
<result property="current8" column="current_8" /> |
|||
<result property="current9" column="current_9" /> |
|||
<result property="current10" column="current_10" /> |
|||
<result property="current11" column="current_11" /> |
|||
<result property="current12" column="current_12" /> |
|||
<result property="current13" column="current_13" /> |
|||
<result property="current14" column="current_14" /> |
|||
<result property="current15" column="current_15" /> |
|||
</resultMap> |
|||
|
|||
<sql id="selectTestLogVo"> |
|||
select id, sn, date, result, failItem, delta_T_1, delta_T_2, delta_T_3, delta_T_4, delta_T_5, delta_T_6, delta_T_7, delta_T_8, delta_T_9, delta_T_10, delta_T_11, delta_T_12, delta_T_13, delta_T_14, delta_T_15, delta_T_16, delta_T_17, delta_T_18, delta_T_19, delta_T_20, delta_T_21, delta_T_22, delta_T_23, delta_T_24, delta_T_25, delta_T_26, delta_T_27, delta_T_28, delta_T_29, delta_T_30, delta_T_31, delta_T_32, delta_T_33, delta_T_34, delta_T_35, delta_T_36, delta_T_37, delta_T_38, delta_T_39, delta_T_40, delta_T_41, delta_T_42, delta_T_43, delta_T_44, delta_T_45, delta_T_46, delta_T_47, delta_T_48, delta_T_49, delta_T_50, delta_R_1, delta_R_2, delta_R_3, delta_R_4, delta_R_5, delta_R_6, delta_R_7, delta_R_8, delta_R_9, delta_R_10, delta_R_11, delta_R_12, delta_R_13, delta_R_14, delta_R_15, delta_R_16, delta_R_17, delta_R_18, delta_R_19, delta_R_20, delta_R_21, delta_R_22, delta_R_23, delta_R_24, delta_R_25, delta_R_26, delta_R_27, delta_R_28, delta_R_29, delta_R_30, delta_R_31, delta_R_32, delta_R_33, delta_R_34, delta_R_35, delta_R_36, delta_R_37, delta_R_38, delta_R_39, delta_R_40, delta_R_41, delta_R_42, delta_R_43, delta_R_44, delta_R_45, delta_R_46, delta_R_47, delta_R_48, delta_R_49, delta_R_50, current_1, current_2, current_3, current_4, current_5, current_6, current_7, current_8, current_9, current_10, current_11, current_12, current_13, current_14, current_15 from test_log |
|||
</sql> |
|||
|
|||
<select id="selectTestLogList" parameterType="TestLog" resultMap="TestLogResult"> |
|||
<include refid="selectTestLogVo"/> |
|||
<where> |
|||
<if test="sn != null and sn != ''"> and sn like concat('%', #{sn}, '%')</if> |
|||
<if test="date != null and date != ''"> and date = #{date}</if> |
|||
<if test="result != null and result != ''"> and result = #{result}</if> |
|||
<if test="failItem != null and failItem != ''"> and failItem = #{failItem}</if> |
|||
<if test="deltaT1 != null and deltaT1 != ''"> and delta_T_1 = #{deltaT1}</if> |
|||
<if test="deltaT2 != null and deltaT2 != ''"> and delta_T_2 = #{deltaT2}</if> |
|||
<if test="deltaT3 != null and deltaT3 != ''"> and delta_T_3 = #{deltaT3}</if> |
|||
<if test="deltaT4 != null and deltaT4 != ''"> and delta_T_4 = #{deltaT4}</if> |
|||
<if test="deltaT5 != null and deltaT5 != ''"> and delta_T_5 = #{deltaT5}</if> |
|||
<if test="deltaT6 != null and deltaT6 != ''"> and delta_T_6 = #{deltaT6}</if> |
|||
<if test="deltaT7 != null and deltaT7 != ''"> and delta_T_7 = #{deltaT7}</if> |
|||
<if test="deltaT8 != null and deltaT8 != ''"> and delta_T_8 = #{deltaT8}</if> |
|||
<if test="deltaT9 != null and deltaT9 != ''"> and delta_T_9 = #{deltaT9}</if> |
|||
<if test="deltaT10 != null and deltaT10 != ''"> and delta_T_10 = #{deltaT10}</if> |
|||
<if test="deltaT11 != null and deltaT11 != ''"> and delta_T_11 = #{deltaT11}</if> |
|||
<if test="deltaT12 != null and deltaT12 != ''"> and delta_T_12 = #{deltaT12}</if> |
|||
<if test="deltaT13 != null and deltaT13 != ''"> and delta_T_13 = #{deltaT13}</if> |
|||
<if test="deltaT14 != null and deltaT14 != ''"> and delta_T_14 = #{deltaT14}</if> |
|||
<if test="deltaT15 != null and deltaT15 != ''"> and delta_T_15 = #{deltaT15}</if> |
|||
<if test="deltaT16 != null and deltaT16 != ''"> and delta_T_16 = #{deltaT16}</if> |
|||
<if test="deltaT17 != null and deltaT17 != ''"> and delta_T_17 = #{deltaT17}</if> |
|||
<if test="deltaT18 != null and deltaT18 != ''"> and delta_T_18 = #{deltaT18}</if> |
|||
<if test="deltaT19 != null and deltaT19 != ''"> and delta_T_19 = #{deltaT19}</if> |
|||
<if test="deltaT20 != null and deltaT20 != ''"> and delta_T_20 = #{deltaT20}</if> |
|||
<if test="deltaT21 != null and deltaT21 != ''"> and delta_T_21 = #{deltaT21}</if> |
|||
<if test="deltaT22 != null and deltaT22 != ''"> and delta_T_22 = #{deltaT22}</if> |
|||
<if test="deltaT23 != null and deltaT23 != ''"> and delta_T_23 = #{deltaT23}</if> |
|||
<if test="deltaT24 != null and deltaT24 != ''"> and delta_T_24 = #{deltaT24}</if> |
|||
<if test="deltaT25 != null and deltaT25 != ''"> and delta_T_25 = #{deltaT25}</if> |
|||
<if test="deltaT26 != null and deltaT26 != ''"> and delta_T_26 = #{deltaT26}</if> |
|||
<if test="deltaT27 != null and deltaT27 != ''"> and delta_T_27 = #{deltaT27}</if> |
|||
<if test="deltaT28 != null and deltaT28 != ''"> and delta_T_28 = #{deltaT28}</if> |
|||
<if test="deltaT29 != null and deltaT29 != ''"> and delta_T_29 = #{deltaT29}</if> |
|||
<if test="deltaT30 != null and deltaT30 != ''"> and delta_T_30 = #{deltaT30}</if> |
|||
<if test="deltaT31 != null and deltaT31 != ''"> and delta_T_31 = #{deltaT31}</if> |
|||
<if test="deltaT32 != null and deltaT32 != ''"> and delta_T_32 = #{deltaT32}</if> |
|||
<if test="deltaT33 != null and deltaT33 != ''"> and delta_T_33 = #{deltaT33}</if> |
|||
<if test="deltaT34 != null and deltaT34 != ''"> and delta_T_34 = #{deltaT34}</if> |
|||
<if test="deltaT35 != null and deltaT35 != ''"> and delta_T_35 = #{deltaT35}</if> |
|||
<if test="deltaT36 != null and deltaT36 != ''"> and delta_T_36 = #{deltaT36}</if> |
|||
<if test="deltaT37 != null and deltaT37 != ''"> and delta_T_37 = #{deltaT37}</if> |
|||
<if test="deltaT38 != null and deltaT38 != ''"> and delta_T_38 = #{deltaT38}</if> |
|||
<if test="deltaT39 != null and deltaT39 != ''"> and delta_T_39 = #{deltaT39}</if> |
|||
<if test="deltaT40 != null and deltaT40 != ''"> and delta_T_40 = #{deltaT40}</if> |
|||
<if test="deltaT41 != null and deltaT41 != ''"> and delta_T_41 = #{deltaT41}</if> |
|||
<if test="deltaT42 != null and deltaT42 != ''"> and delta_T_42 = #{deltaT42}</if> |
|||
<if test="deltaT43 != null and deltaT43 != ''"> and delta_T_43 = #{deltaT43}</if> |
|||
<if test="deltaT44 != null and deltaT44 != ''"> and delta_T_44 = #{deltaT44}</if> |
|||
<if test="deltaT45 != null and deltaT45 != ''"> and delta_T_45 = #{deltaT45}</if> |
|||
<if test="deltaT46 != null and deltaT46 != ''"> and delta_T_46 = #{deltaT46}</if> |
|||
<if test="deltaT47 != null and deltaT47 != ''"> and delta_T_47 = #{deltaT47}</if> |
|||
<if test="deltaT48 != null and deltaT48 != ''"> and delta_T_48 = #{deltaT48}</if> |
|||
<if test="deltaT49 != null and deltaT49 != ''"> and delta_T_49 = #{deltaT49}</if> |
|||
<if test="deltaT50 != null and deltaT50 != ''"> and delta_T_50 = #{deltaT50}</if> |
|||
<if test="deltaR1 != null and deltaR1 != ''"> and delta_R_1 = #{deltaR1}</if> |
|||
<if test="deltaR2 != null and deltaR2 != ''"> and delta_R_2 = #{deltaR2}</if> |
|||
<if test="deltaR3 != null and deltaR3 != ''"> and delta_R_3 = #{deltaR3}</if> |
|||
<if test="deltaR4 != null and deltaR4 != ''"> and delta_R_4 = #{deltaR4}</if> |
|||
<if test="deltaR5 != null and deltaR5 != ''"> and delta_R_5 = #{deltaR5}</if> |
|||
<if test="deltaR6 != null and deltaR6 != ''"> and delta_R_6 = #{deltaR6}</if> |
|||
<if test="deltaR7 != null and deltaR7 != ''"> and delta_R_7 = #{deltaR7}</if> |
|||
<if test="deltaR8 != null and deltaR8 != ''"> and delta_R_8 = #{deltaR8}</if> |
|||
<if test="deltaR9 != null and deltaR9 != ''"> and delta_R_9 = #{deltaR9}</if> |
|||
<if test="deltaR10 != null and deltaR10 != ''"> and delta_R_10 = #{deltaR10}</if> |
|||
<if test="deltaR11 != null and deltaR11 != ''"> and delta_R_11 = #{deltaR11}</if> |
|||
<if test="deltaR12 != null and deltaR12 != ''"> and delta_R_12 = #{deltaR12}</if> |
|||
<if test="deltaR13 != null and deltaR13 != ''"> and delta_R_13 = #{deltaR13}</if> |
|||
<if test="deltaR14 != null and deltaR14 != ''"> and delta_R_14 = #{deltaR14}</if> |
|||
<if test="deltaR15 != null and deltaR15 != ''"> and delta_R_15 = #{deltaR15}</if> |
|||
<if test="deltaR16 != null and deltaR16 != ''"> and delta_R_16 = #{deltaR16}</if> |
|||
<if test="deltaR17 != null and deltaR17 != ''"> and delta_R_17 = #{deltaR17}</if> |
|||
<if test="deltaR18 != null and deltaR18 != ''"> and delta_R_18 = #{deltaR18}</if> |
|||
<if test="deltaR19 != null and deltaR19 != ''"> and delta_R_19 = #{deltaR19}</if> |
|||
<if test="deltaR20 != null and deltaR20 != ''"> and delta_R_20 = #{deltaR20}</if> |
|||
<if test="deltaR21 != null and deltaR21 != ''"> and delta_R_21 = #{deltaR21}</if> |
|||
<if test="deltaR22 != null and deltaR22 != ''"> and delta_R_22 = #{deltaR22}</if> |
|||
<if test="deltaR23 != null and deltaR23 != ''"> and delta_R_23 = #{deltaR23}</if> |
|||
<if test="deltaR24 != null and deltaR24 != ''"> and delta_R_24 = #{deltaR24}</if> |
|||
<if test="deltaR25 != null and deltaR25 != ''"> and delta_R_25 = #{deltaR25}</if> |
|||
<if test="deltaR26 != null and deltaR26 != ''"> and delta_R_26 = #{deltaR26}</if> |
|||
<if test="deltaR27 != null and deltaR27 != ''"> and delta_R_27 = #{deltaR27}</if> |
|||
<if test="deltaR28 != null and deltaR28 != ''"> and delta_R_28 = #{deltaR28}</if> |
|||
<if test="deltaR29 != null and deltaR29 != ''"> and delta_R_29 = #{deltaR29}</if> |
|||
<if test="deltaR30 != null and deltaR30 != ''"> and delta_R_30 = #{deltaR30}</if> |
|||
<if test="deltaR31 != null and deltaR31 != ''"> and delta_R_31 = #{deltaR31}</if> |
|||
<if test="deltaR32 != null and deltaR32 != ''"> and delta_R_32 = #{deltaR32}</if> |
|||
<if test="deltaR33 != null and deltaR33 != ''"> and delta_R_33 = #{deltaR33}</if> |
|||
<if test="deltaR34 != null and deltaR34 != ''"> and delta_R_34 = #{deltaR34}</if> |
|||
<if test="deltaR35 != null and deltaR35 != ''"> and delta_R_35 = #{deltaR35}</if> |
|||
<if test="deltaR36 != null and deltaR36 != ''"> and delta_R_36 = #{deltaR36}</if> |
|||
<if test="deltaR37 != null and deltaR37 != ''"> and delta_R_37 = #{deltaR37}</if> |
|||
<if test="deltaR38 != null and deltaR38 != ''"> and delta_R_38 = #{deltaR38}</if> |
|||
<if test="deltaR39 != null and deltaR39 != ''"> and delta_R_39 = #{deltaR39}</if> |
|||
<if test="deltaR40 != null and deltaR40 != ''"> and delta_R_40 = #{deltaR40}</if> |
|||
<if test="deltaR41 != null and deltaR41 != ''"> and delta_R_41 = #{deltaR41}</if> |
|||
<if test="deltaR42 != null and deltaR42 != ''"> and delta_R_42 = #{deltaR42}</if> |
|||
<if test="deltaR43 != null and deltaR43 != ''"> and delta_R_43 = #{deltaR43}</if> |
|||
<if test="deltaR44 != null and deltaR44 != ''"> and delta_R_44 = #{deltaR44}</if> |
|||
<if test="deltaR45 != null and deltaR45 != ''"> and delta_R_45 = #{deltaR45}</if> |
|||
<if test="deltaR46 != null and deltaR46 != ''"> and delta_R_46 = #{deltaR46}</if> |
|||
<if test="deltaR47 != null and deltaR47 != ''"> and delta_R_47 = #{deltaR47}</if> |
|||
<if test="deltaR48 != null and deltaR48 != ''"> and delta_R_48 = #{deltaR48}</if> |
|||
<if test="deltaR49 != null and deltaR49 != ''"> and delta_R_49 = #{deltaR49}</if> |
|||
<if test="deltaR50 != null and deltaR50 != ''"> and delta_R_50 = #{deltaR50}</if> |
|||
<if test="current1 != null and current1 != ''"> and current_1 = #{current1}</if> |
|||
<if test="current2 != null and current2 != ''"> and current_2 = #{current2}</if> |
|||
<if test="current3 != null and current3 != ''"> and current_3 = #{current3}</if> |
|||
<if test="current4 != null and current4 != ''"> and current_4 = #{current4}</if> |
|||
<if test="current5 != null and current5 != ''"> and current_5 = #{current5}</if> |
|||
<if test="current6 != null and current6 != ''"> and current_6 = #{current6}</if> |
|||
<if test="current7 != null and current7 != ''"> and current_7 = #{current7}</if> |
|||
<if test="current8 != null and current8 != ''"> and current_8 = #{current8}</if> |
|||
<if test="current9 != null and current9 != ''"> and current_9 = #{current9}</if> |
|||
<if test="current10 != null and current10 != ''"> and current_10 = #{current10}</if> |
|||
<if test="current11 != null and current11 != ''"> and current_11 = #{current11}</if> |
|||
<if test="current12 != null and current12 != ''"> and current_12 = #{current12}</if> |
|||
<if test="current13 != null and current13 != ''"> and current_13 = #{current13}</if> |
|||
<if test="current14 != null and current14 != ''"> and current_14 = #{current14}</if> |
|||
<if test="current15 != null and current15 != ''"> and current_15 = #{current15}</if> |
|||
</where> |
|||
Order BY id DESC |
|||
|
|||
</select> |
|||
|
|||
<select id="selectTestLogById" parameterType="Integer" resultMap="TestLogResult"> |
|||
<include refid="selectTestLogVo"/> |
|||
where id = #{id} |
|||
</select> |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
<insert id="insertTestLog" parameterType="TestLog" useGeneratedKeys="true" keyProperty="id"> |
|||
insert into test_log |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="sn != null and sn != ''">sn,</if> |
|||
<if test="date != null">date,</if> |
|||
<if test="result != null">result,</if> |
|||
<if test="failItem != null">failItem,</if> |
|||
<if test="deltaT1 != null">delta_T_1,</if> |
|||
<if test="deltaT2 != null">delta_T_2,</if> |
|||
<if test="deltaT3 != null">delta_T_3,</if> |
|||
<if test="deltaT4 != null">delta_T_4,</if> |
|||
<if test="deltaT5 != null">delta_T_5,</if> |
|||
<if test="deltaT6 != null">delta_T_6,</if> |
|||
<if test="deltaT7 != null">delta_T_7,</if> |
|||
<if test="deltaT8 != null">delta_T_8,</if> |
|||
<if test="deltaT9 != null">delta_T_9,</if> |
|||
<if test="deltaT10 != null">delta_T_10,</if> |
|||
<if test="deltaT11 != null">delta_T_11,</if> |
|||
<if test="deltaT12 != null">delta_T_12,</if> |
|||
<if test="deltaT13 != null">delta_T_13,</if> |
|||
<if test="deltaT14 != null">delta_T_14,</if> |
|||
<if test="deltaT15 != null">delta_T_15,</if> |
|||
<if test="deltaT16 != null">delta_T_16,</if> |
|||
<if test="deltaT17 != null">delta_T_17,</if> |
|||
<if test="deltaT18 != null">delta_T_18,</if> |
|||
<if test="deltaT19 != null">delta_T_19,</if> |
|||
<if test="deltaT20 != null">delta_T_20,</if> |
|||
<if test="deltaT21 != null">delta_T_21,</if> |
|||
<if test="deltaT22 != null">delta_T_22,</if> |
|||
<if test="deltaT23 != null">delta_T_23,</if> |
|||
<if test="deltaT24 != null">delta_T_24,</if> |
|||
<if test="deltaT25 != null">delta_T_25,</if> |
|||
<if test="deltaT26 != null">delta_T_26,</if> |
|||
<if test="deltaT27 != null">delta_T_27,</if> |
|||
<if test="deltaT28 != null">delta_T_28,</if> |
|||
<if test="deltaT29 != null">delta_T_29,</if> |
|||
<if test="deltaT30 != null">delta_T_30,</if> |
|||
<if test="deltaT31 != null">delta_T_31,</if> |
|||
<if test="deltaT32 != null">delta_T_32,</if> |
|||
<if test="deltaT33 != null">delta_T_33,</if> |
|||
<if test="deltaT34 != null">delta_T_34,</if> |
|||
<if test="deltaT35 != null">delta_T_35,</if> |
|||
<if test="deltaT36 != null">delta_T_36,</if> |
|||
<if test="deltaT37 != null">delta_T_37,</if> |
|||
<if test="deltaT38 != null">delta_T_38,</if> |
|||
<if test="deltaT39 != null">delta_T_39,</if> |
|||
<if test="deltaT40 != null">delta_T_40,</if> |
|||
<if test="deltaT41 != null">delta_T_41,</if> |
|||
<if test="deltaT42 != null">delta_T_42,</if> |
|||
<if test="deltaT43 != null">delta_T_43,</if> |
|||
<if test="deltaT44 != null">delta_T_44,</if> |
|||
<if test="deltaT45 != null">delta_T_45,</if> |
|||
<if test="deltaT46 != null">delta_T_46,</if> |
|||
<if test="deltaT47 != null">delta_T_47,</if> |
|||
<if test="deltaT48 != null">delta_T_48,</if> |
|||
<if test="deltaT49 != null">delta_T_49,</if> |
|||
<if test="deltaT50 != null">delta_T_50,</if> |
|||
<if test="deltaR1 != null">delta_R_1,</if> |
|||
<if test="deltaR2 != null">delta_R_2,</if> |
|||
<if test="deltaR3 != null">delta_R_3,</if> |
|||
<if test="deltaR4 != null">delta_R_4,</if> |
|||
<if test="deltaR5 != null">delta_R_5,</if> |
|||
<if test="deltaR6 != null">delta_R_6,</if> |
|||
<if test="deltaR7 != null">delta_R_7,</if> |
|||
<if test="deltaR8 != null">delta_R_8,</if> |
|||
<if test="deltaR9 != null">delta_R_9,</if> |
|||
<if test="deltaR10 != null">delta_R_10,</if> |
|||
<if test="deltaR11 != null">delta_R_11,</if> |
|||
<if test="deltaR12 != null">delta_R_12,</if> |
|||
<if test="deltaR13 != null">delta_R_13,</if> |
|||
<if test="deltaR14 != null">delta_R_14,</if> |
|||
<if test="deltaR15 != null">delta_R_15,</if> |
|||
<if test="deltaR16 != null">delta_R_16,</if> |
|||
<if test="deltaR17 != null">delta_R_17,</if> |
|||
<if test="deltaR18 != null">delta_R_18,</if> |
|||
<if test="deltaR19 != null">delta_R_19,</if> |
|||
<if test="deltaR20 != null">delta_R_20,</if> |
|||
<if test="deltaR21 != null">delta_R_21,</if> |
|||
<if test="deltaR22 != null">delta_R_22,</if> |
|||
<if test="deltaR23 != null">delta_R_23,</if> |
|||
<if test="deltaR24 != null">delta_R_24,</if> |
|||
<if test="deltaR25 != null">delta_R_25,</if> |
|||
<if test="deltaR26 != null">delta_R_26,</if> |
|||
<if test="deltaR27 != null">delta_R_27,</if> |
|||
<if test="deltaR28 != null">delta_R_28,</if> |
|||
<if test="deltaR29 != null">delta_R_29,</if> |
|||
<if test="deltaR30 != null">delta_R_30,</if> |
|||
<if test="deltaR31 != null">delta_R_31,</if> |
|||
<if test="deltaR32 != null">delta_R_32,</if> |
|||
<if test="deltaR33 != null">delta_R_33,</if> |
|||
<if test="deltaR34 != null">delta_R_34,</if> |
|||
<if test="deltaR35 != null">delta_R_35,</if> |
|||
<if test="deltaR36 != null">delta_R_36,</if> |
|||
<if test="deltaR37 != null">delta_R_37,</if> |
|||
<if test="deltaR38 != null">delta_R_38,</if> |
|||
<if test="deltaR39 != null">delta_R_39,</if> |
|||
<if test="deltaR40 != null">delta_R_40,</if> |
|||
<if test="deltaR41 != null">delta_R_41,</if> |
|||
<if test="deltaR42 != null">delta_R_42,</if> |
|||
<if test="deltaR43 != null">delta_R_43,</if> |
|||
<if test="deltaR44 != null">delta_R_44,</if> |
|||
<if test="deltaR45 != null">delta_R_45,</if> |
|||
<if test="deltaR46 != null">delta_R_46,</if> |
|||
<if test="deltaR47 != null">delta_R_47,</if> |
|||
<if test="deltaR48 != null">delta_R_48,</if> |
|||
<if test="deltaR49 != null">delta_R_49,</if> |
|||
<if test="deltaR50 != null">delta_R_50,</if> |
|||
<if test="current1 != null">current_1,</if> |
|||
<if test="current2 != null">current_2,</if> |
|||
<if test="current3 != null">current_3,</if> |
|||
<if test="current4 != null">current_4,</if> |
|||
<if test="current5 != null">current_5,</if> |
|||
<if test="current6 != null">current_6,</if> |
|||
<if test="current7 != null">current_7,</if> |
|||
<if test="current8 != null">current_8,</if> |
|||
<if test="current9 != null">current_9,</if> |
|||
<if test="current10 != null">current_10,</if> |
|||
<if test="current11 != null">current_11,</if> |
|||
<if test="current12 != null">current_12,</if> |
|||
<if test="current13 != null">current_13,</if> |
|||
<if test="current14 != null">current_14,</if> |
|||
<if test="current15 != null">current_15,</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="sn != null and sn != ''">#{sn},</if> |
|||
<if test="date != null">#{date},</if> |
|||
<if test="result != null">#{result},</if> |
|||
<if test="failItem != null">#{failItem},</if> |
|||
<if test="deltaT1 != null">#{deltaT1},</if> |
|||
<if test="deltaT2 != null">#{deltaT2},</if> |
|||
<if test="deltaT3 != null">#{deltaT3},</if> |
|||
<if test="deltaT4 != null">#{deltaT4},</if> |
|||
<if test="deltaT5 != null">#{deltaT5},</if> |
|||
<if test="deltaT6 != null">#{deltaT6},</if> |
|||
<if test="deltaT7 != null">#{deltaT7},</if> |
|||
<if test="deltaT8 != null">#{deltaT8},</if> |
|||
<if test="deltaT9 != null">#{deltaT9},</if> |
|||
<if test="deltaT10 != null">#{deltaT10},</if> |
|||
<if test="deltaT11 != null">#{deltaT11},</if> |
|||
<if test="deltaT12 != null">#{deltaT12},</if> |
|||
<if test="deltaT13 != null">#{deltaT13},</if> |
|||
<if test="deltaT14 != null">#{deltaT14},</if> |
|||
<if test="deltaT15 != null">#{deltaT15},</if> |
|||
<if test="deltaT16 != null">#{deltaT16},</if> |
|||
<if test="deltaT17 != null">#{deltaT17},</if> |
|||
<if test="deltaT18 != null">#{deltaT18},</if> |
|||
<if test="deltaT19 != null">#{deltaT19},</if> |
|||
<if test="deltaT20 != null">#{deltaT20},</if> |
|||
<if test="deltaT21 != null">#{deltaT21},</if> |
|||
<if test="deltaT22 != null">#{deltaT22},</if> |
|||
<if test="deltaT23 != null">#{deltaT23},</if> |
|||
<if test="deltaT24 != null">#{deltaT24},</if> |
|||
<if test="deltaT25 != null">#{deltaT25},</if> |
|||
<if test="deltaT26 != null">#{deltaT26},</if> |
|||
<if test="deltaT27 != null">#{deltaT27},</if> |
|||
<if test="deltaT28 != null">#{deltaT28},</if> |
|||
<if test="deltaT29 != null">#{deltaT29},</if> |
|||
<if test="deltaT30 != null">#{deltaT30},</if> |
|||
<if test="deltaT31 != null">#{deltaT31},</if> |
|||
<if test="deltaT32 != null">#{deltaT32},</if> |
|||
<if test="deltaT33 != null">#{deltaT33},</if> |
|||
<if test="deltaT34 != null">#{deltaT34},</if> |
|||
<if test="deltaT35 != null">#{deltaT35},</if> |
|||
<if test="deltaT36 != null">#{deltaT36},</if> |
|||
<if test="deltaT37 != null">#{deltaT37},</if> |
|||
<if test="deltaT38 != null">#{deltaT38},</if> |
|||
<if test="deltaT39 != null">#{deltaT39},</if> |
|||
<if test="deltaT40 != null">#{deltaT40},</if> |
|||
<if test="deltaT41 != null">#{deltaT41},</if> |
|||
<if test="deltaT42 != null">#{deltaT42},</if> |
|||
<if test="deltaT43 != null">#{deltaT43},</if> |
|||
<if test="deltaT44 != null">#{deltaT44},</if> |
|||
<if test="deltaT45 != null">#{deltaT45},</if> |
|||
<if test="deltaT46 != null">#{deltaT46},</if> |
|||
<if test="deltaT47 != null">#{deltaT47},</if> |
|||
<if test="deltaT48 != null">#{deltaT48},</if> |
|||
<if test="deltaT49 != null">#{deltaT49},</if> |
|||
<if test="deltaT50 != null">#{deltaT50},</if> |
|||
<if test="deltaR1 != null">#{deltaR1},</if> |
|||
<if test="deltaR2 != null">#{deltaR2},</if> |
|||
<if test="deltaR3 != null">#{deltaR3},</if> |
|||
<if test="deltaR4 != null">#{deltaR4},</if> |
|||
<if test="deltaR5 != null">#{deltaR5},</if> |
|||
<if test="deltaR6 != null">#{deltaR6},</if> |
|||
<if test="deltaR7 != null">#{deltaR7},</if> |
|||
<if test="deltaR8 != null">#{deltaR8},</if> |
|||
<if test="deltaR9 != null">#{deltaR9},</if> |
|||
<if test="deltaR10 != null">#{deltaR10},</if> |
|||
<if test="deltaR11 != null">#{deltaR11},</if> |
|||
<if test="deltaR12 != null">#{deltaR12},</if> |
|||
<if test="deltaR13 != null">#{deltaR13},</if> |
|||
<if test="deltaR14 != null">#{deltaR14},</if> |
|||
<if test="deltaR15 != null">#{deltaR15},</if> |
|||
<if test="deltaR16 != null">#{deltaR16},</if> |
|||
<if test="deltaR17 != null">#{deltaR17},</if> |
|||
<if test="deltaR18 != null">#{deltaR18},</if> |
|||
<if test="deltaR19 != null">#{deltaR19},</if> |
|||
<if test="deltaR20 != null">#{deltaR20},</if> |
|||
<if test="deltaR21 != null">#{deltaR21},</if> |
|||
<if test="deltaR22 != null">#{deltaR22},</if> |
|||
<if test="deltaR23 != null">#{deltaR23},</if> |
|||
<if test="deltaR24 != null">#{deltaR24},</if> |
|||
<if test="deltaR25 != null">#{deltaR25},</if> |
|||
<if test="deltaR26 != null">#{deltaR26},</if> |
|||
<if test="deltaR27 != null">#{deltaR27},</if> |
|||
<if test="deltaR28 != null">#{deltaR28},</if> |
|||
<if test="deltaR29 != null">#{deltaR29},</if> |
|||
<if test="deltaR30 != null">#{deltaR30},</if> |
|||
<if test="deltaR31 != null">#{deltaR31},</if> |
|||
<if test="deltaR32 != null">#{deltaR32},</if> |
|||
<if test="deltaR33 != null">#{deltaR33},</if> |
|||
<if test="deltaR34 != null">#{deltaR34},</if> |
|||
<if test="deltaR35 != null">#{deltaR35},</if> |
|||
<if test="deltaR36 != null">#{deltaR36},</if> |
|||
<if test="deltaR37 != null">#{deltaR37},</if> |
|||
<if test="deltaR38 != null">#{deltaR38},</if> |
|||
<if test="deltaR39 != null">#{deltaR39},</if> |
|||
<if test="deltaR40 != null">#{deltaR40},</if> |
|||
<if test="deltaR41 != null">#{deltaR41},</if> |
|||
<if test="deltaR42 != null">#{deltaR42},</if> |
|||
<if test="deltaR43 != null">#{deltaR43},</if> |
|||
<if test="deltaR44 != null">#{deltaR44},</if> |
|||
<if test="deltaR45 != null">#{deltaR45},</if> |
|||
<if test="deltaR46 != null">#{deltaR46},</if> |
|||
<if test="deltaR47 != null">#{deltaR47},</if> |
|||
<if test="deltaR48 != null">#{deltaR48},</if> |
|||
<if test="deltaR49 != null">#{deltaR49},</if> |
|||
<if test="deltaR50 != null">#{deltaR50},</if> |
|||
<if test="current1 != null">#{current1},</if> |
|||
<if test="current2 != null">#{current2},</if> |
|||
<if test="current3 != null">#{current3},</if> |
|||
<if test="current4 != null">#{current4},</if> |
|||
<if test="current5 != null">#{current5},</if> |
|||
<if test="current6 != null">#{current6},</if> |
|||
<if test="current7 != null">#{current7},</if> |
|||
<if test="current8 != null">#{current8},</if> |
|||
<if test="current9 != null">#{current9},</if> |
|||
<if test="current10 != null">#{current10},</if> |
|||
<if test="current11 != null">#{current11},</if> |
|||
<if test="current12 != null">#{current12},</if> |
|||
<if test="current13 != null">#{current13},</if> |
|||
<if test="current14 != null">#{current14},</if> |
|||
<if test="current15 != null">#{current15},</if> |
|||
</trim> |
|||
</insert> |
|||
|
|||
<update id="updateTestLog" parameterType="TestLog"> |
|||
update test_log |
|||
<trim prefix="SET" suffixOverrides=","> |
|||
<if test="sn != null and sn != ''">sn = #{sn},</if> |
|||
<if test="date != null">date = #{date},</if> |
|||
<if test="result != null">result = #{result},</if> |
|||
<if test="failItem != null">failItem = #{failItem},</if> |
|||
<if test="deltaT1 != null">delta_T_1 = #{deltaT1},</if> |
|||
<if test="deltaT2 != null">delta_T_2 = #{deltaT2},</if> |
|||
<if test="deltaT3 != null">delta_T_3 = #{deltaT3},</if> |
|||
<if test="deltaT4 != null">delta_T_4 = #{deltaT4},</if> |
|||
<if test="deltaT5 != null">delta_T_5 = #{deltaT5},</if> |
|||
<if test="deltaT6 != null">delta_T_6 = #{deltaT6},</if> |
|||
<if test="deltaT7 != null">delta_T_7 = #{deltaT7},</if> |
|||
<if test="deltaT8 != null">delta_T_8 = #{deltaT8},</if> |
|||
<if test="deltaT9 != null">delta_T_9 = #{deltaT9},</if> |
|||
<if test="deltaT10 != null">delta_T_10 = #{deltaT10},</if> |
|||
<if test="deltaT11 != null">delta_T_11 = #{deltaT11},</if> |
|||
<if test="deltaT12 != null">delta_T_12 = #{deltaT12},</if> |
|||
<if test="deltaT13 != null">delta_T_13 = #{deltaT13},</if> |
|||
<if test="deltaT14 != null">delta_T_14 = #{deltaT14},</if> |
|||
<if test="deltaT15 != null">delta_T_15 = #{deltaT15},</if> |
|||
<if test="deltaT16 != null">delta_T_16 = #{deltaT16},</if> |
|||
<if test="deltaT17 != null">delta_T_17 = #{deltaT17},</if> |
|||
<if test="deltaT18 != null">delta_T_18 = #{deltaT18},</if> |
|||
<if test="deltaT19 != null">delta_T_19 = #{deltaT19},</if> |
|||
<if test="deltaT20 != null">delta_T_20 = #{deltaT20},</if> |
|||
<if test="deltaT21 != null">delta_T_21 = #{deltaT21},</if> |
|||
<if test="deltaT22 != null">delta_T_22 = #{deltaT22},</if> |
|||
<if test="deltaT23 != null">delta_T_23 = #{deltaT23},</if> |
|||
<if test="deltaT24 != null">delta_T_24 = #{deltaT24},</if> |
|||
<if test="deltaT25 != null">delta_T_25 = #{deltaT25},</if> |
|||
<if test="deltaT26 != null">delta_T_26 = #{deltaT26},</if> |
|||
<if test="deltaT27 != null">delta_T_27 = #{deltaT27},</if> |
|||
<if test="deltaT28 != null">delta_T_28 = #{deltaT28},</if> |
|||
<if test="deltaT29 != null">delta_T_29 = #{deltaT29},</if> |
|||
<if test="deltaT30 != null">delta_T_30 = #{deltaT30},</if> |
|||
<if test="deltaT31 != null">delta_T_31 = #{deltaT31},</if> |
|||
<if test="deltaT32 != null">delta_T_32 = #{deltaT32},</if> |
|||
<if test="deltaT33 != null">delta_T_33 = #{deltaT33},</if> |
|||
<if test="deltaT34 != null">delta_T_34 = #{deltaT34},</if> |
|||
<if test="deltaT35 != null">delta_T_35 = #{deltaT35},</if> |
|||
<if test="deltaT36 != null">delta_T_36 = #{deltaT36},</if> |
|||
<if test="deltaT37 != null">delta_T_37 = #{deltaT37},</if> |
|||
<if test="deltaT38 != null">delta_T_38 = #{deltaT38},</if> |
|||
<if test="deltaT39 != null">delta_T_39 = #{deltaT39},</if> |
|||
<if test="deltaT40 != null">delta_T_40 = #{deltaT40},</if> |
|||
<if test="deltaT41 != null">delta_T_41 = #{deltaT41},</if> |
|||
<if test="deltaT42 != null">delta_T_42 = #{deltaT42},</if> |
|||
<if test="deltaT43 != null">delta_T_43 = #{deltaT43},</if> |
|||
<if test="deltaT44 != null">delta_T_44 = #{deltaT44},</if> |
|||
<if test="deltaT45 != null">delta_T_45 = #{deltaT45},</if> |
|||
<if test="deltaT46 != null">delta_T_46 = #{deltaT46},</if> |
|||
<if test="deltaT47 != null">delta_T_47 = #{deltaT47},</if> |
|||
<if test="deltaT48 != null">delta_T_48 = #{deltaT48},</if> |
|||
<if test="deltaT49 != null">delta_T_49 = #{deltaT49},</if> |
|||
<if test="deltaT50 != null">delta_T_50 = #{deltaT50},</if> |
|||
<if test="deltaR1 != null">delta_R_1 = #{deltaR1},</if> |
|||
<if test="deltaR2 != null">delta_R_2 = #{deltaR2},</if> |
|||
<if test="deltaR3 != null">delta_R_3 = #{deltaR3},</if> |
|||
<if test="deltaR4 != null">delta_R_4 = #{deltaR4},</if> |
|||
<if test="deltaR5 != null">delta_R_5 = #{deltaR5},</if> |
|||
<if test="deltaR6 != null">delta_R_6 = #{deltaR6},</if> |
|||
<if test="deltaR7 != null">delta_R_7 = #{deltaR7},</if> |
|||
<if test="deltaR8 != null">delta_R_8 = #{deltaR8},</if> |
|||
<if test="deltaR9 != null">delta_R_9 = #{deltaR9},</if> |
|||
<if test="deltaR10 != null">delta_R_10 = #{deltaR10},</if> |
|||
<if test="deltaR11 != null">delta_R_11 = #{deltaR11},</if> |
|||
<if test="deltaR12 != null">delta_R_12 = #{deltaR12},</if> |
|||
<if test="deltaR13 != null">delta_R_13 = #{deltaR13},</if> |
|||
<if test="deltaR14 != null">delta_R_14 = #{deltaR14},</if> |
|||
<if test="deltaR15 != null">delta_R_15 = #{deltaR15},</if> |
|||
<if test="deltaR16 != null">delta_R_16 = #{deltaR16},</if> |
|||
<if test="deltaR17 != null">delta_R_17 = #{deltaR17},</if> |
|||
<if test="deltaR18 != null">delta_R_18 = #{deltaR18},</if> |
|||
<if test="deltaR19 != null">delta_R_19 = #{deltaR19},</if> |
|||
<if test="deltaR20 != null">delta_R_20 = #{deltaR20},</if> |
|||
<if test="deltaR21 != null">delta_R_21 = #{deltaR21},</if> |
|||
<if test="deltaR22 != null">delta_R_22 = #{deltaR22},</if> |
|||
<if test="deltaR23 != null">delta_R_23 = #{deltaR23},</if> |
|||
<if test="deltaR24 != null">delta_R_24 = #{deltaR24},</if> |
|||
<if test="deltaR25 != null">delta_R_25 = #{deltaR25},</if> |
|||
<if test="deltaR26 != null">delta_R_26 = #{deltaR26},</if> |
|||
<if test="deltaR27 != null">delta_R_27 = #{deltaR27},</if> |
|||
<if test="deltaR28 != null">delta_R_28 = #{deltaR28},</if> |
|||
<if test="deltaR29 != null">delta_R_29 = #{deltaR29},</if> |
|||
<if test="deltaR30 != null">delta_R_30 = #{deltaR30},</if> |
|||
<if test="deltaR31 != null">delta_R_31 = #{deltaR31},</if> |
|||
<if test="deltaR32 != null">delta_R_32 = #{deltaR32},</if> |
|||
<if test="deltaR33 != null">delta_R_33 = #{deltaR33},</if> |
|||
<if test="deltaR34 != null">delta_R_34 = #{deltaR34},</if> |
|||
<if test="deltaR35 != null">delta_R_35 = #{deltaR35},</if> |
|||
<if test="deltaR36 != null">delta_R_36 = #{deltaR36},</if> |
|||
<if test="deltaR37 != null">delta_R_37 = #{deltaR37},</if> |
|||
<if test="deltaR38 != null">delta_R_38 = #{deltaR38},</if> |
|||
<if test="deltaR39 != null">delta_R_39 = #{deltaR39},</if> |
|||
<if test="deltaR40 != null">delta_R_40 = #{deltaR40},</if> |
|||
<if test="deltaR41 != null">delta_R_41 = #{deltaR41},</if> |
|||
<if test="deltaR42 != null">delta_R_42 = #{deltaR42},</if> |
|||
<if test="deltaR43 != null">delta_R_43 = #{deltaR43},</if> |
|||
<if test="deltaR44 != null">delta_R_44 = #{deltaR44},</if> |
|||
<if test="deltaR45 != null">delta_R_45 = #{deltaR45},</if> |
|||
<if test="deltaR46 != null">delta_R_46 = #{deltaR46},</if> |
|||
<if test="deltaR47 != null">delta_R_47 = #{deltaR47},</if> |
|||
<if test="deltaR48 != null">delta_R_48 = #{deltaR48},</if> |
|||
<if test="deltaR49 != null">delta_R_49 = #{deltaR49},</if> |
|||
<if test="deltaR50 != null">delta_R_50 = #{deltaR50},</if> |
|||
<if test="current1 != null">current_1 = #{current1},</if> |
|||
<if test="current2 != null">current_2 = #{current2},</if> |
|||
<if test="current3 != null">current_3 = #{current3},</if> |
|||
<if test="current4 != null">current_4 = #{current4},</if> |
|||
<if test="current5 != null">current_5 = #{current5},</if> |
|||
<if test="current6 != null">current_6 = #{current6},</if> |
|||
<if test="current7 != null">current_7 = #{current7},</if> |
|||
<if test="current8 != null">current_8 = #{current8},</if> |
|||
<if test="current9 != null">current_9 = #{current9},</if> |
|||
<if test="current10 != null">current_10 = #{current10},</if> |
|||
<if test="current11 != null">current_11 = #{current11},</if> |
|||
<if test="current12 != null">current_12 = #{current12},</if> |
|||
<if test="current13 != null">current_13 = #{current13},</if> |
|||
<if test="current14 != null">current_14 = #{current14},</if> |
|||
<if test="current15 != null">current_15 = #{current15},</if> |
|||
</trim> |
|||
where id = #{id} |
|||
</update> |
|||
|
|||
<delete id="deleteTestLogById" parameterType="Integer"> |
|||
delete from test_log where id = #{id} |
|||
</delete> |
|||
|
|||
<delete id="deleteTestLogByIds" parameterType="String"> |
|||
delete from test_log where id in |
|||
<foreach item="id" collection="array" open="(" separator="," close=")"> |
|||
#{id} |
|||
</foreach> |
|||
</delete> |
|||
|
|||
</mapper> |
@ -1,711 +0,0 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> |
|||
<head> |
|||
<th:block th:include="include :: header('测试数据列表')" /> |
|||
</head> |
|||
<body class="gray-bg"> |
|||
<div class="container-div"> |
|||
<div class="row"> |
|||
<div class="col-sm-12 search-collapse"> |
|||
<form id="formId"> |
|||
<div class="select-list"> |
|||
<ul> |
|||
<li> |
|||
<label>SN:</label> |
|||
<input type="text" name="sn"/> |
|||
</li> |
|||
<li> |
|||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a> |
|||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a> |
|||
</li> |
|||
</ul> |
|||
</div> |
|||
</form> |
|||
</div> |
|||
<div class="text-center" style="display:none;"> |
|||
<button type="button" id="showModal" class="btn btn-primary" data-toggle="modal" data-target="#myModal">打开示例窗口</button> |
|||
</div> |
|||
<div class="modal inmodal" id="myModal" tabindex="-1" role="dialog" aria-hidden="true"> |
|||
<div class="modal-dialog"> |
|||
<div class="modal-content animated bounceInRight"> |
|||
<div class="modal-body"> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">输入SN:</label> |
|||
<div class="col-sm-8"> |
|||
<input id="input_sn" name="sn" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
|
|||
</div> |
|||
<div class="modal-footer"> |
|||
<button type="button" class="btn btn-white" data-dismiss="modal">关闭</button> |
|||
<button id="saveSN" data-dismiss="modal" type="button" class="btn btn-primary">保存</button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="btn-group-sm" id="toolbar" role="group"> |
|||
<a name="uploadFile" id="uploadFile" href="javascript:;">[上传文件]</a> |
|||
<input id="myFile" name="myFile" value="上传文件" type="file" accept="application/vnd.ms-excel" style="display:none;" multiple="multiple"/> |
|||
|
|||
<a id="submitFile" class="btn btn-success" > |
|||
<i class="fa fa-plus"></i>提交 |
|||
</a> |
|||
|
|||
</div> |
|||
|
|||
<div class="col-sm-12 select-table table-striped" style="padding-bottom: 100px;"> |
|||
<table id="bootstrap-table"></table> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<script th:inline="javascript"> |
|||
var editFlag = [[${@permission.hasPermi('produce:produce:edit')}]]; |
|||
var removeFlag = [[${@permission.hasPermi('produce:produce:remove')}]]; |
|||
var prefix = ctx + "produce/produce"; |
|||
|
|||
$(function() { |
|||
var options = { |
|||
url: prefix + "/list", |
|||
createUrl: prefix + "/add", |
|||
updateUrl: prefix + "/edit/{id}", |
|||
removeUrl: prefix + "/remove", |
|||
exportUrl: prefix + "/export", |
|||
modalName: "测试数据", |
|||
columns: [{ |
|||
checkbox: true |
|||
}, |
|||
{ |
|||
field: 'id', |
|||
title: '', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'sn', |
|||
title: 'SN' |
|||
}, |
|||
{ |
|||
field: 'date', |
|||
title: '日期', |
|||
cellStyle: colStyle |
|||
}, |
|||
{ |
|||
field: 'result', |
|||
title: '结果' |
|||
}, |
|||
{ |
|||
field: 'failItem', |
|||
title: 'FailItem' |
|||
}, |
|||
{ |
|||
field: 'deltaT1', |
|||
title: 'Delta_T_1' |
|||
}, |
|||
{ |
|||
field: 'deltaT2', |
|||
title: 'Delta_T_2' |
|||
}, |
|||
{ |
|||
field: 'deltaT3', |
|||
title: 'Delta_T_3' |
|||
}, |
|||
{ |
|||
field: 'deltaT4', |
|||
title: 'Delta_T_4' |
|||
}, |
|||
{ |
|||
field: 'deltaT5', |
|||
title: 'Delta_T_5' |
|||
}, |
|||
{ |
|||
field: 'deltaT6', |
|||
title: 'Delta_T_6' |
|||
}, |
|||
{ |
|||
field: 'deltaT7', |
|||
title: 'Delta_T_7' |
|||
}, |
|||
{ |
|||
field: 'deltaT8', |
|||
title: 'Delta_T_8' |
|||
}, |
|||
{ |
|||
field: 'deltaT9', |
|||
title: 'Delta_T_9' |
|||
}, |
|||
{ |
|||
field: 'deltaT10', |
|||
title: 'Delta_T_10' |
|||
}, |
|||
{ |
|||
field: 'deltaT11', |
|||
title: 'Delta_T_11' |
|||
}, |
|||
{ |
|||
field: 'deltaT12', |
|||
title: 'Delta_T_12' |
|||
}, |
|||
{ |
|||
field: 'deltaT13', |
|||
title: 'Delta_T_13' |
|||
}, |
|||
{ |
|||
field: 'deltaT14', |
|||
title: 'Delta_T_14' |
|||
}, |
|||
{ |
|||
field: 'deltaT15', |
|||
title: 'Delta_T_15' |
|||
}, |
|||
{ |
|||
field: 'deltaT16', |
|||
title: 'Delta_T_16' |
|||
}, |
|||
{ |
|||
field: 'deltaT17', |
|||
title: 'Delta_T_17' |
|||
}, |
|||
{ |
|||
field: 'deltaT18', |
|||
title: 'Delta_T_18' |
|||
}, |
|||
{ |
|||
field: 'deltaT19', |
|||
title: 'Delta_T_19' |
|||
}, |
|||
{ |
|||
field: 'deltaT20', |
|||
title: 'Delta_T_20' |
|||
}, |
|||
{ |
|||
field: 'deltaT21', |
|||
title: 'Delta_T_21' |
|||
}, |
|||
{ |
|||
field: 'deltaT22', |
|||
title: 'Delta_T_22' |
|||
}, |
|||
{ |
|||
field: 'deltaT23', |
|||
title: 'Delta_T_23' |
|||
}, |
|||
{ |
|||
field: 'deltaT24', |
|||
title: 'Delta_T_24' |
|||
}, |
|||
{ |
|||
field: 'deltaT25', |
|||
title: 'Delta_T_25' |
|||
}, |
|||
{ |
|||
field: 'deltaT26', |
|||
title: 'Delta_T_26' |
|||
}, |
|||
{ |
|||
field: 'deltaT27', |
|||
title: 'Delta_T_27' |
|||
}, |
|||
{ |
|||
field: 'deltaT28', |
|||
title: 'Delta_T_28' |
|||
}, |
|||
{ |
|||
field: 'deltaT29', |
|||
title: 'Delta_T_29' |
|||
}, |
|||
{ |
|||
field: 'deltaT30', |
|||
title: 'Delta_T_30' |
|||
}, |
|||
{ |
|||
field: 'deltaT31', |
|||
title: 'Delta_T_31' |
|||
}, |
|||
{ |
|||
field: 'deltaT32', |
|||
title: 'Delta_T_32' |
|||
}, |
|||
{ |
|||
field: 'deltaT33', |
|||
title: 'Delta_T_33' |
|||
}, |
|||
{ |
|||
field: 'deltaT34', |
|||
title: 'Delta_T_34' |
|||
}, |
|||
{ |
|||
field: 'deltaT35', |
|||
title: 'Delta_T_35' |
|||
}, |
|||
{ |
|||
field: 'deltaT36', |
|||
title: 'Delta_T_36' |
|||
}, |
|||
{ |
|||
field: 'deltaT37', |
|||
title: 'Delta_T_37' |
|||
}, |
|||
{ |
|||
field: 'deltaT38', |
|||
title: 'Delta_T_38' |
|||
}, |
|||
{ |
|||
field: 'deltaT39', |
|||
title: 'Delta_T_39' |
|||
}, |
|||
{ |
|||
field: 'deltaT40', |
|||
title: 'Delta_T_40' |
|||
}, |
|||
{ |
|||
field: 'deltaT41', |
|||
title: 'Delta_T_41' |
|||
}, |
|||
{ |
|||
field: 'deltaT42', |
|||
title: 'Delta_T_42' |
|||
}, |
|||
{ |
|||
field: 'deltaT43', |
|||
title: 'Delta_T_43' |
|||
}, |
|||
{ |
|||
field: 'deltaT44', |
|||
title: 'Delta_T_44' |
|||
}, |
|||
{ |
|||
field: 'deltaT45', |
|||
title: 'Delta_T_45' |
|||
}, |
|||
{ |
|||
field: 'deltaT46', |
|||
title: 'Delta_T_46' |
|||
}, |
|||
{ |
|||
field: 'deltaT47', |
|||
title: 'Delta_T_47' |
|||
}, |
|||
{ |
|||
field: 'deltaT48', |
|||
title: 'Delta_T_48' |
|||
}, |
|||
{ |
|||
field: 'deltaT49', |
|||
title: 'Delta_T_49' |
|||
}, |
|||
{ |
|||
field: 'deltaT50', |
|||
title: 'Delta_T_50' |
|||
}, |
|||
{ |
|||
field: 'deltaR1', |
|||
title: 'Delta_R_1' |
|||
}, |
|||
{ |
|||
field: 'deltaR2', |
|||
title: 'Delta_R_2' |
|||
}, |
|||
{ |
|||
field: 'deltaR3', |
|||
title: 'Delta_R_3' |
|||
}, |
|||
{ |
|||
field: 'deltaR4', |
|||
title: 'Delta_R_4' |
|||
}, |
|||
{ |
|||
field: 'deltaR5', |
|||
title: 'Delta_R_5' |
|||
}, |
|||
{ |
|||
field: 'deltaR6', |
|||
title: 'Delta_R_6' |
|||
}, |
|||
{ |
|||
field: 'deltaR7', |
|||
title: 'Delta_R_7' |
|||
}, |
|||
{ |
|||
field: 'deltaR8', |
|||
title: 'Delta_R_8' |
|||
}, |
|||
{ |
|||
field: 'deltaR9', |
|||
title: 'Delta_R_9' |
|||
}, |
|||
{ |
|||
field: 'deltaR10', |
|||
title: 'Delta_R_10' |
|||
}, |
|||
{ |
|||
field: 'deltaR11', |
|||
title: 'Delta_R_11' |
|||
}, |
|||
{ |
|||
field: 'deltaR12', |
|||
title: 'Delta_R_12' |
|||
}, |
|||
{ |
|||
field: 'deltaR13', |
|||
title: 'Delta_R_13' |
|||
}, |
|||
{ |
|||
field: 'deltaR14', |
|||
title: 'Delta_R_14' |
|||
}, |
|||
{ |
|||
field: 'deltaR15', |
|||
title: 'Delta_R_15' |
|||
}, |
|||
{ |
|||
field: 'deltaR16', |
|||
title: 'Delta_R_16' |
|||
}, |
|||
{ |
|||
field: 'deltaR17', |
|||
title: 'Delta_R_17' |
|||
}, |
|||
{ |
|||
field: 'deltaR18', |
|||
title: 'Delta_R_18' |
|||
}, |
|||
{ |
|||
field: 'deltaR19', |
|||
title: 'Delta_R_19' |
|||
}, |
|||
{ |
|||
field: 'deltaR20', |
|||
title: 'Delta_R_20' |
|||
}, |
|||
{ |
|||
field: 'deltaR21', |
|||
title: 'Delta_R_21' |
|||
}, |
|||
{ |
|||
field: 'deltaR22', |
|||
title: 'Delta_R_22' |
|||
}, |
|||
{ |
|||
field: 'deltaR23', |
|||
title: 'Delta_R_23' |
|||
}, |
|||
{ |
|||
field: 'deltaR24', |
|||
title: 'Delta_R_24' |
|||
}, |
|||
{ |
|||
field: 'deltaR25', |
|||
title: 'Delta_R_25' |
|||
}, |
|||
{ |
|||
field: 'deltaR26', |
|||
title: 'Delta_R_26' |
|||
}, |
|||
{ |
|||
field: 'deltaR27', |
|||
title: 'Delta_R_27' |
|||
}, |
|||
{ |
|||
field: 'deltaR28', |
|||
title: 'Delta_R_28' |
|||
}, |
|||
{ |
|||
field: 'deltaR29', |
|||
title: 'Delta_R_29' |
|||
}, |
|||
{ |
|||
field: 'deltaR30', |
|||
title: 'Delta_R_30' |
|||
}, |
|||
{ |
|||
field: 'deltaR31', |
|||
title: 'Delta_R_31' |
|||
}, |
|||
{ |
|||
field: 'deltaR32', |
|||
title: 'Delta_R_32' |
|||
}, |
|||
{ |
|||
field: 'deltaR33', |
|||
title: 'Delta_R_33' |
|||
}, |
|||
{ |
|||
field: 'deltaR34', |
|||
title: 'Delta_R_34' |
|||
}, |
|||
{ |
|||
field: 'deltaR35', |
|||
title: 'Delta_R_35' |
|||
}, |
|||
{ |
|||
field: 'deltaR36', |
|||
title: 'Delta_R_36' |
|||
}, |
|||
{ |
|||
field: 'deltaR37', |
|||
title: 'Delta_R_37' |
|||
}, |
|||
{ |
|||
field: 'deltaR38', |
|||
title: 'Delta_R_38' |
|||
}, |
|||
{ |
|||
field: 'deltaR39', |
|||
title: 'Delta_R_39' |
|||
}, |
|||
{ |
|||
field: 'deltaR40', |
|||
title: 'Delta_R_40' |
|||
}, |
|||
{ |
|||
field: 'deltaR41', |
|||
title: 'Delta_R_41' |
|||
}, |
|||
{ |
|||
field: 'deltaR42', |
|||
title: 'Delta_R_42' |
|||
}, |
|||
{ |
|||
field: 'deltaR43', |
|||
title: 'Delta_R_43' |
|||
}, |
|||
{ |
|||
field: 'deltaR44', |
|||
title: 'Delta_R_44' |
|||
}, |
|||
{ |
|||
field: 'deltaR45', |
|||
title: 'Delta_R_45' |
|||
}, |
|||
{ |
|||
field: 'deltaR46', |
|||
title: 'Delta_R_46' |
|||
}, |
|||
{ |
|||
field: 'deltaR47', |
|||
title: 'Delta_R_47' |
|||
}, |
|||
{ |
|||
field: 'deltaR48', |
|||
title: 'Delta_R_48' |
|||
}, |
|||
{ |
|||
field: 'deltaR49', |
|||
title: 'Delta_R_49' |
|||
}, |
|||
{ |
|||
field: 'deltaR50', |
|||
title: 'Delta_R_50' |
|||
}, |
|||
{ |
|||
field: 'current1', |
|||
title: 'Current_1' |
|||
}, |
|||
{ |
|||
field: 'current2', |
|||
title: 'Current_2' |
|||
}, |
|||
{ |
|||
field: 'current3', |
|||
title: 'Current_3' |
|||
}, |
|||
{ |
|||
field: 'current4', |
|||
title: 'Current_4' |
|||
}, |
|||
{ |
|||
field: 'current5', |
|||
title: 'Current_5' |
|||
}, |
|||
{ |
|||
field: 'current6', |
|||
title: 'Current_6' |
|||
}, |
|||
{ |
|||
field: 'current7', |
|||
title: 'Current_7' |
|||
}, |
|||
{ |
|||
field: 'current8', |
|||
title: 'Current_8' |
|||
}, |
|||
{ |
|||
field: 'current9', |
|||
title: 'Current_9' |
|||
}, |
|||
{ |
|||
field: 'current10', |
|||
title: 'Current_10' |
|||
}, |
|||
{ |
|||
field: 'current11', |
|||
title: 'Current_11' |
|||
}, |
|||
{ |
|||
field: 'current12', |
|||
title: 'Current_12' |
|||
}, |
|||
{ |
|||
field: 'current13', |
|||
title: 'Current_13' |
|||
}, |
|||
{ |
|||
field: 'current14', |
|||
title: 'Current_14' |
|||
}, |
|||
{ |
|||
field: 'current15', |
|||
title: 'Current_15' |
|||
}] |
|||
}; |
|||
$.table.init(options); |
|||
}); |
|||
|
|||
//缩放的方法 |
|||
function colStyle(value, row, index) { |
|||
return { |
|||
css: { |
|||
"white-space": "nowrap", |
|||
"text-overflow": "ellipsis", |
|||
"overflow": "hidden", |
|||
"max-width": "150px", |
|||
} |
|||
} |
|||
}; |
|||
|
|||
|
|||
|
|||
|
|||
var objList=[]; |
|||
|
|||
$("#uploadFile").click(function () { |
|||
const myFile = $("#myFile"); |
|||
// 触发 |
|||
myFile.click(); |
|||
// 监听change事件 |
|||
myFile.unbind().change(function (e) { |
|||
objList=[]; |
|||
var files = $('#myFile').prop('files'); |
|||
var o=$('#myFile').val(); |
|||
var pos=o.lastIndexOf("\\"); |
|||
$("#uploadFile").text(o.substr(pos+1)); |
|||
if (o.substr(pos+1)==""){ |
|||
$("#uploadFile").text("[上传文件]"); |
|||
objList=[]; |
|||
} |
|||
var reader=new FileReader(); |
|||
reader.readAsText(files[0], "UTF-8"); |
|||
reader.onload = function(evt) { //读取完文件之后会回来这里 |
|||
var data = evt.target.result; // 读取文件内容 |
|||
var allRows = data.split(/\r?\n|\r/); |
|||
var singleRowCells = allRows[0].split(','); |
|||
console.log("sssssssssssss"+singleRowCells.length); |
|||
if (singleRowCells.length<=3){ |
|||
singleRowCells[0]="Date"; |
|||
var resultRows=[]; |
|||
for(var i=0;i<singleRowCells.length;i++){ |
|||
var str=singleRowCells[i]; |
|||
if (i==0){ |
|||
str=str.replace("N","n"); |
|||
} |
|||
if (str!=""){ |
|||
var newStr=str[0].toLocaleLowerCase(); |
|||
newStr=newStr+str.slice(1); |
|||
newStr=newStr.replaceAll("_",""); |
|||
resultRows.push(newStr); |
|||
}else { |
|||
resultRows.push(str); |
|||
} |
|||
} |
|||
singleRowCells=resultRows; |
|||
|
|||
for (var singleRow = 1; singleRow < allRows.length-1; singleRow++) { |
|||
var rowCells = allRows[singleRow].split(','); |
|||
var temp="{"+"\""+"sn"+"\""+":"+"\""+"0"+"\""+","; |
|||
for (var rowCell = 0; rowCell < rowCells.length-1; rowCell++) { |
|||
if (rowCell==rowCells.length-2){ |
|||
temp=temp+"\""+singleRowCells[rowCell]+"\""+":"+"\""+rowCells[rowCell]+"\""; |
|||
}else{ |
|||
temp=temp+"\""+singleRowCells[rowCell]+"\""+":"+"\""+rowCells[rowCell]+"\""+","; |
|||
} |
|||
} |
|||
temp=temp+"}"; |
|||
var test="{"+"\""+"name"+"\""+":"+"\""+"sunzhenhu"+"\""+"}"; |
|||
console.log(JSON.parse(test)); |
|||
console.log(temp); |
|||
objList.push(JSON.parse(temp)); |
|||
$("#showModal").click(); |
|||
|
|||
} |
|||
}else { |
|||
var resultRows=[]; |
|||
for(var i=0;i<singleRowCells.length;i++){ |
|||
var str=singleRowCells[i]; |
|||
if (i==0){ |
|||
str=str.replace("N","n"); |
|||
} |
|||
if (str!=""){ |
|||
var newStr=str[0].toLocaleLowerCase(); |
|||
newStr=newStr+str.slice(1); |
|||
newStr=newStr.replaceAll("_",""); |
|||
resultRows.push(newStr); |
|||
}else { |
|||
resultRows.push(str); |
|||
} |
|||
|
|||
} |
|||
singleRowCells=resultRows; |
|||
console.log(singleRowCells); |
|||
|
|||
|
|||
for (var singleRow = 1; singleRow < allRows.length-1; singleRow++) { |
|||
var rowCells = allRows[singleRow].split(','); |
|||
var temp="{"; |
|||
for (var rowCell = 0; rowCell < rowCells.length-1; rowCell++) { |
|||
if (rowCell==rowCells.length-2){ |
|||
temp=temp+"\""+singleRowCells[rowCell]+"\""+":"+"\""+rowCells[rowCell]+"\""; |
|||
}else{ |
|||
temp=temp+"\""+singleRowCells[rowCell]+"\""+":"+"\""+rowCells[rowCell]+"\""+","; |
|||
|
|||
} |
|||
} |
|||
temp=temp+"}"; |
|||
// var test="{"+"\""+"name"+"\""+":"+"\""+"sunzhenhu"+"\""+"}"; |
|||
// console.log(JSON.parse(test)); |
|||
console.log(temp); |
|||
objList.push(JSON.parse(temp)); |
|||
} |
|||
} |
|||
console.log(objList); |
|||
} |
|||
}) |
|||
}); |
|||
|
|||
$("#saveSN").click(function () { |
|||
for (var i=0;i<objList.length;i++){ |
|||
objList[i].sn=$("#input_sn").val(); |
|||
} |
|||
}); |
|||
|
|||
$("#submitFile").click(function () { |
|||
$.ajax({ |
|||
url: "/produce/produce/addList", |
|||
data: JSON.stringify(objList), |
|||
type: "POST", |
|||
contentType:"application/json;charset=utf-8",/*传递json类型*/ |
|||
success: function(data) { |
|||
if (data.value==1){ |
|||
$('#bootstrap-table').bootstrapTable('refresh'); |
|||
$.modal.msgSuccess("成功啦"); |
|||
}else { |
|||
$.modal.msgError("失败啦"); |
|||
} |
|||
} |
|||
}); |
|||
}); |
|||
|
|||
|
|||
</script> |
|||
</body> |
|||
</html> |
Loading…
Reference in new issue