1、webstorm 导入nodejs项目不成功,删除node-modlues和package-lock.json重试。cmd管理员 npm install --force
2、
if (!ifnull(values)) {
MessageBox.Show("所有数据均为必填项!");
return;
}
public Boolean ifnull (string[] ss) {
foreach (String val in ss)
{
if (val == null || val.Trim().Length == 0) {
return false;
}
}
return true;
}
3、
List<StatisticsTotal> selectByTime(@Param("array") String[] time,@Param("factoryCode") String factoryCode);
<select id="selectByTime" parameterType="String" resultMap="StatisticsTotalResult">
<include refid="selectStatisticsTotalVo"/>
where happen_time IN
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
<if test="factoryCode != null and factoryCode != ''">
and factory_code = #{factoryCode}
</if>
</select>
14、但是一般建议使