update SupplyRoomConfig set fTHandleDepartAndTaskGroup='[{"departCode":"'+ dptCodeOfForeignTousse +'","departName":"'+ dptNameOfForeignTousse +'","taskGroup":"'+ defalutTaskGroup +'"}]' 
where supplyRoomType=0 and dptCodeOfForeignTousse is not null and defalutTaskGroup is not null;
update SupplyRoomConfig set fTHandleDepartAndTaskGroup='[]' where supplyRoomType=0 and (dptCodeOfForeignTousse is null or defalutTaskGroup is null);