OutAssistDao.dql 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. -- [queryOutAssistInfo]
  2. select * from $table$;
  3. -- [addOutAssistInfo]
  4. insert into $table$ (id, outAssistName, assistType, workType,
  5. workQuality, settleType, contactMan,
  6. contactPhone, outAssistCode, province,
  7. city, area, address,
  8. remark, enable, factorySyncKey,
  9. dataBaseAlias, shardingKey, contractUrl, submitOnAllocation, sortIndex,capacity,needPackMaterial,
  10. createBy, createTime,
  11. updateBy, updateTime ) values ( #{id}, #{outassistname}, #{assisttype}, #{worktype},
  12. #{workquality}, #{settletype}, #{contactman},
  13. #{contactphone}, #{outassistcode}, #{province},
  14. #{city}, #{area}, #{address},
  15. #{remark}, #{enable}, #{factorysynckey},
  16. #{databasealias}, #{shardingkey}, #{contracturl}, #{submitonallocation}, #{sortindex}, #{capacity}, #{needpackmaterial},
  17. #{createby}, #{createtime},
  18. #{updateby}, #{updatetime} );
  19. -- [updateOutAssistInfo]
  20. update $table$ set outAssistName = #{outassistname},assistType = #{assisttype},workType = #{worktype},workQuality = #{workquality},
  21. settleType = #{settletype},contactMan = #{contactman},contactPhone = #{contactphone},outAssistCode = #{outassistcode},
  22. province = #{province},city = #{city},area = #{area},address = #{address}, dataBaseAlias = #{databasealias}, shardingKey = #{shardingkey},
  23. remark = #{remark}, contractUrl = #{contracturl}, submitOnAllocation = #{submitonallocation}, sortIndex = #{sortindex}, capacity = #{capacity},
  24. needPackMaterial = #{needpackmaterial}, updateBy = #{updateby},updateTime = #{updatetime}
  25. where id = #{id};
  26. -- [enableOutAssistInfo]
  27. update $table$ set enable = #{enable},
  28. updateBy = #{updateby},updateTime = #{updatetime}
  29. where id = #{id};
  30. -- [generateOutAssistSyncKey]
  31. update $table$ set factorySyncKey = #{factorysynckey},
  32. updateBy = #{updateby},updateTime = #{updatetime}
  33. where id = #{id};