摘要:
1、查询要更新的表Barcode2U9 db.getCollection("Barcode2U9") .find({LotCode:{$in: [null,'']},CreatedOn:{$gt:new Date('2024-01-01T00:00:00Z')}}) 2、更新sql db.getCo 阅读全文
摘要:
select * from MiscShipRecord m left join BarcodeMaster b on m.ItemCode=b.ItemMasterCode and m.LotNo=d.LotNo where m.id=new ObjectId("62eb55390a3211002 阅读全文
摘要:
select * from MiscShipRecord left join DeliveryRecord on MiscShipRecord._id=new ObjectId(DeliveryRecord.SourceEntityID) Mongodb实现方式: db.MiscShipRecord 阅读全文
摘要:
1、三态模型 就绪(可运行)状态:线程已经准备好运行,只要获得CPU,就可立即执行 执行(运行)状态:线程已经获得CPU,其程序正在运行的状态 阻塞状态:正在运行的线程由于某些事件(I/O请求等)暂时无法执行的状态,即线程执行阻塞 就绪 → 执行:为就绪线程分配CPU即可变为执行状态" 执行 → 就 阅读全文
摘要:
转载地址 进程之间的通信 参考文章:https://blog.csdn.net/qq_34827674/article/details/107678226 前提知识:每个进程都有自己的用户空间,而内核空间是每个进程共享的。因此进程之间想要进行通信,就需要通过内核来实现。 管道: 管道是最简单,效率最 阅读全文
摘要:
引用自https://www.cnblogs.com/liushengit/p/9298980.html 第一个例子 String str1 = "a"; String str2 = "b"; String str3 = "ab"; String str4 = str1 + str2; System 阅读全文
摘要:
/** * 日期类型格式转换<br> * * @param date * @return date * @throws ParseException */ private Date parseStringToDate(String date) throws ParseException{ Date 阅读全文
摘要:
SELECT * FROM customer_linkman WHERE customer_id = #{customerLinkman.customerId} and id != #{customerLinkman.id} and is_deleted = 0 and ifnull(linkman 阅读全文
摘要:
set @business_no="SJ000147"; SELECT *,@clue_follow_id:=id FROM clue_follow WHERE clue_id=@clue_id; 阅读全文
摘要:
1、单行注释:#、-- 2、多行注释:/**/ 阅读全文
摘要:
UPDATE clue INNER JOIN sys_node ON clue.id=sys_node.rel_id AND sys_node.wf_name='clue' SET clue.`status`=1,clue.node_name='线索分配',clue.node_time=sys_no 阅读全文
摘要:
/** * <p> * 解决Feign的异常包装,统一返回结果 * </p> * * @author dingjm * @since 2023/2/2 */ public class OpenFeignErrorDecoder implements ErrorDecoder { /** * Feig 阅读全文
摘要:
参考https://blog.csdn.net/Curtisjia/article/details/122149507 /** * <p> * json字符串首尾去空格 * </p> * * @author dingjm * @since 2023/1/13 */ public class Stri 阅读全文
摘要:
1、clone $ git clone http://172.17.2.30:9980/ciiczj/document.git 或者 $ git clone -b <branchName> http://172.17.2.30:9980/ciiczj/document.git 2、转到documen 阅读全文
摘要:
1、filter:删选 list.stream().filter(x -> Objects.equals(x.getId(), saleUserId)).collect(Collectors.toList()); 2、map:映射某个字段 List<Integer> businessIds = bu 阅读全文
摘要:
1、log日志级别从低到高:TRACE、DEBUG、INFO、WARN、ERROR、FATAL。默认级别是INFO。 2、案例 代码 @RestController @RequestMapping("/log") @Slf4j public class LogController { @PostMa 阅读全文
摘要:
public class BaseConverterUtil { /** * List<DO>转List<VO> */ public static <DO, VO> List<VO> copyList(List<DO> doList, Class<VO> voClass) { List<VO> vo 阅读全文
摘要:
摘抄自https://www.cnblogs.com/mr-wuxiansheng/p/11288936.html 我遇到的问题是,实体类字段:cName,用RequestJson格式上传,只识别cname;用form格式上传,识别cName。 @ApiModelProperty(value = " 阅读全文
摘要:
1、想要实现sql: SELECT COUNT( 1 ) FROM clue_follow_linkman WHERE is_deleted=0 AND (clue_follow_id = ? AND ( (mobile_phone IS NULL OR mobile_phone = ?) ) AN 阅读全文
摘要:
import com.intellij.database.model.DasTable import com.intellij.database.model.ObjectKind import com.intellij.database.util.Case import com.intellij.d 阅读全文