TaskRemoteCfgMapper.xml 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.mvc.dao.TaskRemoteCfgMapper">
  4. <resultMap id="BaseResultMap" type="com.mvc.entity.TaskRemoteCfg">
  5. <id column="ID" jdbcType="INTEGER" property="id" />
  6. <result column="TASK_ID" jdbcType="VARCHAR" property="taskId" />
  7. <result column="DEVICE_SN" jdbcType="VARCHAR" property="deviceSn" />
  8. <result column="STATION_CODE" jdbcType="VARCHAR" property="stationCode" />
  9. <result column="LAST_VAL" jdbcType="DOUBLE" property="lastVal" />
  10. <result column="IP1_PORT1" jdbcType="VARCHAR" property="ip1Port1" />
  11. <result column="IP2_PORT2" jdbcType="VARCHAR" property="ip2Port2" />
  12. <result column="IP3_PORT3" jdbcType="VARCHAR" property="ip3Port3" />
  13. <result column="IP4_PORT4" jdbcType="VARCHAR" property="ip4Port4" />
  14. <result column="DOMAIN_NAME_PORT" jdbcType="VARCHAR" property="domainNamePort" />
  15. <result column="DN_TYPE" jdbcType="INTEGER" property="dnType" />
  16. <result column="DIGIT_NUM" jdbcType="INTEGER" property="digitNum" />
  17. <result column="UINT_TYPE" jdbcType="INTEGER" property="uintType" />
  18. <result column="SETUP_DIR" jdbcType="CHAR" property="setupDir" />
  19. <result column="SAMPLE_INTERVAL" jdbcType="INTEGER" property="sampleInterval" />
  20. <result column="WHEEL_NUM" jdbcType="INTEGER" property="wheelNum" />
  21. <result column="UP_INTERVAL" jdbcType="INTEGER" property="upInterval" />
  22. <result column="LT_SAMPLE_INTERVAL" jdbcType="INTEGER" property="ltSampleInterval" />
  23. <result column="WORK_LT" jdbcType="INTEGER" property="workLt" />
  24. <result column="WORK_HT" jdbcType="INTEGER" property="workHt" />
  25. <result column="BAT_ALARM_VT" jdbcType="DECIMAL" property="batAlarmVt" />
  26. <result column="BAT_ALARM_SOC" jdbcType="INTEGER" property="batAlarmSoc" />
  27. <result column="AI_PULL_BACK" jdbcType="INTEGER" property="aiPullBack" />
  28. <result column="AI_PASS" jdbcType="INTEGER" property="aiPass" />
  29. <result column="AI_SINGLE_PASS" jdbcType="INTEGER" property="aiSinglePass" />
  30. <result column="CPU_VERSION" jdbcType="VARCHAR" property="cpuVersion" />
  31. <result column="TONGXUN_VERSION" jdbcType="VARCHAR" property="tongxunVersion" />
  32. <result column="TIANXIAN_TYPE" jdbcType="CHAR" property="tianxianType" />
  33. <result column="TONGXUN_WAY" jdbcType="CHAR" property="tongxunWay" />
  34. <result column="NETWORK_REG_TIMEOUT" jdbcType="INTEGER" property="networkRegTimeout" />
  35. <result column="PWM_HZ" jdbcType="INTEGER" property="pwmHz" />
  36. <result column="PWM_DUTY" jdbcType="INTEGER" property="pwmDuty" />
  37. <result column="FLASH_BRIGHT_MIN" jdbcType="INTEGER" property="flashBrightMin" />
  38. <result column="FLASH_BRIGHT_MAX" jdbcType="INTEGER" property="flashBrightMax" />
  39. <result column="SETUP_YEAR" jdbcType="VARCHAR" property="setupYear" />
  40. <result column="UP_WHOLE_IMG_WEEK_RULE" jdbcType="VARCHAR" property="upWholeImgWeekRule" />
  41. <result column="IP1_EXPAND_ON" jdbcType="CHAR" property="ip1ExpandOn" />
  42. <result column="CREATE_MAN" jdbcType="VARCHAR" property="createMan" />
  43. <result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" />
  44. <result column="FINISHED_FLAG" jdbcType="CHAR" property="finishedFlag" />
  45. <result column="FINISHED_TIME" jdbcType="TIMESTAMP" property="finishedTime" />
  46. <result column="METER_FONT_STYLE" jdbcType="CHAR" property="meterFontStyle" />
  47. <result column="SYSTEM_REVIEW_FLAG" jdbcType="CHAR" property="systemReviewFlag" />
  48. <result column="DEVICE_TYPE" jdbcType="CHAR" property="deviceType" />
  49. <result column="PG_RANGE_MIN" jdbcType="DECIMAL" property="pgRangeMin" />
  50. <result column="PG_RANGE_MAX" jdbcType="DECIMAL" property="pgRangeMax" />
  51. <result column="PG_PRECISION_TYPE" jdbcType="INTEGER" property="pgPrecisionType" />
  52. <result column="PG_CORRECTVALUE" jdbcType="DECIMAL" property="pgCorrectvalue" />
  53. <result column="PG_MANUAL_CONFIG" jdbcType="VARCHAR" property="pgManualConfig" />
  54. <result column="PG_IS_DEBUG" jdbcType="CHAR" property="pgIsDebug" />
  55. <result column="PG_INIT_TARGET_REGION" jdbcType="CHAR" property="pgInitTargetRegion" />
  56. <result column="ISPRINTCOMLOG" jdbcType="CHAR" property="isprintcomlog" />
  57. <result column="ISRESETWDT" jdbcType="CHAR" property="isresetwdt" />
  58. <result column="ISRESETBAT" jdbcType="CHAR" property="isresetbat" />
  59. <result column="ISRESTMCU" jdbcType="CHAR" property="isrestmcu" />
  60. <result column="WI_TASK_MANWAKEUP_FLAG" jdbcType="CHAR" property="wiTaskManwakeupFlag" />
  61. <result column="WI_TASK_MONTH_FLAG" jdbcType="CHAR" property="wiTaskMonthFlag" />
  62. <result column="WI_TASK_SPECDATE_FLAG" jdbcType="VARCHAR" property="wiTaskSpecdateFlag" />
  63. <result column="LOG_UPLOAD_RULES" jdbcType="VARCHAR" property="logUploadRules" />
  64. <result column="UPLOAD_LAST_FAIL_LOG_FLAG" jdbcType="CHAR" property="uploadLastFailLogFlag" />
  65. <result column="LOG_TASK_MANWAKEUP_FLAG" jdbcType="CHAR" property="logTaskManwakeupFlag" />
  66. <result column="BATCH_FLAG" jdbcType="CHAR" property="batchFlag" />
  67. <result column="PG_MANUAL_CONFIG_LEVEL" jdbcType="CHAR" property="pgManualConfigLevel" />
  68. </resultMap>
  69. <sql id="Example_Where_Clause">
  70. <where>
  71. <foreach collection="oredCriteria" item="criteria" separator="or">
  72. <if test="criteria.valid">
  73. <trim prefix="(" prefixOverrides="and" suffix=")">
  74. <foreach collection="criteria.criteria" item="criterion">
  75. <choose>
  76. <when test="criterion.noValue">
  77. and ${criterion.condition}
  78. </when>
  79. <when test="criterion.singleValue">
  80. and ${criterion.condition} #{criterion.value}
  81. </when>
  82. <when test="criterion.betweenValue">
  83. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  84. </when>
  85. <when test="criterion.listValue">
  86. and ${criterion.condition}
  87. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  88. #{listItem}
  89. </foreach>
  90. </when>
  91. </choose>
  92. </foreach>
  93. </trim>
  94. </if>
  95. </foreach>
  96. </where>
  97. </sql>
  98. <sql id="Update_By_Example_Where_Clause">
  99. <where>
  100. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  101. <if test="criteria.valid">
  102. <trim prefix="(" prefixOverrides="and" suffix=")">
  103. <foreach collection="criteria.criteria" item="criterion">
  104. <choose>
  105. <when test="criterion.noValue">
  106. and ${criterion.condition}
  107. </when>
  108. <when test="criterion.singleValue">
  109. and ${criterion.condition} #{criterion.value}
  110. </when>
  111. <when test="criterion.betweenValue">
  112. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  113. </when>
  114. <when test="criterion.listValue">
  115. and ${criterion.condition}
  116. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  117. #{listItem}
  118. </foreach>
  119. </when>
  120. </choose>
  121. </foreach>
  122. </trim>
  123. </if>
  124. </foreach>
  125. </where>
  126. </sql>
  127. <sql id="Base_Column_List">
  128. ID, TASK_ID, DEVICE_SN, STATION_CODE, LAST_VAL, IP1_PORT1, IP2_PORT2, IP3_PORT3,
  129. IP4_PORT4, DOMAIN_NAME_PORT, DN_TYPE, DIGIT_NUM, UINT_TYPE, SETUP_DIR, SAMPLE_INTERVAL,
  130. WHEEL_NUM, UP_INTERVAL, LT_SAMPLE_INTERVAL, WORK_LT, WORK_HT, BAT_ALARM_VT, BAT_ALARM_SOC,
  131. AI_PULL_BACK, AI_PASS, AI_SINGLE_PASS, CPU_VERSION, TONGXUN_VERSION, TIANXIAN_TYPE,
  132. TONGXUN_WAY, NETWORK_REG_TIMEOUT, PWM_HZ, PWM_DUTY, FLASH_BRIGHT_MIN, FLASH_BRIGHT_MAX,
  133. SETUP_YEAR, UP_WHOLE_IMG_WEEK_RULE, IP1_EXPAND_ON, CREATE_MAN, CREATE_TIME, FINISHED_FLAG,
  134. FINISHED_TIME, METER_FONT_STYLE, SYSTEM_REVIEW_FLAG, DEVICE_TYPE, PG_RANGE_MIN, PG_RANGE_MAX,
  135. PG_PRECISION_TYPE, PG_CORRECTVALUE, PG_MANUAL_CONFIG, PG_IS_DEBUG, PG_INIT_TARGET_REGION,
  136. ISPRINTCOMLOG, ISRESETWDT, ISRESETBAT, ISRESTMCU, WI_TASK_MANWAKEUP_FLAG, WI_TASK_MONTH_FLAG,
  137. WI_TASK_SPECDATE_FLAG, LOG_UPLOAD_RULES, UPLOAD_LAST_FAIL_LOG_FLAG, LOG_TASK_MANWAKEUP_FLAG,
  138. BATCH_FLAG, PG_MANUAL_CONFIG_LEVEL
  139. </sql>
  140. <select id="selectByExample" parameterType="com.mvc.entity.TaskRemoteCfgExample" resultMap="BaseResultMap">
  141. select
  142. <if test="distinct">
  143. distinct
  144. </if>
  145. <include refid="Base_Column_List" />
  146. from task_remote_cfg
  147. <if test="_parameter != null">
  148. <include refid="Example_Where_Clause" />
  149. </if>
  150. <if test="orderByClause != null">
  151. order by ${orderByClause}
  152. </if>
  153. </select>
  154. <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
  155. select
  156. <include refid="Base_Column_List" />
  157. from task_remote_cfg
  158. where ID = #{id,jdbcType=INTEGER}
  159. </select>
  160. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
  161. delete from task_remote_cfg
  162. where ID = #{id,jdbcType=INTEGER}
  163. </delete>
  164. <delete id="deleteByExample" parameterType="com.mvc.entity.TaskRemoteCfgExample">
  165. delete from task_remote_cfg
  166. <if test="_parameter != null">
  167. <include refid="Example_Where_Clause" />
  168. </if>
  169. </delete>
  170. <insert id="insert" parameterType="com.mvc.entity.TaskRemoteCfg">
  171. insert into task_remote_cfg (ID, TASK_ID, DEVICE_SN,
  172. STATION_CODE, LAST_VAL, IP1_PORT1,
  173. IP2_PORT2, IP3_PORT3, IP4_PORT4,
  174. DOMAIN_NAME_PORT, DN_TYPE, DIGIT_NUM,
  175. UINT_TYPE, SETUP_DIR, SAMPLE_INTERVAL,
  176. WHEEL_NUM, UP_INTERVAL, LT_SAMPLE_INTERVAL,
  177. WORK_LT, WORK_HT, BAT_ALARM_VT,
  178. BAT_ALARM_SOC, AI_PULL_BACK, AI_PASS,
  179. AI_SINGLE_PASS, CPU_VERSION, TONGXUN_VERSION,
  180. TIANXIAN_TYPE, TONGXUN_WAY, NETWORK_REG_TIMEOUT,
  181. PWM_HZ, PWM_DUTY, FLASH_BRIGHT_MIN,
  182. FLASH_BRIGHT_MAX, SETUP_YEAR, UP_WHOLE_IMG_WEEK_RULE,
  183. IP1_EXPAND_ON, CREATE_MAN, CREATE_TIME,
  184. FINISHED_FLAG, FINISHED_TIME, METER_FONT_STYLE,
  185. SYSTEM_REVIEW_FLAG, DEVICE_TYPE, PG_RANGE_MIN,
  186. PG_RANGE_MAX, PG_PRECISION_TYPE, PG_CORRECTVALUE,
  187. PG_MANUAL_CONFIG, PG_IS_DEBUG, PG_INIT_TARGET_REGION,
  188. ISPRINTCOMLOG, ISRESETWDT, ISRESETBAT,
  189. ISRESTMCU, WI_TASK_MANWAKEUP_FLAG, WI_TASK_MONTH_FLAG,
  190. WI_TASK_SPECDATE_FLAG, LOG_UPLOAD_RULES, UPLOAD_LAST_FAIL_LOG_FLAG,
  191. LOG_TASK_MANWAKEUP_FLAG, BATCH_FLAG, PG_MANUAL_CONFIG_LEVEL
  192. )
  193. values (#{id,jdbcType=INTEGER}, #{taskId,jdbcType=VARCHAR}, #{deviceSn,jdbcType=VARCHAR},
  194. #{stationCode,jdbcType=VARCHAR}, #{lastVal,jdbcType=DOUBLE}, #{ip1Port1,jdbcType=VARCHAR},
  195. #{ip2Port2,jdbcType=VARCHAR}, #{ip3Port3,jdbcType=VARCHAR}, #{ip4Port4,jdbcType=VARCHAR},
  196. #{domainNamePort,jdbcType=VARCHAR}, #{dnType,jdbcType=INTEGER}, #{digitNum,jdbcType=INTEGER},
  197. #{uintType,jdbcType=INTEGER}, #{setupDir,jdbcType=CHAR}, #{sampleInterval,jdbcType=INTEGER},
  198. #{wheelNum,jdbcType=INTEGER}, #{upInterval,jdbcType=INTEGER}, #{ltSampleInterval,jdbcType=INTEGER},
  199. #{workLt,jdbcType=INTEGER}, #{workHt,jdbcType=INTEGER}, #{batAlarmVt,jdbcType=DECIMAL},
  200. #{batAlarmSoc,jdbcType=INTEGER}, #{aiPullBack,jdbcType=INTEGER}, #{aiPass,jdbcType=INTEGER},
  201. #{aiSinglePass,jdbcType=INTEGER}, #{cpuVersion,jdbcType=VARCHAR}, #{tongxunVersion,jdbcType=VARCHAR},
  202. #{tianxianType,jdbcType=CHAR}, #{tongxunWay,jdbcType=CHAR}, #{networkRegTimeout,jdbcType=INTEGER},
  203. #{pwmHz,jdbcType=INTEGER}, #{pwmDuty,jdbcType=INTEGER}, #{flashBrightMin,jdbcType=INTEGER},
  204. #{flashBrightMax,jdbcType=INTEGER}, #{setupYear,jdbcType=VARCHAR}, #{upWholeImgWeekRule,jdbcType=VARCHAR},
  205. #{ip1ExpandOn,jdbcType=CHAR}, #{createMan,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
  206. #{finishedFlag,jdbcType=CHAR}, #{finishedTime,jdbcType=TIMESTAMP}, #{meterFontStyle,jdbcType=CHAR},
  207. #{systemReviewFlag,jdbcType=CHAR}, #{deviceType,jdbcType=CHAR}, #{pgRangeMin,jdbcType=DECIMAL},
  208. #{pgRangeMax,jdbcType=DECIMAL}, #{pgPrecisionType,jdbcType=INTEGER}, #{pgCorrectvalue,jdbcType=DECIMAL},
  209. #{pgManualConfig,jdbcType=VARCHAR}, #{pgIsDebug,jdbcType=CHAR}, #{pgInitTargetRegion,jdbcType=CHAR},
  210. #{isprintcomlog,jdbcType=CHAR}, #{isresetwdt,jdbcType=CHAR}, #{isresetbat,jdbcType=CHAR},
  211. #{isrestmcu,jdbcType=CHAR}, #{wiTaskManwakeupFlag,jdbcType=CHAR}, #{wiTaskMonthFlag,jdbcType=CHAR},
  212. #{wiTaskSpecdateFlag,jdbcType=VARCHAR}, #{logUploadRules,jdbcType=VARCHAR}, #{uploadLastFailLogFlag,jdbcType=CHAR},
  213. #{logTaskManwakeupFlag,jdbcType=CHAR}, #{batchFlag,jdbcType=CHAR}, #{pgManualConfigLevel,jdbcType=CHAR}
  214. )
  215. </insert>
  216. <insert id="insertSelective" parameterType="com.mvc.entity.TaskRemoteCfg">
  217. insert into task_remote_cfg
  218. <trim prefix="(" suffix=")" suffixOverrides=",">
  219. <if test="id != null">
  220. ID,
  221. </if>
  222. <if test="taskId != null">
  223. TASK_ID,
  224. </if>
  225. <if test="deviceSn != null">
  226. DEVICE_SN,
  227. </if>
  228. <if test="stationCode != null">
  229. STATION_CODE,
  230. </if>
  231. <if test="lastVal != null">
  232. LAST_VAL,
  233. </if>
  234. <if test="ip1Port1 != null">
  235. IP1_PORT1,
  236. </if>
  237. <if test="ip2Port2 != null">
  238. IP2_PORT2,
  239. </if>
  240. <if test="ip3Port3 != null">
  241. IP3_PORT3,
  242. </if>
  243. <if test="ip4Port4 != null">
  244. IP4_PORT4,
  245. </if>
  246. <if test="domainNamePort != null">
  247. DOMAIN_NAME_PORT,
  248. </if>
  249. <if test="dnType != null">
  250. DN_TYPE,
  251. </if>
  252. <if test="digitNum != null">
  253. DIGIT_NUM,
  254. </if>
  255. <if test="uintType != null">
  256. UINT_TYPE,
  257. </if>
  258. <if test="setupDir != null">
  259. SETUP_DIR,
  260. </if>
  261. <if test="sampleInterval != null">
  262. SAMPLE_INTERVAL,
  263. </if>
  264. <if test="wheelNum != null">
  265. WHEEL_NUM,
  266. </if>
  267. <if test="upInterval != null">
  268. UP_INTERVAL,
  269. </if>
  270. <if test="ltSampleInterval != null">
  271. LT_SAMPLE_INTERVAL,
  272. </if>
  273. <if test="workLt != null">
  274. WORK_LT,
  275. </if>
  276. <if test="workHt != null">
  277. WORK_HT,
  278. </if>
  279. <if test="batAlarmVt != null">
  280. BAT_ALARM_VT,
  281. </if>
  282. <if test="batAlarmSoc != null">
  283. BAT_ALARM_SOC,
  284. </if>
  285. <if test="aiPullBack != null">
  286. AI_PULL_BACK,
  287. </if>
  288. <if test="aiPass != null">
  289. AI_PASS,
  290. </if>
  291. <if test="aiSinglePass != null">
  292. AI_SINGLE_PASS,
  293. </if>
  294. <if test="cpuVersion != null">
  295. CPU_VERSION,
  296. </if>
  297. <if test="tongxunVersion != null">
  298. TONGXUN_VERSION,
  299. </if>
  300. <if test="tianxianType != null">
  301. TIANXIAN_TYPE,
  302. </if>
  303. <if test="tongxunWay != null">
  304. TONGXUN_WAY,
  305. </if>
  306. <if test="networkRegTimeout != null">
  307. NETWORK_REG_TIMEOUT,
  308. </if>
  309. <if test="pwmHz != null">
  310. PWM_HZ,
  311. </if>
  312. <if test="pwmDuty != null">
  313. PWM_DUTY,
  314. </if>
  315. <if test="flashBrightMin != null">
  316. FLASH_BRIGHT_MIN,
  317. </if>
  318. <if test="flashBrightMax != null">
  319. FLASH_BRIGHT_MAX,
  320. </if>
  321. <if test="setupYear != null">
  322. SETUP_YEAR,
  323. </if>
  324. <if test="upWholeImgWeekRule != null">
  325. UP_WHOLE_IMG_WEEK_RULE,
  326. </if>
  327. <if test="ip1ExpandOn != null">
  328. IP1_EXPAND_ON,
  329. </if>
  330. <if test="createMan != null">
  331. CREATE_MAN,
  332. </if>
  333. <if test="createTime != null">
  334. CREATE_TIME,
  335. </if>
  336. <if test="finishedFlag != null">
  337. FINISHED_FLAG,
  338. </if>
  339. <if test="finishedTime != null">
  340. FINISHED_TIME,
  341. </if>
  342. <if test="meterFontStyle != null">
  343. METER_FONT_STYLE,
  344. </if>
  345. <if test="systemReviewFlag != null">
  346. SYSTEM_REVIEW_FLAG,
  347. </if>
  348. <if test="deviceType != null">
  349. DEVICE_TYPE,
  350. </if>
  351. <if test="pgRangeMin != null">
  352. PG_RANGE_MIN,
  353. </if>
  354. <if test="pgRangeMax != null">
  355. PG_RANGE_MAX,
  356. </if>
  357. <if test="pgPrecisionType != null">
  358. PG_PRECISION_TYPE,
  359. </if>
  360. <if test="pgCorrectvalue != null">
  361. PG_CORRECTVALUE,
  362. </if>
  363. <if test="pgManualConfig != null">
  364. PG_MANUAL_CONFIG,
  365. </if>
  366. <if test="pgIsDebug != null">
  367. PG_IS_DEBUG,
  368. </if>
  369. <if test="pgInitTargetRegion != null">
  370. PG_INIT_TARGET_REGION,
  371. </if>
  372. <if test="isprintcomlog != null">
  373. ISPRINTCOMLOG,
  374. </if>
  375. <if test="isresetwdt != null">
  376. ISRESETWDT,
  377. </if>
  378. <if test="isresetbat != null">
  379. ISRESETBAT,
  380. </if>
  381. <if test="isrestmcu != null">
  382. ISRESTMCU,
  383. </if>
  384. <if test="wiTaskManwakeupFlag != null">
  385. WI_TASK_MANWAKEUP_FLAG,
  386. </if>
  387. <if test="wiTaskMonthFlag != null">
  388. WI_TASK_MONTH_FLAG,
  389. </if>
  390. <if test="wiTaskSpecdateFlag != null">
  391. WI_TASK_SPECDATE_FLAG,
  392. </if>
  393. <if test="logUploadRules != null">
  394. LOG_UPLOAD_RULES,
  395. </if>
  396. <if test="uploadLastFailLogFlag != null">
  397. UPLOAD_LAST_FAIL_LOG_FLAG,
  398. </if>
  399. <if test="logTaskManwakeupFlag != null">
  400. LOG_TASK_MANWAKEUP_FLAG,
  401. </if>
  402. <if test="batchFlag != null">
  403. BATCH_FLAG,
  404. </if>
  405. <if test="pgManualConfigLevel != null">
  406. PG_MANUAL_CONFIG_LEVEL,
  407. </if>
  408. </trim>
  409. <trim prefix="values (" suffix=")" suffixOverrides=",">
  410. <if test="id != null">
  411. #{id,jdbcType=INTEGER},
  412. </if>
  413. <if test="taskId != null">
  414. #{taskId,jdbcType=VARCHAR},
  415. </if>
  416. <if test="deviceSn != null">
  417. #{deviceSn,jdbcType=VARCHAR},
  418. </if>
  419. <if test="stationCode != null">
  420. #{stationCode,jdbcType=VARCHAR},
  421. </if>
  422. <if test="lastVal != null">
  423. #{lastVal,jdbcType=DOUBLE},
  424. </if>
  425. <if test="ip1Port1 != null">
  426. #{ip1Port1,jdbcType=VARCHAR},
  427. </if>
  428. <if test="ip2Port2 != null">
  429. #{ip2Port2,jdbcType=VARCHAR},
  430. </if>
  431. <if test="ip3Port3 != null">
  432. #{ip3Port3,jdbcType=VARCHAR},
  433. </if>
  434. <if test="ip4Port4 != null">
  435. #{ip4Port4,jdbcType=VARCHAR},
  436. </if>
  437. <if test="domainNamePort != null">
  438. #{domainNamePort,jdbcType=VARCHAR},
  439. </if>
  440. <if test="dnType != null">
  441. #{dnType,jdbcType=INTEGER},
  442. </if>
  443. <if test="digitNum != null">
  444. #{digitNum,jdbcType=INTEGER},
  445. </if>
  446. <if test="uintType != null">
  447. #{uintType,jdbcType=INTEGER},
  448. </if>
  449. <if test="setupDir != null">
  450. #{setupDir,jdbcType=CHAR},
  451. </if>
  452. <if test="sampleInterval != null">
  453. #{sampleInterval,jdbcType=INTEGER},
  454. </if>
  455. <if test="wheelNum != null">
  456. #{wheelNum,jdbcType=INTEGER},
  457. </if>
  458. <if test="upInterval != null">
  459. #{upInterval,jdbcType=INTEGER},
  460. </if>
  461. <if test="ltSampleInterval != null">
  462. #{ltSampleInterval,jdbcType=INTEGER},
  463. </if>
  464. <if test="workLt != null">
  465. #{workLt,jdbcType=INTEGER},
  466. </if>
  467. <if test="workHt != null">
  468. #{workHt,jdbcType=INTEGER},
  469. </if>
  470. <if test="batAlarmVt != null">
  471. #{batAlarmVt,jdbcType=DECIMAL},
  472. </if>
  473. <if test="batAlarmSoc != null">
  474. #{batAlarmSoc,jdbcType=INTEGER},
  475. </if>
  476. <if test="aiPullBack != null">
  477. #{aiPullBack,jdbcType=INTEGER},
  478. </if>
  479. <if test="aiPass != null">
  480. #{aiPass,jdbcType=INTEGER},
  481. </if>
  482. <if test="aiSinglePass != null">
  483. #{aiSinglePass,jdbcType=INTEGER},
  484. </if>
  485. <if test="cpuVersion != null">
  486. #{cpuVersion,jdbcType=VARCHAR},
  487. </if>
  488. <if test="tongxunVersion != null">
  489. #{tongxunVersion,jdbcType=VARCHAR},
  490. </if>
  491. <if test="tianxianType != null">
  492. #{tianxianType,jdbcType=CHAR},
  493. </if>
  494. <if test="tongxunWay != null">
  495. #{tongxunWay,jdbcType=CHAR},
  496. </if>
  497. <if test="networkRegTimeout != null">
  498. #{networkRegTimeout,jdbcType=INTEGER},
  499. </if>
  500. <if test="pwmHz != null">
  501. #{pwmHz,jdbcType=INTEGER},
  502. </if>
  503. <if test="pwmDuty != null">
  504. #{pwmDuty,jdbcType=INTEGER},
  505. </if>
  506. <if test="flashBrightMin != null">
  507. #{flashBrightMin,jdbcType=INTEGER},
  508. </if>
  509. <if test="flashBrightMax != null">
  510. #{flashBrightMax,jdbcType=INTEGER},
  511. </if>
  512. <if test="setupYear != null">
  513. #{setupYear,jdbcType=VARCHAR},
  514. </if>
  515. <if test="upWholeImgWeekRule != null">
  516. #{upWholeImgWeekRule,jdbcType=VARCHAR},
  517. </if>
  518. <if test="ip1ExpandOn != null">
  519. #{ip1ExpandOn,jdbcType=CHAR},
  520. </if>
  521. <if test="createMan != null">
  522. #{createMan,jdbcType=VARCHAR},
  523. </if>
  524. <if test="createTime != null">
  525. #{createTime,jdbcType=TIMESTAMP},
  526. </if>
  527. <if test="finishedFlag != null">
  528. #{finishedFlag,jdbcType=CHAR},
  529. </if>
  530. <if test="finishedTime != null">
  531. #{finishedTime,jdbcType=TIMESTAMP},
  532. </if>
  533. <if test="meterFontStyle != null">
  534. #{meterFontStyle,jdbcType=CHAR},
  535. </if>
  536. <if test="systemReviewFlag != null">
  537. #{systemReviewFlag,jdbcType=CHAR},
  538. </if>
  539. <if test="deviceType != null">
  540. #{deviceType,jdbcType=CHAR},
  541. </if>
  542. <if test="pgRangeMin != null">
  543. #{pgRangeMin,jdbcType=DECIMAL},
  544. </if>
  545. <if test="pgRangeMax != null">
  546. #{pgRangeMax,jdbcType=DECIMAL},
  547. </if>
  548. <if test="pgPrecisionType != null">
  549. #{pgPrecisionType,jdbcType=INTEGER},
  550. </if>
  551. <if test="pgCorrectvalue != null">
  552. #{pgCorrectvalue,jdbcType=DECIMAL},
  553. </if>
  554. <if test="pgManualConfig != null">
  555. #{pgManualConfig,jdbcType=VARCHAR},
  556. </if>
  557. <if test="pgIsDebug != null">
  558. #{pgIsDebug,jdbcType=CHAR},
  559. </if>
  560. <if test="pgInitTargetRegion != null">
  561. #{pgInitTargetRegion,jdbcType=CHAR},
  562. </if>
  563. <if test="isprintcomlog != null">
  564. #{isprintcomlog,jdbcType=CHAR},
  565. </if>
  566. <if test="isresetwdt != null">
  567. #{isresetwdt,jdbcType=CHAR},
  568. </if>
  569. <if test="isresetbat != null">
  570. #{isresetbat,jdbcType=CHAR},
  571. </if>
  572. <if test="isrestmcu != null">
  573. #{isrestmcu,jdbcType=CHAR},
  574. </if>
  575. <if test="wiTaskManwakeupFlag != null">
  576. #{wiTaskManwakeupFlag,jdbcType=CHAR},
  577. </if>
  578. <if test="wiTaskMonthFlag != null">
  579. #{wiTaskMonthFlag,jdbcType=CHAR},
  580. </if>
  581. <if test="wiTaskSpecdateFlag != null">
  582. #{wiTaskSpecdateFlag,jdbcType=VARCHAR},
  583. </if>
  584. <if test="logUploadRules != null">
  585. #{logUploadRules,jdbcType=VARCHAR},
  586. </if>
  587. <if test="uploadLastFailLogFlag != null">
  588. #{uploadLastFailLogFlag,jdbcType=CHAR},
  589. </if>
  590. <if test="logTaskManwakeupFlag != null">
  591. #{logTaskManwakeupFlag,jdbcType=CHAR},
  592. </if>
  593. <if test="batchFlag != null">
  594. #{batchFlag,jdbcType=CHAR},
  595. </if>
  596. <if test="pgManualConfigLevel != null">
  597. #{pgManualConfigLevel,jdbcType=CHAR},
  598. </if>
  599. </trim>
  600. </insert>
  601. <select id="countByExample" parameterType="com.mvc.entity.TaskRemoteCfgExample" resultType="java.lang.Long">
  602. select count(*) from task_remote_cfg
  603. <if test="_parameter != null">
  604. <include refid="Example_Where_Clause" />
  605. </if>
  606. </select>
  607. <update id="updateByExampleSelective" parameterType="map">
  608. update task_remote_cfg
  609. <set>
  610. <if test="record.id != null">
  611. ID = #{record.id,jdbcType=INTEGER},
  612. </if>
  613. <if test="record.taskId != null">
  614. TASK_ID = #{record.taskId,jdbcType=VARCHAR},
  615. </if>
  616. <if test="record.deviceSn != null">
  617. DEVICE_SN = #{record.deviceSn,jdbcType=VARCHAR},
  618. </if>
  619. <if test="record.stationCode != null">
  620. STATION_CODE = #{record.stationCode,jdbcType=VARCHAR},
  621. </if>
  622. <if test="record.lastVal != null">
  623. LAST_VAL = #{record.lastVal,jdbcType=DOUBLE},
  624. </if>
  625. <if test="record.ip1Port1 != null">
  626. IP1_PORT1 = #{record.ip1Port1,jdbcType=VARCHAR},
  627. </if>
  628. <if test="record.ip2Port2 != null">
  629. IP2_PORT2 = #{record.ip2Port2,jdbcType=VARCHAR},
  630. </if>
  631. <if test="record.ip3Port3 != null">
  632. IP3_PORT3 = #{record.ip3Port3,jdbcType=VARCHAR},
  633. </if>
  634. <if test="record.ip4Port4 != null">
  635. IP4_PORT4 = #{record.ip4Port4,jdbcType=VARCHAR},
  636. </if>
  637. <if test="record.domainNamePort != null">
  638. DOMAIN_NAME_PORT = #{record.domainNamePort,jdbcType=VARCHAR},
  639. </if>
  640. <if test="record.dnType != null">
  641. DN_TYPE = #{record.dnType,jdbcType=INTEGER},
  642. </if>
  643. <if test="record.digitNum != null">
  644. DIGIT_NUM = #{record.digitNum,jdbcType=INTEGER},
  645. </if>
  646. <if test="record.uintType != null">
  647. UINT_TYPE = #{record.uintType,jdbcType=INTEGER},
  648. </if>
  649. <if test="record.setupDir != null">
  650. SETUP_DIR = #{record.setupDir,jdbcType=CHAR},
  651. </if>
  652. <if test="record.sampleInterval != null">
  653. SAMPLE_INTERVAL = #{record.sampleInterval,jdbcType=INTEGER},
  654. </if>
  655. <if test="record.wheelNum != null">
  656. WHEEL_NUM = #{record.wheelNum,jdbcType=INTEGER},
  657. </if>
  658. <if test="record.upInterval != null">
  659. UP_INTERVAL = #{record.upInterval,jdbcType=INTEGER},
  660. </if>
  661. <if test="record.ltSampleInterval != null">
  662. LT_SAMPLE_INTERVAL = #{record.ltSampleInterval,jdbcType=INTEGER},
  663. </if>
  664. <if test="record.workLt != null">
  665. WORK_LT = #{record.workLt,jdbcType=INTEGER},
  666. </if>
  667. <if test="record.workHt != null">
  668. WORK_HT = #{record.workHt,jdbcType=INTEGER},
  669. </if>
  670. <if test="record.batAlarmVt != null">
  671. BAT_ALARM_VT = #{record.batAlarmVt,jdbcType=DECIMAL},
  672. </if>
  673. <if test="record.batAlarmSoc != null">
  674. BAT_ALARM_SOC = #{record.batAlarmSoc,jdbcType=INTEGER},
  675. </if>
  676. <if test="record.aiPullBack != null">
  677. AI_PULL_BACK = #{record.aiPullBack,jdbcType=INTEGER},
  678. </if>
  679. <if test="record.aiPass != null">
  680. AI_PASS = #{record.aiPass,jdbcType=INTEGER},
  681. </if>
  682. <if test="record.aiSinglePass != null">
  683. AI_SINGLE_PASS = #{record.aiSinglePass,jdbcType=INTEGER},
  684. </if>
  685. <if test="record.cpuVersion != null">
  686. CPU_VERSION = #{record.cpuVersion,jdbcType=VARCHAR},
  687. </if>
  688. <if test="record.tongxunVersion != null">
  689. TONGXUN_VERSION = #{record.tongxunVersion,jdbcType=VARCHAR},
  690. </if>
  691. <if test="record.tianxianType != null">
  692. TIANXIAN_TYPE = #{record.tianxianType,jdbcType=CHAR},
  693. </if>
  694. <if test="record.tongxunWay != null">
  695. TONGXUN_WAY = #{record.tongxunWay,jdbcType=CHAR},
  696. </if>
  697. <if test="record.networkRegTimeout != null">
  698. NETWORK_REG_TIMEOUT = #{record.networkRegTimeout,jdbcType=INTEGER},
  699. </if>
  700. <if test="record.pwmHz != null">
  701. PWM_HZ = #{record.pwmHz,jdbcType=INTEGER},
  702. </if>
  703. <if test="record.pwmDuty != null">
  704. PWM_DUTY = #{record.pwmDuty,jdbcType=INTEGER},
  705. </if>
  706. <if test="record.flashBrightMin != null">
  707. FLASH_BRIGHT_MIN = #{record.flashBrightMin,jdbcType=INTEGER},
  708. </if>
  709. <if test="record.flashBrightMax != null">
  710. FLASH_BRIGHT_MAX = #{record.flashBrightMax,jdbcType=INTEGER},
  711. </if>
  712. <if test="record.setupYear != null">
  713. SETUP_YEAR = #{record.setupYear,jdbcType=VARCHAR},
  714. </if>
  715. <if test="record.upWholeImgWeekRule != null">
  716. UP_WHOLE_IMG_WEEK_RULE = #{record.upWholeImgWeekRule,jdbcType=VARCHAR},
  717. </if>
  718. <if test="record.ip1ExpandOn != null">
  719. IP1_EXPAND_ON = #{record.ip1ExpandOn,jdbcType=CHAR},
  720. </if>
  721. <if test="record.createMan != null">
  722. CREATE_MAN = #{record.createMan,jdbcType=VARCHAR},
  723. </if>
  724. <if test="record.createTime != null">
  725. CREATE_TIME = #{record.createTime,jdbcType=TIMESTAMP},
  726. </if>
  727. <if test="record.finishedFlag != null">
  728. FINISHED_FLAG = #{record.finishedFlag,jdbcType=CHAR},
  729. </if>
  730. <if test="record.finishedTime != null">
  731. FINISHED_TIME = #{record.finishedTime,jdbcType=TIMESTAMP},
  732. </if>
  733. <if test="record.meterFontStyle != null">
  734. METER_FONT_STYLE = #{record.meterFontStyle,jdbcType=CHAR},
  735. </if>
  736. <if test="record.systemReviewFlag != null">
  737. SYSTEM_REVIEW_FLAG = #{record.systemReviewFlag,jdbcType=CHAR},
  738. </if>
  739. <if test="record.deviceType != null">
  740. DEVICE_TYPE = #{record.deviceType,jdbcType=CHAR},
  741. </if>
  742. <if test="record.pgRangeMin != null">
  743. PG_RANGE_MIN = #{record.pgRangeMin,jdbcType=DECIMAL},
  744. </if>
  745. <if test="record.pgRangeMax != null">
  746. PG_RANGE_MAX = #{record.pgRangeMax,jdbcType=DECIMAL},
  747. </if>
  748. <if test="record.pgPrecisionType != null">
  749. PG_PRECISION_TYPE = #{record.pgPrecisionType,jdbcType=INTEGER},
  750. </if>
  751. <if test="record.pgCorrectvalue != null">
  752. PG_CORRECTVALUE = #{record.pgCorrectvalue,jdbcType=DECIMAL},
  753. </if>
  754. <if test="record.pgManualConfig != null">
  755. PG_MANUAL_CONFIG = #{record.pgManualConfig,jdbcType=VARCHAR},
  756. </if>
  757. <if test="record.pgIsDebug != null">
  758. PG_IS_DEBUG = #{record.pgIsDebug,jdbcType=CHAR},
  759. </if>
  760. <if test="record.pgInitTargetRegion != null">
  761. PG_INIT_TARGET_REGION = #{record.pgInitTargetRegion,jdbcType=CHAR},
  762. </if>
  763. <if test="record.isprintcomlog != null">
  764. ISPRINTCOMLOG = #{record.isprintcomlog,jdbcType=CHAR},
  765. </if>
  766. <if test="record.isresetwdt != null">
  767. ISRESETWDT = #{record.isresetwdt,jdbcType=CHAR},
  768. </if>
  769. <if test="record.isresetbat != null">
  770. ISRESETBAT = #{record.isresetbat,jdbcType=CHAR},
  771. </if>
  772. <if test="record.isrestmcu != null">
  773. ISRESTMCU = #{record.isrestmcu,jdbcType=CHAR},
  774. </if>
  775. <if test="record.wiTaskManwakeupFlag != null">
  776. WI_TASK_MANWAKEUP_FLAG = #{record.wiTaskManwakeupFlag,jdbcType=CHAR},
  777. </if>
  778. <if test="record.wiTaskMonthFlag != null">
  779. WI_TASK_MONTH_FLAG = #{record.wiTaskMonthFlag,jdbcType=CHAR},
  780. </if>
  781. <if test="record.wiTaskSpecdateFlag != null">
  782. WI_TASK_SPECDATE_FLAG = #{record.wiTaskSpecdateFlag,jdbcType=VARCHAR},
  783. </if>
  784. <if test="record.logUploadRules != null">
  785. LOG_UPLOAD_RULES = #{record.logUploadRules,jdbcType=VARCHAR},
  786. </if>
  787. <if test="record.uploadLastFailLogFlag != null">
  788. UPLOAD_LAST_FAIL_LOG_FLAG = #{record.uploadLastFailLogFlag,jdbcType=CHAR},
  789. </if>
  790. <if test="record.logTaskManwakeupFlag != null">
  791. LOG_TASK_MANWAKEUP_FLAG = #{record.logTaskManwakeupFlag,jdbcType=CHAR},
  792. </if>
  793. <if test="record.batchFlag != null">
  794. BATCH_FLAG = #{record.batchFlag,jdbcType=CHAR},
  795. </if>
  796. <if test="record.pgManualConfigLevel != null">
  797. PG_MANUAL_CONFIG_LEVEL = #{record.pgManualConfigLevel,jdbcType=CHAR},
  798. </if>
  799. </set>
  800. <if test="_parameter != null">
  801. <include refid="Update_By_Example_Where_Clause" />
  802. </if>
  803. </update>
  804. <update id="updateByExample" parameterType="map">
  805. update task_remote_cfg
  806. set ID = #{record.id,jdbcType=INTEGER},
  807. TASK_ID = #{record.taskId,jdbcType=VARCHAR},
  808. DEVICE_SN = #{record.deviceSn,jdbcType=VARCHAR},
  809. STATION_CODE = #{record.stationCode,jdbcType=VARCHAR},
  810. LAST_VAL = #{record.lastVal,jdbcType=DOUBLE},
  811. IP1_PORT1 = #{record.ip1Port1,jdbcType=VARCHAR},
  812. IP2_PORT2 = #{record.ip2Port2,jdbcType=VARCHAR},
  813. IP3_PORT3 = #{record.ip3Port3,jdbcType=VARCHAR},
  814. IP4_PORT4 = #{record.ip4Port4,jdbcType=VARCHAR},
  815. DOMAIN_NAME_PORT = #{record.domainNamePort,jdbcType=VARCHAR},
  816. DN_TYPE = #{record.dnType,jdbcType=INTEGER},
  817. DIGIT_NUM = #{record.digitNum,jdbcType=INTEGER},
  818. UINT_TYPE = #{record.uintType,jdbcType=INTEGER},
  819. SETUP_DIR = #{record.setupDir,jdbcType=CHAR},
  820. SAMPLE_INTERVAL = #{record.sampleInterval,jdbcType=INTEGER},
  821. WHEEL_NUM = #{record.wheelNum,jdbcType=INTEGER},
  822. UP_INTERVAL = #{record.upInterval,jdbcType=INTEGER},
  823. LT_SAMPLE_INTERVAL = #{record.ltSampleInterval,jdbcType=INTEGER},
  824. WORK_LT = #{record.workLt,jdbcType=INTEGER},
  825. WORK_HT = #{record.workHt,jdbcType=INTEGER},
  826. BAT_ALARM_VT = #{record.batAlarmVt,jdbcType=DECIMAL},
  827. BAT_ALARM_SOC = #{record.batAlarmSoc,jdbcType=INTEGER},
  828. AI_PULL_BACK = #{record.aiPullBack,jdbcType=INTEGER},
  829. AI_PASS = #{record.aiPass,jdbcType=INTEGER},
  830. AI_SINGLE_PASS = #{record.aiSinglePass,jdbcType=INTEGER},
  831. CPU_VERSION = #{record.cpuVersion,jdbcType=VARCHAR},
  832. TONGXUN_VERSION = #{record.tongxunVersion,jdbcType=VARCHAR},
  833. TIANXIAN_TYPE = #{record.tianxianType,jdbcType=CHAR},
  834. TONGXUN_WAY = #{record.tongxunWay,jdbcType=CHAR},
  835. NETWORK_REG_TIMEOUT = #{record.networkRegTimeout,jdbcType=INTEGER},
  836. PWM_HZ = #{record.pwmHz,jdbcType=INTEGER},
  837. PWM_DUTY = #{record.pwmDuty,jdbcType=INTEGER},
  838. FLASH_BRIGHT_MIN = #{record.flashBrightMin,jdbcType=INTEGER},
  839. FLASH_BRIGHT_MAX = #{record.flashBrightMax,jdbcType=INTEGER},
  840. SETUP_YEAR = #{record.setupYear,jdbcType=VARCHAR},
  841. UP_WHOLE_IMG_WEEK_RULE = #{record.upWholeImgWeekRule,jdbcType=VARCHAR},
  842. IP1_EXPAND_ON = #{record.ip1ExpandOn,jdbcType=CHAR},
  843. CREATE_MAN = #{record.createMan,jdbcType=VARCHAR},
  844. CREATE_TIME = #{record.createTime,jdbcType=TIMESTAMP},
  845. FINISHED_FLAG = #{record.finishedFlag,jdbcType=CHAR},
  846. FINISHED_TIME = #{record.finishedTime,jdbcType=TIMESTAMP},
  847. METER_FONT_STYLE = #{record.meterFontStyle,jdbcType=CHAR},
  848. SYSTEM_REVIEW_FLAG = #{record.systemReviewFlag,jdbcType=CHAR},
  849. DEVICE_TYPE = #{record.deviceType,jdbcType=CHAR},
  850. PG_RANGE_MIN = #{record.pgRangeMin,jdbcType=DECIMAL},
  851. PG_RANGE_MAX = #{record.pgRangeMax,jdbcType=DECIMAL},
  852. PG_PRECISION_TYPE = #{record.pgPrecisionType,jdbcType=INTEGER},
  853. PG_CORRECTVALUE = #{record.pgCorrectvalue,jdbcType=DECIMAL},
  854. PG_MANUAL_CONFIG = #{record.pgManualConfig,jdbcType=VARCHAR},
  855. PG_IS_DEBUG = #{record.pgIsDebug,jdbcType=CHAR},
  856. PG_INIT_TARGET_REGION = #{record.pgInitTargetRegion,jdbcType=CHAR},
  857. ISPRINTCOMLOG = #{record.isprintcomlog,jdbcType=CHAR},
  858. ISRESETWDT = #{record.isresetwdt,jdbcType=CHAR},
  859. ISRESETBAT = #{record.isresetbat,jdbcType=CHAR},
  860. ISRESTMCU = #{record.isrestmcu,jdbcType=CHAR},
  861. WI_TASK_MANWAKEUP_FLAG = #{record.wiTaskManwakeupFlag,jdbcType=CHAR},
  862. WI_TASK_MONTH_FLAG = #{record.wiTaskMonthFlag,jdbcType=CHAR},
  863. WI_TASK_SPECDATE_FLAG = #{record.wiTaskSpecdateFlag,jdbcType=VARCHAR},
  864. LOG_UPLOAD_RULES = #{record.logUploadRules,jdbcType=VARCHAR},
  865. UPLOAD_LAST_FAIL_LOG_FLAG = #{record.uploadLastFailLogFlag,jdbcType=CHAR},
  866. LOG_TASK_MANWAKEUP_FLAG = #{record.logTaskManwakeupFlag,jdbcType=CHAR},
  867. BATCH_FLAG = #{record.batchFlag,jdbcType=CHAR},
  868. PG_MANUAL_CONFIG_LEVEL = #{record.pgManualConfigLevel,jdbcType=CHAR}
  869. <if test="_parameter != null">
  870. <include refid="Update_By_Example_Where_Clause" />
  871. </if>
  872. </update>
  873. <update id="updateByPrimaryKeySelective" parameterType="com.mvc.entity.TaskRemoteCfg">
  874. update task_remote_cfg
  875. <set>
  876. <if test="taskId != null">
  877. TASK_ID = #{taskId,jdbcType=VARCHAR},
  878. </if>
  879. <if test="deviceSn != null">
  880. DEVICE_SN = #{deviceSn,jdbcType=VARCHAR},
  881. </if>
  882. <if test="stationCode != null">
  883. STATION_CODE = #{stationCode,jdbcType=VARCHAR},
  884. </if>
  885. <if test="lastVal != null">
  886. LAST_VAL = #{lastVal,jdbcType=DOUBLE},
  887. </if>
  888. <if test="ip1Port1 != null">
  889. IP1_PORT1 = #{ip1Port1,jdbcType=VARCHAR},
  890. </if>
  891. <if test="ip2Port2 != null">
  892. IP2_PORT2 = #{ip2Port2,jdbcType=VARCHAR},
  893. </if>
  894. <if test="ip3Port3 != null">
  895. IP3_PORT3 = #{ip3Port3,jdbcType=VARCHAR},
  896. </if>
  897. <if test="ip4Port4 != null">
  898. IP4_PORT4 = #{ip4Port4,jdbcType=VARCHAR},
  899. </if>
  900. <if test="domainNamePort != null">
  901. DOMAIN_NAME_PORT = #{domainNamePort,jdbcType=VARCHAR},
  902. </if>
  903. <if test="dnType != null">
  904. DN_TYPE = #{dnType,jdbcType=INTEGER},
  905. </if>
  906. <if test="digitNum != null">
  907. DIGIT_NUM = #{digitNum,jdbcType=INTEGER},
  908. </if>
  909. <if test="uintType != null">
  910. UINT_TYPE = #{uintType,jdbcType=INTEGER},
  911. </if>
  912. <if test="setupDir != null">
  913. SETUP_DIR = #{setupDir,jdbcType=CHAR},
  914. </if>
  915. <if test="sampleInterval != null">
  916. SAMPLE_INTERVAL = #{sampleInterval,jdbcType=INTEGER},
  917. </if>
  918. <if test="wheelNum != null">
  919. WHEEL_NUM = #{wheelNum,jdbcType=INTEGER},
  920. </if>
  921. <if test="upInterval != null">
  922. UP_INTERVAL = #{upInterval,jdbcType=INTEGER},
  923. </if>
  924. <if test="ltSampleInterval != null">
  925. LT_SAMPLE_INTERVAL = #{ltSampleInterval,jdbcType=INTEGER},
  926. </if>
  927. <if test="workLt != null">
  928. WORK_LT = #{workLt,jdbcType=INTEGER},
  929. </if>
  930. <if test="workHt != null">
  931. WORK_HT = #{workHt,jdbcType=INTEGER},
  932. </if>
  933. <if test="batAlarmVt != null">
  934. BAT_ALARM_VT = #{batAlarmVt,jdbcType=DECIMAL},
  935. </if>
  936. <if test="batAlarmSoc != null">
  937. BAT_ALARM_SOC = #{batAlarmSoc,jdbcType=INTEGER},
  938. </if>
  939. <if test="aiPullBack != null">
  940. AI_PULL_BACK = #{aiPullBack,jdbcType=INTEGER},
  941. </if>
  942. <if test="aiPass != null">
  943. AI_PASS = #{aiPass,jdbcType=INTEGER},
  944. </if>
  945. <if test="aiSinglePass != null">
  946. AI_SINGLE_PASS = #{aiSinglePass,jdbcType=INTEGER},
  947. </if>
  948. <if test="cpuVersion != null">
  949. CPU_VERSION = #{cpuVersion,jdbcType=VARCHAR},
  950. </if>
  951. <if test="tongxunVersion != null">
  952. TONGXUN_VERSION = #{tongxunVersion,jdbcType=VARCHAR},
  953. </if>
  954. <if test="tianxianType != null">
  955. TIANXIAN_TYPE = #{tianxianType,jdbcType=CHAR},
  956. </if>
  957. <if test="tongxunWay != null">
  958. TONGXUN_WAY = #{tongxunWay,jdbcType=CHAR},
  959. </if>
  960. <if test="networkRegTimeout != null">
  961. NETWORK_REG_TIMEOUT = #{networkRegTimeout,jdbcType=INTEGER},
  962. </if>
  963. <if test="pwmHz != null">
  964. PWM_HZ = #{pwmHz,jdbcType=INTEGER},
  965. </if>
  966. <if test="pwmDuty != null">
  967. PWM_DUTY = #{pwmDuty,jdbcType=INTEGER},
  968. </if>
  969. <if test="flashBrightMin != null">
  970. FLASH_BRIGHT_MIN = #{flashBrightMin,jdbcType=INTEGER},
  971. </if>
  972. <if test="flashBrightMax != null">
  973. FLASH_BRIGHT_MAX = #{flashBrightMax,jdbcType=INTEGER},
  974. </if>
  975. <if test="setupYear != null">
  976. SETUP_YEAR = #{setupYear,jdbcType=VARCHAR},
  977. </if>
  978. <if test="upWholeImgWeekRule != null">
  979. UP_WHOLE_IMG_WEEK_RULE = #{upWholeImgWeekRule,jdbcType=VARCHAR},
  980. </if>
  981. <if test="ip1ExpandOn != null">
  982. IP1_EXPAND_ON = #{ip1ExpandOn,jdbcType=CHAR},
  983. </if>
  984. <if test="createMan != null">
  985. CREATE_MAN = #{createMan,jdbcType=VARCHAR},
  986. </if>
  987. <if test="createTime != null">
  988. CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
  989. </if>
  990. <if test="finishedFlag != null">
  991. FINISHED_FLAG = #{finishedFlag,jdbcType=CHAR},
  992. </if>
  993. <if test="finishedTime != null">
  994. FINISHED_TIME = #{finishedTime,jdbcType=TIMESTAMP},
  995. </if>
  996. <if test="meterFontStyle != null">
  997. METER_FONT_STYLE = #{meterFontStyle,jdbcType=CHAR},
  998. </if>
  999. <if test="systemReviewFlag != null">
  1000. SYSTEM_REVIEW_FLAG = #{systemReviewFlag,jdbcType=CHAR},
  1001. </if>
  1002. <if test="deviceType != null">
  1003. DEVICE_TYPE = #{deviceType,jdbcType=CHAR},
  1004. </if>
  1005. <if test="pgRangeMin != null">
  1006. PG_RANGE_MIN = #{pgRangeMin,jdbcType=DECIMAL},
  1007. </if>
  1008. <if test="pgRangeMax != null">
  1009. PG_RANGE_MAX = #{pgRangeMax,jdbcType=DECIMAL},
  1010. </if>
  1011. <if test="pgPrecisionType != null">
  1012. PG_PRECISION_TYPE = #{pgPrecisionType,jdbcType=INTEGER},
  1013. </if>
  1014. <if test="pgCorrectvalue != null">
  1015. PG_CORRECTVALUE = #{pgCorrectvalue,jdbcType=DECIMAL},
  1016. </if>
  1017. <if test="pgManualConfig != null">
  1018. PG_MANUAL_CONFIG = #{pgManualConfig,jdbcType=VARCHAR},
  1019. </if>
  1020. <if test="pgIsDebug != null">
  1021. PG_IS_DEBUG = #{pgIsDebug,jdbcType=CHAR},
  1022. </if>
  1023. <if test="pgInitTargetRegion != null">
  1024. PG_INIT_TARGET_REGION = #{pgInitTargetRegion,jdbcType=CHAR},
  1025. </if>
  1026. <if test="isprintcomlog != null">
  1027. ISPRINTCOMLOG = #{isprintcomlog,jdbcType=CHAR},
  1028. </if>
  1029. <if test="isresetwdt != null">
  1030. ISRESETWDT = #{isresetwdt,jdbcType=CHAR},
  1031. </if>
  1032. <if test="isresetbat != null">
  1033. ISRESETBAT = #{isresetbat,jdbcType=CHAR},
  1034. </if>
  1035. <if test="isrestmcu != null">
  1036. ISRESTMCU = #{isrestmcu,jdbcType=CHAR},
  1037. </if>
  1038. <if test="wiTaskManwakeupFlag != null">
  1039. WI_TASK_MANWAKEUP_FLAG = #{wiTaskManwakeupFlag,jdbcType=CHAR},
  1040. </if>
  1041. <if test="wiTaskMonthFlag != null">
  1042. WI_TASK_MONTH_FLAG = #{wiTaskMonthFlag,jdbcType=CHAR},
  1043. </if>
  1044. <if test="wiTaskSpecdateFlag != null">
  1045. WI_TASK_SPECDATE_FLAG = #{wiTaskSpecdateFlag,jdbcType=VARCHAR},
  1046. </if>
  1047. <if test="logUploadRules != null">
  1048. LOG_UPLOAD_RULES = #{logUploadRules,jdbcType=VARCHAR},
  1049. </if>
  1050. <if test="uploadLastFailLogFlag != null">
  1051. UPLOAD_LAST_FAIL_LOG_FLAG = #{uploadLastFailLogFlag,jdbcType=CHAR},
  1052. </if>
  1053. <if test="logTaskManwakeupFlag != null">
  1054. LOG_TASK_MANWAKEUP_FLAG = #{logTaskManwakeupFlag,jdbcType=CHAR},
  1055. </if>
  1056. <if test="batchFlag != null">
  1057. BATCH_FLAG = #{batchFlag,jdbcType=CHAR},
  1058. </if>
  1059. <if test="pgManualConfigLevel != null">
  1060. PG_MANUAL_CONFIG_LEVEL = #{pgManualConfigLevel,jdbcType=CHAR},
  1061. </if>
  1062. </set>
  1063. where ID = #{id,jdbcType=INTEGER}
  1064. </update>
  1065. <update id="updateByPrimaryKey" parameterType="com.mvc.entity.TaskRemoteCfg">
  1066. update task_remote_cfg
  1067. set TASK_ID = #{taskId,jdbcType=VARCHAR},
  1068. DEVICE_SN = #{deviceSn,jdbcType=VARCHAR},
  1069. STATION_CODE = #{stationCode,jdbcType=VARCHAR},
  1070. LAST_VAL = #{lastVal,jdbcType=DOUBLE},
  1071. IP1_PORT1 = #{ip1Port1,jdbcType=VARCHAR},
  1072. IP2_PORT2 = #{ip2Port2,jdbcType=VARCHAR},
  1073. IP3_PORT3 = #{ip3Port3,jdbcType=VARCHAR},
  1074. IP4_PORT4 = #{ip4Port4,jdbcType=VARCHAR},
  1075. DOMAIN_NAME_PORT = #{domainNamePort,jdbcType=VARCHAR},
  1076. DN_TYPE = #{dnType,jdbcType=INTEGER},
  1077. DIGIT_NUM = #{digitNum,jdbcType=INTEGER},
  1078. UINT_TYPE = #{uintType,jdbcType=INTEGER},
  1079. SETUP_DIR = #{setupDir,jdbcType=CHAR},
  1080. SAMPLE_INTERVAL = #{sampleInterval,jdbcType=INTEGER},
  1081. WHEEL_NUM = #{wheelNum,jdbcType=INTEGER},
  1082. UP_INTERVAL = #{upInterval,jdbcType=INTEGER},
  1083. LT_SAMPLE_INTERVAL = #{ltSampleInterval,jdbcType=INTEGER},
  1084. WORK_LT = #{workLt,jdbcType=INTEGER},
  1085. WORK_HT = #{workHt,jdbcType=INTEGER},
  1086. BAT_ALARM_VT = #{batAlarmVt,jdbcType=DECIMAL},
  1087. BAT_ALARM_SOC = #{batAlarmSoc,jdbcType=INTEGER},
  1088. AI_PULL_BACK = #{aiPullBack,jdbcType=INTEGER},
  1089. AI_PASS = #{aiPass,jdbcType=INTEGER},
  1090. AI_SINGLE_PASS = #{aiSinglePass,jdbcType=INTEGER},
  1091. CPU_VERSION = #{cpuVersion,jdbcType=VARCHAR},
  1092. TONGXUN_VERSION = #{tongxunVersion,jdbcType=VARCHAR},
  1093. TIANXIAN_TYPE = #{tianxianType,jdbcType=CHAR},
  1094. TONGXUN_WAY = #{tongxunWay,jdbcType=CHAR},
  1095. NETWORK_REG_TIMEOUT = #{networkRegTimeout,jdbcType=INTEGER},
  1096. PWM_HZ = #{pwmHz,jdbcType=INTEGER},
  1097. PWM_DUTY = #{pwmDuty,jdbcType=INTEGER},
  1098. FLASH_BRIGHT_MIN = #{flashBrightMin,jdbcType=INTEGER},
  1099. FLASH_BRIGHT_MAX = #{flashBrightMax,jdbcType=INTEGER},
  1100. SETUP_YEAR = #{setupYear,jdbcType=VARCHAR},
  1101. UP_WHOLE_IMG_WEEK_RULE = #{upWholeImgWeekRule,jdbcType=VARCHAR},
  1102. IP1_EXPAND_ON = #{ip1ExpandOn,jdbcType=CHAR},
  1103. CREATE_MAN = #{createMan,jdbcType=VARCHAR},
  1104. CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
  1105. FINISHED_FLAG = #{finishedFlag,jdbcType=CHAR},
  1106. FINISHED_TIME = #{finishedTime,jdbcType=TIMESTAMP},
  1107. METER_FONT_STYLE = #{meterFontStyle,jdbcType=CHAR},
  1108. SYSTEM_REVIEW_FLAG = #{systemReviewFlag,jdbcType=CHAR},
  1109. DEVICE_TYPE = #{deviceType,jdbcType=CHAR},
  1110. PG_RANGE_MIN = #{pgRangeMin,jdbcType=DECIMAL},
  1111. PG_RANGE_MAX = #{pgRangeMax,jdbcType=DECIMAL},
  1112. PG_PRECISION_TYPE = #{pgPrecisionType,jdbcType=INTEGER},
  1113. PG_CORRECTVALUE = #{pgCorrectvalue,jdbcType=DECIMAL},
  1114. PG_MANUAL_CONFIG = #{pgManualConfig,jdbcType=VARCHAR},
  1115. PG_IS_DEBUG = #{pgIsDebug,jdbcType=CHAR},
  1116. PG_INIT_TARGET_REGION = #{pgInitTargetRegion,jdbcType=CHAR},
  1117. ISPRINTCOMLOG = #{isprintcomlog,jdbcType=CHAR},
  1118. ISRESETWDT = #{isresetwdt,jdbcType=CHAR},
  1119. ISRESETBAT = #{isresetbat,jdbcType=CHAR},
  1120. ISRESTMCU = #{isrestmcu,jdbcType=CHAR},
  1121. WI_TASK_MANWAKEUP_FLAG = #{wiTaskManwakeupFlag,jdbcType=CHAR},
  1122. WI_TASK_MONTH_FLAG = #{wiTaskMonthFlag,jdbcType=CHAR},
  1123. WI_TASK_SPECDATE_FLAG = #{wiTaskSpecdateFlag,jdbcType=VARCHAR},
  1124. LOG_UPLOAD_RULES = #{logUploadRules,jdbcType=VARCHAR},
  1125. UPLOAD_LAST_FAIL_LOG_FLAG = #{uploadLastFailLogFlag,jdbcType=CHAR},
  1126. LOG_TASK_MANWAKEUP_FLAG = #{logTaskManwakeupFlag,jdbcType=CHAR},
  1127. BATCH_FLAG = #{batchFlag,jdbcType=CHAR},
  1128. PG_MANUAL_CONFIG_LEVEL = #{pgManualConfigLevel,jdbcType=CHAR}
  1129. where ID = #{id,jdbcType=INTEGER}
  1130. </update>
  1131. </mapper>