Commit c644098f authored by KeYong's avatar KeYong

Merge remote-tracking branch 'origin/develop_dl_3.7.0.9' into develop_dl_3.7.0.9

parents 73e65275 27bf9c56
...@@ -1437,13 +1437,17 @@ public class TopographyController extends AbstractBaseController { ...@@ -1437,13 +1437,17 @@ public class TopographyController extends AbstractBaseController {
private Date dateParse(String value) throws ParseException { private Date dateParse(String value) throws ParseException {
String strDate = value.substring(0, 19); if(value.length() > 19) {
SimpleDateFormat sdf = new SimpleDateFormat(ISO8601_DATE_HOUR_MIN_SEC); String strDate = value.substring(0, 19);
SimpleDateFormat sdf1 = new SimpleDateFormat(DateUtils.DATE_TIME_PATTERN); SimpleDateFormat sdf = new SimpleDateFormat(ISO8601_DATE_HOUR_MIN_SEC);
sdf.setTimeZone(TimeZone.getTimeZone("UTC")); SimpleDateFormat sdf1 = new SimpleDateFormat(DateUtils.DATE_TIME_PATTERN);
Date date = sdf.parse(strDate); sdf.setTimeZone(TimeZone.getTimeZone("UTC"));
String time = DateTimeUtil.format(date, DateTimeUtil.ISO_DATE_HOUR24_MIN_SEC); Date date = sdf.parse(strDate);
return sdf1.parse(time); String time = DateTimeUtil.format(date, DateTimeUtil.ISO_DATE_HOUR24_MIN_SEC);
return sdf1.parse(time);
} else {
return DateUtils.dateParse(value, DateUtils.DATE_TIME_PATTERN);
}
} }
/*** /***
......
...@@ -752,6 +752,23 @@ public class InputItemController extends AbstractBaseController { ...@@ -752,6 +752,23 @@ public class InputItemController extends AbstractBaseController {
map.put("OkScore",param.getOkScore()!=null?param.getOkScore():0); map.put("OkScore",param.getOkScore()!=null?param.getOkScore():0);
map.put("NoScore",param.getNoScore()!=null?param.getNoScore():0); map.put("NoScore",param.getNoScore()!=null?param.getNoScore():0);
map.put("CheckType",param.getCheckType()); map.put("CheckType",param.getCheckType());
String inputClassify = "";
switch(param.getInputClassify()) {
case "WGJC":
inputClassify = "外观检查";
break;
case "GNCS":
inputClassify = "功能测试";
break;
case "HJJC":
inputClassify = "环境检查";
break;
case "QT":
inputClassify = "其他";
break;
default:
}
inputItem.setInputClassify(inputClassify);
inputItem.setDataJson(JSONObject.toJSONString(map)); inputItem.setDataJson(JSONObject.toJSONString(map));
}else if(param.getItemType().equals("选择")){ }else if(param.getItemType().equals("选择")){
...@@ -771,10 +788,10 @@ public class InputItemController extends AbstractBaseController { ...@@ -771,10 +788,10 @@ public class InputItemController extends AbstractBaseController {
map.put("ValidDown",param.getValidDown()!=null?param.getValidDown():""); map.put("ValidDown",param.getValidDown()!=null?param.getValidDown():"");
map.put("OkUp",param.getOkUp()!=null?param.getOkUp():""); map.put("OkUp",param.getOkUp()!=null?param.getOkUp():"");
map.put("OkDown",param.getOkDown()!=null?param.getOkDown():""); map.put("OkDown",param.getOkDown()!=null?param.getOkDown():"");
map.put("CheckValidUp",param.getCheckValidUp().equals("false")?false:true); map.put("CheckValidUp",param.getCheckValidUp().equals("")?false:true);
map.put("CheckValidDown",param.getCheckValidDown().equals("false")?false:true); map.put("CheckValidDown",param.getCheckValidDown().equals("")?false:true);
map.put("CheckOkUp",param.getCheckOkUp().equals("false")?false:true); map.put("CheckOkUp",param.getCheckOkUp().equals("")?false:true);
map.put("CheckOkDown",param.getCheckOkDown().equals("false")?false:true); map.put("CheckOkDown",param.getCheckOkDown().equals("")?false:true);
map.put("Precision",param.getPrecision()!=null?param.getPrecision():0); map.put("Precision",param.getPrecision()!=null?param.getPrecision():0);
inputItem.setDataJson(JSONObject.toJSONString(map)); inputItem.setDataJson(JSONObject.toJSONString(map));
} }
......
...@@ -573,6 +573,7 @@ ...@@ -573,6 +573,7 @@
AND biz_org_code like concat(#{bizOrgCode}, '%') AND biz_org_code like concat(#{bizOrgCode}, '%')
AND is_delete = '0' AND is_delete = '0'
AND input_type!='1' AND input_type!='1'
AND key_parts_type='0'
</select> </select>
<select id="countByCustomType" resultType="int"> <select id="countByCustomType" resultType="int">
...@@ -581,6 +582,7 @@ ...@@ -581,6 +582,7 @@
AND biz_org_code like concat(#{bizOrgCode}, '%') AND biz_org_code like concat(#{bizOrgCode}, '%')
AND is_delete = '0' AND is_delete = '0'
AND input_type!='1' AND input_type!='1'
AND custom_type='0'
</select> </select>
<select id="countAll" resultType="int"> <select id="countAll" resultType="int">
......
...@@ -1870,7 +1870,7 @@ ...@@ -1870,7 +1870,7 @@
WHERE WHERE
( (
0 <![CDATA[<>]]> find_in_set(`fs`.`id`, `s`.`system_id`) 0 <![CDATA[<>]]> find_in_set(`fs`.`id`, `s`.`system_id`)
) limt 1 ) LIMIT 1
) AS `chargePersonName` ) AS `chargePersonName`
FROM FROM
`wl_equipment_specific_index` `si` `wl_equipment_specific_index` `si`
......
...@@ -333,10 +333,10 @@ ...@@ -333,10 +333,10 @@
and a.equipment_type is not null and a.equipment_type is not null
</if> </if>
<if test="treeId != null and treeId != '' and treeId == '-4'"> <if test="treeId != null and treeId != '' and treeId == '-4'">
and a.key_parts_type is not null and a.key_parts_type ='0'
</if> </if>
<if test="treeId != null and treeId != '' and treeId == '-5'"> <if test="treeId != null and treeId != '' and treeId == '-5'">
and a.custom_type is not null and a.custom_type ='0'
</if> </if>
<if test="subCode!=null and subCode!='' and subCode!=' ' and <if test="subCode!=null and subCode!='' and subCode!=' ' and
treeId != null and treeId != '' and treeId != '-3' and treeId != '-1' and treeId != null and treeId != '' and treeId != '-3' and treeId != '-1' and
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment